Les dejo una imagen del programa
El codigo (formateado con perltidy) es
Código
#!usr/bin/perl #Locate IP 0.4 #Version Tk #Coded By Doddy H use Tk; use LWP::UserAgent; use IO::Socket; my $background_color = "black"; my $texto_color = "green"; if ( $^O eq 'MSWin32' ) { use Win32::Console; Win32::Console::Free(); } installer(); my $nave = LWP::UserAgent->new; $nave->agent( "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12" ); $nave->timeout(5); $p = MainWindow->new( -background => $background_color, -foreground => $texto_color ); $p->title("Locate IP 0.4 || Coded By Doddy H"); $p->geometry("440x300+20+20"); $p->resizable( 0, 0 ); $p->Label( -text => "Target : ", -font => "Impact", -background => $background_color, -foreground => $texto_color my $tar = $p->Entry( -width => 30, -background => $background_color, -foreground => $texto_color $p->Button( -text => "Find", -width => 10, -background => $background_color, -foreground => $texto_color, -activebackground => $texto_color, -command => \&st $p->Button( -text => "Logs", -width => 10, -background => $background_color, -foreground => $texto_color, , -activebackground => $texto_color, -command => \&openlogs $p->Label( -text => "Information", -font => "Impact", -background => $background_color, -foreground => $texto_color $p->Label( -text => "City : ", -font => "Impact1", -background => $background_color, -foreground => $texto_color my $city = $p->Entry( -width => 21, -background => $background_color, -foreground => $texto_color $p->Label( -text => "Country : ", -font => "Country", -background => $background_color, -foreground => $texto_color my $country = $p->Entry( -width => 17, -background => $background_color, -foreground => $texto_color $p->Label( -text => "State : ", -font => "Impact1", -background => $background_color, -foreground => $texto_color my $state = $p->Entry( -width => 20, -background => $background_color, -foreground => $texto_color $p->Label( -text => "DNS Found", -font => "Impact", -background => $background_color, -foreground => $texto_color my $dns = $p->Listbox( -width => 30, -background => $background_color, -foreground => $texto_color MainLoop; sub st { $city->configure( -text => " " ); $country->configure( -text => " " ); $state->configure( -text => " " ); $dns->delete( "0.0", "end" ); my $target = $tar->get; savefile( "info-logs.txt", "[+] Target : $target" ); my $target = inet_ntoa($get); savefile( "info-logs.txt", "[+] IP : $target\n" ); $total = "http://www.melissadata.com/lookups/iplocation.asp?ipaddress=$target"; $re = toma($total); if ( $re =~ /City<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) { savefile( "info-logs.txt", "[+] City : $2" ); $city->configure( -text => $2 ); } else { $city->configure( -text => "Not Found" ); } if ( $re =~ /Country<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) { savefile( "info-logs.txt", "[+] Country : $2" ); $country->configure( -text => $2 ); } else { $country->configure( -text => "Not Found" ); } if ( $re =~ /State or Region<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) { savefile( "info-logs.txt", "[+] State of Region : $2" ); $state->configure( -text => $2 ); } else { $state->configure( -text => "Not Found" ); } my $code = toma( "http://www.ip-adress.com/reverse_ip/" . $target ); savefile( "info-logs.txt", "" ); while ( $code =~ /whois\/(.*?)\">Whois/g ) { my $dnsa = $1; savefile( "info-logs.txt", "[+] DNS Found : $dnsa" ); $dns->insert( "end", $dnsa ); } savefile( "info-logs.txt", "\n######################\n" ); } sub openlogs { } sub installer { unless ( -d "/logs" ) { } } sub savefile { close SAVE; } sub toma { } #The End ?