Bowmore Posted February 14, 2008 Share Posted February 14, 2008 (edited) OS WinXP Pro SP2 AutoIt 3.2.10.0 Beta 3.2.11.1I think I've found bug with Obfuscator (1.0.24.12) Could someone check if they can replicate this behaviour before I report it as a bug.Observations:1) When run from within ScITE script runs with no problems2) When compiled (F7) under production build with these directives #AutoIt3Wrapper_Run_Obfuscator=Y #Obfuscator_Parameters=/striponly The script compiles with no errors or warnings. However when I run the exe the $GUI_btnBrowse control is continually fired.3) When compiled (F7) under production build with these directives #AutoIt3Wrapper_Run_Obfuscator=N #Obfuscator_Parameters=/striponly The script compiles with no errors or warnings and the exe runs as expectedThe same behaviour is observered in with AutoIt Beta 3.2.11.1ScITE Console output for compile>"F:\Autoit3\Scite\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /in "F:\AutoIt3Data\Scripts\Temp\Temp.au3" /autoit3dir "F:\Autoit3" +>10:16:12 Starting AutoIt3Wrapper v.1.9.5.6 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 2 CPU:X86) - Icon not found: AutoIt_HighColor.ICO ==> Changing to default ICON. > Running:MKDIR "\Release" A subdirectory or file \Release already exists. >Running AU3Check (1.54.10.0) params:-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 from:F:\Autoit3 +>10:16:13 AU3Check ended.rc:0 >Running Obfuscator (1.0.24.12) from:F:\Autoit3\SciTE cmdline: - Iteration 1 Strip Functions result: Output 2489 lines and stripped 5531 lines - Iteration 2 Strip Variables result: Output 125 lines and stripped 2309 lines - Iteration 3 Strip Variables result: Output 64 lines and stripped 61 lines - Iteration 4 Strip Variables result: Output 55 lines and stripped 9 lines +> Source 21583 lines 1149805 Characters. +> Stripped 7910 Func/Var lines and 12285 comment lines, Total 1142847 Characters. +> Saved 93% lines 99% Characters. +> Obfuscator v1.0.24.12 finished created:F:\AutoIt3Data\Scripts\Temp\Temp_Obfuscated.au3 +>10:16:27 Obfuscator ended.rc:0 >Running AU3Check for obfuscated file(1.54.10.0) params:-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 from:F:\Autoit3 +>10:16:27 AU3Check Obfuscated code ended.rc:0 >Running:(3.2.10.0):F:\Autoit3\aut2exe\aut2exe.exe /in "F:\AutoIt3Data\Scripts\Temp\Temp_Obfuscated.au3" /out "F:\AutoIt3Data\Scripts\Temp\Format RM ONYB Expanded.exe" /comp 4 /nopack /Unicode +>10:16:27 Aut2exe.exe ended.rc:0 ->Warning: This is an Unicode compiled script and will not run on Win9x/ME. +>10:16:28 RC.exe ended.rc:0 +>10:16:28 ResHacker ended.rc:0 >Running (3.1.0.0): F:\Autoit3\aut2exe\upx.exe +>10:16:29 UPX.exe ended.rc:0 >Running:copy "F:\AutoIt3Data\Scripts\Temp\Temp.au3" "\Release\Temp.1.1.2966.8.au3" 1 file(s) copied. >Running:copy "F:\AutoIt3Data\Scripts\Temp\Format RM ONYB Expanded.exe" "\Release\Temp.1.1.2966.8.exe" 1 file(s) copied. >Running:copy "F:\AutoIt3Data\Scripts\Temp\Format RM ONYB Expanded.exe" "\Release 1 file(s) copied. >Exit code: 0 Time: 23.073Obfuscator bug demonstration scriptexpandcollapse popup#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=AutoIt_HighColor.ICO #AutoIt3Wrapper_Outfile=Format RM ONYB Expanded.exe #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Comment=This tool is used to copy RM ONYB Expanded to pipe delimited #AutoIt3Wrapper_Res_Description=Format RM ONYB Changes to pipe delimited #AutoIt3Wrapper_Res_Fileversion=1.1.2966.8 #AutoIt3Wrapper_Res_FileVersion_AutoIncrement=P #AutoIt3Wrapper_Res_LegalCopyright=zzz 2008 #AutoIt3Wrapper_Res_SaveSource=y ://////=__= ://////=__= ://////=__=.= ://////=__= ://////=__=. ://////=__= ://////=__= #AutoIt3Wrapper_Au3Check_Stop_OnWarning=Y #AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #AutoIt3Wrapper_Run_Before=MKDIR "\Release" #AutoIt3Wrapper_Run_After=copy "%in%" "\Release\%scriptfile%.%fileversion%.au3" #AutoIt3Wrapper_Run_After=copy "%out%" "\Release\%scriptfile%.%fileversion%.exe" #AutoIt3Wrapper_Run_After=copy "%out%" "\Release #AutoIt3Wrapper_Run_Tidy=N #Tidy_Parameters=/tc 0 /gd /sci 9 /gds /sf /sdp"'F:\WinMerge\WinMerge.exe' '%new%' '%old%'" #AutoIt3Wrapper_Run_Obfuscator=Y #Obfuscator_Parameters=/striponly #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Run_Debug_Mode=n ;#AutoIt3Wrapper_PlugIn_Funcs= #cs Introduction Script Name:Format RM ONYB Changes Purpose:This tool is used to create a copy of a Royal Mail NYB Expanded file formated with pipe delimiters and trailing whitespace removed #ce #Region ### Set Options Opt("WinWaitDelay", 100) Opt("WinTitleMatchMode", 4) Opt("WinDetectHiddenText", 1) Opt("MouseCoordMode", 2) Opt("MustDeclareVars", 1) #EndRegion ### Set Options #Region Includes #include <File.au3> #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #EndRegion Includes #Region Global Varaibles Global $g_nMsg = 0 Global $sTitle = "Format RM ONYB Expanded" Global $Gui_frmMainCaption = $sTitle & " - Version " & FileGetVersion(@ScriptFullPath) #EndRegion Global Varaibles #Region ### START Koda GUI section ### Form= Global $GUI_frmMain = GUICreate($Gui_frmMainCaption, 390, 103, 341, 156) Global $GUI_lblFormat = GUICtrlCreateLabel("File to format:", 4, 4, 323, 17) Global $GUI_edtFile = GUICtrlCreateInput("", 2, 20, 329, 21) Global $GUI_btnBrowse = GUICtrlCreateButton("Browse", 336, 20, 50, 21, $BS_FLAT) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $GUI_btnBrowse = ' & $GUI_btnBrowse & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console Global $GUI_btnRun = GUICtrlCreateButton("Run", 82, 56, 100, 30, $BS_FLAT) Global $GUI_btnQuit = GUICtrlCreateButton("Quit", 214, 56, 100, 30, $BS_FLAT) GUISetState(@SW_SHOW) #EndRegion ### START Koda GUI section ### Form= While 1 $g_nMsg = GUIGetMsg() Switch $g_nMsg Case $GUI_EVENT_CLOSE Exit Case $GUI_btnBrowse GUICtrlSetData($GUI_edtFile, FileOpenDialog("Select File To Format", "", "RM NYB files(*.c01)|Allfiles (*.*)", 1)) Case $GUI_btnRun _Run() Case $GUI_btnQuit Exit EndSwitch WEnd Exit Func _Run() ;Do Stuff EndFunc ;==>_RunEdit: It would appear that Obfuscator when run with the /striponly parameter is being a little to agresive in what it strips. In the example below it is stripping out GUICreate() and GUICtrlCreateLabel() in this scriptI have now reported this in bug trac. Edited February 14, 2008 by Bowmore "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 Link to comment Share on other sites More sharing options...
rover Posted February 14, 2008 Share Posted February 14, 2008 (edited) I get the continuously opening fileopendialog in beta 3.2.11.0Obfuscator 1.0.24.12(have to download that new beta)production 3.2.10.0 on other pcI get your gui and no continuous fileopendialog behaviourObfuscator 1.0.20.0 will try other obfuscator versionsEdit: no striponly on 1.0.20.0 - forgot to update that machines SciTe and ObfuscatorEdit: tried 1.0.24.7 on production and no problem (only with older Nov SciTe install - as soon as I updated it, even replacing 1.0.24.12 obfuscator with 1.0.24.7 the problem returneddowngrading back to Nov SciTe didn't return it to original state) Edited February 14, 2008 by rover I see fascists... Link to comment Share on other sites More sharing options...
Bowmore Posted February 14, 2008 Author Share Posted February 14, 2008 I get the continuously opening fileopendialog in beta 3.2.11.0Obfuscator 1.0.24.12(have to download that new beta)production 3.2.10.0 on other pcI get your gui and no continuous fileopendialog behaviourObfuscator 1.0.20.0will try other obfuscator versionsThanks for confirming this. since my original post I've done a bit more investigation See Edit at end of my original post. The /striponly is a new parameter although it's supposed to be just a combination of the existing parameters. "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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now