Replies: 1 comment 8 replies
-
Turn |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Developers/Contributors/Authors,
I have tried to build a .exe file for a perfectly running python code in the IDE.
The command used to build the .exe: pyinstaller --noconsole --onefile reverse_shell.py
The build is successful with the following lines:
2738 INFO: PyInstaller: 4.3
4066 INFO: Python: 3.8.5 (conda)
4076 INFO: Platform: Windows-10-10.0.21343-SP0
4081 INFO: wrote C:\BD\reverse_shell.spec
4093 INFO: UPX is not available.
4115 INFO: Extending PYTHONPATH with paths
['C:\BD', 'C:\BD']
4205 INFO: checking Analysis
4206 INFO: Building Analysis because Analysis-00.toc is non existent
4206 INFO: Initializing module dependency graph...
4215 INFO: Caching module graph hooks...
4231 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
4239 INFO: Analyzing base_library.zip ...
14279 INFO: Processing pre-find module path hook distutils from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py'.
14280 INFO: distutils: retargeting to non-venv dir 'c:\users\lamak\anaconda3\lib'
19786 INFO: Caching module dependency graph...
20048 INFO: running Analysis Analysis-00.toc
20063 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\lamak\anaconda3\python.exe
20398 INFO: Analyzing C:\BD\reverse_shell.py
20689 INFO: Processing module hooks...
(base) C:\BD>oading module hook 'hook-difflib.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20694 INFO: Loading module hook 'hook-distutils.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20695 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20698 INFO: Loading module hook 'hook-encodings.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20870 INFO: Loading module hook 'hook-heapq.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20872 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20929 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20931 INFO: Loading module hook 'hook-pickle.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20933 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20934 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
20934 INFO: Loading module hook 'hook-xml.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
21134 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks'...
21407 INFO: checking Tree
21407 INFO: Building Tree because Tree-00.toc is non existent
21410 INFO: Building Tree Tree-00.toc
21507 INFO: checking Tree
21508 INFO: Building Tree because Tree-01.toc is non existent
21510 INFO: Building Tree Tree-01.toc
21689 INFO: checking Tree
21690 INFO: Building Tree because Tree-02.toc is non existent
21692 INFO: Building Tree Tree-02.toc
21724 INFO: Looking for ctypes DLLs
21787 INFO: Analyzing run-time hooks ...
21791 INFO: Including run-time hook 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py'
21796 INFO: Including run-time hook 'c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32api.py'
21818 INFO: Looking for dynamic libraries
22046 INFO: Looking for eggs
22046 INFO: Using Python library c:\users\lamak\anaconda3\python38.dll
22048 INFO: Found binding redirects:
[]
22090 INFO: Warnings written to C:\BD\build\reverse_shell\warn-reverse_shell.txt
22142 INFO: Graph cross-reference written to C:\BD\build\reverse_shell\xref-reverse_shell.html
22151 INFO: checking PYZ
22152 INFO: Building PYZ because PYZ-00.toc is non existent
22153 INFO: Building PYZ (ZlibArchive) C:\BD\build\reverse_shell\PYZ-00.pyz
22847 INFO: Building PYZ (ZlibArchive) C:\BD\build\reverse_shell\PYZ-00.pyz completed successfully.
22902 INFO: checking PKG
22903 INFO: Building PKG because PKG-00.toc is non existent
22905 INFO: Building PKG (CArchive) PKG-00.pkg
24703 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
24707 INFO: Bootloader c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe
24707 INFO: checking EXE
24709 INFO: Building EXE because EXE-00.toc is non existent
24710 INFO: Building EXE from EXE-00.toc
24751 INFO: Copying icons from ['c:\users\lamak\anaconda3\lib\site-packages\PyInstaller\bootloader\images\icon-windowed.ico']
24756 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
24758 INFO: Writing RT_ICON 1 resource with 3752 bytes
24760 INFO: Writing RT_ICON 2 resource with 2216 bytes
24763 INFO: Writing RT_ICON 3 resource with 1384 bytes
24766 INFO: Writing RT_ICON 4 resource with 38188 bytes
24768 INFO: Writing RT_ICON 5 resource with 9640 bytes
24772 INFO: Writing RT_ICON 6 resource with 4264 bytes
24774 INFO: Writing RT_ICON 7 resource with 1128 bytes
24791 INFO: Updating manifest in C:\BD\build\reverse_shell\runw.exe.6nhckga1
24794 INFO: Updating resource type 24 name 1 language 0
24803 INFO: Appending archive to EXE C:\BD\dist\reverse_shell.exe
26583 INFO: Building EXE from EXE-00.toc completed successfully.
When I try to execute the executable, Following error message appears:

Can anyone help me solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions