Advertisement
ironbits

Scylla-F1nd3r.pl

Sep 20th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.69 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. ### DIARIOSEC GROUP ###
  4. ## B3RG & IRONBITS ##
  5. ### DIARIOSEC.COM ###
  6.  
  7. use LWP::UserAgent;
  8.  
  9. $ua = LWP::UserAgent->new;
  10.  
  11.  
  12. if ($#ARGV + 1 != 2){
  13.     print "Usage: scylla_f1nd3r <url> <path>\n";
  14.     exit;
  15. }
  16.  
  17. if ($ARGV[0] =~ m/^http/) { $url = $ARGV[0]; } else { $url = "http://".$ARGV[0]; }
  18.  
  19. $file = $ARGV[1];
  20.  
  21. if (!open(FILE, $file)){
  22.     print "Invalid file!\n";
  23.     exit;
  24. }
  25.  
  26. print "\n====== Requesting to $url ========\n";
  27.  
  28. while (<FILE>){
  29.     if ($_ =~ m/^\//){
  30.         $request = HTTP::Request->new(GET => "$url$_");
  31.         $response = $ua->request($request);
  32.         if ($response->is_success){
  33.             print $response->status_line." : $_";
  34.         }
  35.     }
  36. }
  37.  
  38. print "\n\n";
  39. close(FILE);
  40. exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement