Advertisement
_-M-_

IP/domain to Domains Grabber

Oct 5th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use HTTP::Request;
  3. use LWP::UserAgent;
  4. if($^O =~ /Win/){
  5.  
  6. system("cls");
  7. system("color a");
  8. system("title Get Sites by : ip");
  9.  
  10. }else{
  11.  
  12. system("clear");
  13. }
  14. print q{
  15.  
  16. *--------------------*
  17. * Get *
  18. * Sites *
  19. * result in log.txt *
  20. *--------------------*
  21. };
  22. print "\nPut Host or IP (host without http://) :";
  23. my $host = <>;
  24. chomp($host);
  25. my $ua = LWP::UserAgent->new(agent => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1) Gecko/20090624 Firefox/3.5');
  26. $ua->env_proxy;
  27. #Proxy Replace 127.0.0.1 with http://www.proxy:port
  28. my $response = $ua->get("127.0.0.1");
  29. #Proxy Replace 127.0.0.1 with http://www.proxy:port
  30. my $zz = $ua->post('http://domains.yougetsignal.com/domains.php',
  31. {
  32. remoteAddress => $host,
  33. }
  34. );
  35.  
  36. my $resulta = $zz->content;
  37. while ($resulta =~ m/\[([^\]]*)\]/g)
  38. {
  39. $zeb = $1;
  40. $zeb =~ m/\"(.*?)\", \"?\"/g;
  41. open(a, ">>log.txt");
  42. print a "http://$1/\n";
  43. close(a);
  44. }
  45. print "\nresult in log.txt";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement