7h331337 Posted August 24, 2008 Share Posted August 24, 2008 (edited) ok this little app will only let you execute a exe at the moment im hopping to add more functions what it dose is u upload the php code to a free web hosting site or your own site then start the app and configure the app u can have up to as many computer running on this as u want whether u have a dynamic ip or a static 1 dose not matter php: CODE <?php if (isset($_POST['name']) && !empty($_POST['name'])) { $name = stripslashes($_POST['name']); $pass = stripslashes($_POST['pass']); $pass = md5($pass); $command = stripslashes($_POST["command"]); $sleep = stripslashes($_POST["sleep"]); $content = $name . ":" . $pass . ":" . $command. ":". $sleep; $filed = @fopen("data.txt", "w"); @fwrite($filed, "$content"); fclose($filed); $filed = @fopen("data.log", "a+"); @fwrite($filed, "$REMOTE_ADDR $content\n"); fclose($filed); echo "<b>command Posted by:$REMOTE_ADDR</b><br /><br />"; } ?> <center> <form name="command center " action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="application/x-www-form-urlencoded"> Name: <br /> <input type="text" name="name" size="14"><br /> pass: <br /> <input type="password" name="pass" size="14"><br /> command: <br /> <input type="text" name="command" size="14"><br /> sleep(optional): <br /> <input type="sleep" name="sleep" size="14"><br /><br /> <input type="submit" value="send" name="submit"> </form></center></center> and the app: CODE #AutoIt3Wrapper_plugin_funcs = MD5Hash $bkup = "" If FileExists("webconfig.ini") Then $website = IniRead("webconfig.ini", "webconfig", "website+dir", "wrong web site") $name = IniRead("webconfig.ini", "webconfig", "name", "") $pass = IniRead("webconfig.ini", "webconfig", "pass", "") $sleep = IniRead("webconfig.ini", "webconfig", "sleep", 300000) _run() Else $plH = PluginOpen("MD5Hash.dll") $1 = InputBox("input website", "pleas input website pluse the directory of data.txt") $2 = InputBox("input name", "please input a name for the computer") $3 = InputBox("input password", "pleas input a password for the computer to use") $3 = MD5Hash($3, 2, True) PluginClose($plH) make_ini($1, $2, $3) _run() EndIf Func make_ini($website, $name, $pass) IniWriteSection("webconfig.ini", "webconfig", "") IniWrite("webconfig.Ini", "webconfig", "website+dir", $website) IniWrite("webconfig.ini", "webconfig", "name", $name) IniWrite("webconfig.ini", "webconfig", "pass", $pass) IniWrite("webconfig.ini", "webconfig", "sleep", 300000) EndFunc ;==>make_ini Func _run() While 1 $sleep = IniRead("webconfig.ini", "webconfig", "sleep", 300000) Sleep($sleep) InetGet($website & "/data.txt", @ScriptDir & "\data") $string = FileReadLine("data", 1) $str = StringSplit($string, ":") If $str[1] = $name And $str[2] = $pass Then If $str[4] & $str[3] = $bkup Then FileDelete("data") _run() EndIf $string = StringSplit($str[3], ".") If $string[2] = "exe" Then Run($str[3]) EndIf If IsNumber($str[4]) And $str[4] > 1 Then IniWrite("webconfig", "webconfig", "sleep", $str[4]) EndIf $bkup = $str[4] & $str[3] FileDelete("data") Else _run() EndIf WEnd EndFunc ;==>_run Edited August 26, 2008 by 7h331337 Link to comment Share on other sites More sharing options...
7h331337 Posted August 24, 2008 Author Share Posted August 24, 2008 there was one big flaw that i fixed the passwords were not encrypted so i now use md5 to encrypted the passwords so enjoy Link to comment Share on other sites More sharing options...
7h331337 Posted August 26, 2008 Author Share Posted August 26, 2008 bump!!! Link to comment Share on other sites More sharing options...
7h331337 Posted August 26, 2008 Author Share Posted August 26, 2008 can someone plz comment i need some feedback on what to improve or any requests or if its good or bad thanks Link to comment Share on other sites More sharing options...
Draygoes Posted August 27, 2008 Share Posted August 27, 2008 Its actually not bad. I am not in a position in which I could try somthing like this, but I can imagion that someone might be. I am sorry that I couldnt be of much help friend. Spoiler  "If a vegetarian eats vegetables,What the heck does a humanitarian eat?" "I hear voices in my head, but I ignore them and continue on killing." "You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring." An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.   Link to comment Share on other sites More sharing options...
7h331337 Posted August 27, 2008 Author Share Posted August 27, 2008 Its actually not bad.I am not in a position in which I could try somthing like this, but I can imagion that someone might be.I am sorry that I couldnt be of much help friend.YEY A reply thanks for your reply Link to comment Share on other sites More sharing options...
Yorn Posted August 27, 2008 Share Posted August 27, 2008 Not certain what this does, it looks like a php page accepts inputs and the autoit script retrieves those inputs, is this to relay commands via the web or something? Link to comment Share on other sites More sharing options...
7h331337 Posted August 27, 2008 Author Share Posted August 27, 2008 Not certain what this does, it looks like a php page accepts inputs and the autoit script retrieves those inputs, is this to relay commands via the web or something?all it dose is u give your computer a name and password and then the web address to the php script then you type the computers name and password (passwords are encrypted) on the php page plus the command thats all it dose the reson i made this is because my ip changes every 5 min so a any other program wouldn't work for long but this one i have 7 computers running on it and it works fine Link to comment Share on other sites More sharing options...
ludocus Posted August 27, 2008 Share Posted August 27, 2008 I tried this, but it doesnt work.. My web server (www.freeservers.com) says your php file isnt trying to open data.txt but the file: > nice idea though! Link to comment Share on other sites More sharing options...
7h331337 Posted August 27, 2008 Author Share Posted August 27, 2008 I tried this, but it doesnt work.. My web server (www.freeservers.com) says your php file isnt trying to open data.txt but the file: >nice idea though!are you in the free account if so then www.freeservers.com dose not support php (http://www.freeservers.com/cgi-bin/show_me?page=hosting_details&object=freehost&refcd=WSUOWS010823NB01)i suggest useing 100webspace.net its alot better Link to comment Share on other sites More sharing options...
tr1px Posted August 28, 2008 Share Posted August 28, 2008 This thing does not work. I tried it on 2 of my servers. Oh and if you are going to make a smart statement in your signature you should make sure that your spelling is correct Also you might want to make a better explanation of what you are trying to achieve with this. Link to comment Share on other sites More sharing options...
ludocus Posted August 28, 2008 Share Posted August 28, 2008 ok, I am now trying. ow and what is the command to execute a program? Link to comment Share on other sites More sharing options...
ludocus Posted August 28, 2008 Share Posted August 28, 2008 I cant make an account on that site.. Link to comment Share on other sites More sharing options...
7h331337 Posted August 28, 2008 Author Share Posted August 28, 2008 (edited) I cant make an account on that site..@ludocusto ex acute the command just type the program name like cmd.exehere is the link to the sing up page http://100webspace.com/order/?ref=p&plan=1@tr1pxhave u got php installed on the severs and my spelling is bad because i am dislexic <~ i cant even spell that lol Edited August 28, 2008 by 7h331337 Link to comment Share on other sites More sharing options...
JC1 Posted September 17, 2008 Share Posted September 17, 2008 havent tried but should work... haha i have one made months ago... sends screen captures to a website the administrator can then remote anyone logged in, via http... send in mouse clicks, keystrokes, run commands... im planning to implement file transfer and console access but havent got time and lost track of doing so... i will post the source once completed - you just made me inspired once more... maybe you could try using a chat interface instead of a flat file... see this: if i download your data.txt ... and query my name out of it then run the string next to it.. there should be other names in it.. possible security threat there... i can view what you send to others... and also making the file large which slows downloads... Link to comment Share on other sites More sharing options...
Veloce Posted October 2, 2008 Share Posted October 2, 2008 okay a one question, how do you execute commands on this? haha Link to comment Share on other sites More sharing options...
zaini Posted October 2, 2008 Share Posted October 2, 2008 good effort...i doesn't try yet.. but it seems don't have any prob for the php and autoit script.. good work... Link to comment Share on other sites More sharing options...
toxicvn Posted October 3, 2008 Share Posted October 3, 2008 (edited) I want set permission for key by autoit script ? help me thank very much eg :HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root Edited October 3, 2008 by toxicvn 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