Jump to content
Sign in to follow this  
SmOke_N

EnCodeIt

Recommended Posts

I have absolutely no idea with all those edits what your talking about, ... the Const issue, is probably in one of you include files like Array.au3 or something... Try using Tidy on your script before you run EncodeIt like the directions say on the main page here. This is the only place that EnCodeIt is.

Try running your script in Beta rather than the standard 3.1.1 release that your probably doing.

Edit: Here is the main page here, you'll see the link at the bottom of the post: http://www.autoitscript.com/forum/index.ph...ndpost&p=134320

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

I have absolutely no idea with all those edits what your talking about, ... the Const issue, is probably in one of you include files like Array.au3 or something... Try using Tidy on your script before you run EncodeIt like the directions say on the main page here. This is the only place that EnCodeIt is.

Try running your script in Beta rather than the standard 3.1.1 release that your probably doing.

Edit: Here is the main page here, you'll see the link at the bottom of the post: http://www.autoitscript.com/forum/index.ph...ndpost&p=134320

Sorry, the edits were from cameronsdads installer which did`nt install the Encodeit.exe anyway.

So, I need to run your program with the Autoit Beta for it to work?

Note: all I am doing is clicking on your program to get this error.


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites

Sorry, the edits were from cameronsdads installer which did`nt install the Encodeit.exe anyway.

So, I need to run your program with the Autoit Beta for it to work?

Note: all I am doing is clicking on your program to get this error.

Well, I have to say I'm still confused... It's in .au3 form, and you've mentioned .exe form. Just leave it as .au3 and run it from SciTe. There's nothing there that would throw an error as far as my program is concerned, other than the before mentioned NOTE... in the front of this post, about Call()/Eval() etc...


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

This is a great tool Smoke_N!!! Thanks for all of the effort you have put into it. :o

Looks like I may need to recode a few things in one of my programs so I can use this tool on it. My program falls within your limitations of Call()/Eval() etc...

Thanks a lot Smoke_N!

Share this post


Link to post
Share on other sites

I'm getting the same "Badly formatted Func statement" error on line 1437. I have the beta installed and I have tried it as a .au3 and .exe. :o

Technical:

Func X0EBF2B5A12BE62287(Const ByRef $B73D0375F2D3D4Da, $B735037502D3DDDA)
Func X0EBF2B5A12BE62287(^ERROR

Share this post


Link to post
Share on other sites

Fix your Array.au3 file or download beta.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Fix your Array.au3 file or download beta.

Heh, I didn't realize that I had an outdated beta. Thank you. :">

Edited by Somniis

Share this post


Link to post
Share on other sites

Go through your array.au3 file, and remove The word Const from any parameter in a function.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

No, EnCodeIt will get all #include(s) and nested #include(s) options from the <direct include path> to the "Specific Folder Path".

I copy this quote from first page.

I am trying to use EnCodeIt and even I had run EncodeItInstaller.exe.

When I apply to my scripts, the resultant obfuscated code has compile errors(undefined function), because of missing #include files.

I'm sure I am missing some installation instruction, but I don't know.

Share this post


Link to post
Share on other sites

I copy this quote from first page.

I am trying to use EnCodeIt and even I had run EncodeItInstaller.exe.

When I apply to my scripts, the resultant obfuscated code has compile errors(undefined function), because of missing #include files.

I'm sure I am missing some installation instruction, but I don't know.

:( Hmm, I didn't even know there was a post here, sorry to answer it so late. :)

You have to have the #Include <File.Au3> in your script, you just don't have to actually included the entire #include file itself. EnCodeIt will search for what #includes <> you've got in your script, and include them and obfuscate them also.

So if you want to do a test run to see what I'm saying, make a test, name a text file EnCodeIt_Test.au3 and only put this at the top of it and nothing else:

#Include <File.Au3>
and then save it, and then use EnCodeIt on it, and you'll see how it extracts the files from that include folder. Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

First off, awesome script!

So what is the differenece between Methods 1,2, & 3?

Thanks,

-John

Different Text Encoding is all.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Hi SmOke_N,

I have always wanted to try your Encodeit script. The concept you came up with is amazing!

But a while ago, when I tested it, it gave me the error :

Error:Duplicate function name

I always blamed it on my script (as others didn't have this issue) and thought that when I find time, I will dig deeper on my script. Recently I saw that you mentioned a very simple way to test your script. So I decided to try this again. I followed it exactly as you suggested and still get the error as mentioned above. This is what I did:

1) Created an autoit script and named it "EnCodeIt_Test.au3"

2) And in this script I only pasted the code as you suggested: #Include <File.Au3>

3) I ran your utility on this newly created autoit script and when the procedure was finished I got a confirmation that it took approx 50 sec.

4) I ran the encoded file and bang! I get the error: "Duplicate function name"

I tested this on XP Home with beta version 123. Tested this with Method 1 & Method 2 and Method 3 as well, but still the error. Then I tried #Include <color.Au3> but still the error.

I am attaching the encoded files (for any reason you need to see it), plus the test file and also the Encodeit script that I used.

Encodeit_error.rar

Share this post


Link to post
Share on other sites

Hi SmOke_N,

I have always wanted to try your Encodeit script. The concept you came up with is amazing!

But a while ago, when I tested it, it gave me the error :

Error:Duplicate function name

I always blamed it on my script (as others didn't have this issue) and thought that when I find time, I will dig deeper on my script. Recently I saw that you mentioned a very simple way to test your script. So I decided to try this again. I followed it exactly as you suggested and still get the error as mentioned above. This is what I did:

1) Created an autoit script and named it "EnCodeIt_Test.au3"

2) And in this script I only pasted the code as you suggested: #Include <File.Au3>

3) I ran your utility on this newly created autoit script and when the procedure was finished I got a confirmation that it took approx 50 sec.

4) I ran the encoded file and bang! I get the error: "Duplicate function name"

I tested this on XP Home with beta version 123. Tested this with Method 1 & Method 2 and Method 3 as well, but still the error. Then I tried #Include <color.Au3> but still the error.

I am attaching the encoded files (for any reason you need to see it), plus the test file and also the Encodeit script that I used.

@dash007 and @jftuga - I don't have the time it takes currently to look through on why you would be getting the duplicate for variables. It doesn't make sense to me about the text encoding levels on any of the 3 methods working in a different manner that much to make of a difference to correct the issue, because those play with the text and not the variables.

The only time that "without" looking at code of any of your errors, I can see this happening, is if you were using something like Eval().

I'll take a look at your .rar dash007, I hope it isn't just the error msg but also the script to duplicate the issue so maybe I can narrow it down, if it isn't, I'm afraid I won't ever know what it is until I actually get that type of error myself.

Thanks to all for the kind words on EnCodeIt, nice to have a tad bit of piece of mind when you write something that it's safer even if decompiled.

Edit:

@dash

Is the Color.au3 the only thing you used there to test it and it threw the error?

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

SmOke_N,

Thanks for looking into the issue. Yes, I included nothing else and it threw up the error. I tried it again today. I tried it on 3 scripts (see them below). The test1 works fine with the message box alone, but with the second test (containing only one line of code "include" and third test containing two lines of code as shown below , it spits the error regarding the duplicate function. In other words, test2 and test3 are haveing the error of duplicate function

Working (Test1):

Msgbox(0,"Test1","Hello")

Not working (Test2):

#include <File.au3>

Not working (Test3):

#include <File.au3>
Msgbox(0,"Test2","Hello")

I am quite surprised that others don't have this issue. As I said earlier the error happens even if I replace #include <File.au3> with #include <Date.au3> or #include <Color.au3>

Share this post


Link to post
Share on other sites

Hi SmOke_N,

I want to thank you very much for this script. It worked fine on small scripts (<100 lines), but on the current one (several thousands of lines) it continuously chokes. It took 77 minutes to obfuscate it by the way... :)

There are a couple HUGE strings in my script. And I cannot get it fixed, if I split it and then concatenate it, the same error returns: "string not closed on line..." and before the splitting and concatenating it was "unterminated string on line...".

The relevant part of the code is this one:

Global Const $B7921271BA05D142 = X0F35309A3341CCA10('85787E918B7A839466656E6A5B797A8B94686A66675B888A77888E88946578676766656A776185787E918B7A83946665

6E6A5B797A8B94686A66675B888A77888E88946578677666656A776185787E918B7A839466656E6A5B797A8B94686A66675B

888A77888E88946E66696A66696B676185787E918B7A839466656E6A5B797A8B94686A66675B888A77888E889465656B7866

65676A6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946B66666766656E6A6185787E918B7A8394

66656E6A5B797A8B94686666675B888A77888E88946B666667666A796E6185787E918B7A839466656E6A5B797A8B94686666

675B888A77888E8894686967676D656D6B6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E8894776565

6866696A6D6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E8894766566666665666E6185787E918B7A

839466656E6A5B797A8B94686666675B888A77888E8894766566676665666E6185787E918B7A839466656E6A5B797A8B9468

6666675B888A77888E8894766566686665666E6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E889476

6566696665666E6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88947665666A6665666E6185787E91

8B7A839466656E6A5B797A8B94686666675B888A77888E88946665666966696C776185787E918B7A839466656E6A5B797A8B

94686666675B888A77888E88946665657766696C776185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88

946669656766696C776185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946669656966696C77618578

7E918B7A839466656E6A5B797A8B94686666675B888A77888E8894666D656766696C776185787E918B7A839466656E6A5B79

7A8B94686666675B888A77888E8894666D656966696C776185787E918B7A839466656E6A5B797A8B94686666675B888A7788

8E88946678656566696C776185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946A6E686566656C7961

85787E918B7A839466656E6A5B797A8B94686666675B888A77888E889467696E6A66657B666185787E918B7A839466656E6A

5B797A8B94686666675B888A77888E88946D656E79666569686185787E918B7A839466656E6A5B797A8B94686666675B888A

77888E889465676C65766576656185787E918B7A839466656E6A5B797A8B94686666675B888A77888E889465696979766576

656185787E918B7A839466656E6A5B797A8B94686666675B888A77888E889465696978766576656185787E918B7A83946665

6E6A5B797A8B94686666675B888A77888E88946E676566666E656A6185787E918B7A839466656E6A5B797A8B94686666675B

888A77888E88946E67666A666E656A6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946E65697866

6E656A6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946E656977666E656A6185787E918B7A8394

66656E6A5B797A8B94686666675B888A77888E88947669666D66657B796185787E918B7A839466656E6A5B797A8B94686666

675B888A77888E88947669666E66657B796185787E918B7A839466656E6A5B797A8B94686666675B888A77888E8894766C66

6E66657B796185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946E65666C666B6E6A6185787E918B7A

839466656E6A5B797A8B94686666675B888A77888E947867656566676E6C6185787E918B7A839466656E6A5B797A8B946866

66675B888A77888E88947867656666676E6C6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E8894666A

79696565686A6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E889468696567666C7B676185787E918B

7A839466656E6A5B797A8B94686666675B888A77888E889466656569666A77796185787E918B7A839466656E6A5B797A8B94

686666675B888A77888E88947B6B6966676C657B6185787E918B7A839466656E6A5B797A8B94686666675B888A77888E8894

6578657B66656A776185787E918B7A839466656E6A5B797A8B94686666675B888A77888E946578666866656A776185787E91

8B7A839466656E6A5B797A8B94686666675B888A77888E889465786A6D66656A776185787E918B7A839466656E6A5B797A8B

94686666675B888A77888E88946578696566656A776185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88

946578696666656A776185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946578696766656A77618578

7E918B7A839466656E6A5B797A8B94686666675B888A77888E88946578696866656A776185787E918B7A839466656E6A5B79

7A8B94686666675B888A77888E88946578696966656A776185787E918B7A839466656E6A5B797A8B94686666675B888A7788

8E946578676766656A776185787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946578677666656A776185

787E918B7A839466656E6A5B797A8B94686666675B888A77888E88946776667A666568786185787E918B7A839466656E6A5B

797A8B94686A66675B888A77888E8894686A666766656E6A5B877A8B9465666185787E918B7A839466656E6A5B797A8B9468

6A66675B888A77888E88946B6A666766656E6A6185787E918B7A839466656E6A5B797A8B94686A66675B888A77888E889477

65656866696A6D6185787E918B7A839466656E6A5B797A8B94686A66675B888A77888E88946665666966696C776185787E91

8B7A839466656E6A5B797A8B94686A66675B888A77888E88946665676666696C776185787E918B7A839466656E6A5B797A8B

94686A66675B888A77888E88946665657766696C776185787E918B7A839466656E6A5B797A8B94686A66675B888A77888E88

946678656B66696C776185787E918B7A839466656E6A5B797A8B94686A66675B888A77888E88946678656566696C77618578

7E918B7A839466656E6A5B797A8B94686A66675B888A77888E88946678656866696C776185787E918B7A839466656E6A5B79

7A8B94686A66675B888A77888E88946678656966696C776185787E918B7A839466656E6A5B797A8B94686A66675B888A7788

8E88946669656B66696C776185787E918B7A839466656E6A5B797A8B94686A66675B888A77888E88946669656C66696C7761

85787E918B7A839466656E6A5B797A8B94686A66675B888A77888E88946E65666E666B6E6A6185787E918B7A839466656E6A

5B797A8B94686A66675B888A77888E88947867656766676E6C6185787E918B7A839466656E6A5B797A8B94686A66675B888A

77888E88947867656866676E6C6185787E918B7A839466656E6A5B797A8B94686A66675B888A77888E88947867656966676E

6C6185787E918B7A839466656E6A5B797A8B94686A66675B888A77888E88946A68697966656D7A6185787E918B7A83946665

6E6A5B797A8B94686A66675B888A77888E88946567786A66656E6A6185787E918B7A839466656E6A5B797A8B94686A66675B

888A77888E88946776667A666568786185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E889469686B7A66

6565676185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E88947669686666657B796185787E918B7A8394

666565675B797A8B9469686B7A5B888A77888E88947B686B6866676E6C6185787E918B7A8394666565675B797A8B9469686B

7A5B888A77888E8894656C676566696B676185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E8894776565

6866696A6D6185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E88946E676B6E666A656E6185787E918B7A

8394666565675B797A8B9469686B7A5B888A77888E88946A65656A66696D786185787E918B7A8394666565675B797A8B9469

686B7A5B888A77888E889465766969666C69776185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E889465

76696A666C69776185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E88946565686566696B676185787E91

8B7A8394666565675B797A8B9469686B7A5B888A77888E889469686B7A666565676185787E918B7A8394666565675B797A8B

9469686B7A5B888A77888E889465766969666C69776185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E88

946576696A666C69776185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E88946565686566696B67618578

7E918B7A8394666565675B797A8B9469686B7A5B888A77888E88947669686666657B796185787E918B7A8394666565675B79

7A8B9469686B7A5B888A77888E88947B686B6866676E6C6185787E918B7A8394666565675B797A8B9469686B7A5B888A7788

8E8894656C676566696B676185787E918B7A8394666565675B797A8B9469686B7A5B888A77888E88947765656866696A6D61

85787E918B7A8394666565675B797A8B9469686B7A5B888A77888E88946E676B6E666A656E6185787E918B7A839466656567

5B797A8B9469686B7A5B888A77888E88946A65656A66696D786185787E918B7A8394666565675B797A8B9469686C6E5B888A

77888E889469686C6E666565676185787E918B7A8394666565675B797A8B9469686C765B888A77888E889469686C76666565

676185787E918B7A8394666565675B797A8B9469686C6E5B888A77888E88946865656E666568786185787E918B7A83946665

65675B797A8B9469686C765B888A77888E88946865656E66656878', $B8921273BAE6D142)

Any ideas?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...