Page 1 of 1
Is there any free exe cryptor
Posted: Tue Apr 16, 2013 8:33 pm
by karu
I can not find any free, if there's any?
Thanks
Karu
Re: Is there any free exe cryptor
Posted: Tue Apr 16, 2013 9:01 pm
by ostapas
If not a secret, for what purpose?
Re: Is there any free exe cryptor
Posted: Tue Apr 16, 2013 9:27 pm
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.
Re: Is there any free exe cryptor
Posted: Tue Apr 16, 2013 10:45 pm
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.
Re: Is there any free exe cryptor
Posted: Tue Apr 16, 2013 11:29 pm
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)
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
Re: Is there any free exe cryptor
Posted: Wed Apr 17, 2013 12:08 am
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?
Re: Is there any free exe cryptor
Posted: Thu Apr 18, 2013 11:57 pm
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?
Re: Is there any free exe cryptor
Posted: Sat Apr 20, 2013 8:01 am
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
Re: Is there any free exe cryptor
Posted: Sat Apr 20, 2013 3:54 pm
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
Re: Is there any free exe cryptor
Posted: Mon Apr 29, 2013 11:50 pm
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.
Re: Is there any free exe cryptor
Posted: Tue Apr 30, 2013 12:00 am
by luis
Yoda's Crypter actually became Yoda's Protector and it's now available on sourceforge
http://yodap.sourceforge.net/index.html