Home > Uncategorized > fake ctcp with kvirc

fake ctcp with kvirc

Here is how I hide my client information on IRC. I had this OnCTCPRequest event handler:

if($4 == "version")
{
	#%version="applet v.1526 -- os = Windows XP 5.1 -- java = Sun Microsystems Inc. 1.6.0-beta"
	%version="applet v.1494 -- os = Linux 2.6.17-1-686 -- java = Sun Microsystems Inc. 1.5.0_07"
	ctcp -n $3 $4 %version
}
if($4 != "ping") halt
Advertisements
Tags:
  1. October 1, 2008 at 20:01

    It’s not working right. The client wrote both answer, true and fake. Also weechat 0.1.7 wrote only true answer.

    • Scotty
      May 2, 2009 at 07:51

      The newer kvirc has made a small change to prevent fake version response. it isn’t too hard to edit the file before compiling so that all that exist is a blank version response. then what ever you type in the append box is your version reply. this is cool because it can be changed on the fly :)

  2. Easy way
    June 14, 2011 at 21:06

    Just add halt behind the ctcp -n $3 $4 %version and the fake response is sent alone
    if($4 == “version”)
    {
    %version=”BigbrotherIrc v1.99 — os = Whateveryouwant”
    ctcp -n $3 $4 %version
    halt
    }

  3. npax
    October 14, 2011 at 19:29

    In the last version 4.0.4 this don’t work. It shows the version only to me, not to the others.
    And with halt on non “ping” I can’t see /me messages from the others too.
    Here is how I change my ctcp version
    OnCTCPRequest event handler:

    if($4 == “version”)
    {
    %version=”Your version here”
    ctcp -n $0 $4 %version
    echo “CTCP $4 request from $0!$1@$2”
    halt
    }
    if($4 == “userinfo”) { echo “CTCP $4 request from $0!$1@$2”; halt; }
    if($4 == “clientinfo”) { echo “CTCP $4 request from $0!$1@$2”; halt; }
    if($4 == “finger”) { ctcp -n $0 $4 “Gives You a Finger”; echo “CTCP $4 request from $0!$1@$2”; halt; }
    if($4 == “source”) { echo “CTCP $4 request from $0!$1@$2”; halt; }
    if($4 == “time”) { ctcp -n $0 $4 “It’s time to buy a watch!”; echo “CTCP $4 request from $0!$1@$2”; halt; }
    if($4 == “avatar”) { echo “CTCP $4 request from $0!$1@$2”; halt; }

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: