Advertisement
Vulnerabiility

Reverse IP Perl Script [Perl]

Dec 20th, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.75 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #Reverse IP script.
  3. #-----------------------------
  4. #By Vulnerabiility
  5. #Written by DNI
  6. # Perl Version ( fast speed )
  7. # Original Advisory :
  8. # https://Vulnerabiility.googlecode.com/files/reverse-ip.pl
  9.  
  10. use LWP::UserAgent;
  11. while (!$ARGV[0]) {
  12. print q(
  13. ###############################################################
  14. #                   Reverse IP Tools v.0.1                    #
  15. ###############################################################
  16. #     usage : reverse-ip.pl [IP]                              #
  17. #-------------------------------------------------------------#
  18. #    [IP] : IP Address of site             (74.125.135.121)   #
  19. ###############################################################
  20. #                   (c)oded by Vulnerabiility                 #
  21. #                       Written by 3k0Nur                     #
  22. #                  Greets : Surabaya Blackhat                 #
  23. ###############################################################
  24. );exit;}
  25. $a = 1;
  26. $ua = new LWP::UserAgent(timeout => 15, agent => "Mozilla/5.0 (x11; u; linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7)" );
  27. print " . . Scanning host on IP $ARGV[0] . . \n\n";
  28. $req = $ua->get('http://whois.webhosting.info/' . $ARGV[0] . '?pi=1&ob=SLD&oo=ASC');
  29. if (!($req->is_success)) {
  30.  
  31. die $req->status_line; }
  32. else {
  33. $output = $req->as_string;
  34. until ($output =~ /(.*?)IP\sDetails\s-\sN\/A\./) {
  35. $req = $ua->get('http://whois.webhosting.info/' . $ARGV[0] . '?pi=' . $a . '&ob=SLD&oo=ASC');
  36. if (!($req->is_success)) { die $req->status_line; }
  37. $output = $req->as_string;
  38.  
  39. while ($output =~ /<td><a\shref=\"http:\/\/whois.webhosting.info\/(.*?)\">/g){
  40. my($crap,$yes)=split(/info\/(.*?)\.\"\>/,$&);
  41. print "$yes\n";
  42. }
  43. sleep 5;
  44. $a++;
  45. }
  46. print "Done!\n";
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement