Sign in to follow this  
Followers 0
aquila

Ofuscator crashs with md5.au3

5 posts in this topic

Hej,

I included the md5.au3:

Global  $_MD5Opcode = '0xC85800005356576A006A006A008D45A850E8280000006A00FF750CFF75088D45A850E8440000006A006A008D45A850

FF7510E8710700005F5E5BC9C210005589E58B4D0831C0894114894110C70101234567C7410489ABCDEFC74108FEDCBA98C7

410C765432105DC21000C80C0000538B5D088B4310C1E80383E03F8945F88B4510C1E0030143103943107303FF43148B4510

C1E81D0143146A40582B45F88945F4394510724550FF750C8B45F88D44031850E8A00700008D43185053E84E0000008B45F4

8945FC8B45FC83C03F39451076138B450C0345FC5053E8300000008345FC40EBE28365F800EB048365FC008B45102B45FC50

8B450C0345FC508B45F88D44031850E84D0700005BC9C21000C84000005356576A40FF750C8D45C050E8330700008B45088B

088B50048B70088B780C89D021F089D3F7D321FB09D801C1034DC081C178A46AD7C1C10701D189C821D089CBF7D321F309D8

01C7037DC481C756B7C7E8C1C70C01CF89F821C889FBF7D321D309D801C60375C881C6DB702024C1C61101FE89F021F889F3

F7D321CB09D801C20355CC81C2EECEBDC1C1C21601F289D021F089D3F7D321FB09D801C1034DD081C1AF0F7CF5C1C10701D1

89C821D089CBF7D321F309D801C7037DD481C72AC68747C1C70C01CF89F821C889FBF7D321D309D801C60375D881C6134630

A8C1C61101FE89F021F889F3F7D321CB09D801C20355DC81C2019546FDC1C21601F289D021F089D3F7D321FB09D801C1034D

E081C1D8988069C1C10701D189C821D089CBF7D321F309D801C7037DE481C7AFF7448BC1C70C01CF89F821C889FBF7D321D3

09D801C60375E881C6B15BFFFFC1C61101FE89F021F889F3F7D321CB09D801C20355EC81C2BED75C89C1C21601F289D021F0

89D3F7D321FB09D801C1034DF081C12211906BC1C10701D189C821D089CBF7D321F309D801C7037DF481C7937198FDC1C70C

01CF89F821C889FBF7D321D309D801C60375F881C68E4379A6C1C61101FE89F021F889F3F7D321CB09D801C20355FC81C221

08B449C1C21601F289D021F889FBF7D321F309D801C1034DC481C162251EF6C1C10501D189C821F089F3F7D321D309D801C7

037DD881C740B340C0C1C70901CF89F821D089D3F7D321CB09D801C60375EC81C6515A5E26C1C60E01FE89F021C889CBF7D3

21FB09D801C20355C081C2AAC7B6E9C1C21401F289D021F889FBF7D321F309D801C1034DD481C15D102FD6C1C10501D189C8

21F089F3F7D321D309D801C7037DE881C753144402C1C70901CF89F821D089D3F7D321CB09D801C60375FC81C681E6A1D8C1

C60E01FE89F021C889CBF7D321FB09D801C20355D081C2C8FBD3E7C1C21401F289D021F889FBF7D321F309D801C1034DE481

C1E6CDE121C1C10501D189C821F089F3F7D321D309D801C7037D'
        $_MD5Opcode &= 'F881C7D60737C3C1C70901CF89F821D089D3F7D321CB09D801C60375CC81C6870DD5F4C1C60E01FE89F021C889CBF7D3

21FB09D801C20355E081C2ED145A45C1C21401F289D021F889FBF7D321F309D801C1034DF481C105E9E3A9C1C10501D189C8

21F089F3F7D321D309D801C7037DC881C7F8A3EFFCC1C70901CF89F821D089D3F7D321CB09D801C60375DC81C6D9026F67C1

C60E01FE89F021C889CBF7D321FB09D801C20355F081C28A4C2A8DC1C21401F289D031F031F801C1034DD481C14239FAFFC1

C10401D189C831D031F001C7037DE081C781F67187C1C70B01CF89F831C831D001C60375EC81C622619D6DC1C61001FE89F0

31F831C801C20355F881C20C38E5FDC1C21701F289D031F031F801C1034DC481C144EABEA4C1C10401D189C831D031F001C7

037DD081C7A9CFDE4BC1C70B01CF89F831C831D001C60375DC81C6604BBBF6C1C61001FE89F031F831C801C20355E881C270

BCBFBEC1C21701F289D031F031F801C1034DF481C1C67E9B28C1C10401D189C831D031F001C7037DC081C7FA27A1EAC1C70B

01CF89F831C831D001C60375CC81C68530EFD4C1C61001FE89F031F831C801C20355D881C2051D8804C1C21701F289D031F0

31F801C1034DE481C139D0D4D9C1C10401D189C831D031F001C7037DF081C7E599DBE6C1C70B01CF89F831C831D001C60375

FC81C6F87CA21FC1C61001FE89F031F831C801C20355C881C26556ACC4C1C21701F289F8F7D009D031F001C1034DC081C144

2229F4C1C10601D189F0F7D009C831D001C7037DDC81C797FF2A43C1C70A01CF89D0F7D009F831C801C60375F881C6A72394

ABC1C60F01FE89C8F7D009F031F801C20355D481C239A093FCC1C21501F289F8F7D009D031F001C1034DF081C1C3595B65C1

C10601D189F0F7D009C831D001C7037DCC81C792CC0C8FC1C70A01CF89D0F7D009F831C801C60375E881C67DF4EFFFC1C60F

01FE89C8F7D009F031F801C20355C481C2D15D8485C1C21501F289F8F7D009D031F001C1034DE081C14F7EA86FC1C10601D1

89F0F7D009C831D001C7037DFC81C7E0E62CFEC1C70A01CF89D0F7D009F831C801C60375D881C6144301A3C1C60F01FE89C8

F7D009F031F801C20355F481C2A111084EC1C21501F289F8F7D009D031F001C1034DD081C1827E53F7C1C10601D189F0F7D0

09C831D001C7037DEC81C735F23ABDC1C70A01CF89D0F7D009F831C801C60375C881C6BBD2D72AC1C60F01FE89C8F7D009F0

31F801C20355E481C291D386EBC1C21501F28B4508010801500401700801780C5F5E5BC9C20800C814000053E84000000080

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

000000000000000000000000008F45EC8B5D0C6A088D4310508D'
        $_MD5Opcode &= '45F850E8510000008B4310C1E80383E03F8945F483F838730B6A38582B45F48945F0EB096A78582B45F48945F0FF75F0

FF75ECFF750CE831F8FFFF6A088D45F850FF750CE823F8FFFF6A1053FF7508E8050000005BC9C210005589E55156578B7D08

8B750C8B4D10FCF3A45F5E595DC20C00'
Global  $_MD5CodeBuffer = ""

Func _MD5Init()
    If Not IsDeclared("_MD5CodeBuffer") Or Not IsDllStruct($_MD5CodeBuffer) Then 
        Global $_MD5CodeBuffer = DllStructCreate("byte[" & BinaryLen($_MD5Opcode) & "]")
        DllStructSetData($_MD5CodeBuffer, 1, $_MD5Opcode)
    EndIf   
    Local $OpcodeStart = 62
    Local $MD5CTX = DllStructCreate("dword[22]")
    DllCall("user32.dll", "none", "CallWindowProc", "ptr", DllStructGetPtr($_MD5CodeBuffer) + $OpcodeStart, _
                                                    "ptr", DllStructGetPtr($MD5CTX), _
                                                    "int", 0, _
                                                    "int", 0, _
                                                    "int", 0)
    $CodeBuffer = 0
    Return $MD5CTX
EndFunc

Func _MD5Input(ByRef $MD5CTX, $Data)
    If Not IsDeclared("_MD5CodeBuffer") Or Not IsDllStruct($_MD5CodeBuffer) Then Return
    Local $OpcodeStart = 107
    Local $Input = DllStructCreate("byte[" & BinaryLen($Data) & "]")
    DllStructSetData($Input, 1, $Data)
    DllCall("user32.dll", "none", "CallWindowProc", "ptr", DllStructGetPtr($_MD5CodeBuffer) + $OpcodeStart, _
                                                    "ptr", DllStructGetPtr($MD5CTX), _
                                                    "ptr", DllStructGetPtr($Input), _
                                                    "int", BinaryLen($Data), _
                                                    "int", 0)
    $Input = 0
EndFunc

Func _MD5Result(ByRef $MD5CTX)
    If Not IsDeclared("_MD5CodeBuffer") Or Not IsDllStruct($_MD5CodeBuffer) Then Return Binary(0)
    Local $OpcodeStart = 1960
    Local $Digest = DllStructCreate("byte[16]")
    DllCall("user32.dll", "none", "CallWindowProc", "ptr", DllStructGetPtr($_MD5CodeBuffer) + $OpcodeStart, _
                                                    "ptr", DllStructGetPtr($Digest), _
                                                    "ptr", DllStructGetPtr($MD5CTX), _
                                                    "int", 0, _
                                                    "int", 0)
    Local $Ret = DllStructGetData($Digest, 1)
    $CodeBuffer = 0
    $Digest = 0
    $MD5CTX = 0
    $_MD5CodeBuffer = 0
    Return StringTrimLeft(StringLower($Ret), 2)
EndFunc


Func _MD5($Data)
    Local $CodeBuffer = DllStructCreate("byte[" & BinaryLen($_MD5Opcode) & "]")
    DllStructSetData($CodeBuffer, 1, $_MD5Opcode)

    Local $Input = DllStructCreate("byte[" & BinaryLen($Data) & "]")
    DllStructSetData($Input, 1, $Data)

    Local $Digest = DllStructCreate("byte[16]")

    DllCall("user32.dll", "none", "CallWindowProc", "ptr", DllStructGetPtr($CodeBuffer), _
                                                    "ptr", DllStructGetPtr($Input), _
                                                    "int", BinaryLen($Data), _
                                                    "ptr", DllStructGetPtr($Digest), _
                                                    "int", 0)
    Local $Ret = DllStructGetData($Digest, 1)
    $Input = 0
    $Digest = 0
    $CodeBuffer = 0
    Return StringTrimLeft(StringLower($Ret), 2)
EndFunc

Following error appears:

!File contains records longer than 2047 .. stopping process.

!Ending Obfuscator program.

!>19:01:19 Obfuscator ended with errors, using original scriptfile.rc:999

Ok, as you can see the first variable is longer than 4000. I mean, I already splitted up this var in 3 which are all smaller than 2047, but still same error. Someone knows how I can make the md5.au3 working with the obfuscator?

Regards,

aquila

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

2 questions:

1. are you using the latest version available in teh Beta directory if so what version is it.

2. Could you attach the example file for me to test.

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

aquila,

If you break up the OpCode into shorter lines then even the older versions of Obfuscator have no problems with it:

Global $_MD5Opcode  = "0x"
$_MD5Opcode &= "C85800005356576A006A006A008D45A850E8280000006A00FF750CFF75088D45A850E8"
$_MD5Opcode &= "440000006A006A008D45A850FF7510E8710700005F5E5BC9C210005589E58B4D0831C0"
$_MD5Opcode &= "894114894110C70101234567C7410489ABCDEFC74108FEDCBA98C7410C765432105DC2"
$_MD5Opcode &= "1000C80C0000538B5D088B4310C1E80383E03F8945F88B4510C1E00301431039431073"
$_MD5Opcode &= "03FF43148B4510C1E81D0143146A40582B45F88945F4394510724550FF750C8B45F88D"
$_MD5Opcode &= "44031850E8A00700008D43185053E84E0000008B45F48945FC8B45FC83C03F39451076"
$_MD5Opcode &= "138B450C0345FC5053E8300000008345FC40EBE28365F800EB048365FC008B45102B45"
$_MD5Opcode &= "FC508B450C0345FC508B45F88D44031850E84D0700005BC9C21000C84000005356576A"
$_MD5Opcode &= "40FF750C8D45C050E8330700008B45088B088B50048B70088B780C89D021F089D3F7D3"
$_MD5Opcode &= "21FB09D801C1034DC081C178A46AD7C1C10701D189C821D089CBF7D321F309D801C703"
$_MD5Opcode &= "7DC481C756B7C7E8C1C70C01CF89F821C889FBF7D321D309D801C60375C881C6DB7020"
$_MD5Opcode &= "24C1C61101FE89F021F889F3F7D321CB09D801C20355CC81C2EECEBDC1C1C21601F289"
$_MD5Opcode &= "D021F089D3F7D321FB09D801C1034DD081C1AF0F7CF5C1C10701D189C821D089CBF7D3"
$_MD5Opcode &= "21F309D801C7037DD481C72AC68747C1C70C01CF89F821C889FBF7D321D309D801C603"
$_MD5Opcode &= "75D881C6134630A8C1C61101FE89F021F889F3F7D321CB09D801C20355DC81C2019546"
$_MD5Opcode &= "FDC1C21601F289D021F089D3F7D321FB09D801C1034DE081C1D8988069C1C10701D189"
$_MD5Opcode &= "C821D089CBF7D321F309D801C7037DE481C7AFF7448BC1C70C01CF89F821C889FBF7D3"
$_MD5Opcode &= "21D309D801C60375E881C6B15BFFFFC1C61101FE89F021F889F3F7D321CB09D801C203"
$_MD5Opcode &= "55EC81C2BED75C89C1C21601F289D021F089D3F7D321FB09D801C1034DF081C1221190"
$_MD5Opcode &= "6BC1C10701D189C821D089CBF7D321F309D801C7037DF481C7937198FDC1C70C01CF89"
$_MD5Opcode &= "F821C889FBF7D321D309D801C60375F881C68E4379A6C1C61101FE89F021F889F3F7D3"
$_MD5Opcode &= "21CB09D801C20355FC81C22108B449C1C21601F289D021F889FBF7D321F309D801C103"
$_MD5Opcode &= "4DC481C162251EF6C1C10501D189C821F089F3F7D321D309D801C7037DD881C740B340"
$_MD5Opcode &= "C0C1C70901CF89F821D089D3F7D321CB09D801C60375EC81C6515A5E26C1C60E01FE89"
$_MD5Opcode &= "F021C889CBF7D321FB09D801C20355C081C2AAC7B6E9C1C21401F289D021F889FBF7D3"
$_MD5Opcode &= "21F309D801C1034DD481C15D102FD6C1C10501D189C821F089F3F7D321D309D801C703"
$_MD5Opcode &= "7DE881C753144402C1C70901CF89F821D089D3F7D321CB09D801C60375FC81C681E6A1"
$_MD5Opcode &= "D8C1C60E01FE89F021C889CBF7D321FB09D801C20355D081C2C8FBD3E7C1C21401F289"
$_MD5Opcode &= "D021F889FBF7D321F309D801C1034DE481C1E6CDE121C1C10501D189C821F089F3F7D3"
$_MD5Opcode &= "21D309D801C7037DF881C7D60737C3C1C70901CF89F821D089D3F7D321CB09D801C603"
$_MD5Opcode &= "75CC81C6870DD5F4C1C60E01FE89F021C889CBF7D321FB09D801C20355E081C2ED145A"
$_MD5Opcode &= "45C1C21401F289D021F889FBF7D321F309D801C1034DF481C105E9E3A9C1C10501D189"
$_MD5Opcode &= "C821F089F3F7D321D309D801C7037DC881C7F8A3EFFCC1C70901CF89F821D089D3F7D3"
$_MD5Opcode &= "21CB09D801C60375DC81C6D9026F67C1C60E01FE89F021C889CBF7D321FB09D801C203"
$_MD5Opcode &= "55F081C28A4C2A8DC1C21401F289D031F031F801C1034DD481C14239FAFFC1C10401D1"
$_MD5Opcode &= "89C831D031F001C7037DE081C781F67187C1C70B01CF89F831C831D001C60375EC81C6"
$_MD5Opcode &= "22619D6DC1C61001FE89F031F831C801C20355F881C20C38E5FDC1C21701F289D031F0"
$_MD5Opcode &= "31F801C1034DC481C144EABEA4C1C10401D189C831D031F001C7037DD081C7A9CFDE4B"
$_MD5Opcode &= "C1C70B01CF89F831C831D001C60375DC81C6604BBBF6C1C61001FE89F031F831C801C2"
$_MD5Opcode &= "0355E881C270BCBFBEC1C21701F289D031F031F801C1034DF481C1C67E9B28C1C10401"
$_MD5Opcode &= "D189C831D031F001C7037DC081C7FA27A1EAC1C70B01CF89F831C831D001C60375CC81"
$_MD5Opcode &= "C68530EFD4C1C61001FE89F031F831C801C20355D881C2051D8804C1C21701F289D031"
$_MD5Opcode &= "F031F801C1034DE481C139D0D4D9C1C10401D189C831D031F001C7037DF081C7E599DB"
$_MD5Opcode &= "E6C1C70B01CF89F831C831D001C60375FC81C6F87CA21FC1C61001FE89F031F831C801"
$_MD5Opcode &= "C20355C881C26556ACC4C1C21701F289F8F7D009D031F001C1034DC081C1442229F4C1"
$_MD5Opcode &= "C10601D189F0F7D009C831D001C7037DDC81C797FF2A43C1C70A01CF89D0F7D009F831"
$_MD5Opcode &= "C801C60375F881C6A72394ABC1C60F01FE89C8F7D009F031F801C20355D481C239A093"
$_MD5Opcode &= "FCC1C21501F289F8F7D009D031F001C1034DF081C1C3595B65C1C10601D189F0F7D009"
$_MD5Opcode &= "C831D001C7037DCC81C792CC0C8FC1C70A01CF89D0F7D009F831C801C60375E881C67D"
$_MD5Opcode &= "F4EFFFC1C60F01FE89C8F7D009F031F801C20355C481C2D15D8485C1C21501F289F8F7"
$_MD5Opcode &= "D009D031F001C1034DE081C14F7EA86FC1C10601D189F0F7D009C831D001C7037DFC81"
$_MD5Opcode &= "C7E0E62CFEC1C70A01CF89D0F7D009F831C801C60375D881C6144301A3C1C60F01FE89"
$_MD5Opcode &= "C8F7D009F031F801C20355F481C2A111084EC1C21501F289F8F7D009D031F001C1034D"
$_MD5Opcode &= "D081C1827E53F7C1C10601D189F0F7D009C831D001C7037DEC81C735F23ABDC1C70A01"
$_MD5Opcode &= "CF89D0F7D009F831C801C60375C881C6BBD2D72AC1C60F01FE89C8F7D009F031F801C2"
$_MD5Opcode &= "0355E481C291D386EBC1C21501F28B4508010801500401700801780C5F5E5BC9C20800"
$_MD5Opcode &= "C814000053E84000000080000000000000000000000000000000000000000000000000"
$_MD5Opcode &= "0000000000000000000000000000000000000000000000000000000000000000000000"
$_MD5Opcode &= "000000008F45EC8B5D0C6A088D4310508D45F850E8510000008B4310C1E80383E03F89"
$_MD5Opcode &= "45F483F838730B6A38582B45F48945F0EB096A78582B45F48945F0FF75F0FF75ECFF75"
$_MD5Opcode &= "0CE831F8FFFF6A088D45F850FF750CE823F8FFFF6A1053FF7508E8050000005BC9C210"
$_MD5Opcode &= "005589E55156578B7D088B750C8B4D10FCF3A45F5E595DC20C00"

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Well, I am using the latest version i think, loaded the AutoItv3 on Download Site :)

Check the example, i can't use the Obfuscator.

Edit: Great! Works :) Thanks man, but I splitted it like you, but not so often ^_^ But i was less then 2047 :/

md5example.rar

Edited by aquila

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Well, I am using the latest version i think, loaded the AutoItv3 on Download Site :)

Sometimes things do get fixed around here but don't justify a full release yet.

Check the example, i can't use the Obfuscator.

Let me know the result when you did find the time and oppertunity to test.

Jos :)

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0