Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute crypter.exe #83

Open
ricko2991 opened this issue Sep 3, 2020 · 28 comments
Open

Failed to execute crypter.exe #83

ricko2991 opened this issue Sep 3, 2020 · 28 comments

Comments

@ricko2991
Copy link

Hi, can you help me, i run crypter.exe but i can't see the program run as well. I try to reopen 5 times but the error message always appear. This is the error alert:

Fatal error detected
Failed to execute script pyi_rth_pkgres

@sithis993
Copy link
Owner

Hello, what version of wxPython are you running? did you install the dependencies using the requirments.txt in this repository?

@ricko2991
Copy link
Author

ricko2991 commented Sep 4, 2020

Screenshot (8)

Yes, exactly as you said i installed everything on requirements.txt. and there are no problems at all. But i'm still got a error message and can't run the program.

@sithis993
Copy link
Owner

Hey, I've just made a slight tweak to the way that PyInstaller is invoked by the builder. Can you pull the latest changes from this repo for the develop branch, then make sure you're on develop and try running the builder and building Crypter again?

Let me know if this does/doesn't work :-)

@ricko2991
Copy link
Author

Hi, Doesn't work.

Screenshot (10)

@ricko2991
Copy link
Author

ricko2991 commented Sep 7, 2020

But I see no problem in the code. Except for UPX which doesn't compile perfectly. But i maybe i send this compiling code for you, and you can see where the problem.

[2020-09-07 17:54:47]: Build Launched
[2020-09-07 17:54:47]: DEBUG Level: 1 - Low
[2020-09-07 17:54:47]: Builder: Checking configuration...
[2020-09-07 17:54:47]: Builder: Checking builder_language
[2020-09-07 17:54:47]: Builder: Checking pyinstaller_aes_key
[2020-09-07 17:54:47]: Builder: Checking icon_file
[2020-09-07 17:54:48]: Builder: Checking open_gui_on_login
[2020-09-07 17:54:48]: Builder: Checking time_delay
[2020-09-07 17:54:48]: Builder: Checking gui_title
[2020-09-07 17:54:48]: Builder: Checking upx_dir
[2020-09-07 17:54:48]: Builder: Checking delete_shadow_copies
[2020-09-07 17:54:48]: Builder: Checking disable_task_manager
[2020-09-07 17:54:48]: Builder: Checking key_destruction_time
[2020-09-07 17:54:48]: Builder: Checking wallet_address
[2020-09-07 17:54:48]: Builder: Checking bitcoin_fee
[2020-09-07 17:54:48]: Builder: Checking encrypt_attached_drives
[2020-09-07 17:54:49]: Builder: Checking encrypt_user_home
[2020-09-07 17:54:49]: Builder: Checking max_file_size_to_encrypt
[2020-09-07 17:54:49]: Builder: Checking filetypes_to_encrypt
[2020-09-07 17:54:49]: Builder: Checking encrypted_file_extension
[2020-09-07 17:54:49]: Builder: Checking make_gui_resizeable
[2020-09-07 17:54:49]: Builder: Checking always_on_top
[2020-09-07 17:54:49]: Builder: Checking background_colour
[2020-09-07 17:54:49]: Builder: Checking heading_font_colour
[2020-09-07 17:54:49]: Builder: Checking primary_font_colour
[2020-09-07 17:54:50]: Builder: Checking secondary_font_colour
[2020-09-07 17:54:50]: Builder: Checking ransom_message
[2020-09-07 17:54:50]: Builder: Checking debug_level
[2020-09-07 17:54:50]: Builder: Validation successful
[2020-09-07 17:54:50]: Builder: Encryption will target attached drives and the user's home directory
[2020-09-07 17:54:50]: Builder: Creating binary runtime config at C:\Users\ASUS\source\repos\Ransomware\Test\Crypter\CrypterBuilder\Resources\runtime.cfg
[2020-09-07 17:54:50]: Builder: Runtime config successfully written
[2020-09-07 17:54:50]: Builder: Creating PyInstaller SPEC file
[2020-09-07 17:54:50]: Builder: (Warning): UPX path not specified. The PyInstaller binary will not be packed. It is recommended that UPX is used as this can reduce the binary size by several Megabytes
[2020-09-07 17:54:50]: Builder: SPEC file successfully created
[2020-09-07 17:54:50]: Builder: Calling PyInstaller. Please wait...
[2020-09-07 17:54:56]: PyInstaller: b'2131 INFO: PyInstaller: 3.6'
[2020-09-07 17:54:56]: PyInstaller: b'2132 INFO: Python: 3.7.8'
[2020-09-07 17:54:56]: PyInstaller: b'2134 INFO: Platform: Windows-10-10.0.19041-SP0'
[2020-09-07 17:54:56]: PyInstaller: b'2144 INFO: UPX is not available.'
[2020-09-07 17:54:56]: PyInstaller: b'2145 INFO: Removing temporary files and cleaning cache in C:\Users\ASUS\AppData\Roaming\pyinstaller'
[2020-09-07 17:54:56]: PyInstaller: b'2823 INFO: Extending PYTHONPATH with paths'
[2020-09-07 17:54:56]: PyInstaller: b"['C:\\Users\\ASUS\\source\\repos\\Ransomware\\Test\\Crypter\\Crypter',"
[2020-09-07 17:54:56]: PyInstaller: b" 'C:\\Users\\ASUS\\source\\repos\\Ransomware\\Test\\Crypter\\build']"
[2020-09-07 17:54:56]: PyInstaller: b'2823 INFO: checking Analysis'
[2020-09-07 17:54:56]: PyInstaller: b'2824 INFO: Building Analysis because Analysis-00.toc is non existent'
[2020-09-07 17:54:56]: PyInstaller: b'2825 INFO: Initializing module dependency graph...'
[2020-09-07 17:54:56]: PyInstaller: b'2845 INFO: Caching module graph hooks...'
[2020-09-07 17:54:57]: PyInstaller: b'3265 INFO: Analyzing base_library.zip ...'
[2020-09-07 17:55:05]: PyInstaller: b'11133 INFO: Processing pre-find module path hook distutils'
[2020-09-07 17:55:05]: PyInstaller: b"11155 INFO: distutils: retargeting to non-venv dir 'c:\\users\\asus\\appdata\\local\\programs\\python\\python37\\lib'"
[2020-09-07 17:55:14]: PyInstaller: b'20464 INFO: Caching module dependency graph...'
[2020-09-07 17:55:14]: PyInstaller: b'20667 INFO: running Analysis Analysis-00.toc'
[2020-09-07 17:55:15]: PyInstaller: b'21123 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable'
[2020-09-07 17:55:15]: PyInstaller: b' required by c:\users\asus\appdata\local\programs\python\python37\python.exe'
[2020-09-07 17:55:15]: PyInstaller: b'21395 INFO: Analyzing Crypter\Main.py'
[2020-09-07 17:55:27]: PyInstaller: b'33366 INFO: Processing pre-find module path hook site'
[2020-09-07 17:55:27]: PyInstaller: b"33398 INFO: site: retargeting to fake-dir 'c:\\users\\asus\\appdata\\local\\programs\\python\\python37\\lib\\site-packages\\PyInstaller\\fake-modules'"
[2020-09-07 17:55:32]: PyInstaller: b'38669 INFO: Processing pre-safe import module hook setuptools.extern.six.moves'
[2020-09-07 17:55:38]: PyInstaller: b'44571 INFO: Processing module hooks...'
[2020-09-07 17:55:38]: PyInstaller: b'44571 INFO: Loading module hook "hook-Crypto.py"...'
[2020-09-07 17:55:38]: PyInstaller: b'44727 INFO: Loading module hook "hook-distutils.py"...'
[2020-09-07 17:55:38]: PyInstaller: b'44819 INFO: Loading module hook "hook-encodings.py"...'
[2020-09-07 17:55:38]: PyInstaller: b'44967 INFO: Loading module hook "hook-lib2to3.py"...'
[2020-09-07 17:55:39]: PyInstaller: b'45335 INFO: Loading module hook "hook-pkg_resources.py"...'
[2020-09-07 17:55:40]: PyInstaller: b'46687 INFO: Processing pre-safe import module hook win32com'
[2020-09-07 17:55:41]: PyInstaller: b"47155 INFO: Excluding import 'main'"
[2020-09-07 17:55:41]: PyInstaller: b'47157 INFO: Removing import of main from module pkg_resources'
[2020-09-07 17:55:41]: PyInstaller: b'47158 INFO: Loading module hook "hook-pubsub.core.py"...'
[2020-09-07 17:55:41]: PyInstaller: b'47681 INFO: Loading module hook "hook-pycparser.py"...'
[2020-09-07 17:55:41]: PyInstaller: b'47702 INFO: Loading module hook "hook-pydoc.py"...'
[2020-09-07 17:55:41]: PyInstaller: b'47704 INFO: Loading module hook "hook-pythoncom.py"...'
[2020-09-07 17:55:42]: PyInstaller: b'48406 INFO: Loading module hook "hook-pywintypes.py"...'
[2020-09-07 17:55:43]: PyInstaller: b'49040 INFO: Loading module hook "hook-setuptools.py"...'
[2020-09-07 17:55:51]: PyInstaller: b'57220 INFO: Loading module hook "hook-sysconfig.py"...'
[2020-09-07 17:55:51]: PyInstaller: b'57267 INFO: Loading module hook "hook-win32com.py"...'
[2020-09-07 17:55:52]: PyInstaller: b'59008 INFO: Loading module hook "hook-wx.xrc.py"...'
[2020-09-07 17:55:53]: PyInstaller: b'59026 INFO: Loading module hook "hook-xml.dom.domreg.py"...'
[2020-09-07 17:55:53]: PyInstaller: b'59029 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...'
[2020-09-07 17:55:53]: PyInstaller: b'59031 INFO: Loading module hook "hook-xml.py"...'
[2020-09-07 17:55:53]: PyInstaller: b'59032 INFO: Loading module hook "hook-_tkinter.py"...'
[2020-09-07 17:55:53]: PyInstaller: b'59725 INFO: checking Tree'
[2020-09-07 17:55:53]: PyInstaller: b'59725 INFO: Building Tree because Tree-00.toc is non existent'
[2020-09-07 17:55:53]: PyInstaller: b'59725 INFO: Building Tree Tree-00.toc'
[2020-09-07 17:55:54]: PyInstaller: b'60772 INFO: checking Tree'
[2020-09-07 17:55:54]: PyInstaller: b'60772 INFO: Building Tree because Tree-01.toc is non existent'
[2020-09-07 17:55:54]: PyInstaller: b'60772 INFO: Building Tree Tree-01.toc'
[2020-09-07 17:55:54]: PyInstaller: b'60944 INFO: Loading module hook "hook-numpy.core.py"...'
[2020-09-07 17:55:55]: PyInstaller: b'61687 INFO: Loading module hook "hook-numpy.py"...'
[2020-09-07 17:55:55]: PyInstaller: b'61789 INFO: Looking for ctypes DLLs'
[2020-09-07 17:55:55]: PyInstaller: b'61900 INFO: Analyzing run-time hooks ...'
[2020-09-07 17:55:55]: PyInstaller: b"61913 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'"
[2020-09-07 17:55:55]: PyInstaller: b"61971 INFO: Including run-time hook 'pyi_rth__tkinter.py'"
[2020-09-07 17:55:55]: PyInstaller: b"62015 INFO: Including run-time hook 'pyi_rth_pkgres.py'"
[2020-09-07 17:55:56]: PyInstaller: b"62026 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'"
[2020-09-07 17:55:56]: PyInstaller: b'62059 INFO: Looking for dynamic libraries'
[2020-09-07 17:56:03]: PyInstaller: b'69369 INFO: Looking for eggs'
[2020-09-07 17:56:03]: PyInstaller: b'69369 INFO: Using Python library c:\users\asus\appdata\local\programs\python\python37\python37.dll'
[2020-09-07 17:56:03]: PyInstaller: b'69369 INFO: Found binding redirects:'
[2020-09-07 17:56:03]: PyInstaller: b'[]'
[2020-09-07 17:56:03]: PyInstaller: b'69386 INFO: Warnings written to C:\Users\ASUS\source\repos\Ransomware\Test\Crypter\build\Main\warn-Main.txt'
[2020-09-07 17:56:03]: PyInstaller: b'69595 INFO: Graph cross-reference written to C:\Users\ASUS\source\repos\Ransomware\Test\Crypter\build\Main\xref-Main.html'
[2020-09-07 17:56:03]: PyInstaller: b"69694 INFO: Appending 'datas' from .spec"
[2020-09-07 17:56:03]: PyInstaller: b'69806 INFO: checking PYZ'
[2020-09-07 17:56:03]: PyInstaller: b'69807 INFO: Building PYZ because PYZ-00.toc is non existent'
[2020-09-07 17:56:03]: PyInstaller: b'69807 INFO: Building PYZ (ZlibArchive) C:\Users\ASUS\source\repos\Ransomware\Test\Crypter\build\Main\PYZ-00.pyz'
[2020-09-07 17:56:06]: PyInstaller: b'72124 INFO: Building PYZ (ZlibArchive) C:\Users\ASUS\source\repos\Ransomware\Test\Crypter\build\Main\PYZ-00.pyz completed successfully.'
[2020-09-07 17:56:06]: PyInstaller: b'72191 INFO: checking PKG'
[2020-09-07 17:56:06]: PyInstaller: b'72191 INFO: Building PKG because PKG-00.toc is non existent'
[2020-09-07 17:56:06]: PyInstaller: b'72191 INFO: Building PKG (CArchive) PKG-00.pkg'
[2020-09-07 17:56:48]: PyInstaller: b'114962 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.'
[2020-09-07 17:56:49]: PyInstaller: b'115029 INFO: Bootloader c:\users\asus\appdata\local\programs\python\python37\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe'
[2020-09-07 17:56:49]: PyInstaller: b'115030 INFO: checking EXE'
[2020-09-07 17:56:49]: PyInstaller: b'115030 INFO: Building EXE because EXE-00.toc is non existent'
[2020-09-07 17:56:49]: PyInstaller: b'115030 INFO: Building EXE from EXE-00.toc'
[2020-09-07 17:56:49]: PyInstaller: b'115253 INFO: Appending archive to EXE C:\Users\ASUS\source\repos\Ransomware\Test\Crypter\dist\Main.exe'
[2020-09-07 17:56:49]: PyInstaller: b'115777 INFO: Building EXE from EXE-00.toc completed successfully.'
[2020-09-07 17:56:53]: Build successful
[2020-09-07 17:56:53]: Crypter exe written to 'C:\Users\ASUS\source\repos\Ransomware\Test\Crypter\bin\Crypter.exe'

@sithis993
Copy link
Owner

One thing I find very strange here is that your Crypter exe is 32MB, which it definitely shouldn't be. I'm building it currently without UPX and it's coming in at 13MB.

Can you run the build again, but set the debug level at the top to "3 - High", then paste the console output in here again so I can take a look

@ricko2991
Copy link
Author

ricko2991 commented Sep 15, 2020

This is the build output when i set debug to high. But it seems the error in executing the exe still exists.

[2020-09-15 21:54:49]: Build Launched
[2020-09-15 21:54:49]: DEBUG Level: 3 - High
[2020-09-15 21:54:49]: Builder: Constructor()
[2020-09-15 21:54:49]: Builder: Starting build thread
[2020-09-15 21:54:49]: Builder: Checking configuration...
[2020-09-15 21:54:49]: Builder: Checking builder_language
[2020-09-15 21:54:49]: Builder: Skipping validation for 'Builder Language'
[2020-09-15 21:54:50]: Builder: Checking pyinstaller_aes_key
[2020-09-15 21:54:50]: Builder: PyInstaller AES Key input should match regex '^([A-Za-z0-9]{16})?$'. Got ''
[2020-09-15 21:54:50]: Builder: Checking icon_file
[2020-09-15 21:54:50]: Builder: Icon input should match regex '^.$'. Got ''
[2020-09-15 21:54:50]: Builder: Checking open_gui_on_login
[2020-09-15 21:54:50]: Builder: Skipping validation for 'Open GUI on Login'
[2020-09-15 21:54:50]: Builder: Checking gui_title
[2020-09-15 21:54:50]: Builder: GUI Title input should match regex '^.{0,20}$'. Got ''
[2020-09-15 21:54:50]: Builder: No value provided for gui_title. Setting to default 'CRYPTER'
[2020-09-15 21:54:50]: Builder: Checking upx_dir
[2020-09-15 21:54:50]: Builder: UPX Packer Directory input should match regex '^.
$'. Got ''
[2020-09-15 21:54:50]: Builder: Checking delete_shadow_copies
[2020-09-15 21:54:50]: Builder: Skipping validation for 'Delete Shadow Copies'
[2020-09-15 21:54:50]: Builder: Checking disable_task_manager
[2020-09-15 21:54:50]: Builder: Skipping validation for 'Disable Task Manager'
[2020-09-15 21:54:50]: Builder: Checking key_destruction_time
[2020-09-15 21:54:50]: Builder: Key Destruction Time(s) input should match regex '^[0-9]$'. Got ''
[2020-09-15 21:54:50]: Builder: No value provided for key_destruction_time. Setting to default '259200'
[2020-09-15 21:54:51]: Builder: Checking wallet_address
[2020-09-15 21:54:51]: Builder: Wallet Address input should match regex '^([A-Za-z0-9]{26,35})?$'. Got ''
[2020-09-15 21:54:51]: Builder: No value provided for wallet_address. Setting to default '12mdKVNfAhLbRDLtRWQFhQgydgU6bUMjay'
[2020-09-15 21:54:51]: Builder: Checking bitcoin_fee
[2020-09-15 21:54:51]: Builder: Bitcoin Fee input should match regex '^([0-9]+(.[0-9+]+)?)?$'. Got ''
[2020-09-15 21:54:51]: Builder: No value provided for bitcoin_fee. Setting to default '1.0'
[2020-09-15 21:54:51]: Builder: Checking encrypt_attached_drives
[2020-09-15 21:54:51]: Builder: Skipping validation for 'Encrypt Attached Drives'
[2020-09-15 21:54:51]: Builder: Checking encrypt_user_home
[2020-09-15 21:54:51]: Builder: Skipping validation for 'Encrypt User Home'
[2020-09-15 21:54:51]: Builder: Checking max_file_size_to_encrypt
[2020-09-15 21:54:51]: Builder: Max File Size to Encrypt input should match regex '^[0-9]
$'. Got ''
[2020-09-15 21:54:51]: Builder: No value provided for max_file_size_to_encrypt. Setting to default '512'
[2020-09-15 21:54:51]: Builder: Checking filetypes_to_encrypt
[2020-09-15 21:54:51]: Builder: Filetypes to Encrypt input should match regex '^([A-Za-z0-9 ]+(,[A-Za-z0-9. ]+))?$'. Got ''
[2020-09-15 21:54:51]: Builder: No value provided for filetypes_to_encrypt. Setting to default 'dat,keychain,sdf,vcf,jpg,png,tiff,tif,gif,jpeg,jif,jfif,jp2,jpx,j2k,j2c,fpx,pcd,bmp,svg,3dm,3ds,max,obj,dds,psd,tga,thm,tif,tiff,yuv,ai,eps,ps,svg,indd,pct,mp4,avi,mkv,3g2,3gp,asf,flv,m4v,mov,mpg,rm,srt,swf,vob,wmv,doc,docx,txt,pdf,log,msg,odt,pages,rtf,tex,wpd,wps,csv,ged,key,pps,ppt,pptx,xml,json,xlsx,xlsm,xlsb,xls,mht,mhtml,htm,html,xltx,prn,dif,slk,xlam,xla,ods,docm,dotx,dotm,xps,ics,mp3,aif,iff,m3u,m4a,mid,mpa,wav,wma,msi,php,apk,app,bat,cgi,com,asp,aspx,cer,cfm,css,htm,html,js,jsp,rss,xhtml,c,class,cpp,cs,h,java,lua,pl,py,sh,sln,swift,vb,vcxproj,dem,gam,nes,rom,sav,tgz,zip,rar,tar,7z,cbr,deb,gz,pkg,rpm,zipx,iso,ged,accdb,db,dbf,mdb,sql,fnt,fon,otf,ttf,cfg,ini,prf,bak,old,tmp,torrent'
[2020-09-15 21:54:51]: Builder: Checking encrypted_file_extension
[2020-09-15 21:54:51]: Builder: Encrypted File Extension input should match regex '^[A-Za-z0-9.]
$'. Got ''
[2020-09-15 21:54:51]: Builder: No value provided for encrypted_file_extension. Setting to default 'locked'
[2020-09-15 21:54:52]: Builder: Checking make_gui_resizeable
[2020-09-15 21:54:52]: Builder: Skipping validation for 'Make GUI Resizeable'
[2020-09-15 21:54:52]: Builder: Checking always_on_top
[2020-09-15 21:54:52]: Builder: Skipping validation for 'Always On Top'
[2020-09-15 21:54:52]: Builder: Checking background_colour
[2020-09-15 21:54:52]: Builder: Skipping validation for 'Background Colour'
[2020-09-15 21:54:52]: Builder: Checking heading_font_colour
[2020-09-15 21:54:52]: Builder: Skipping validation for 'Heading Font Colour'
[2020-09-15 21:54:52]: Builder: Checking primary_font_colour
[2020-09-15 21:54:52]: Builder: Skipping validation for 'Primary Font Colour'
[2020-09-15 21:54:52]: Builder: Checking secondary_font_colour
[2020-09-15 21:54:52]: Builder: Skipping validation for 'Secondary Font Colour'
[2020-09-15 21:54:52]: Builder: Checking ransom_message
[2020-09-15 21:54:52]: Builder: Skipping validation for 'Ransom Message'
[2020-09-15 21:54:52]: Builder: Checking debug_level
[2020-09-15 21:54:52]: Builder: Skipping validation for 'Debug verbosity level'
[2020-09-15 21:54:52]: Builder: Validation successful
[2020-09-15 21:54:52]: Builder: Encryption will target attached drives and the user's home directory
[2020-09-15 21:54:52]: Builder: Creating binary runtime config at C:\Users\ASUS\source\repos\Ransomware\Crypter\CrypterBuilder\Resources\runtime.cfg
[2020-09-15 21:54:52]: Builder: Runtime config: {'maj_version': '3', 'min_version': '4a', 'gui_title': 'CRYPTER', 'encrypt_attached_drives': True, 'encrypt_user_home': True, 'encrypted_file_extension': 'locked', 'disable_task_manager': False, 'open_gui_on_login': True, 'wallet_address': '12mdKVNfAhLbRDLtRWQFhQgydgU6bUMjay', 'bitcoin_fee': '1.0', 'key_destruction_time': '259200', 'max_file_size_to_encrypt': '512', 'filetypes_to_encrypt': ['dat', 'keychain', 'sdf', 'vcf', 'jpg', 'png', 'tiff', 'tif', 'gif', 'jpeg', 'jif', 'jfif', 'jp2', 'jpx', 'j2k', 'j2c', 'fpx', 'pcd', 'bmp', 'svg', '3dm', '3ds', 'max', 'obj', 'dds', 'psd', 'tga', 'thm', 'tif', 'tiff', 'yuv', 'ai', 'eps', 'ps', 'svg', 'indd', 'pct', 'mp4', 'avi', 'mkv', '3g2', '3gp', 'asf', 'flv', 'm4v', 'mov', 'mpg', 'rm', 'srt', 'swf', 'vob', 'wmv', 'doc', 'docx', 'txt', 'pdf', 'log', 'msg', 'odt', 'pages', 'rtf', 'tex', 'wpd', 'wps', 'csv', 'ged', 'key', 'pps', 'ppt', 'pptx', 'xml', 'json', 'xlsx', 'xlsm', 'xlsb', 'xls', 'mht', 'mhtml', 'htm', 'html', 'xltx', 'prn', 'dif', 'slk', 'xlam', 'xla', 'ods', 'docm', 'dotx', 'dotm', 'xps', 'ics', 'mp3', 'aif', 'iff', 'm3u', 'm4a', 'mid', 'mpa', 'wav', 'wma', 'msi', 'php', 'apk', 'app', 'bat', 'cgi', 'com', 'asp', 'aspx', 'cer', 'cfm', 'css', 'htm', 'html', 'js', 'jsp', 'rss', 'xhtml', 'c', 'class', 'cpp', 'cs', 'h', 'java', 'lua', 'pl', 'py', 'sh', 'sln', 'swift', 'vb', 'vcxproj', 'dem', 'gam', 'nes', 'rom', 'sav', 'tgz', 'zip', 'rar', 'tar', '7z', 'cbr', 'deb', 'gz', 'pkg', 'rpm', 'zipx', 'iso', 'ged', 'accdb', 'db', 'dbf', 'mdb', 'sql', 'fnt', 'fon', 'otf', 'ttf', 'cfg', 'ini', 'prf', 'bak', 'old', 'tmp', 'torrent'], 'ransom_message': '', 'make_gui_resizeable': False, 'always_on_top': False, 'background_colour': (177, 7, 14, 255), 'heading_font_colour': (0, 0, 0, 255), 'primary_font_colour': (255, 255, 0, 255), 'secondary_font_colour': (255, 255, 255, 255), 'delete_shadow_copies': True}
[2020-09-15 21:54:52]: Builder: Runtime config successfully written
[2020-09-15 21:54:52]: Builder: Creating PyInstaller SPEC file
[2020-09-15 21:54:52]: Spec: Constructor()
[2020-09-15 21:54:52]: Spec: reading PyInstaller SPEC template from C:\Users\ASUS\source\repos\Ransomware\Crypter\CrypterBuilder\Resources\Template.spec
[2020-09-15 21:54:52]: Builder: (Warning): UPX path not specified. The PyInstaller binary will not be packed. It is recommended that UPX is used as this can reduce the binary size by several Megabytes
[2020-09-15 21:54:52]: Spec: Writing the SPEC file
[2020-09-15 21:54:52]: Spec: SPEC file written to 'Main.spec'
[2020-09-15 21:54:52]: Builder: SPEC file successfully created
[2020-09-15 21:54:52]: Builder: Calling PyInstaller. Please wait...
[2020-09-15 21:54:52]: Builder: PyInstaller not found at 'C:\Users\ASUS\AppData\Local\Programs\Python\Python37\pyinstaller.exe'. Making system wide call instead
[2020-09-15 21:54:52]: Builder: Running command: pyinstaller --noconsole --clean -F --noupx Main.spec
[2020-09-15 21:54:53]: PyInstaller: b'103 INFO: PyInstaller: 3.6'
[2020-09-15 21:54:53]: PyInstaller: b'103 INFO: Python: 3.7.8'
[2020-09-15 21:54:53]: PyInstaller: b'103 INFO: Platform: Windows-10-10.0.19041-SP0'
[2020-09-15 21:54:53]: PyInstaller: b'107 INFO: UPX is not available.'
[2020-09-15 21:54:53]: PyInstaller: b'107 INFO: Removing temporary files and cleaning cache in C:\Users\ASUS\AppData\Roaming\pyinstaller'
[2020-09-15 21:54:53]: PyInstaller: b'168 INFO: Extending PYTHONPATH with paths'
[2020-09-15 21:54:53]: PyInstaller: b"['C:\\Users\\ASUS\\source\\repos\\Ransomware\\Crypter\\Crypter',"
[2020-09-15 21:54:53]: PyInstaller: b" 'C:\\Users\\ASUS\\source\\repos\\Ransomware\\Crypter\\build']"
[2020-09-15 21:54:53]: PyInstaller: b'168 INFO: checking Analysis'
[2020-09-15 21:54:53]: PyInstaller: b'169 INFO: Building Analysis because Analysis-00.toc is non existent'
[2020-09-15 21:54:53]: PyInstaller: b'169 INFO: Initializing module dependency graph...'
[2020-09-15 21:54:53]: PyInstaller: b'173 INFO: Caching module graph hooks...'
[2020-09-15 21:54:53]: PyInstaller: b'193 INFO: Analyzing base_library.zip ...'
[2020-09-15 21:54:56]: PyInstaller: b'3342 INFO: Processing pre-find module path hook distutils'
[2020-09-15 21:54:56]: PyInstaller: b"3343 INFO: distutils: retargeting to non-venv dir 'c:\\users\\asus\\appdata\\local\\programs\\python\\python37\\lib'"
[2020-09-15 21:54:59]: PyInstaller: b'5437 INFO: Caching module dependency graph...'
[2020-09-15 21:54:59]: PyInstaller: b'5634 INFO: running Analysis Analysis-00.toc'
[2020-09-15 21:54:59]: PyInstaller: b'5665 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable'
[2020-09-15 21:54:59]: PyInstaller: b' required by c:\users\asus\appdata\local\programs\python\python37\python.exe'
[2020-09-15 21:54:59]: PyInstaller: b'5802 INFO: Analyzing Crypter\Main.py'
[2020-09-15 21:55:04]: PyInstaller: b'11349 INFO: Processing pre-find module path hook site'
[2020-09-15 21:55:04]: PyInstaller: b"11350 INFO: site: retargeting to fake-dir 'c:\\users\\asus\\appdata\\local\\programs\\python\\python37\\lib\\site-packages\\PyInstaller\\fake-modules'"
[2020-09-15 21:55:07]: PyInstaller: b'13539 INFO: Processing pre-safe import module hook setuptools.extern.six.moves'
[2020-09-15 21:55:09]: PyInstaller: b'15886 INFO: Processing module hooks...'
[2020-09-15 21:55:09]: PyInstaller: b'15887 INFO: Loading module hook "hook-Crypto.py"...'
[2020-09-15 21:55:09]: PyInstaller: b'15909 INFO: Loading module hook "hook-distutils.py"...'
[2020-09-15 21:55:09]: PyInstaller: b'15913 INFO: Loading module hook "hook-encodings.py"...'
[2020-09-15 21:55:09]: PyInstaller: b'16025 INFO: Loading module hook "hook-lib2to3.py"...'
[2020-09-15 21:55:09]: PyInstaller: b'16034 INFO: Loading module hook "hook-pkg_resources.py"...'
[2020-09-15 21:55:10]: PyInstaller: b'17006 INFO: Processing pre-safe import module hook win32com'
[2020-09-15 21:55:10]: PyInstaller: b"17179 INFO: Excluding import 'main'"
[2020-09-15 21:55:10]: PyInstaller: b'17181 INFO: Removing import of main from module pkg_resources'
[2020-09-15 21:55:10]: PyInstaller: b'17181 INFO: Loading module hook "hook-pubsub.core.py"...'
[2020-09-15 21:55:10]: PyInstaller: b'17407 INFO: Loading module hook "hook-pycparser.py"...'
[2020-09-15 21:55:10]: PyInstaller: b'17409 INFO: Loading module hook "hook-pydoc.py"...'
[2020-09-15 21:55:10]: PyInstaller: b'17410 INFO: Loading module hook "hook-pythoncom.py"...'
[2020-09-15 21:55:11]: PyInstaller: b'17966 INFO: Loading module hook "hook-pywintypes.py"...'
[2020-09-15 21:55:12]: PyInstaller: b'18524 INFO: Loading module hook "hook-setuptools.py"...'
[2020-09-15 21:55:17]: PyInstaller: b'23603 INFO: Loading module hook "hook-sysconfig.py"...'
[2020-09-15 21:55:17]: PyInstaller: b'23604 INFO: Loading module hook "hook-win32com.py"...'
[2020-09-15 21:55:17]: PyInstaller: b'24272 INFO: Loading module hook "hook-wx.xrc.py"...'
[2020-09-15 21:55:17]: PyInstaller: b'24273 INFO: Loading module hook "hook-xml.dom.domreg.py"...'
[2020-09-15 21:55:17]: PyInstaller: b'24273 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...'
[2020-09-15 21:55:17]: PyInstaller: b'24274 INFO: Loading module hook "hook-xml.py"...'
[2020-09-15 21:55:17]: PyInstaller: b'24275 INFO: Loading module hook "hook-_tkinter.py"...'
[2020-09-15 21:55:18]: PyInstaller: b'24510 INFO: checking Tree'
[2020-09-15 21:55:18]: PyInstaller: b'24510 INFO: Building Tree because Tree-00.toc is non existent'
[2020-09-15 21:55:18]: PyInstaller: b'24510 INFO: Building Tree Tree-00.toc'
[2020-09-15 21:55:18]: PyInstaller: b'24610 INFO: checking Tree'
[2020-09-15 21:55:18]: PyInstaller: b'24610 INFO: Building Tree because Tree-01.toc is non existent'
[2020-09-15 21:55:18]: PyInstaller: b'24610 INFO: Building Tree Tree-01.toc'
[2020-09-15 21:55:18]: PyInstaller: b'24630 INFO: Loading module hook "hook-numpy.core.py"...'
[2020-09-15 21:55:18]: PyInstaller: b'24776 INFO: Loading module hook "hook-numpy.py"...'
[2020-09-15 21:55:18]: PyInstaller: b'24882 INFO: Looking for ctypes DLLs'
[2020-09-15 21:55:18]: PyInstaller: b'25002 INFO: Analyzing run-time hooks ...'
[2020-09-15 21:55:18]: PyInstaller: b"25012 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'"
[2020-09-15 21:55:18]: PyInstaller: b"25017 INFO: Including run-time hook 'pyi_rth__tkinter.py'"
[2020-09-15 21:55:18]: PyInstaller: b"25019 INFO: Including run-time hook 'pyi_rth_pkgres.py'"
[2020-09-15 21:55:18]: PyInstaller: b"25020 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'"
[2020-09-15 21:55:18]: PyInstaller: b'25042 INFO: Looking for dynamic libraries'
[2020-09-15 21:55:21]: PyInstaller: b'27646 INFO: Looking for eggs'
[2020-09-15 21:55:21]: PyInstaller: b'27646 INFO: Using Python library c:\users\asus\appdata\local\programs\python\python37\python37.dll'
[2020-09-15 21:55:21]: PyInstaller: b'27646 INFO: Found binding redirects:'
[2020-09-15 21:55:21]: PyInstaller: b'[]'
[2020-09-15 21:55:21]: PyInstaller: b'27661 INFO: Warnings written to C:\Users\ASUS\source\repos\Ransomware\Crypter\build\Main\warn-Main.txt'
[2020-09-15 21:55:21]: PyInstaller: b'27852 INFO: Graph cross-reference written to C:\Users\ASUS\source\repos\Ransomware\Crypter\build\Main\xref-Main.html'
[2020-09-15 21:55:21]: PyInstaller: b"27948 INFO: Appending 'datas' from .spec"
[2020-09-15 21:55:21]: PyInstaller: b'27952 INFO: checking PYZ'
[2020-09-15 21:55:21]: PyInstaller: b'27952 INFO: Building PYZ because PYZ-00.toc is non existent'
[2020-09-15 21:55:21]: PyInstaller: b'27953 INFO: Building PYZ (ZlibArchive) C:\Users\ASUS\source\repos\Ransomware\Crypter\build\Main\PYZ-00.pyz'
[2020-09-15 21:55:23]: PyInstaller: b'30319 INFO: Building PYZ (ZlibArchive) C:\Users\ASUS\source\repos\Ransomware\Crypter\build\Main\PYZ-00.pyz completed successfully.'
[2020-09-15 21:55:23]: PyInstaller: b'30363 INFO: checking PKG'
[2020-09-15 21:55:23]: PyInstaller: b'30363 INFO: Building PKG because PKG-00.toc is non existent'
[2020-09-15 21:55:23]: PyInstaller: b'30363 INFO: Building PKG (CArchive) PKG-00.pkg'
[2020-09-15 21:55:44]: PyInstaller: b'50509 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.'
[2020-09-15 21:55:44]: PyInstaller: b'50574 INFO: Bootloader c:\users\asus\appdata\local\programs\python\python37\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe'
[2020-09-15 21:55:44]: PyInstaller: b'50574 INFO: checking EXE'
[2020-09-15 21:55:44]: PyInstaller: b'50575 INFO: Building EXE because EXE-00.toc is non existent'
[2020-09-15 21:55:44]: PyInstaller: b'50575 INFO: Building EXE from EXE-00.toc'
[2020-09-15 21:55:44]: PyInstaller: b'50575 INFO: Appending archive to EXE C:\Users\ASUS\source\repos\Ransomware\Crypter\dist\Main.exe'
[2020-09-15 21:55:44]: PyInstaller: b'50620 INFO: Building EXE from EXE-00.toc completed successfully.'
[2020-09-15 21:55:44]: Builder: Build process thread finished
[2020-09-15 21:55:44]: Build successful
[2020-09-15 21:55:44]: Crypter exe written to 'C:\Users\ASUS\source\repos\Ransomware\Crypter\bin\Crypter.exe'

@sithis993
Copy link
Owner

Hmmm okay, I can't see anything wrong with that configuration. Can you try something? uninstall Pyinstaller from your system, and then reinstall it by running the following:

pip install https://github.com/pyinstaller/pyinstaller/archive/v3.6.zip

and then give it another go. I've had a search around and a few people have reported this as a fix. There might be something strange going on with your PyInstaller installation

@ricko2991
Copy link
Author

Hello, I've tried using the version of the pyinstaller you gave, but the exe file still can't be executed in windows.

@sithis993
Copy link
Owner

Can you try it using the method I mentioned though? When you installed PyInstaller 3.6 using the requirements.txt file, I believe there may have been a problem with the exact one you downloaded

@ricko2991
Copy link
Author

hi, as you said I have installed all the dependencies in requirement.txt according to the version.

Screenshot (48)

@sithis993
Copy link
Owner

Can you run the following:

pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/v3.6.zip

Then try again and let me know if it still doesn't work

@ricko2991
Copy link
Author

ricko2991 commented Sep 15, 2020

is it using python2 or paython3? when I run it an error appears when calling the pyinstaller

[2020-09-15 22:26:39]: (ERROR): Builder: A Build failure occurred (2): Call to PyInstaller failed. Check that PyInstaller is installed and can be found on the system path
[2020-09-15 22:26:39]: Builder: Build process thread finished
[2020-09-15 22:26:39]: Build finished with error

@sithis993
Copy link
Owner

Sorry, it's Python 3 so I suppose in your case the command will be:

pip3 uninstall pyinstaller
pip3 install https://github.com/pyinstaller/pyinstaller/archive/v3.6.zip

@ricko2991
Copy link
Author

Hi, I've tried it on three windows machines 7,8,10 and still can't

@sithis993
Copy link
Owner

This is really strange. I haven't seen anyone hit this problem before. Are you running this on VMs? is there any way you'd be able to export one and upload it somewhere so I can take a closer look? I'm struggling to think of any other ways right now that I could investigate...

@ricko2991
Copy link
Author

hello I've done some testing, now it works, I've tried running it and installed it on another version of windows using a virtual box. It turns out that maybe my machine does not support because I have updated my previous version of windows to version 2004 and when I run it on windows version 1909 in virtual box everything works fine.

@ricko2991
Copy link
Author

ricko2991 commented Sep 15, 2020

how can i generate it with python extension only?

@sithis993
Copy link
Owner

Oh, well at least it seems to be working! It could be a Windows thing, but perhaps there are other versions of the dependencies/libraries that are conflicting, and that's why it works on a new instance of Windows.

What do you mean Python extension only? like .py? Currently the builder only builds Crypter as a executable file (.exe). You can however run Crypter via the python script without building, by running:

python3 Main.py

from the Crypter directory

@ricko2991
Copy link
Author

Thanks for helping me, I've tried using Main.py. And I'll learn how the code works.

@sithis993
Copy link
Owner

No problem., sorry it took a while. If you have any more problems feel free to open another issue

@ricko2991 ricko2991 reopened this Sep 27, 2020
@ricko2991
Copy link
Author

ricko2991 commented Sep 27, 2020

Hi, I tried to use the pyinstaller manually on the console, and when I finished making it the exe file can't be run / opened, what is the GUI / Builder.pyw actually doing so that it can make the executable file with pyinstaller run properly, whereas when I call pyinstaller automatically manually via the console with the command pyinstaller --onefile Main.py. It can't be run.

@sithis993
Copy link
Owner

If you want to know the exact command that the builder is running to create the executable, do the following:

  1. Open the builder and configure Crypter as desired
  2. Set Debug Level to "3 - High"
  3. Run the build and wait for it to finish
  4. In the Console output, scroll up until you see the command that was executed. It should look like this:

[2020-09-15 21:54:52]: Builder: Running command: pyinstaller --noconsole --clean -F --noupx Main.spec

There have been some updates so I'd definitely recommend following those steps and then using the exact command you see in your own console.

Is there any particular reason you want to do it this way and not use the Builder?

@ricko2991
Copy link
Author

Hi, How do I generate Main.spec without being called by pyinstaller first. Shouldn't the pyinstaller run Main.py first before generating Main.spec?

@sithis993
Copy link
Owner

You can point pyinstaller straight at the main.py script yes, but it tends to be a little more complicated for more advanced executable building. In the case of Crypter, the user sets a number of options in the builder, some of which [I think] can't be specified directly on the command line when invoking PyInstaller. As a result, the Builder creates a custom Main.spec file from the settings specified in the Builder, and then points PyInstaller at the spec file instead of Main.py. This is one of the main purposes of the Builder application.

The only way to generate a Main.spec is to either:

  1. Use the Builder
  2. Build the Main.spec file yourself manually
  3. Create your own builder

@ricko2991
Copy link
Author

how do i create main.spec manually?

@sithis993
Copy link
Owner

If you open it in a text editor you'll see it's just a text file. You can then modify the settings

@ricko2991
Copy link
Author

from which main.spec actually appears. How can I edit it if I haven't created it yet. Can you explain it from the code, because I don't understand it when it is displayed in GUI form, because I am not used to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants