How to decomplie the compiled pyinstaller exe file

Step 1

https://github.com/NeoTim/PyInstallerExtractor

별도의 종속성없이 바로 실행 가능하다.

python3 pyinstxtractor-patched app.exe

Step 2

추출한 파일중에 확장자가 없는 파일이 메인 소스파일 이다.
magic number는 이미 포함되어있어 바로 uncompyle6 로 디컴파일 가능

 

https://github.com/rocky/python-uncompyle6

가상환경으로 종속성 구성

python3 -m venv venv
venv\Scripts\activate
pip install .

main 파일에 확장자 .pyc 를 붙인 후 가상환경에서 uncompyle6 실행

uncompyle6 main.pyc > main.py

'개발' 카테고리의 다른 글

Windows10 에서 npm 업데이트  (0) 2019.01.29
MongoDB setup on Ubuntu  (0) 2017.09.10
GIT 초기 최적화  (0) 2017.02.15
구글번역 사용시 코드영역 제외하고 번역하기  (1) 2017.02.12
브라우저 header  (0) 2017.02.09

+ Recent posts