usama7628674 / Blogs-for-learning-puprose

10 stars 2 forks source link

Hey, this issue is kind of unreleated but I wanted to ask you if you know any way of creating python executables undetected by antivirus programs #3

Open DjarDjar opened 4 years ago

DjarDjar commented 4 years ago

Hey, do you know how can I encrypt exes from pyinstaller or any exe to make it undetectable from antivirus programs.

P.S. I am not asking with malicious purpose. I am just interested in this topic.

usama7628674 commented 4 years ago

You can't encrypt executable generated by pyinstaller.You have to write your own script to encrypt your code and then compile with pyinstaller.Alternatively, you could use Cython to compile your file which is a way to bypass antivirus.

usama7628674 commented 4 years ago

I would encrypt code with AES encryption and then use Cython to generate C file from PY file and then compile with cl compiler, bundled with Visual Studio.

DjarDjar commented 4 years ago

@usama7628674 do you know any tutorials for the cython part at least. I am not familiar with that module.