Scan your IRC channels for an IP, mIRC script

Maybe sometimes you wondered whose IP was the one, for example, you saw on your FTP server, or on the smurf attack list of your firewall. Maybe, that IP belongs to someone who is in one of your channels in IRC; how to find out? Using a made up command which scans the channels you are in for that IP or alias.

The routine looks lihe this:

/findip {
  //set %SearchedIP $1
  set %IPCheck 1
  var %NCanali
  //set %NCanali $chan(0)
  var %CrChan
  set %CrChan 1
  var %TempMask
  :ChanLoop
  //set %TempMask *!*@ $+ $1
  //if ($ialchan(%TempMask,$chan(%CrChan),1).nick != $null) //echo 9 $ialchan(%TempMask,$chan(%CrChan),1).nick in $chan(%CrChan)
  /inc %CrChan
  //if (%CrChan > %NCanali) goto end
  goto ChanLoop
  :end
  set %IPCheck 0
}
       

and you need to put it in the Aliases Panel (accessible by pressing the button in mIRC.

When you want to search for an IP, type, wherever (either in the status window, a channel window, or a chat window): /findip <IP.or.alias.here> … for example:

/findip 142.214.43.4

or

/findip ppp-31xq.nocs.springnets.pk

It is better to search for both, so, if you only got the IP, do a /dns IP, for example:

/dns 142.214.43.4

and in the status window you will find the result of the search. If it is positive, you will get something more like the example above, that is "ppp-31xq.nocs.springnets.pk", otherwise it may not be possible to find an alias for the IP, and in that case you’ll get a "Unable to resolve" message.

If, instead, you only have the alias, do a /dns alias, like:

/dns ppp-31xq.nocs.springnets.pk

and in the status window you will get the corresponding IP.

So, when you have the IP and the alias, use the /findip command on both. If the person is in one of your channels, you’ll see a green text telling you whose that IP/alias is, and in what channel is the nick. If there are no matches, you will get no results. You don’t have to wait long, since usually if in 4 seconds you see no matches, means that the person isn’t in one of your channels.

2 thoughts on “Scan your IRC channels for an IP, mIRC script”

  1. Carino, ma inutilizzabile sui Network dotati di criptazione dell’ip/hostname o meglio, Γ¨ utilizzabile per la ricerca di hostname virtuali o criptati,ma non per cercare un ip πŸ™‚

    1. Strano che qualcuno navighi ancora nella sezione degli script per mIRC πŸ˜€
      Queste cose le ho scritte credo 12 anni fa e si sono tramandate da una versione all’altra del sito, non mi sorprende che siano poco attuali πŸ˜‰

Leave a Reply

Your email address will not be published. Required fields are marked *