Código
#!usr/bin/perl #LocateIP 0.3 (C) Doddy Hackman 2012 use LWP::UserAgent; use IO::Socket; my $nave = LWP::UserAgent->new(); $nave->timeout(5); $nave->agent( "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12" ); head(); if ( $ARGV[0] ) { start( $ARGV[0] ); } else { sintax(); } copyright(); sub start { infocon( $_[0] ); } sub sintax { } sub head { @ @@@@ @@@@ @ @@@@@ @@@@@ @ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@ @ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@@ @ @ @ @ @ @ @ @ @@ @ @ @ @ @ @@@@@ @@@@ @@@@ @ @ @ @@@@@ @ @ ); } sub copyright { } sub infocon { my $target = inet_ntoa($get); $total = "http://www.melissadata.com/lookups/iplocation.asp?ipaddress=$target"; $re = toma($total); if ( $re =~ /City<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) { } else { copyright(); } if ( $re =~ /Country<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) { } if ( $re =~ /State or Region<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) { } my $code = toma( "http://www.ip-adress.com/reverse_ip/" . $target ); while ( $code =~ /whois\/(.*?)\">Whois/g ) { my $dns = $1; } } sub toma { } # ¿ The End ?