Top

IP Locator


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  3.0 (of 1 scores)
Date Added  Jul 29, 2008
Last Updated  Jul 29, 2008
Tags  address  country  ip  irc  locator  mirc  region  state 

Introduction

Finds a user's IP address, assuming their host is not masked. Locates the IP address on the map and displays all of the information available, including country, region/state, and city. To use, right click a user's name in the nicklist and click "Locate."

Grab the Code

menu nicklist {
  .Locate:set %ipnick $$1 | checkloc $address($$1,2)
}
 
alias checkloc {
  var %o = $remove($gettok($1,2,$asc(@)),.)
  if (%o isnum) {
    echo -a 2Nick: %ipnick
    checkip $gettok($1,2,$asc(@))
    halt
  }
  if (%o isalpha) || (*undernetorg iswm %o) {
    echo -at %ipnick $+ 's host/IP is masked! Cannot continue.
    sockclose checkip
    unset %ipadd
    unset %ipon
    halt
  }
  else {
    .dns $1
    set %ipon on
  }
}
 
alias checkip {
  if (*.*.*.* iswm $1) {
    set %ipadd $1
    sockopen checkip geobytes.com 80
  }
  else echo -at Use /checkip <valid IP address>
}
on *:sockread:checkip:{
  if ($sockerr) {
    echo -a Error.
    sockclose checkip
    unset %ipadd
    unset %ipon
    halt
  }
  else {
    var %', %boo, %get
    sockread %'
    %boo = $z(%')
    %get = $gettok(%',6,$asc("))
    if (*ro-no_bots_pls13* iswm %') echo -a 2Country: %get
    if (*ro-no_bots_pls15* iswm %') echo -a 2Region/State: %get
    if (*ro-no_bots_pls17* iswm %') echo -a 2City: %get
    if (*</html>* iswm %') {
      sockclose checkip
      unset %ipadd
      unset %ipon
      halt
    }
  }
}
on *:DNS:{
  if (%ipon == on) {
    checkip $dns(1).ip
    echo -a 2Nick: %ipnick
    unset %ipnick
  }
}
alias -l z {
  var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;)
  return %x
}
 
on *:sockopen:checkip:{
  sockwrite -n $sockname GET /IpLocator.htm?getlocation&ipaddress= $+ %ipadd HTTP/1.1
  sockwrite -n $sockname Host: geobytes.com $+ $crlf $+ $crlf
}
 

Comments

  (8)  RSS
mostafa_basha
Comments: 16
 
mIRC Snippet:  IP Locator
Posted on Aug 1, 2008 7:24 pm
its awesome man
Eugenio
Comments: 1,193
 
mIRC Snippet:  IP Locator
Posted on Aug 1, 2008 9:36 pm
Its alright
SweeTCooL
Comments: 18
 
mIRC Snippet:  IP Locator
Posted on Aug 8, 2008 6:03 pm
Hmmm Do have Somthing like That u Can Find It From The Domain Not The Reall Ip Addres ??
rsb
Comments: 8
 
mIRC Snippet:  IP Locator
Posted on Aug 17, 2008 1:21 pm
Nifty
AlexHopper
Comments: 28
 
mIRC Snippet:  IP Locator
Posted on Oct 26, 2008 12:51 pm
Good job
sunslayer
Comments: 266
 
mIRC Snippet:  IP Locator
Posted on Oct 26, 2008 9:39 pm
good job but whenever i locate someone it returns with
2Nick: nick
2Country: United States
2Region/State: Colorado
2City: Arvada
Techlover
Comments: 2
 
mIRC Snippet:  IP Locator
Posted on Feb 18, 2009 12:43 pm
Hi, I have loaded this script using Alt R, now how do I find the IP add & location of a nick? Please guide.
Techlover
Comments: 2
 
mIRC Snippet:  IP Locator
Posted on Feb 18, 2009 12:57 pm
ok, i did a click on user name & it says Nick : "user name" don't get anything else...

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom