.exe文件怎么反编译为java代码(有木有造的)

Python08

.exe文件怎么反编译为java代码(有木有造的),第1张

如果你的exe是用EXE4J生成的可以使用位运算提取class文件

File f=new File("...")//exe文件路径

File f1=new File("...")//生成的rar文件路径

FileInputStream fin=new FileInputStream(f)

FileOutputStream  fout=new FileOutputStream(f1)

      BufferedInputStream bin = new BufferedInputStream(fin)

      BufferedOutputStream bout = new BufferedOutputStream(fout)

      int in = 0

      do {

          in = bin.read()

          if (in == -1)

              break

          in ^= 0x88

          bout.write(in)

      } while (true)

      bin.close()

      fin.close()

      bout.close()

      fout.close()

运行完会生成rar,解压缩后得到项目目录,但文件是.class的,然后使用jd-gui反编译一下就是源代码了

java编译成exe可以使用一些工具 比如:exe4j进行打包生成

exe 反编译成java,没有处理过

jar包反编译成java程序是可以的,比如使用jad

java中常用的反编译工具是 java Decompiler,使用方法如下:

1、双击打开java Decompiler.exe,如图:

2、通过file-》open file打开想要反编译的class文件:

3、查看反编译结果: