Hack Forums
[Python] Unpacking and repacking exe - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Unpacking and repacking exe (/showthread.php?tid=6133390)



Unpacking and repacking exe - JuVe - Jan 12, 2021

Hi guys,

Is it possible to unpack an exe, edit the source and repack it?

Basically the exe has a 7 day trial function on it to then it ceases working and I want to remove it or add X days to it so I can use it forever.

It was made using pyinstaller.

Thanks!


RE: Unpacking and repacking exe - SIM-4378207 - Jan 13, 2021

Most likely it is. You could as well get just the functions you need from it and use them as a script.


RE: Unpacking and repacking exe - JuVe - Jan 13, 2021

(Jan 13, 2021 06:14 AM)Wortox Wrote:  Most likely it is. You could as well get just the functions you need from it and use them as a script.

So I've figured out how to unpack and decompile the exe thanks to the abundance of tutorials out there however there's little information on how to repack it or make a new exe after editing the source file...


RE: Unpacking and repacking exe - SIM-4378207 - Jan 13, 2021

(Jan 13, 2021 06:48 AM)JuVe Wrote:  So I've figured out how to unpack and decompile the exe thanks to the abundance of tutorials out there however there's little information on how to repack it or make a new exe after editing the source file...

That should help you - https://www.pyinstaller.org/

Packaging a Python app usually isn't that hard but there are some tricky stuff there too. Lots of tutorials on the internet tho.


RE: Unpacking and repacking exe - JuVe - Jan 13, 2021

(Jan 13, 2021 10:28 AM)Wortox Wrote:  That should help you - https://www.pyinstaller.org/

Packaging a Python app usually isn't that hard but there are some tricky stuff there too. Lots of tutorials on the internet tho.

Aware of pyinstaller too.. however its not a simple process repackaging an exe you extracted that has a lot of files & dependencies and you've only decompiled the source file. Not really much information in that regard available 😥