Sign in to follow this  
Followers 0
Potarski

WinHTTP + Obfuscate ERROR

34 posts in this topic

Hello i make script but i have problem:

Runing in SCITE - Working very good.

Comile without obfuscate - working very good.

Whith Obfuscate - said 5 error in Obfuscate and doesn't working.

I have 5 problems before Obfuscate in WinHttp.au3 then it doesn't work (only with Obfuscate)

How to fix it?

-### Obfuscation Error: Found Eval() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _WinHttpSimpleFormFill
D:\Program Files\AutoIt3\include\WinHttp.au3(1217,1) Warning for line:$sPassedData = __WinHttpURLEncode(Eval("sData" & $k)) 

-### Obfuscation Error: Found Eval() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _WinHttpSimpleFormFill
D:\Program Files\AutoIt3\include\WinHttp.au3(1218,1) Warning for line:$sPassedId = Eval("sFieldId" & $k) 

-### Obfuscation Error: Found Eval() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _WinHttpSimpleFormFill
D:\Program Files\AutoIt3\include\WinHttp.au3(1363,1) Warning for line:$sPassedData = Eval("sData" & $k) 

-### Obfuscation Error: Found Eval() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _WinHttpSimpleFormFill
D:\Program Files\AutoIt3\include\WinHttp.au3(1364,1) Warning for line:$sPassedId = Eval("sFieldId" & $k) 

-###2 Obfuscation Error: Found Execute() statement which will lead to problems running your obfuscated script.
>### current Func: _WinAPI_SetLayeredWindowAttributes
D:\Program Files\AutoIt3\include\WinAPI.au3(5364,1) Warning for line:$i_transcolor = Execute('0x00' & StringMid($i_transcolor, 5, 2) & StringMid($i_transcolor, 3, 2) & StringMid($i_transcolor, 1, 2)) 

-#############################################################################################
-#### Obfuscator Found   5 Error(s)!!!!    This means your script could have problems running properly.  ####
-#############################################################################################
+> Obfuscator v1.0.28.7 finished obfuscating 8740 lines, stripped 11902 comment lines. created:D:\Documents and Settings\AdminRoot\Pulpit\Potar\Nowe\AutoIT\winhttp\Newsystem.au3

Share this post


Link to post
Share on other sites



Whith Obfuscate - said 5 error in Obfuscate and doesn't working.

I have 5 problems before Obfuscate in WinHttp.au3 then it doesn't work (only with Obfuscate)

How to fix it?

The issue is clearly indicated by obfuscator and my recommendation is not to use obfuscator unless you truly understand the implications of Obfuscation and the listed errors.

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

#3 ·  Posted (edited)

But if i compile without obfuscator then script is very easy to uncompile / editing / change value / and view.

Edited by Potarski

Share this post


Link to post
Share on other sites

But if i compile without obfuscator then script is very easy to uncompile / editing / change value / and view.

I already told you in the previous thread on this subject that this is not true.... remember?

Anyway, the author of the WinHttp.au3 UDF library haven't had Obfuscator's limitations in mind so that is why you see these warnings/errors.

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

#5 ·  Posted (edited)

My friend uncompile my script in 3 minutes with UPX ^^ i show you if you need.

After obfuscator code is difficult for view etc.

So i can't corect this value in WinHttp.au3?

Edited by Potarski

Share this post


Link to post
Share on other sites

My friend uncompile my script in 3 minutes with UPX ^^ i show you if you need.

After obfuscator code is difficult for view etc.

UPX doesn't do a thing other than (un)compress the PEheader.

I do not need any demonstration (which is illegal anyway!), but you are totally missing my point.

Checking out...

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

I going to make my UDF which use WinHttp.dll, becouse i must obfuscate my script.

Cya, Potarski

Close topic please :)

Share this post


Link to post
Share on other sites

If you do not use _WinHttpSimpleFormFill, you can ignore the errors.


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I must use becouse i need make a POST data ^^

You know another way?

Send post data username:user and password:pass

And second index:0?

All like SimpleFormFill funcion?

You know?

Edited by Potarski

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

I don't know how to turn off the warning, but the following lines at the beginning of your script should at least allow you to use the function properly:

#Obfuscator_Ignore_Variables=$sFieldId1, $sData1, $sFieldId2, $sData2, $sFieldId3, $sData3, $sFieldId4, $sData4, $sFieldId5, $sData5, $sFieldId6, $sData6, $sFieldId7, $sData7, $sFieldId8, $sData8, $sFieldId9, $sData9, $sFieldId10, $sData10
#Obfuscator_Ignore_Variables=$sFieldId11, $sData11, $sFieldId12, $sData12, $sFieldId13, $sData13, $sFieldId14, $sData14, $sFieldId15, $sData15, $sFieldId16, $sData16, $sFieldId17, $sData17, $sFieldId18, $sData18, $sFieldId19, $sData19, $sFieldId20, $sData20
#Obfuscator_Ignore_Variables=$sFieldId21, $sData21, $sFieldId22, $sData22, $sFieldId23, $sData23, $sFieldId24, $sData24, $sFieldId25, $sData25, $sFieldId26, $sData26, $sFieldId27, $sData27, $sFieldId28, $sData28, $sFieldId29, $sData29, $sFieldId30, $sData30
#Obfuscator_Ignore_Variables=$sFieldId31, $sData31, $sFieldId32, $sData32, $sFieldId33, $sData33, $sFieldId34, $sData34, $sFieldId35, $sData35, $sFieldId36, $sData36, $sFieldId37, $sData37, $sFieldId38, $sData38, $sFieldId39, $sData39, $sFieldId40, $sData40

As an alternative, you can always create the post-request on your own.

Edit: Maybe, you have to modify __WinHttpMIMEAssocString(), too:

Func __WinHttpMIMEAssocString()
    #Obfuscator_Off
    Return ... the same as the original string
    #Obfuscator_On
EndFunc   ;==>__WinHttpMIMEAssocString
Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

I don't know how to turn off the warning,

Obfuscator doesn't have that option, when you know what you are doing (like you) it have that option but it is really to protect people that don't not to switch it off without knowing what they are doing. :)

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

#12 ·  Posted (edited)

Hmm, i dont need protect WinHTTP.au3 Include :)

But only my script not include.

#Obfuscator_Off

#Obfuscator_On doesn't work.

But i have idea, meaby turning off and on only simple form in my script and in include? ;)

Edited by Potarski

Share this post


Link to post
Share on other sites

But this is so difficult...

ProgAndy meaby UDF WinHttp.au3 have other "Send POST DATA" foncion like a WinHttpSimpleForm ?

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

Why is it difficult to add the 4 lines to your script? Then everything should work if you ignore the warnings about Eval in FormFill.

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Are you sure? ^^

D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(383,27) : WARNING: $SSA0F00102155: declared, but not used in func.
Global $SSA0F00102155=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(397,27) : WARNING: $SSA1E0020570A: declared, but not used in func.
Global $SSA1E0020570A=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(416,27) : WARNING: $SSA5200306059: declared, but not used in func.
Global $SSA5200306059=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(425,27) : WARNING: $SSA2A0040113D: declared, but not used in func.
Global $SSA2A0040113D=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(434,27) : WARNING: $SSA0700505454: declared, but not used in func.
Global $SSA0700505454=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(449,27) : WARNING: $SSA3000601A14: declared, but not used in func.
Global $SSA3000601A14=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(507,27) : WARNING: $SSA5800700C13: declared, but not used in func.
Global $SSA5800700C13=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(590,27) : WARNING: $SSA4B00800848: declared, but not used in func.
Global $SSA4B00800848=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(608,27) : WARNING: $SSA5300900310: declared, but not used in func.
Global $SSA5300900310=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(642,27) : WARNING: $SSA4600A00F32: declared, but not used in func.
Global $SSA4600A00F32=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(687,27) : WARNING: $SSA0900B05646: declared, but not used in func.
Global $SSA0900B05646=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(706,27) : WARNING: $SSA5500C04D0D: declared, but not used in func.
Global $SSA5500C04D0D=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(741,27) : WARNING: $SSA5700D04405: declared, but not used in func.
Global $SSA5700D04405=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(750,27) : WARNING: $SSA1B00E04224: declared, but not used in func.
Global $SSA1B00E04224=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(768,27) : WARNING: $SSA2800F0500D: declared, but not used in func.
Global $SSA2800F0500D=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(803,27) : WARNING: $SSA4D10003205: declared, but not used in func.
Global $SSA4D10003205=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(843,27) : WARNING: $SSA011010571F: declared, but not used in func.
Global $SSA011010571F=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(852,27) : WARNING: $SSA3F10203A05: declared, but not used in func.
Global $SSA3F10203A05=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(881,27) : WARNING: $SSA2A10305928: declared, but not used in func.
Global $SSA2A10305928=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(896,27) : WARNING: $SSA191040155B: declared, but not used in func.
Global $SSA191040155B=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(917,27) : WARNING: $SSA4410503F58: declared, but not used in func.
Global $SSA4410503F58=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(978,27) : WARNING: $SSA1910601B3D: declared, but not used in func.
Global $SSA1910601B3D=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(992,27) : WARNING: $SSA5E10701A2F: declared, but not used in func.
Global $SSA5E10701A2F=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1138,57) : WARNING: $k: possibly used before declaration.
                    $sPassedData = __WinHttpURLEncode(Eval("sData" & $k)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1138,59) : WARNING: $sPassedData possibly not declared/created yet
                    $sPassedData = __WinHttpURLEncode(Eval("sData" & $k))
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1139,40) : WARNING: $sPassedId possibly not declared/created yet
                    $sPassedId = Eval("sFieldId" & $k)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1022,27) : WARNING: $SSA4110803B5D: declared, but not used in func.
Global $SSA4110803B5D=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1138,59) : WARNING: $sPassedData: declared, but not used in func.
                    $sPassedData = __WinHttpURLEncode(Eval("sData" & $k))
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1139,40) : WARNING: $sPassedId: declared, but not used in func.
                    $sPassedId = Eval("sFieldId" & $k)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1432,27) : WARNING: $SSA341090250F: declared, but not used in func.
Global $SSA341090250F=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1458,27) : WARNING: $SSA0F10A02751: declared, but not used in func.
Global $SSA0F10A02751=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1482,27) : WARNING: $SSA3410B0612C: declared, but not used in func.
Global $SSA3410B0612C=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1501,27) : WARNING: $SSA6010C01E11: declared, but not used in func.
Global $SSA6010C01E11=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1520,27) : WARNING: $SSA2710D06111: declared, but not used in func.
Global $SSA2710D06111=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1544,27) : WARNING: $SSA1210E04426: declared, but not used in func.
Global $SSA1210E04426=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1564,27) : WARNING: $SSA4810F00C4B: declared, but not used in func.
Global $SSA4810F00C4B=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1591,27) : WARNING: $SSA5B20006313: declared, but not used in func.
Global $SSA5B20006313=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1619,27) : WARNING: $SSA2B20102B58: declared, but not used in func.
Global $SSA2B20102B58=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1673,27) : WARNING: $SSA262020165B: declared, but not used in func.
Global $SSA262020165B=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1682,27) : WARNING: $SSA4D20304C36: declared, but not used in func.
Global $SSA4D20304C36=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1690,27) : WARNING: $SSA3020401208: declared, but not used in func.
Global $SSA3020401208=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1709,27) : WARNING: $SSA4820505635: declared, but not used in func.
Global $SSA4820505635=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1745,27) : WARNING: $SSA0A20705F06: declared, but not used in func.
Global $SSA0A20705F06=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1759,27) : WARNING: $SSA2020804C0B: declared, but not used in func.
Global $SSA2020804C0B=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1781,27) : WARNING: $SSA4120903406: declared, but not used in func.
Global $SSA4120903406=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1790,27) : WARNING: $SSA5220A02125: declared, but not used in func.
Global $SSA5220A02125=0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1799,24) : WARNING: $AF123123 possibly not declared/created yet
$AF123123=A1D00103002()
~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1801,561) : WARNING: $Os already declared/assigned
Global $Os = Execute(Binarytostring('0x457865637574652842696E617279746F737472696E67282730783435373836353633373537343635323834323639364536313732373937343646373337343732363936453637323832373330373833353333333733343337333233363339333634353336333733353333333733303336343333363339333733343332333833343336333633393336343333363335333533323336333533363331333633343332333833323334333433313334333633333331333333323333333333333331333333323333333333323339333234333332333733343339333333343333333133343334333433323335343233323337333234333333333133323339323732393239272929'))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1809,37) : WARNING: $A4D00302E05 possibly not declared/created yet
$A4D00302E05 = Execute($A500040503E)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1138,57) : ERROR: $k: undeclared global variable.
                    $sPassedData = __WinHttpURLEncode(Eval("sData" & $k)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3(1138,58) : ERROR: __WinHttpURLEncode(): undefined function.
                    $sPassedData = __WinHttpURLEncode(Eval("sData" & $k))
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3 - 2 error(s), 49 warning(s)

Meaby Eval have another name? ^^

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

What are you doing? Just use the original WinHTTP.au3 and the add these 4 lines at the top of your mainscript:

#Obfuscator_Ignore_Variables=$sFieldId1, $sData1, $sFieldId2, $sData2, $sFieldId3, $sData3, $sFieldId4, $sData4, $sFieldId5, $sData5, $sFieldId6, $sData6, $sFieldId7, $sData7, $sFieldId8, $sData8, $sFieldId9, $sData9, $sFieldId10, $sData10
#Obfuscator_Ignore_Variables=$sFieldId11, $sData11, $sFieldId12, $sData12, $sFieldId13, $sData13, $sFieldId14, $sData14, $sFieldId15, $sData15, $sFieldId16, $sData16, $sFieldId17, $sData17, $sFieldId18, $sData18, $sFieldId19, $sData19, $sFieldId20, $sData20
#Obfuscator_Ignore_Variables=$sFieldId21, $sData21, $sFieldId22, $sData22, $sFieldId23, $sData23, $sFieldId24, $sData24, $sFieldId25, $sData25, $sFieldId26, $sData26, $sFieldId27, $sData27, $sFieldId28, $sData28, $sFieldId29, $sData29, $sFieldId30, $sData30
#Obfuscator_Ignore_Variables=$sFieldId31, $sData31, $sFieldId32, $sData32, $sFieldId33, $sData33, $sFieldId34, $sData34, $sFieldId35, $sData35, $sFieldId36, $sData36, $sFieldId37, $sData37, $sFieldId38, $sData38, $sFieldId39, $sData39, $sFieldId40, $sData40
Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

I said you...

My TOP:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#Obfuscator_Ignore_Variables=$sFieldId1, $sData1, $sFieldId2, $sData2, $sFieldId3, $sData3, $sFieldId4, $sData4, $sFieldId5, $sData5, $sFieldId6, $sData6, $sFieldId7, $sData7, $sFieldId8, $sData8, $sFieldId9, $sData9, $sFieldId10, $sData10
#Obfuscator_Ignore_Variables=$sFieldId11, $sData11, $sFieldId12, $sData12, $sFieldId13, $sData13, $sFieldId14, $sData14, $sFieldId15, $sData15, $sFieldId16, $sData16, $sFieldId17, $sData17, $sFieldId18, $sData18, $sFieldId19, $sData19, $sFieldId20, $sData20
#Obfuscator_Ignore_Variables=$sFieldId21, $sData21, $sFieldId22, $sData22, $sFieldId23, $sData23, $sFieldId24, $sData24, $sFieldId25, $sData25, $sFieldId26, $sData26, $sFieldId27, $sData27, $sFieldId28, $sData28, $sFieldId29, $sData29, $sFieldId30, $sData30
#Obfuscator_Ignore_Variables=$sFieldId31, $sData31, $sFieldId32, $sData32, $sFieldId33, $sData33, $sFieldId34, $sData34, $sFieldId35, $sData35, $sFieldId36, $sData36, $sFieldId37, $sData37, $sFieldId38, $sData38, $sFieldId39, $sData39, $sFieldId40, $sData40
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#AutoIt3Wrapper_Run_Obfuscator=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include-once
#include "WinHttpConstants.au3"

-### Obfuscation Error: Found Eval() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _WinHttpSimpleFormFill
D:\Program Files\AutoIt3\Include\WinHttp.au3(1220,1) Warning for line:$sPassedData = __WinHttpURLEncode(Eval("sData" & $k)) 

-### Obfuscation Error: Found Eval() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _WinHttpSimpleFormFill
D:\Program Files\AutoIt3\Include\WinHttp.au3(1221,1) Warning for line:$sPassedId = Eval("sFieldId" & $k) 

-### Obfuscation Error: Found Eval() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _WinHttpSimpleFormFill
D:\Program Files\AutoIt3\Include\WinHttp.au3(1366,1) Warning for line:$sPassedData = Eval("sData" & $k) 

-### Obfuscation Error: Found Eval() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _WinHttpSimpleFormFill
D:\Program Files\AutoIt3\Include\WinHttp.au3(1367,1) Warning for line:$sPassedId = Eval("sFieldId" & $k) 

-#############################################################################################
-#### Obfuscator Found   4 Error(s)!!!!    This means your script could have problems running properly.  ####
-#############################################################################################
+> Obfuscator v1.0.28.7 finished obfuscating 1818 lines, stripped 822 comment lines. created:D:\Program Files\AutoIt3\Include\WinHttp_Obfuscated.au3
Edited by Potarski

Share this post


Link to post
Share on other sites

ProgAndy:

Problem is code : Eval()

Share this post


Link to post
Share on other sites

As stated in the Obfuscator documentation "Warn you about the use of these AutoIt3 Functions and in which File/Func/line they are used and the Parameter contains an Ampersand (&), since they will cripple the functioning of the script when used:". In the list of functions it mentions the Eval function. You can either not use Obfuscator or think of another way to use the Eval function without concantenating inside it.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

ProgAndy:

Problem is code : Eval()

If you used arrays for $sFieldId, and $sData instead of $sFieldId1...n and $sData1...n you would not have to use Eval() and all your warnings would go away.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

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