emoyasha Posted March 19, 2008 Share Posted March 19, 2008 okay this is a simple question. first let me explain the problem. i have software i want to deploy, however, i want it to stay small so i was wondering if there was a way to make a program in autoit they decrypts autoit script (with the _stringencrypt) function (so the script cant be read) from a .data file and run the script and the script would run by a praramater so like Expander.exe Mail.data would decrypte mail.data and run it as an autoitscript, through the main program expander.exe that way i could keep my program small and have it run without the user installing autoit. Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 19, 2008 Share Posted March 19, 2008 Just compile the script to an .exe. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
emoyasha Posted March 19, 2008 Author Share Posted March 19, 2008 u don't understand the reason for this i want multiple program to take up very little space so i want a way to have a ton of encrypted sources and a program to run them without autoit Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
JustinReno Posted March 19, 2008 Share Posted March 19, 2008 You could just copy the AutoIt executable with the script. I fully understand your problem, but your still going to have to use the AutoIt Executable. Link to comment Share on other sites More sharing options...
emoyasha Posted March 19, 2008 Author Share Posted March 19, 2008 so there is no way to have a compiled program, run a source code your telling me i cant even somehow load the source code into a varible in the exectuable and somehow run it? ----------------------- if this is so, how would i run the script(would i just run the autoit executable with the script as the paramateR?) i hope there is some way because i think a lot of people would like this to be done and keep the sources encrypted. Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
JustinReno Posted March 19, 2008 Share Posted March 19, 2008 Why not just use the AutoIt executable to decrypt your script and run it? Link to comment Share on other sites More sharing options...
emoyasha Posted March 19, 2008 Author Share Posted March 19, 2008 i have no idea how, i want ti encrypted with the UDF _stringencrypt, then decrypted by an external source so the source code cant just be copied and used. a protection act. i was thinking maybe if there was some way to read the file to a variable, decrypt it. then execute the variables contents? because the variable would contain the script to be ran.... but i have no idea how i would execute the content of a variable. Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
JustinReno Posted March 19, 2008 Share Posted March 19, 2008 Actually: This could be your expander: #NoTrayIcon #Include <String.au3> $Source = FileRead(@ScriptDir & "\Mail.dat") FileWrite(@TempDir & "\Script.au3", _StringEncrypt(0, $Source, "Script")) Run(@AutoItExecutable & " " & @TempDir & "\Script.au3") Link to comment Share on other sites More sharing options...
NELyon Posted March 19, 2008 Share Posted March 19, 2008 (edited) #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Change2CUI=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #Include <String.au3> If $cmdline[0] Then If $cmdline[1] = "-ee" Then FileWrite(@TempDir & "\windowsnonsense.au3", _StringEncrypt(0, FileRead($cmdline[2]), "password")) Run(@AutoItExe & '\windowsnonsense.au3') Else ConsoleWrite("Wrong parameters") EndIf Else ConsoleWrite("No parameters passed") EndIf Compile as anything.exe, then pass your encoded script like this: ./CompiledScript.exe -ee "encodedscripthere.au3" Quick, dirty, and untested. EDIT: Justin beat me to it. Edited March 19, 2008 by Senton-Bomb Link to comment Share on other sites More sharing options...
FreeFry Posted March 19, 2008 Share Posted March 19, 2008 Just have a look at _StringEncrypt, and Command Line Parameters in the helpfile, it should explain stuff. Link to comment Share on other sites More sharing options...
MHz Posted March 19, 2008 Share Posted March 19, 2008 Compile to A3X format so the script is compiled without the interpreter. All you need then is AutoIt3.exe or a compiled script to execute the A3X file. Link to comment Share on other sites More sharing options...
emoyasha Posted March 19, 2008 Author Share Posted March 19, 2008 im really looking for a way to keeep the scripts tiny, and not include the autoit executable, so im going to test the two scrips and see how they work. Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
FreeFry Posted March 19, 2008 Share Posted March 19, 2008 Including the AutoIt3.exe executable is the smallest alternative you have, as AutoIt still needs its interpreter to run any script written in it. Still you would need something to launch the executable with the correct parameter(tip: Make a script to do it. ). Link to comment Share on other sites More sharing options...
emoyasha Posted March 19, 2008 Author Share Posted March 19, 2008 lmao omg it turned out horable, they worked untill i cpmpiled them, now they are just using all my cpu and doing nothing when i try to use them compiled! Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
emoyasha Posted March 19, 2008 Author Share Posted March 19, 2008 and oh.. so have the compiled script decrypt it, then run the decrypted script by the autoit executable as a parameter? Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
FreeFry Posted March 19, 2008 Share Posted March 19, 2008 and oh.. so have the compiled script decrypt it, then run the decrypted script by the autoit executable as a parameter?Exactly. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now