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

이미 만들어진 DB에서 sqlalchemy Model 생성하기

 

 

'Python' 카테고리의 다른 글

Installing mysqlclient for debian stretch  (0) 2017.08.21
Python3.6 optimize installation for RaspberryPI  (0) 2017.08.21
Install Python3.6 on RPI with berryconda  (0) 2017.07.06
[python] int to bytes  (0) 2017.02.18

Windows10 에서 npm 업데이트

! node도 업데이트 해야 한다면 C:\Program Files\nodejs\node_modules\npm 를 수동으로 삭제한 다음에 새로운 버전의 node 설치를 진행한다. 이전 버전의 npm과 충돌이 발생 할 수 있다.


관리자 권한으로 PowerShell 실행

npm install --global --production npm-windows-upgrade

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm-windows-upgrade  # 화살표 키로 node 버전 선택

npm uninstall --global npm-windows-upgrade

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

Pyinstaller decompile  (0) 2019.10.24
MongoDB setup on Ubuntu  (0) 2017.09.10
GIT 초기 최적화  (0) 2017.02.15
구글번역 사용시 코드영역 제외하고 번역하기  (1) 2017.02.12
브라우저 header  (0) 2017.02.09

+ Recent posts