Jump to content
Sign in to follow this  
M3d1c5

Obfuscation Error: _FTP_ProgressDownload

Recommended Posts

M3d1c5

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.

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
M3d1c5

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 = 1

So it seems, that there are problems with _FTP_ProgressUpload() when the script is obfuscated.

Same problems with _FTP_ProgressDownload().

Share this post


Link to post
Share on other sites
M3d1c5

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.

Share this post


Link to post
Share on other sites
guinness

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 parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

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  

×