extremecoders-re / nuitka-extractor

Tool to extract nuitka compiled executables
MIT License
58 stars 5 forks source link

Just wondering about the use of this #8

Open theAbdoSabbagh opened 2 months ago

theAbdoSabbagh commented 2 months ago

Hello, amazing project I must say. I tested it on my on exe, it extracted the PYDs and DLLs, but the final extraction is like as if i compiled my app into a standalone exe, i couldnt find anything related to the actual source. So I was wondering how this could be useful

extremecoders-re commented 2 months ago

Nuitka transpiles python source to .c code which is then compiled to native code by means of a traditional compiler. As such it is extremely difficult to reverse the process to recover the original high level python sources as during compilation most of the information is lost.

The current objective of the tool is mainly to extract a single file nuitka compiled executable to get back the embedded assets like DLLs, PYDs. binary assets and stuff. In future this may be expanded such as to be able to get a listing of python sources which the executable is built of and be able to locate the addresses of the python functions etc similar to what that is possible with compiled golang binaries today by parsing pclntab and associated metadata.