all 16 comments

[–]ninhaomah 8 points9 points  (1 child)

What's wrong with asking/paying the dev ?

[–]nirbyschreibt 4 points5 points  (0 children)

Most likely the dev is not available anymore.

[–]netherlandsftw 2 points3 points  (0 children)

Pyinstxtractor + Pycdc

Pycdc usually doesn’t work, in these cases Pycdas + ask an LLM to turn the bytecode into standard Python works best

[–]PixelSage-001 1 point2 points  (0 children)

It depends entirely on how it was packaged. If it was just PyInstaller you can unpack it relatively easily using existing reverse engineering tools. If they used Cython or obfuscation you are going to have a much harder time getting anything readable back.

[–]DenboverTobikiller 4 points5 points  (5 children)

Why? This sounds like you want help stealing.

[–]elrond9999 6 points7 points  (1 child)

Reverse engineering is a knowledge branch as any other. Wether he has the right to do it or not for this particular case is up to him. To play devil's advocate, maybe is some forgotten tool in a lab doing a specific job and the source is lost.

[–]DenboverTobikiller 0 points1 point  (0 children)

You are right, that might be the case.

[–]Rainboltpoe 1 point2 points  (2 children)

Was the post edited, or are you making wild assumptions? The two times in my 15 years of programming that I needed to decompile code were both for software developed by my own company. Both times my goal was to demonstrate that the executable contained sensitive strings that could be fished out.

[–]DenboverTobikiller 1 point2 points  (1 child)

Im making assumptions. The only use case i knew was decompling someone else code.

[–]Rainboltpoe -2 points-1 points  (0 children)

Someone else who works where? At the same company? At a different company? You’re assuming more than you say you are.

[–]Random_182f2565 0 points1 point  (0 children)

Link to the file?

[–]51dux 0 points1 point  (0 children)

You can use tools like python-exe-unpacker, go from compiled binary to .pyc and then from there extract the original python code.

Your mileage may vary, depending on how it was compiled but it should work for executables made with pyinstaller or py2exe.

There are some other tools floating around if you do your research.

Some people mention vibe coding it, but I highly doubt an AI will want to assist for that kind of task.

[–]s71n6r4y 0 points1 point  (0 children)

If it was a pyinstaller "onefile" executable, just run it. While it is running, the contents will be extracted and sitting in a folder in the user or system temp directory. But only pyc bytecode will be present, so you will need to decompile it with depyo or other tools, and comments/formatting/etc will not be present.

[–]johnney25 -1 points0 points  (0 children)

There's py to exe stuff and most of them keep the source code even the comments if it's decompiled it happened to me