QuickVerify Nick Imposter Scanner

By Kerli on Apr 17, 2010

This is a nice thing to add to an IRC bot or for any remote of yours. It will always check when a nick joins if they have changed something like their IP, email, etc. It will send these connections in a notice to all channel operators.

General IRC help came from #mircscripting at Undernet.

Remember that %c is a command identifier, so in your Variables tab, set %c as any one character. A common one is !, which I will use below.

Usage:
!quickverify on: Turns the QuickVerify mode on.
!quickverifiy off: Turns the QuickVerify mode off.
!qvregister: Influence all regulars in your channel, including ops, to type !qvregister so they will be checked for imposters.

For best results, you might want to replace all ^BOLD^ and ^COLOR^ marks with bold and color tags. (Bold: Ctrl+B; Color: Ctrl+K) You should be able to do this with the find tool in the mIRC Scripts Editor.

;QuickVerify - Official #BotPark of EsperNet Snippet - Come visit us for bot help, chat, and PARTIES!
on 1000:text:*quickverify*:#:{
  if ($1 == %c $+ quickverify) {
    if ($2 == on) { .enable #qvchan | .msg $chan $chan $+ : The QuickVerify Mode has been enabled. To register your default information for $chan $+ , type %c $+ qvregister. Ensure that you are using your usual hostname before using this, as well as nick. }
    if ($2 == off) { .disable #qvchan | .msg $chan $chan $+ : QuickVerify Mode has been disabled. }
    else { .notice $nick ^COLOR^7Incorrect: Use %c $+ quickverify <on/off> | halt }
  }
  else { halt }
}

#qvchan off
on 1:JOIN:*:{
  if (%fulladdress. [ $+ [ $nick ] ] != $null) {
    if ($site != %site. [ $+ [ $nick ] ]) {
      .notice @ $+ $chan ^COLOR^7^BOLD^Default Site for $nick $+ :^BOLD^ ^COLOR^4NO MATCH
    }
    else { .notice @ $+ $chan ^COLOR^7^BOLD^Default Site for $nick $+ :^BOLD^ ^COLOR^9MATCH }
    if ($host != %host. [ $+ [ $nick ] ]) {
      .notice @ $+ $chan ^COLOR^7^BOLD^Default Hostname for $nick $+ :^BOLD^ ^COLOR^4NO MATCH
    }
    else { .notice @ $+ $chan ^COLOR^7^BOLD^Default Hostname for $nick $+ :^BOLD^ ^COLOR^9MATCH }
    if ($fulladdress != %fulladdress. [ $+ [ $nick ] ]) {
      .notice @ $+ $chan ^COLOR^7^BOLD^Default Full Address for $nick $+ :^BOLD^ ^COLOR^4NO MATCH
    }
    else { .notice @ $+ $chan ^COLOR^7^BOLD^Default Full Address for $nick $+ :^BOLD^ ^COLOR^9MATCH }
  }
  else { .notice @ $+ $chan ^COLOR^7No QuickVerify information registered for $nick $+ . }
}
on 1:text:*qvregister*:#: {
  if ($1 == %c $+ qvregister) {
    set %fulladdress. [ $+ [ $nick ] ] $fulladdress
    set %site. [ $+ [ $nick ] ] $site
    set %host. [ $+ [ $nick ] ] $host
    .notice $nick ^COLOR^7Your default information has been successfully registered. If you ever wish to overwrite this, simply retype %c $+ qvregister.
  }
}
#qvchan end

Comments

Sign in to comment.
Bielie   -  Apr 21, 2010

type: /help $ip (or any other identifier)

And check how each of them works.

 Respond  
Kerli   -  Apr 20, 2010

Thanks. I may revise this once I learn more ways to get information, like the real name.

 Respond  
Noutrious   -  Apr 20, 2010

Okay, in my opinion the bot should save the IP addresses, identds, real names etc. itself from the nick and when the nick joins channel, check whether the information is as it is most the time.

Example: http://irc.rootsecure.org/#t (enter for example 'Reklama' as the nick) and see all data gathered for the nick. All this information can be later on used for various security issues.

 Respond  
Kerli   -  Apr 19, 2010

Oh. I need to get familiar with these. I'll fix again.

 Respond  
WorldDMT   -  Apr 19, 2010

not only for $email it's same for $ip too

$ip return your IP

 Respond  
Kerli   -  Apr 18, 2010

Oh. I'll revise the snippet now.

 Respond  
Jethro   -  Apr 18, 2010

For the $email, as WorldDMT said, returns the email address stored in the connection dialog of the client that runs the code, not the person who triggers it.

 Respond  
Kerli   -  Apr 18, 2010

It seems $email is working...

I don't know. My mIRC sets a variable to $email. Also, the $site and $fulladdress would belong to whoever joined.

 Respond  
Jethro   -  Apr 18, 2010

Oh so that is a deprecated identifier, superceded by $emailaddr :P Now I know. =)

 Respond  
WorldDMT   -  Apr 18, 2010

$email = $emailaddr return the email address specified in the connect dialog of your mIRC so that will always return your email not theirs

 Respond  
Kerli   -  Apr 18, 2010

Strange, because it worked for me. When I use //echo $email it returns the email I put in the space for it before first connecting.

 Respond  
Jethro   -  Apr 18, 2010

I don't believe there is an identifier called $email in MSL, unless it is a custom one. But for some reason, it returns a weird symbol to me upon //echo $email

 Respond  
Kerli   -  Apr 18, 2010

You mean it wouldn't set the info of who used the command?

 Respond  
WorldDMT   -  Apr 18, 2010

hi
set %fulladdress. [ $+ [ $nick ] ] $fulladdress
set %site. [ $+ [ $nick ] ] $site
set %email. [ $+ [ $nick ] ] $email
set %host. [ $+ [ $nick ] ] $host

that will set your/your bot info so that will not working

 Respond  
Kerli   -  Apr 18, 2010

Thanks... Do you have any comments to help, Jethro?

 Respond  
Jethro   -  Apr 18, 2010

Yes, Noutrious. If you're going to comment on a snippet, don't just say, "it's totally done wrong." Offer your suggestion or draw up an example as to how to improve it. This will benefit everyone who views the snippet, along with the comments, from learning more.

I've seen people who make comments like,"useless," "boring...etc..etc." They're not constructive and totally uncalled for. Don't be in those group norms.

 Respond  
Kerli   -  Apr 18, 2010

...

Then tell me how to fix it. It works fine, so I don't see how it could be done wrong. I tried something different, since I was having no trouble with my previous snippets I posted.

 Respond  
Noutrious   -  Apr 18, 2010

Totally done wrong.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.