Pyinstaller 추출기는 Pyinstaller 생성 실행 파일의 내용을 추출하는 Python 스크립트입니다.
PYC 파일의 헤더는 Python Bytecode 디 컴파일러가이를 인식하도록 자동으로 고정됩니다. 스크립트는 Python 2.X 및 3.X에서 실행될 수 있습니다. Pyinstaller 버전 2.0, 2.1, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.5.1, 4.6, 4.7, 4.8, 4.9, 4.10, 5.0.1, 5.1, 5.2, 5.3, 5.4, 5.4.1, 5.5, 5.6.1, 5.6.2 5.8.0, 5.9.0, 5.10.0, 5.10.1, 5.11.0, 5.12.0, 5.13.0, 5.13.1, 5.13.2, 6.0.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0, 6.5.0, 6.6.0, 6.7.0, 6.8.0, 6.9.0, 6.10.0, 6.11.0, 6.11.1, 6.11. 아마도 다른 버전과도 작동 할 것입니다.
이 프로젝트는 원래 Sourceforge에서 호스팅되었습니다.
스크립트는 exe의 이름을 인수로 전달하여 실행할 수 있습니다.
$ python pyinstxtractor.py <filename>
X:>python pyinstxtractor.py <filename>
실행 파일을 생성하는 데 사용 된 동일한 버전의 Python에서 스크립트를 실행하는 것이 좋습니다. 이것은 PYZ 아카이브를 추출하는 동안 끊임없는 오류 (있는 경우)를 방지하기위한 것입니다.
X:> python pyinstxtractor.py test.exe
[+] Processing disttest.exe
[+] Pyinstaller version: 2.1+
[+] Python version: 36
[+] Length of package: 5612452 bytes
[+] Found 59 files in CArchive
[+] Beginning extraction...please standby
[+] Possible entry point: pyiboot01_bootstrap.pyc
[+] Possible entry point: test.pyc
[+] Found 133 files in PYZ archive
[+] Successfully extracted pyinstaller archive: disttest.exe
You can now use a python decompiler on the pyc files within the extracted directory
PYC를 추출한 후 Uncompyle6 및 Decompyle ++와 같은 Python 디 컴파일러를 사용할 수 있습니다.
X:> uncompyle6.exe test.exe_extractedtest.pyc
X:> uncompyle6.exe test.exe_extractedPYZ-00.pyz_extracted__future__.pyc
Pyinstxtractor는 다른 도구를 필요로하지 않고도 Linux Elf Binaries를 기본적으로 추출 할 수 있습니다.
다른 질문과 정보는 Wiki와 FAQ를 참조하십시오.
GNU 일반 공개 라이센스 v3.0