AutoIt Forums: Compilation method? - AutoIt Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Compilation method? possible without an external file?

#1 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 28 August 2008 - 06:32 AM

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??

This post has been edited by BackStabbed: 28 August 2008 - 09:01 PM


#2 User is offline   mscreffcs 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 12
  • Joined: 21-November 07

Post icon  Posted 28 August 2008 - 06:44 AM

View PostBackStabbed, on Aug 28 2008, 11:02 AM, said:

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?

#3 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 28 August 2008 - 06:47 AM

[ autoIt ]    ( Popup )
;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?

This post has been edited by BackStabbed: 28 August 2008 - 06:47 AM


#4 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 29 August 2008 - 03:32 PM

Bump

#5 User is offline   LongBowNZ 

  • Spammer!
  • PipPipPip
  • Group: Full Members
  • Posts: 299
  • Joined: 27-July 07

Posted 29 August 2008 - 04:01 PM

View PostBackStabbed, on Aug 28 2008, 05:47 PM, said:

[ autoIt ]    ( Popup )
;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.

#6 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 29 August 2008 - 04:19 PM

View PostLongBowNZ, on Aug 29 2008, 11:01 AM, said:

@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]

#7 User is offline   Zedna 

  • AutoIt rulez!
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 6,592
  • Joined: 17-June 05
  • Location:Czech republic

Posted 29 August 2008 - 04:22 PM

View PostBackStabbed, on Aug 28 2008, 07:47 AM, said:

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.

This post has been edited by Zedna: 29 August 2008 - 04:22 PM


#8 User is offline   Jos 

  • Mass Spammer!
  • Icon
  • Group: Developers(Dev)
  • Posts: 17,192
  • Joined: 03-December 03
  • Gender:Not Telling

Posted 29 August 2008 - 04:23 PM

Looks to me that you are trying to re-write AutoIt3Wrapper as that is exactly what it is doing.

:)

#9 User is offline   Zedna 

  • AutoIt rulez!
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 6,592
  • Joined: 17-June 05
  • Location:Czech republic

Posted 29 August 2008 - 04:51 PM

All compilators/wrappers/etc from the forum use original Aut2Exe which is commandline tool.

So you must have file on disk and pass it's path/name through commandline to Aut2Exe.

#10 User is offline   Jos 

  • Mass Spammer!
  • Icon
  • Group: Developers(Dev)
  • Posts: 17,192
  • Joined: 03-December 03
  • Gender:Not Telling

Posted 29 August 2008 - 04:59 PM

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

#11 User is offline   Zedna 

  • AutoIt rulez!
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 6,592
  • Joined: 17-June 05
  • Location:Czech republic

Posted 29 August 2008 - 05:05 PM

View PostJos, on Aug 29 2008, 05:59 PM, said:

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:
[ code='text' ]    ( Popup )
$var = "MsgBox(0,'Title','Text')" RunWait('Auto2Exe /compilestring:'  & $var)

This post has been edited by Zedna: 29 August 2008 - 05:05 PM


#12 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 29 August 2008 - 05:57 PM

View PostZedna, on Aug 29 2008, 12:05 PM, said:

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

pseudocode:
[ code='text' ]    ( Popup )
$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.

This post has been edited by BackStabbed: 29 August 2008 - 06:00 PM


#13 User is offline   Jos 

  • Mass Spammer!
  • Icon
  • Group: Developers(Dev)
  • Posts: 17,192
  • Joined: 03-December 03
  • Gender:Not Telling

Posted 29 August 2008 - 06:23 PM

View PostBackStabbed, on Aug 29 2008, 06:57 PM, said:

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?

#14 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 29 August 2008 - 06:26 PM

View PostJos, on Aug 29 2008, 01:23 PM, said:

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! :)

#15 User is offline   LostUser 

  • Advanced Member
  • PipPip
  • Group: Full Members
  • Posts: 105
  • Joined: 06-March 06
  • Location:USA, Michigan

Posted 29 August 2008 - 06:27 PM

View PostJos, on Aug 29 2008, 01:23 PM, said:

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.

#16 User is offline   Jos 

  • Mass Spammer!
  • Icon
  • Group: Developers(Dev)
  • Posts: 17,192
  • Joined: 03-December 03
  • Gender:Not Telling

Posted 29 August 2008 - 06:28 PM

View PostBackStabbed, on Aug 29 2008, 07:26 PM, said:

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?

#17 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 29 August 2008 - 06:35 PM

View PostJos, on Aug 29 2008, 01:28 PM, said:

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!

This post has been edited by BackStabbed: 29 August 2008 - 06:45 PM


#18 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 30 August 2008 - 09:08 PM

bump

#19 User is offline   Jos 

  • Mass Spammer!
  • Icon
  • Group: Developers(Dev)
  • Posts: 17,192
  • Joined: 03-December 03
  • Gender:Not Telling

Posted 30 August 2008 - 09:18 PM

View PostBackStabbed, on Aug 30 2008, 10:08 PM, said:

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

#20 User is offline   Glyph 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 803
  • Joined: 26-November 06
  • Gender:Male
  • Location:USA

Posted 30 August 2008 - 10:06 PM

View PostJos, on Aug 30 2008, 04:18 PM, said:

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



Quote

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

This post has been edited by BackStabbed: 30 August 2008 - 10:07 PM


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users