Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Code Protection


  • Please log in to reply
33 replies to this topic
heopas
  • Members
  • 44 posts
  • Last active: Oct 26 2012 09:56 PM
  • Joined: 14 Apr 2010
Test number 2:
Find the protected string.
<!-- m -->https://dl.dropbox.c...8/protected.exe<!-- m -->

  • Guests
  • Last active:
  • Joined: --
Why should we help a gambling company/software product for free?

Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012
I did it, but I wrote some string-replace to make it readable ..
so :
FileRead, out, extracted.txt
StringReplace, out, out, % Chr(0x0A),`r`n, All

msgbox % out ; This is optimized (readable)

FileAppend, %out%, aaa.txt ; Final ^^

Script :
; <COMPILER: v1.1.08.00>
#Persistent
#SingleInstance Force
ptr := A_PtrSize ? "ptr" : "uint"
len := DllCall("enigma_ide.dll\EP_ProtectedStringByID", "int", 1, ptr, 0, "int", 0)
if (len > 0)
{
VarSetCapacity(str, len*2, 0)
len := DllCall("enigma_ide.dll\EP_ProtectedStringByID", "int", 1, "str", str, "int", len)
if (len > 0)
PW = %str%
}
msgbox, Find the protected string!
ExitApp
return

I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


heopas
  • Members
  • 44 posts
  • Last active: Oct 26 2012 09:56 PM
  • Joined: 14 Apr 2010
you found the %str%? This is the protected string...

Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012
wait I'll look

I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


heopas
  • Members
  • 44 posts
  • Last active: Oct 26 2012 09:56 PM
  • Joined: 14 Apr 2010
The protection is at this string. (ex. a password)

Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012
So IF I have a "enigma_ide.dll" I can get result ?

I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


heopas
  • Members
  • 44 posts
  • Last active: Oct 26 2012 09:56 PM
  • Joined: 14 Apr 2010
Basicaly enigma protector give a option to add encrypted, protected strings and call them back with ID. So even if you have the dll you can' t, because you should have the same 3 keys to decrypt the protection (Encryption Constant, Private Key, Public Key)
e.x. protected.exe Public key:
0208411BE133F752E7A6CCB0F2023BE04F719ABLEYFHW5M7P3UZGTBB5SXV2T8J9VZKJ47RWX6YMGT2E4F4ZNFVE2NU6BPCVM5TMV3YSMEDR9Y4F84C6Y9XQ7HKJV9ABUN4N8XL
WNBMT9H7FBTVAD75QHWT6GEKKD2YFZNDFV2BX4L645L58EYY2HJQCX6USPJYFE44QD65QA6XGEDXCZW7FBQW3U7QK77DSZT2P36W6VMJTC2PUEHCZB42ETR7YPMW4S5NBEKSM773P
HUURCJ987B5T523NNZB4TN5SRWN5V9GUEYJ4LAV8LTVMLAF982WVYQD2PJ8LJ5YDY8EJQU2C4FEGFEQL7LZF62MVSYQNXVC3RMKZHF2QKH4AGPH42VN5GAJLEK7ZP46JEKT7YLAN7YANGN
W8V6HL4CMDFTES8G34PBU6PM3YF9H4GS719ABBEFGKA57W9WJA34SUWBWAB66WCSGNPAHV8J3H23Q8KMCJTWSL72RV9L476FZ2XGU8MDKVZZ5DZ39C4BKWB8SDERR2QEGKQHPUE8
EXCQKQFK4WGMG8DGPL45J92CS4LUMTQATVRUUFKST6V6KMDZRLH6XYVEWPGKYLP6KQECKSR3FKVXMKCZ4XKDGQRU6U9SLQSK5BHPSWCTYXPD4XEL9ZZWPHNY9LQ8TEUEK4Q84LWD
C2H24S34VE7JXUX68USPY2YYY2TU37PV4V3JTZS97GEGWDYNGGMWY5WYSD445C7NK34GH8TVLY7ESPJZFG3HCQ5BJAR6WAY4CRQFN3QNGJ49TYQTZD226L5748VRGC8TN486QUQCF92
DQXVJLVSPRYLRSGSNGMBCZS82FXKGCYTVZK19AEG28NDTP9K3JQASS2MRGKV27GYN44E6EZKSL24C67Z9B3ZAUKU6XEAMPDRU6PB8GAZ48F685GPAEJQLGVDWFDBLZELFMHTFQH6ACY
BKWPKXLUC3SPAQGKW3AWEBJXC5MHAU4BN3FP2JEFWCVFRML32VLRVDENDDWM8EJMPL5L2R4SXZPBFVRTR6X9VZGRV9L9SE4AYQKL9GSZKBC32CBZN6EPH5YSZJWZXTZTJQYSB5QLC3
GU4VE8CM44H8V9F84NWKHDSXSBFHJAF3QPTEB86M4AZN7SJ3M6KSLVRX47D3QPMKXMFJF8AR58CDKZYRZVP3PHRPFL6WVQETQG9B6VGD5MM75828SFSV4MHGVSYTP9JFDEZJCPZ5PR2Y
754D9YL2C845LKW47CXTA4967RAD2CD

The only way to get this key is from the PW variable. But i don' t know how you can do this...

Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012
Let's add this line and compile it again. so we are trying ^^

; <COMPILER: v1.1.08.00>
#Persistent
#SingleInstance Force
ptr := A_PtrSize ? "ptr" : "uint"
len := DllCall("enigma_ide.dll\EP_ProtectedStringByID", "int", 1, ptr, 0, "int", 0)
if (len > 0)
{
VarSetCapacity(str, len*2, 0)
len := DllCall("enigma_ide.dll\EP_ProtectedStringByID", "int", 1, "str", str, "int", len)
if (len > 0)
PW = %str%
}
msgbox, Find the protected string!
[color=#FF0000]msgbox % PW[/color]
ExitApp
return

I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


heopas
  • Members
  • 44 posts
  • Last active: Oct 26 2012 09:56 PM
  • Joined: 14 Apr 2010
How you are going to compile it again? You will lose the protected string.

Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012
I said you dude. make your settings again and compile this script and compile your virtual box .. we are testing ..

I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


heopas
  • Members
  • 44 posts
  • Last active: Oct 26 2012 09:56 PM
  • Joined: 14 Apr 2010
Ok done.
<!-- m -->https://dl.dropbox.c...8/protected.exe<!-- m -->

Source code:
#Persistent
#SingleInstance Force

; Decompiled ?
ptr := A_PtrSize ? "ptr" : "uint"
len := DllCall("enigma_ide.dll\EP_ProtectedStringByID", "int", 1, ptr, 0, "int", 0)
if (len > 0)
{
    VarSetCapacity(str, len*2, 0)
    len := DllCall("enigma_ide.dll\EP_ProtectedStringByID", "int", 1, "str", str, "int", len)
    if (len > 0)
        PW = %str%
}
msgbox % PW
ExitApp
return


Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012
Hm... I could not find the protected string ^^ .. It looks like good method .. do you have a plan after sucsess this ? :)

I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


heopas
  • Members
  • 44 posts
  • Last active: Oct 26 2012 09:56 PM
  • Joined: 14 Apr 2010
Basically, i already spoke with enigma protection owner, he told me that next week he is going to release a new update and after that he will make a plugin for autohotkey, i don' t know exactly what he is going to do, but he told me that is not hard for him to make it... So i will wait and will inform you as soon as possible...

heopas
  • Members
  • 44 posts
  • Last active: Oct 26 2012 09:56 PM
  • Joined: 14 Apr 2010
You can check here if you want:
<!-- m -->http://enigmaprotect... ... b6c54e818c<!-- m -->