extremecoders-re / pyinstxtractor

PyInstaller Extractor
GNU General Public License v3.0
2.93k stars 612 forks source link

how to use? #87

Closed ghost closed 9 months ago

ghost commented 9 months ago

Hi!

I was able to run it, I went into the extracted folder and I tried the commands. It did not work..

Kindly assist!

Here is link to Exe and the folder: https://1drv.ms/f/s!AploExad608_h4M4R7mIB-zs2DL7mA?e=cJRY6L

Thanks,

God bless,

Shawn

extremecoders-re commented 9 months ago

The linked onedrive folder seems to be empty.

leideniyifan commented 9 months ago

I dragged my .exe to pyinstxtractor.py and it worked,maybe you can try it?

ghost commented 9 months ago

https://1drv.ms/f/s!AploExad608_h4NRGENZJzB7D0ipjg?e=RkuBU6

ghost commented 9 months ago

there should be two exe's in that folder. Kindly assist. Thanks.

extremecoders-re commented 9 months ago

Use the web tool to extract if you've trouble setting up the correct version of Python viz. 3.12. This extracts both of the exe's successfully.

https://pyinstxtractor-web.netlify.app/

ghost commented 9 months ago

Okay, how do I get it into a py file? Thanks

ghost commented 9 months ago

I am quite confused, I tried a lot of tools and they don't work. Also, now the exe won't help as it seems there is a virus. May I ask where to get a good exe converter? I think maybe I should redo my python and do another way. Thanks

extremecoders-re commented 9 months ago

You have to use a Python decompiler to get the py from a pyc file. Yours is Python 3.12- only pycdc can somewhat work with this version.

https://github.com/zrax/pycdc

ghost commented 9 months ago

I see, but how do I use it?

ghost commented 9 months ago

C:>./pycdc C:\Users\Godis\Downloads\Genesis 1 Quiz - AKJV.exe_extracted\Questions for Genesis 1.pyc '.' is not recognized as an internal or external command, operable program or batch file.

extremecoders-re commented 9 months ago

You have to compile pycdc from source code. I also have a repository that provides precompiled pycdc.

Download pycdc.exe from https://github.com/extremecoders-re/decompyle-builds/releases/tag/build-20-Jan-2024-2da061f.

Then run as

C:\> pycdc.exe "C:\Users\Godis\Downloads\Genesis 1 Quiz - AKJV.exe_extracted\Questions for Genesis 1.pyc"
ghost commented 9 months ago

C:\Users\Godis>C:> pycdc.exe "C:\Users\Godis\Downloads\Genesis 1 Quiz - AKJV.exe_extracted\Questions for Genesis 1.pyc" 'C:\' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

extremecoders-re commented 9 months ago

Don't write C: at the front.

Just write or paste the following at the command prompt.

pycdc.exe "C:\Users\Godis\Downloads\Genesis 1 Quiz - AKJV.exe_extracted\Questions for Genesis 1.pyc"
ghost commented 9 months ago

Thanks very much, I was able to solve it! God bless :)