I recently worked on a keylogger script which sends keystrokes to email, I have 2 python files: The main one which is the keylogger and the second which has the functions to send the keystrokes by email.
I tried to convert both of the files to exe using the pyinstaller command: " pyinstaller main.py email.py --onefile
" and it worked perfectly, but when I went to the exe file that was created and opened it the command prompt opened and closed and the code doesn't work. I tried to combine both files but it didn't work.
I believe the command is like this: pyinstaller --onefile 1stfile.py 2ndfile.py
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.