M
M
Moolzv Rivers2019-07-16 17:33:33
linux
Moolzv Rivers, 2019-07-16 17:33:33

How to convert py file to exe on Linux(Kali)?

Hello! All pyinstaller and py2exe give me an error, everything that I didn’t find is not installed, tell me at least any way already, I’m ready for anything, I have a .py file because I have a password in the code that logs into the module, I want to encrypt it by converting it to an EXE, and that would make sense because I want to run it on Windows. Created on Linux. Because the conversion to EXE is created by generating into machine code, and it’s unlikely that someone will disassemble my program in order to find out the password to the fake account :D, but still it’s better than going into notepad, opening my code and finding out password. So, how do I do this? How to convert to exe file without pyinstaller and py2exe?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2019-07-16
@sergey-gornostaev

Neither pyinstaller, nor py2exe, nor cx_Freeze, nor any other similar tool compiles a script to an exe. They package it in a self-extracting archive along with a Python interpreter and the necessary libraries. At the time of launch, this exe file unpacks its contents into a directory of temporary files and runs your script from there. So you don't have to disassemble anything to extract your password. Any schooltron can find out the password.

T
Ternick, 2019-07-16
@Ternick

The only option in your situation is the integration of python into C ++ :)
https://habr.com/ru/company/PENXY/blog/139655/
And then it will be compilation, but again, why?
Who needs your password, and I can reassure you, no one will even take a steam bath with unpacking your application, just listen to the traffic and everything that you transferred from a person in his pocket :)

S
Sergey Borisov, 2019-07-23
@tatiana6666

1. Py2Exe packs fine for me;
2. It packs fine for me on Windows, try running the utility there
3. Python, after all, is difficult to protect from copy-paste. But, this problem can be solved) Or what do you ultimately need?
And yes, converting to exe is not encryption)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question