Jump to content


Photo
- - - - -

IP finder script


  • Please log in to reply
5 replies to this topic

#1 matt

matt

    /dev/zero > C:\WINDOWS

  • Members
  • 1,166 posts
  • Location:817

Posted 23 November 2004 - 01:20 AM

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.

#2 syn-tax

syn-tax

    DDP Fan club member

  • Members
  • 55 posts

Posted 23 November 2004 - 01:39 AM

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, 23 November 2004 - 01:40 AM.


#3 Kotrin

Kotrin

    Mack Daddy 31337

  • Members
  • 228 posts
  • Location:~

Posted 23 November 2004 - 01:43 AM

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

#4 ntheory

ntheory

    data pillager

  • Agents of the Revolution
  • 1,757 posts

Posted 23 November 2004 - 05:03 PM

In PHP:
<?php print $_SERVER ['REMOTE_ADDR']; ?>


#5 matt

matt

    /dev/zero > C:\WINDOWS

  • Members
  • 1,166 posts
  • Location:817

Posted 23 November 2004 - 09:18 PM

Awesome, Thanks.

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

#6 jedibebop

jedibebop

    Dangerous free thinker

  • Members
  • 1,935 posts

Posted 28 November 2004 - 10:18 PM

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";





BinRev is hosted by the great people at Lunarpages!