sithis993 / Crypter

Crypter - Python3 based builder and ransomware compiled to Windows executable using PyInstaller
GNU General Public License v3.0
617 stars 189 forks source link

Configuration Error #77

Open 73CH9ICH13F opened 4 years ago

73CH9ICH13F commented 4 years ago

Hello again. I fired up my VM and starting testing my Crypter. Without any Configuration and leaving all fields blank it works. Adding own configuration it throws up 2 errors. I translated ''Error 1'':

**Crypter.exe - Invalid image IME140.dII is either not available for execution under Windows or contains an error. Install the program with the original installation media again, or contact your system administrator or software vendors to get support.

Error 2: LoadLibrary: Incorrect Parameter.**

1 Error 2 Error

Do you have any other faster communication service? I added you long time ago on Discord ''Altire'' right? Do you have Jabber or ICQ?

sithis993 commented 4 years ago

Okay so I think this might be related to UPX... are you using UPX? if so can you try building without UPX and then running Crypter. I have a feeling this will fix the problem because there might be some kind of issue with UPX and some of the more recent versions of PyInstaller.

If this fixes the problem then I'll investigate and see if there's some kind of way to get UPX working again. At the moment I'm afraid this probably is the quickest way to contact me. I'm usually quite busy with my day job as well as a few other projects, so I'm not really available on Instant Messaging services :-(

73CH9ICH13F commented 4 years ago

Alright. After removing UPX directory path got this error message. Unbenannt

sithis993 commented 3 years ago

Hey dude, sorry it's been so long. Are you still having these problems?

73CH9ICH13F commented 3 years ago

Sup man, yes I‘m still having these problems, have you pushed an update?

sithis993 commented 3 years ago

I've pushed some updates yes, but not sure they will fix this problem.... Are you only hitting these problems when you use UPX? or can you not build and run Crypter at all?

73CH9ICH13F commented 3 years ago

Nice. Haven’t tried in a while, but it definetly don‘t work with UPX.

sithis993 commented 3 years ago

Hmm. Okay, let me give it a shot now. I think this is due to a PyInstaller compatability issue with UPX

sithis993 commented 3 years ago

This is proving a bit more difficult than I expected.... I may need to take UPX support out for now. Are you having problems without UPX?

73CH9ICH13F commented 3 years ago

I‘ll check if I still have problems with UPX.

sithis993 commented 3 years ago

I think I may have just solved one of the problems... gimme a few mins

sithis993 commented 3 years ago

Yup, I've figured out what's going on here. Working on fixing it at the minute and then will push up the fix. I won't create a new release because I created version 3.5 today. I'll stick it into that release and let you know when its there. Then you can give it a test :-).

It might not fix the pyiboot01_bootstrap error you were seeing, but it will enable you to use UPX at least. From there I can work on fixing the bootstrap error. I'm hoping that the UPX fix might fix both problems but we'll see.

73CH9ICH13F commented 3 years ago

Alright, thanks for your work man.

sithis993 commented 3 years ago

No problem. I've fixed this now and pushed the fix up to the develop branch. Can you give it a test and see if it works? :-). If it does, then I think I actually will create a new release (3.6). It's a bit easier than modifying 3.5.

Also, I've added something else which I think will really help with troubleshooting errors. In the "Binary Settings" section of the Builder there's now a "Debug Mode" checkbox. If you tick this and then build the exe and run it, a console window will open alongside the ransomware and any error or debug messages will be printed there.

This will mean you'll actually get a useful error message instead of the usual "Failed to execute main script" that PyInstaller displays

One caveat here though: You'll obviously only want to tick this box when there's actually a problem and you want a bit more information on what's going on. Otherwise the user will open the exe and then see the console window containing the debug, and probably get very suspicious. So, the general troubleshooting process would look like this:

  1. Build an exe with Debug Mode disabled
  2. An error occurs and you see "Failed to execute main script"
  3. Rebuild the exe with Debug Mode enabled
  4. Run the exe and check the console window to see what's going on

Make sense? :-) Hope that's not too convoluted hahaha

73CH9ICH13F commented 3 years ago

I‘ll test it once I‘m home.

sithis993 commented 3 years ago

Have you managed to give this a shot yet?

ricko2991 commented 3 years ago

how to debug the exe file as you said? I've tried it on the cmd.exe console but the error message doesn't appear.

sithis993 commented 3 years ago

Hey Ricko. You might not see anything because the error you're having is a little bit different. It looks like it's some kind of system's problem, or an issue with the executable.

This new option is mainly for catching and logging any runtime exceptions of the Crypter code itself