Sign in to follow this  
Followers 0
euverve

Problem Obfuscating a script

14 posts in this topic

I have problem obfuscating my project, please help...

Here's the error:

>Running Obfuscator (1.0.25.0) from:C:\Program Files\AutoIt3\SciTE cmdline:

!File contains records longer than 2047 .. stopping process.

!Ending Obfuscator program.

!>20:07:32 Obfuscator ended with errors, using original scriptfile.rc:999

Any input guys...

Share this post


Link to post
Share on other sites



Not sure what your question is...

Assuming you have a line in your script that is longer than 2048 which, as clearly is mentioned, you need to split that/those line(s).

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Sorry to revive an old thread, but I'm having the same error and I actually don't find any lines on my script that are longer than 2047 chars. Actualy the bigger one was 380 chars long, and I have splitted it using:

$temp="Some string goes here." & @CR
$temp=$temp & "Another string continuing the text." & @CR
$temp=$temp & "One more and it's almost done..." & @CR
$temp=$temp & "Finally the last one!"
GUICtrlSetTip(-1, $temp)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Sorry to revive an old thread, but I'm having the same error and I actually don't find any lines on my script that are longer than 2047 chars. Actualy the bigger one was 380 chars long, and I have splitted it using:

$temp="Some string goes here." & @CR
$temp=$temp & "Another string continuing the text." & @CR
$temp=$temp & "One more and it's almost done..." & @CR
$temp=$temp & "Finally the last one!"
GUICtrlSetTip(-1, $temp)
Did you check your includes? If you have that error there must be an overly long line somewhere. Edited by AdmiralAlkex

Share this post


Link to post
Share on other sites

Sorry to revive an old thread, but I'm having the same error and I actually don't find any lines on my script that are longer than 2047 chars. Actualy the bigger one was 380 chars long, and I have splitted it using:

...

Can you post the error info like the OP did?

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

I have this:

#include <SQLite.dll.au3>

And I think it may be the problem...

The error is:

>Running Obfuscator (1.0.24.22) from:C:\Program Files\AutoIt3\SciTE cmdline:

!File contains records longer than 2047 .. stopping process.

!Ending Obfuscator program.

!>17:47:06 Obfuscator ended with errors, using original scriptfile.rc:999

Share this post


Link to post
Share on other sites

Yes, sqlite.dll.au3 contains lines with 4095 chars!

Would I need to split all those lines in 2047 chars parts?

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Yes, sqlite.dll.au3 contains lines with 4095 chars!

Would I need to split all those lines in 2047 chars parts?

Yes, you can reliably and easily split lines like this example, taken from the help file (Language Reference - Comments)

MsgBox(4096,"", "This is a rather long line, so I " & _
   "broke it with the underscore, _, character.")
Edited by Inverted

Share this post


Link to post
Share on other sites

Then I will need to make a script to modify that file...

Thanks!

Share this post


Link to post
Share on other sites

Or try this:

#Obfuscator_Off                                            ;Stop the Obfuscation process below this line
#include <sqlite.dll.au3>
#Obfuscator_On

Share this post


Link to post
Share on other sites

Or try this:

#Obfuscator_Off                                            ;Stop the Obfuscation process below this line
#include <sqlite.dll.au3>
#Obfuscator_On
Just for the record, this does not work.

I'm still going to make a script which will split each line of the sqlite.dll.au3 and return a new file with max 2047 chars per line.

Once I do that I'll post here for future reference.

Share this post


Link to post
Share on other sites

You don't have to split every line ! Just check each line to see if it's above the limit and split that if needed, no need to rape the poor files :)

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

You don't have to split every line ! Just check each line to see if it's above the limit and split that if needed, no need to rape the poor files :)

On sqlite.dll.au3, all lines are 4095 chars. So I do need to rape that sexy file! Just lazy to do that script now...

Thanks!

Edited by piratao2

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