(May-23-2020, 02:40 PM)astral_travel Wrote: and by the way, it's under linux terminal which i try to run it
The
dist
folder should be there,but it it dos not create
.exe
under Linux,just
hello
which can be executed.
# File used
root@kali-tom:~/Documents# cat hello.py
# hello.py
print('hello world')
input('Press Enter to exit')
# Make
root@kali-tom:~/Documents# pyinstaller --onefile hello.py
39 INFO: PyInstaller: 3.6
39 INFO: Python: 3.7.5
40 INFO: Platform: Linux-5.3.0-kali2-amd64-x86_64-with-debian-kali-rolling
40 INFO: wrote /root/Documents/hello.spec
43 INFO: UPX is available.
44 INFO: Extending PYTHONPATH with paths
['/root/Documents', '/root/Documents']
45 INFO: checking Analysis
49 INFO: checking PYZ
51 INFO: checking PKG
52 INFO: Bootloader /usr/local/lib/python3.7/dist-packages/PyInstaller/bootloader/Linux-64bit/run
52 INFO: checking EXE
# cd to dist
root@kali-tom:~/Documents# cd dist
# List files
root@kali-tom:~/Documents/dist# ls
hello
# Run
root@kali-tom:~/Documents/dist# ./hello
hello world
Press Enter to exit
root@kali-tom:~/Documents/dist#