Jump to content

Obfuscator (discontinued)


Jos
 Share

Recommended Posts

  • Developers

This one rocks JdeB, But when i use Obfuscator on huge scripts their speed slow by 3 seconds. :D

can you be more specific because this doesn't mean much ?

Could be "went from 1 to 4 seconds" or "went from 600 to 603 seconds"

Anyways ... it all depends on what the script does how much it is slowed down, but there is of course some slowdown with the extra calculations.

:)

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

Not sure what you mean here ...

The obfuscator stop his work telling the line is more than 2047 chars even if it's a comment. Tell me if i'm wrong but the comment are not processed ?

The semicolon ";" is the comment character. Unless the semicolon is within a string, all text following it is ignored by the script interpreter/compiler.

Edited by Jango
Link to comment
Share on other sites

  • Developers

The obfuscator stop his work telling the line is more than 2047 chars even if it's a comment. Tell me if i'm wrong but the comment are not processed ?

This is fixed in the next version, but you don;t need to make these lengthy lines ... just split them also for readability.

What I usually do to variables that are really long is split the line into another variable and add $Variable to the end of the split line.

Just use the Continuation character at the end of the lines to split it up .....

:)

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

JdeB,

Very cool feature.

Thank you for all the time and effort you put forward to make this a reality.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Link to comment
Share on other sites

  • 2 weeks later...

Perhaps I am missing something but I can't seem to locate a sciteuser.properties file on either of my machines. I tried creating the file but that didn't work. What am I overlooking?

Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

Link to comment
Share on other sites

  • Developers

Perhaps I am missing something but I can't seem to locate a sciteuser.properties file on either of my machines. I tried creating the file but that didn't work. What am I overlooking?

In SciTE: Options/Open User Options File

:)

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

This is frikin' phenomenal! Turns 181 lines of code into 3845 lines of... something!

(My best Montgomery Burns impression) * Excellent * :)

Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

Link to comment
Share on other sites

  • Developers

Hey,

i become this message.

!FuncCallRecords2$ getting longer longer than 4096 .. !Disable Strip Unused Function.

Is this bad?

No problem for the functioning of the obfuscated script. Its just not stripped from its excess functions.

Its a Warning for when you use the /StripUnUsedFunc .

I will change it that its only given when this option is actually specified.

ps. This means you have a script that has Many, many (did I say many?) different Funcs that call one particular Func ?

Edited by JdeB

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

No problem for the functioning of the obfuscated script. Its just not stripped from its excess functions.

Its a Warning for when you use the /StripUnUsedFunc .

I will change it that its only given when this option is actually specified.

ps. This means you have a script that has Many, many (did I say many?) different Funcs that call one particular Func ?

OK THX

I have include this

#include <A3LToolbar.au3>
#include <GUIConstants.au3>
#include <GuiCombo.au3>
#include <A3LImageList.au3>
#include <A3LListView.au3>
#include <A3LListbox.au3>
#include <A3LMenu.au3>

And from 450 Lines to obfuscated 11.000 (Wow)

Link to comment
Share on other sites

  • Developers

And from 450 Lines to obfuscated 11.000 (Wow)

That normally also happens when aut2exe is run.

The Obfuscated script contains the source from all included files as well.

:)

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

I understand the issues with using #Obfuscator_Off /#Obfuscator_On but it wasn't created for that purpose. Intent was to allow to leave some comments / Directives lines in the obfuscated version of the script. I still don't understand why you would want to skip the rename of "some" variables.

Thanks :)

The reason I think it would be helpful would be for people who are lazy and used the Eval() function in their scripts. Or something simular. If this was possible then people could simply use #obfuscator_off on the area they use:

$myvar = Eval('string')

and list any variables used so that they are not obfuscated.

I would think this would allow people to use the obfuscator with the eval function in it? Or maybe I am wrong. If I am right you could use this same method in the obfuscator automatically to make sure a script still worked correctly after obfuscation.

Like I said... for me it isn't a needed feature... it was just an idea. :) I know... it sort of defeats the purpose of obfuscation.

Link to comment
Share on other sites

  • Developers

The reason I think it would be helpful would be for people who are lazy and used the Eval() function in their scripts. Or something simular. If this was possible then people could simply use #obfuscator_off on the area they use:

$myvar = Eval('string')

and list any variables used so that they are not obfuscated.

I would think this would allow people to use the obfuscator with the eval function in it? Or maybe I am wrong. If I am right you could use this same method in the obfuscator automatically to make sure a script still worked correctly after obfuscation.

Like I said... for me it isn't a needed feature... it was just an idea. :) I know... it sort of defeats the purpose of obfuscation.

You would also have to put EVERY reference to any Variable inside a "#obfuscator_off - #obfuscator_on" region since anything else wil be Obfuscated.

Example that will not work:

$b1 = "B1"
$b2 = "B2"
$b3 = "B3"
#obfuscator_off 
For $x = 1 to 3
    $y = Eval("b" & $x)
    ConsoleWrite('b' & $x & ' = ' & $y & @crlf) 
Next 
#Obfuscator_on
Edited by JdeB

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

  • Developers

Everytime I try and run Obfuscator.exe it crashes after I select my script I want it to encode. Any Idea on how to fix?

I will need a copy of your script to see why it crashes.. you can PM it to me ....

What version of Obfuscator are you using ?

:)

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

I will need a copy of your script to see why it crashes.. you can PM it to me ....

What version of Obfuscator are you using ?

:)

It must have been those few scripts. I tried a few others not from that series and it worked great. Here is the scrip thought in case it helps.

This script checks the resolution setting for FFXI and fixes it if it is different from what my program wants.

WARNING!!! this script will write into your registry if you hit OK to fix. It also will create a .ini file on your computer.

It is not harmful but I thought I would still warn you.

RegRead("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0001")
If @error = 1 Then
    Global $resx = RegRead("HKLM\SOFTWARE\PlayOnlineEU\SquareEnix\FinalFantasyXI", "0001")
    Global $resy = RegRead("HKLM\SOFTWARE\PlayOnlineEU\SquareEnix\FinalFantasyXI", "0002")
    Global $install = RegRead("HKLM\SOFTWARE\PlayOnlineEU\Installfolder", "0001")
Else
    Global $resx = RegRead("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0001")
    Global $resy = RegRead("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0002")
    Global $install = RegRead("HKLM\SOFTWARE\PlayOnlineUS\Installfolder", "0001")
EndIf
Global $resa = @DesktopWidth
Global $resb = @DesktopHeight
Global $resadded = $resx + $resy
Global $winadded = $resa + $resb
If $winadded <> 1400 And $winadded <> 1792 And $winadded <> 2304 Then
    nowinres()
EndIf
If $resadded <> $winadded Then
    fixres()
EndIf
$filew = FileOpen(@ProgramFilesDir & "\Onestcoder\Tools\Windower\Windower.ini", 2)
FileWrite($filew, "[Windower Settings]" & @CRLF & @CRLF)
FileWrite($filew, "#Version may be NA, JP, or EU" & @CRLF)
FileWrite($filew, "Language=NA" & @CRLF & @CRLF)
FileWrite($filew, "#Defines the window size, for fullscreen, set to the size of your desktop" & @CRLF)
FileWrite($filew, "#Standard resolutions are 640x480, 800x600, 1024x768, 1280x1024, etc." & @CRLF)
FileWrite($filew, "X Resolution=" & $resx & @CRLF)
FileWrite($filew, "Y Resolution=" & $resy & @CRLF & @CRLF)
FileWrite($filew, "#Sets the console key. Note that older versions of Windower interfered" & @CRLF)
FileWrite($filew, "#with IME when ~(tilde) was the console key, but this has been fixed." & @CRLF)
FileWrite($filew, "Console Key=`" & @CRLF & @CRLF)
FileWrite($filew, "#True fullscreen is where Windower is loaded (and therefor plugins work)," & @CRLF)
FileWrite($filew, "#but you can't alt-tab. The advantage to this is you don't get graphical" & @CRLF)
FileWrite($filew, "#artifacts but you can use plugins. This was a requested feature." & @CRLF)
FileWrite($filew, "True Fullscreen=0" & @CRLF & @CRLF)
FileWrite($filew, "#this should only be set if you're trying to debug a plugin you're" & @CRLF)
FileWrite($filew, "#developing. Setting this will disable the Windower exception handler" & @CRLF)
FileWrite($filew, "#so that you can analyze exceptions in your plugin." & @CRLF)
FileWrite($filew, "Debug=0" & @CRLF)
FileClose($filew)
Func nowinres()
    MsgBox(4096, "Resolution Error", "Your current windows resolution is not supported_
            "  & @CRLF & "Please switch To one of the three supported resolutions And restart Burners 7in1 Software"  & @CRLF & "These Include 800x600 & 1024x768 & 1280x1024_ 
            " & @CRLF & "Thank You") 
    Exit
EndFunc   ;==>nowinres
Func fixres()
    MsgBox(4096, "Resolution Error", "Your current FFXI resolution does not match your windows resolution_
            " & @CRLF & "In order For the bots To work properly they must match" & @CRLF & "Dont worry we will fix this For you_ 
            " & @CRLF & "Simply Press OK To fix your FFXI resolution To match your Windows resolution_ 
            " & @CRLF & "Burnersware will automatically fix your resolution And restart when finished" & @CRLF & "Thank You") 
    RegRead("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0001")
    If @error = 1 Then
        If $winadded = 1400 Then
            RegWrite("HKLM\SOFTWARE\PlayOnlineEU\SquareEnix\FinalFantasyXI", "0001", "REG_DWORD", "0x00000320") ;800
            RegWrite("HKLM\SOFTWARE\PlayOnlineEU\SquareEnix\FinalFantasyXI", "0002", "REG_DWORD", "0x00000258") ;600
        EndIf
        If $winadded = 1792 Then
            RegWrite("HKLM\SOFTWARE\PlayOnlineEU\SquareEnix\FinalFantasyXI", "0001", "REG_DWORD", "0x00000400") ;1024
            RegWrite("HKLM\SOFTWARE\PlayOnlineEU\SquareEnix\FinalFantasyXI", "0002", "REG_DWORD", "0x00000300") ;768
        EndIf
        If $winadded = 2304 Then
            RegWrite("HKLM\SOFTWARE\PlayOnlineEU\SquareEnix\FinalFantasyXI", "0001", "REG_DWORD", "0x00000500") ;1280
            RegWrite("HKLM\SOFTWARE\PlayOnlineEU\SquareEnix\FinalFantasyXI", "0002", "REG_DWORD", "0x00000400") ;1024
        EndIf
    Else
        If $winadded = 1400 Then
            RegWrite("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0001", "REG_DWORD", "0x00000320") ;800
            RegWrite("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0002", "REG_DWORD", "0x00000258") ;600
        EndIf
        If $winadded = 1792 Then
            RegWrite("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0001", "REG_DWORD", "0x00000400") ;1024
            RegWrite("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0002", "REG_DWORD", "0x00000300") ;768
        EndIf
        If $winadded = 2304 Then
            RegWrite("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0001", "REG_DWORD", "0x00000500") ;1280
            RegWrite("HKLM\SOFTWARE\PlayOnlineUS\SquareEnix\FinalFantasyXI", "0002", "REG_DWORD", "0x00000400") ;1024
        EndIf
    EndIf
    Run("Rerun.exe")
    Exit
EndFunc   ;==>fixres

Need a website: http://www.iconixmarketing.com

Link to comment
Share on other sites

  • Developers

It must have been those few scripts. I tried a few others not from that series and it worked great. Here is the scrip thought in case it helps.

This script checks the resolution setting for FFXI and fixes it if it is different from what my program wants.

WARNING!!! this script will write into your registry if you hit OK to fix. It also will create a .ini file on your computer.

It is not harmful but I thought I would still warn you.

You are asking for magic here since this script contains invalid syntax.. have you run au3check on this and seen the errors ?

:)

Edited by JdeB

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...