M3d1c5 Posted March 8, 2012 Share Posted March 8, 2012 When compiling my script I get the following message: -### Obfuscation Error: Found Call() statement using unsolvable Func, which will/could lead to problems running your obfuscated script. >### current Func: _FTP_ProgressDownload C:\Program Files\AutoIt3\include\FTPEx.au3(1117,1) Warning for line:$ret = Call($FunctionToCall, ($done / $glen) * 100) -### Obfuscation Error: Found Call() statement using unsolvable Func, which will/could lead to problems running your obfuscated script. >### current Func: _FTP_ProgressUpload C:\Program Files\AutoIt3\include\FTPEx.au3(1232,1) Warning for line:$ret = Call($FunctionToCall, ($done / $glen) * 100) -### Obfuscation Error: Found DllCallbackRegister() statement using unsolvable Func, which will/could lead to problems running your obfuscated script. >### current Func: _FTP_SetStatusCallback C:\Program Files\AutoIt3\include\FTPEx.au3(1276,1) Warning for line:Local $CallBack_Register = DllCallbackRegister($sFunctionName, "none", "ptr;ptr;dword;ptr;dword") -###2 Obfuscation Error: Found Execute() statement which will lead to problems running your obfuscated script. >### current Func: _Assert C:\Program Files\AutoIt3\include\Debug.au3(65,1) Warning for line:Local $bCondition = Execute($sCondition) -###2 Obfuscation Error: Found Execute() statement which will lead to problems running your obfuscated script. >### current Func: __Debug_ReportClose C:\Program Files\AutoIt3\include\Debug.au3(414,1) Warning for line:Execute($__gsReportCallBack_Debug & ")") -###2 Obfuscation Error: Found Execute() statement which will lead to problems running your obfuscated script. >### current Func: __Debug_ReportWrite C:\Program Files\AutoIt3\include\Debug.au3(628,1) Warning for line:Execute($__gsReportCallBack_Debug & "'" & $sData & "')") -############################################################################################# -#### Obfuscator Found 6 Error(s)!!!! This means your script could have problems running properly. #### -############################################################################################# +> Obfuscator v1.0.29.5 finished obfuscating 24061 lines, stripped 24885 comment lines. created:C:\Users\Christian\Dropbox\Script_Obfuscated.au3 After continue anyway: C:\Users\Christian\Dropbox\Script_Obfuscated.au3(18547,59) : WARNING: $A184C041B1A: possibly used before declaration. A550030330C($A3BEB143813, $A3641543427, True, $A184C041B1A, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Users\Christian\Dropbox\Script_Obfuscated.au3(18547,59) : ERROR: $A184C041B1A: undeclared global variable. A550030330C($A3BEB143813, $A3641543427, True, $A184C041B1A, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Users\Christian\Dropbox\Script_Obfuscated.au3 - 1 error(s), 1 warning(s) The compiled script does not work. Without obfuscating it works correctly. Link to comment Share on other sites More sharing options...
water Posted March 8, 2012 Share Posted March 8, 2012 You have error messages stating "will/could lead to problems" some messages stating "will lead to problems". What do you expect from the latter? Please search the forum for this messages and you will find some helpful information. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
M3d1c5 Posted March 8, 2012 Author Share Posted March 8, 2012 When I ignore the error messages of the obfuscator, the upload of a file does not work.$FTP_Open = _FTP_Open("Agent", $INTERNET_OPEN_TYPE_PRECONFIG) $FTP_Connect = _FTP_Connect($FTP_Open, $Setting_FTP_Host, $Setting_FTP_User, $Setting_FTP_Password) $FTP_ProgressUpload = _FTP_ProgressUpload($FTP_Connect, $Local_File, $Remote_File) $FTP_Close = _FTP_Close($FTP_Open)Please see the return values of the functions:$FTP_Open = 0x00CC0004$FTP_Connect = 0x00CC0008$FTP_ProgressUpload = 0 / @error = 0$FTP_Close = 1So it seems, that there are problems with _FTP_ProgressUpload() when the script is obfuscated.Same problems with _FTP_ProgressDownload(). Link to comment Share on other sites More sharing options...
M3d1c5 Posted March 8, 2012 Author Share Posted March 8, 2012 Okay. Now I know what the problem is. With #Obfuscator_Parameters=/cf 0 it works. I used: $FTP_ProgressUpload= _FTP_ProgressUpload($FTP_Connect,$Local_File,$Remote_File, $FunctionToCall) Because the Obfuscator renames functions $FunctionToCall does not work after obfuscating. The Parameter „/cf 0“ disables renaming of functions. The obfuscated script works now. But the error messages are displayed anyway while compiling. Link to comment Share on other sites More sharing options...
guinness Posted March 8, 2012 Share Posted March 8, 2012 Why not just use /StripOnly? It's what I use when I want to consolidate all functions into one single file. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Developers Jos Posted March 8, 2012 Developers Share Posted March 8, 2012 ah, now i know why you responded in the other thread. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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