Is there any free exe cryptor

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
karu
Enthusiast
Enthusiast
Posts: 255
Joined: Fri Jan 13, 2006 12:14 am

Is there any free exe cryptor

Post by karu »

I can not find any free, if there's any?

Thanks
Karu
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

Re: Is there any free exe cryptor

Post by ostapas »

If not a secret, for what purpose?
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Is there any free exe cryptor

Post by heartbone »

Here's one for you that I just whipped up in a half hour.

Code: Select all

KEYPAD$="123456789ABCDEF"
If OpenConsole()
   ConsoleTitle ("File Crypter")
   PrintN("Type in the filename to process.")
   FILE$= Input()
   If Len(FILE$) And FileSize(FILE$)>0
      If OpenFile(1,FILE$)
         PrintN("ENTER UP TO 16 CHARACTER KEY")
         KEY$= Input()
         LK= Len(KEY$)
         If LK>0 
            If LK>16
               KEY$= Mid(KEY$,1,16)
            Else
               If LK<16
                  KEY$= Mid(KEY$+KEYPAD$,1,16)
               EndIf   
            EndIf
            TOTSIZ= FileSize(FILE$)
            *DECRY= AllocateMemory(TOTSIZ)
            *ENCRY= AllocateMemory(TOTSIZ)            
GETTYPE:            
            PrintN("Enter E for ENCRYPTION, D for DECRYPTION, OR Q TO QUIT")
            TYPE$= Input()
            If TYPE$="E" Or TYPE$="e"
               ReadData(1,*DECRY,TOTSIZ)
               CloseFile(1)
               AESEncoder(*DECRY,*ENCRY,TOTSIZ,@KEY$,128,0,#PB_Cipher_ECB)
               OpenFile(2,FILE$)
               WriteData(2,*ENCRY,TOTSIZ)
               CloseFile(2)
               PrintN("FILE ENCRYPTED")
               Delay(3000)
            Else
               If TYPE$="D" Or TYPE$="d"
                  ReadData(1,*ENCRY,TOTSIZ)
                  CloseFile(1)
                  AESDecoder(*ENCRY,*DECRY,TOTSIZ,@KEY$,128,0,#PB_Cipher_ECB)
                  OpenFile(2,FILE$)
                  WriteData(2,*DECRY,TOTSIZ)
                  CloseFile(2)
                  PrintN("FILE DECRYPTED")
                  Delay(3000)
               Else
                  If TYPE$<>"Q" Or TYPE$<>"q"
                     Goto GETTYPE
                  EndIf   
               EndIf   
            EndIf           
         EndIf   
      EndIf      
   EndIf
   CloseConsole()
EndIf
I am pretty sure that there is a minimum file size that can be processed.
Although the code runs just fine from the IDE,
I can not get my v4.51 compiler to actually create an executable of this.
It displays a PureBasic Linker error window
containing the message: POLINK: fatal error: Access is denied.
Keep it BASIC.
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Is there any free exe cryptor

Post by heartbone »

It compiled to a 27 KB executable using the v5.1 compiler.

Then back here Avira AV detected something called 'TR/Crypt.ZPACK.Gen' in the resultant .exe and denied access to it!!!
This is a false positive is it not?
That false positive probably caused the linker error.

On the other computer running v5.1 and AVG there is no virus detection problem and the .exe works as expected.
Keep it BASIC.
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Is there any free exe cryptor

Post by luis »

karu wrote:I can not find any free, if there's any?
Hi, this section of the forum is for showcasing apps written in PB (I know, the name could be better) :wink:

Anyway, I don't know of any *reliable* exe packer + encryptor really free. I would like to, if anyone can suggest one.
The practical usefulness can depend on the intended use though.
heartbone wrote:Here's one for you that I just whipped up in a half hour.
I think he wanted something can make an exe auto-decrypt itself. Probably for obfuscation. Just guessing.
heartbone wrote:It displays a PureBasic Linker error window
containing the message: POLINK: fatal error: Access is denied.
Yes, probably a real time antivirus blocking the process creating the "suspected" exe, as you imagined.
heartbone wrote:It compiled to a 27 KB executable using the v5.1 compiler.
Then back here Avira AV detected something called 'TR/Crypt.ZPACK.Gen' in the resultant .exe and denied access to it!!!
This is a false positive is it not?
The exe is on your PC, so I cannot answer. A virus can append itself to a clean exe just as it has been created.

The one created locally on mine is detected as follows:
https://www.virustotal.com/en/file/ce76 ... /analysis/

And yes, this is a false positive (a growing annoyance)
http://www.purebasic.fr/english/viewtop ... 79#p404379
"Have you tried turning it off and on again ?"
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Is there any free exe cryptor

Post by heartbone »

Thank you luis for the feedback.

I took a shot in the dark based on his query, and since I was bored, why not?
Probably not exactly what he wanted, but perhaps it contains the nucleus of what he needs.
Then again suppose all karu wants to do is encrypt his executables?
Keep it BASIC.
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Is there any free exe cryptor

Post by heartbone »

Hey luis!
If you get a chance would you rebuild the exact same executable,
only this time filling out all of the Version Info fields in the Compiler Options and selecting the Use Icon option.
The infection report may come back clean because Avira no longer complains about the executable after I did that to the compile.

edit: After checking out the details contained the latest posts in this thread by Mohawk70, I see that my observation is already confirmed.
http://www.purebasic.fr/english/viewtop ... 08#p411208

After I dressed up my li'l executable for the guys over at the Football Idiot forum I saw the AV change its attitude.
I wonder if the icon is irrelevant?
Keep it BASIC.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: Is there any free exe cryptor

Post by Didelphodon »

Just for the sake of completeness ...
Of course there are some free exe crypters out there. As a more "famous" example one could mention "Yoda's Crypter".
However, as such things are always seen in malware it's not a wise idea to use such stuff in legitimate software as this might have a lot of side effects I wouldnt want to discuss in details now - it's also a question of "ethic" in this fields.
Anyhow, as your goal/problem is generally different you should follow (as already mentioned) my thread about AV-mess where I encouraged each developer of PB based executables to fill out all of these additional information fields in the according compiler options. It's ridicilous but that seems to be a magnet for AV heuristics.

Cheers,
Didel
Go, tell it on the mountains.
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Is there any free exe cryptor

Post by heartbone »

Thanks Didel, your post makes perfect sense.
I had no idea.
Seriously.
Now I am learning about such things.
Looks like there are plenty of free exe cryptors judging by this utility on the other side of that war.
http://qunpack.ahteam.org/?p=316
Keep it BASIC.
Lubos
Enthusiast
Enthusiast
Posts: 167
Joined: Tue Feb 03, 2004 12:32 am
Contact:

Re: Is there any free exe cryptor

Post by Lubos »

karu wrote:I can not find any free, if there's any?

Thanks
Karu
Yoda's cryptor. The page of author (Ashkbiz Danehkar) http://yodap.cjb.net/ probably does not work. But download is possible from: http://downloads.fyxm.net/Yoda&-039;s-C ... 72395.html
You can search term Yoda's crypter by Google too.
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86)
My mother tongue is Czech. I have a Czech version of Windows.
Who is not afraid of GOTO, the one need not afraid any things!
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Is there any free exe cryptor

Post by luis »

Yoda's Crypter actually became Yoda's Protector and it's now available on sourceforge
http://yodap.sourceforge.net/index.html
"Have you tried turning it off and on again ?"
Post Reply