Jump to content
Sign in to follow this  
Glyph

Compilation method?

Recommended Posts

Glyph

Normally, you have to compile an au3 script from a file with a file extension through aut2exe, I was wondering if it was possible to compile a script form a variable?

Im creating a script that will make .exe's of a program you make. Changes the start bar with "x" text that you choose, then having it create an executable of what params. you chose in the gui.

Well, I don't want the source code being copied to thier folder while its compiling. They would simply exit the application while the document is in the folder, before the script deletes the source code file.

This way everyone gets my source, is there a way to compile internally? without the need for my source to be copied to the users folder??

Edited by BackStabbed

tolle indicium

Share this post


Link to post
Share on other sites
mscreffcs

Normally you have to compile an au3 script from a file, with any extension with aut2exe, well i was wondering if it was possible to compile a script form a variable?

Im creating a script that will make .exe's of a program you make, chanegs the start bar to whatever text u choose, then having it create an executable of what params you chose in the gui.

Well, i dont want the source code being copied to thier folder while its compiling, they would simply exit the application while the document is in the folder, before the script deletes the source code file.

This way every gets my source, is there a way to compile internally without the need for my source to be copied to the users folder??

Did you think of compiling AU3 files in DOS mode?

Share this post


Link to post
Share on other sites
Glyph

;Aut2exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/nodecompile] [/comp 0-4] [/pass <passphrase>] [/nopack] [/ansi] [/unicode]
$outfile = 'Aut2exe.exe /in "' & $meltz & '" /out "' & $outfile & '" /icon "' & $iconz & '" /comp 4'

Hey, thanks for responding!

But, the above method requires an "infile".

I need to change the infile to a variable, is this possible?

Edited by BackStabbed

tolle indicium

Share this post


Link to post
Share on other sites
LongBowNZ

;Aut2exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/nodecompile] [/comp 0-4] [/pass <passphrase>] [/nopack] [/ansi] [/unicode]
$outfile = 'Aut2exe.exe /in "' & $meltz & '" /out "' & $outfile & '" /icon "' & $iconz & '" /comp 4'

Hey, thanks for responding!

But, the above method requires an "infile".

I need to change the infile to a variable, is this possible?

@Bold

The in-file is a variable ($meltz) unless I don't understand what you're saying.

Share this post


Link to post
Share on other sites
Glyph

@Bold

The in-file is a variable ($meltz) unless I don't understand what you're saying.

Sorry, I didn't mention what the variable is.

The variable "$meltz" is an external file that contains the source to the script that the script will be using to compile.

I need to remove the need for external documents, just use built-in variables to compile the script, then creating the exeutable, and having upx pack it afterwards.

[seperate]

And, just thought of this!

Using obfuscator to obfuscate the code before hadning it to an external file before compiling?

Would it be possible to obfuscate a variable that contains a full script?

[/seperate]


tolle indicium

Share this post


Link to post
Share on other sites
Zedna

Hey, thanks for responding!

But, the above method requires an "infile".

I need to change the infile to a variable, is this possible?

I doubt it's not possible.

But I'm not 100% sure.

Edited by Zedna

Share this post


Link to post
Share on other sites
Jos

I really have no idea what the OP wants to accomplish so haven't commented on his question really....


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
Zedna

I really have no idea what the OP wants to accomplish so haven't commented on his question really....

He wants to pass script (to be compiled) to Aut2Exe directly from variable without writing this script to the file on disk.

pseudocode:

$var = "MsgBox(0,'Title','Text')"
RunWait('Auto2Exe /compilestring:'  & $var)
Edited by Zedna

Share this post


Link to post
Share on other sites
Glyph

He wants to pass script (to be compiled) to Aut2Exe directly from variable without writing this script to the file on disk.

pseudocode:

$var = "MsgBox(0,'Title','Text')"
RunWait('Auto2Exe /compilestring:'  & $var)

Exactly!

Just need to find a way that works...

I am actually thinking about making my own obfuscator and then exporting the obfuscated variable to the file in the folder where it would then be compiled....

But, this may take a while! So, i'm making sure there are no alternatives before I start this.

Edited by BackStabbed

tolle indicium

Share this post


Link to post
Share on other sites
Jos

Exactly!

Just need to find a way that works...

I am actually thinking about making my own obfuscator and then exporting the obfuscated variable to the file in the folder where it would then be compiled....

But, this may take a while! So, i'm making sure there are no alternatives before I start this.

I am still missing the reason why going through all these hoops?

What do you think you will accomplish when you can "compile" a script without writing it to a file first?


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
Glyph

I am still missing the reason why going through all these hoops?

What do you think you will accomplish when you can "compile" a script without writing it to a file first?

I will be releasing this publicly to anyone who needs it, but I don't want the source code leaked out in plain text.

I want them to work for it! ;)


tolle indicium

Share this post


Link to post
Share on other sites
LostUser

I am still missing the reason why going through all these hoops?

What do you think you will accomplish when you can "compile" a script without writing it to a file first?

His goal.

I just had to do that.


Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools.

Share this post


Link to post
Share on other sites
Jos

I will be releasing this publicly to anyone who needs it, but I don't want the source code leaked out in plain text.

I want them to work for it! ;)

Still do not see what that has to do with NOT writing it to a file first and what is wrong with the available Obfuscator?

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
Glyph

Still do not see what that has to do with NOT writing it to a file first and what is wrong with the available Obfuscator?

Once it's obfuscated I can't unobfuscate the parts I need to change, the goal is to keep the source code from the users without hindering the use of variables while compiling the custom executables.

Pseudocode:

$var="msgbox(0,""Title"",""text"")"

filewrite("source.txt",$var)

Notice how that will be written in plain text.

I need this obfuscated into a code that looks like it's unusable to the average user (so they dont go stealing the code and modifying it for thier own)

Now to obfuscate as I understand it, you require the plain text file.

which bring me back in this whole loop of protecting the source.

What's the point of obfuscating the code if they can see it before it's obfuscated?

It needs to be obfuscated while it's in its variable form to avoid plaintext filewriting, i need it to be an obfuscated plaintext instead of plain plaintext.

Thank you for your patience!

Edited by BackStabbed

tolle indicium

Share this post


Link to post
Share on other sites
Jos

bump

For what reason?

You seem to be convinced that you have the right approach but as stated, aut2exe will require a file as input.

I already mentioned that I would use the currently available utilities and I wouldn't worry about writing it to a "temp" file first.

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
Glyph

For what reason?

You seem to be convinced that you have the right approach but as stated, aut2exe will require a file as input.

I already mentioned that I would use the currently available utilities and I wouldn't worry about writing it to a "temp" file first.

Jos

I already mentioned that I would use the currently available utilities and I wouldn't worry about writing it to a "temp" file first.

There's a utility that compiles variables?

Where is this located? I've never heard of it!

Unless there's a utility in Obfuscator that compiles parameters? (obfuscator.exe -$compilevariable) ?

I'm looking for the documentation for Obfuscator right now, and I don't see anything...

http://www.autoitscript.com/autoit3/scite/...uscator_doc.htm

Edited by BackStabbed

tolle indicium

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.