matt

IP finder script

6 posts in this topic

Is there a script I can download that functions the same as showmyip.com where it shows my IP then allows me to look up other IP addresses?

Are there any other websites that allow me to look up the information on other IP addresses? Thanks.

1

Share this post


Link to post
Share on other sites

as root:

ifconfig shows your lan ip address

whois will look up others.........for example

not sure what you mean lookup ip though

if you mean scan ip use nmap

lookup by windows netbios name use nbtscan....

or run a traceroute to somewhere will show your external ip...yada yada yada just play

root@ATLAS:~# whois yahoo.com

Whois Server Version 1.3

Domain names in the .com and .net domains can now be registered

with many different competing registrars. Go to http://www.internic.net

for detailed information.

Server Name: YAHOO.COM.WANADOODOO.COM

IP Address: 62.212.98.156

Registrar: OVH

Whois Server: whois.ovh.com

Referral URL: http://www.ovh.com

Server Name: YAHOO.COM.TWIXTEARS.COM

IP Address: 66.218.71.205

Registrar: DOTSTER, INC.

Whois Server: whois.dotster.com

Referral URL: http://www.dotster.com

Server Name: YAHOO.COM.TW

Registrar: GO DADDY SOFTWARE, INC.

Whois Server: whois.godaddy.com

Referral URL: http://registrar.godaddy.com

LOTS OF OTHER SHIT

Edited by syn-tax
0

Share this post


Link to post
Share on other sites

Learn server side scripting language such as CGI, PHP, or ASP. These languages can easily make what you want to be done in just a few lines of code. I suggest you try to do a little more googline before asking some questions :P

- Kotrin

0

Share this post


Link to post
Share on other sites

Awesome, Thanks.

I'm just now on the edge of learning all those scripts, so I had no idea where to start. Thanks.

0

Share this post


Link to post
Share on other sites

if you are too lazy to go to whatismyip.com

#!/usr/bin/perl -w

use LWP;

my $browser = LWP::UserAgent->new;
my $response = $browser->get('http://www.whatismyip.com');
die "Oh n0s!" unless $response->is_success;

my $temp = $response->content;
my $temp2;
if ($temp =~ /Your IP is (\d+\.\d+\.\d+\.\d+)/) {
$temp2 = $&;
}
print "$temp2\n";

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now