ASE Labs
Welcome Guest. Please register or log in now. There are 83 people online (0 Friends).
  • Home
  • Articles
  • News
  • Forum
  • Register/Login

[xchat IRC plugin] QuakeNet Q challenge-response auth

There are 3 messages in this topic Watch this topic for replies Subscribe to this topic
Add Reply Back to forum "Software Discussion" Back to Index
free::zombie Avatar Joined: December 6, 2005 Status: Offline Posts: 930 Rep: PIP Level 2 (11347)PIP Level 2 (11347)PIP Level 2 (11347)PIP Level 2 (11347)PIP Level 1 (11347)
[xchat IRC plugin] QuakeNet Q challenge-response auth Old Sat Jul 22, 2006 1:39:56 AM #19278 Perm Link
for no particular reason, I decided to go on QuakeNet IRC today and was immediately fascinated by Q Smile
anyway, I wrote a little python xchat plugin that supports Q's Challenge-response auth, a feature which FreeNode's NickServ has not. This way, your password is not sent over the network plain text.

Code

# to autoload, put into the xchat directory, for example as ~/.xchat2/qauth.py
# commands:
#  /QAUTH <password> auth to Q via challenge-response on QuakeNet
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
#
# have fun !

[code]
__module_name__ = "qauth"
__module_version__ = "0.1"
__module_description__ = "Q challenge-response authentication"

import xchat
from md5 import md5

pw = ''

def qauth_cb(word, word_eol, udata):
    if len(word) < 2:
        print 'You must give a password.'
    elif 'quakenet' not in xchat.get_info('server').lower():
        print 'You do not seam to be on QuakeNet.'
    else:
        global pw
        pw = word[1]
        xchat.command('MSG Q@CServe.quakenet.org CHALLENGE')
    return xchat.EAT_ALL

def notice_cb(word, word_eol, udata):
    if word[0] == ':Q!TheQBot@CServe.quakenet.org' and word[3] == ":CHALLENGE":
        if word[4] != "MD5":
            print "Q wants me to use the unknown hashing algorithm %s."
            print "You may want to update qauth.py."
        else:
            global pw
            xchat.command('MSG Q@CServe.quakenet.org CHALLENGEAUTH %s %s'
                % (word[2], md5(pw+' '+word[5]).hexdigest()))
            pw = ''


xchat.hook_command('QAUTH', qauth_cb,
    help='/QAUTH <passwd> auth to Q via challenge-response on QuakeNet')
xchat.hook_server('NOTICE', notice_cb)


Reply Quote Multi-Quote-Off Send PM Profile
Aron Schatz Avatar 2014: Year of change. Joined: August 3, 2001 Status: Offline Posts: 10753 Rep: PIP Level 3 (332767)PIP Level 3 (332767)PIP Level 3 (332767)PIP Level 3 (332767)PIP Level 1 (332767)
Re: [xchat IRC plugin] QuakeNet Q challenge-response auth Old Sat Jul 22, 2006 4:43:32 AM #19279 Perm Link
In response to free::zombie #19278
???

What's this for?

2014 is going to be a good year. More content, more streamlining. Be a part of history!
Reply Quote Multi-Quote-Off Send PM Profile
SHCaseRtoZ Avatar I don't quote Joined: September 2, 2005 Status: Offline Posts: 1189 Rep: PIP Level 2 (3520)PIP Level 2 (3520)PIP Level 1 (3520)PIP Level 1 (3520)PIP Level 1 (3520)
Re[2]: [xchat IRC plugin] QuakeNet Q challenge-response auth Old Sat Jul 22, 2006 10:02:09 AM #19291 Perm Link
In response to Aron Schatz #19279
Of course.

-SHCase
Reply Quote Multi-Quote-Off Send PM Profile
Page: [1]
Add Reply Back to forum "Software Discussion" Back to Index

Quick Reply

Login
Welcome Guest. Please register or log in now.
Forgot your password?
Navigation
  • Home
  • Articles
  • News
  • Register/Login
  • Shopping
  • ASE Forums
  • Anime Threads
  • HardwareLogic
  • ASE Adnet
Latest News
  • Kingston HyperX Cloud 2 Pro Gaming Headset Unboxing
  • Synology DS415+ Unboxing
  • D-Link DCS-5020L Wireless IP Pan/Tilt IP Camera
  • Actiontec WiFi Powerline Network Extender Kit Unboxing
  • Durovis Dive Unboxing
  • Bass Egg Verb Unboxing
  • Welcome to the new server
  • Gmail Gets Optional Preview Pane
  • HBO Go on Consoles
  • HP Touchpad Update
Latest Articles
  • D-Link Exo AC2600 Smart Mesh Wi-Fi Router DIR-2660-US
  • HyperX Double Shot PBT Keys
  • Avantree ANC032 Wireless Active Noise Cancelling Headphones
  • ScharkSpark Beginner Drones
  • HyperX Alloy FPS RGB Mechanical Gaming Keyboard
  • D-Link DCS-8300LH Full HD 2-Way Audio Camera
  • Contour Unimouse Wireless Ergonomic Mouse
  • HyperX Cloud Alpha Pro Gaming Headset
  • Linksys Wemo Smart Home Suite
  • Fully Jarvis Adjustable Standing Desk
Latest Topics
  • Hello
  • Welcome to the new server at ASE Labs
  • Evercool Royal NP-901 Notebook Cooler at ASE Labs
  • HyperX Double Shot PBT Keys at ASE Labs
  • Avantree ANC032 Wireless Active Noise Cancelling Headphones at ASE Labs
  • ScharkSpark Beginner Drones at ASE Labs
  • HyperX Alloy FPS RGB Mechanical Gaming Keyboard at ASE Labs
  • D-Link DCS-8300LH Full HD 2-Way Audio Camera at ASE Labs
  • Kingston SDX10V/128GB SDXC Memory at ASE Labs
  • What are you listening to now?
  • Antec Six Hundred v2 Gaming Case at HardwareLogic
  • Sans Digital TR5UTP 5-Bay RAID Tower at HardwareLogic
  • Crucial Ballistix Smart Tracer 6GB PC3-12800 BL3KIT25664ST1608OB at HardwareLogic
  • Cooler Master Storm Enforcer Mid-Tower Gaming Case at HardwareLogic
  • Arctic M571-L Gaming Laser Mouse at ASE Labs
  • Contour Unimouse Wireless Ergonomic Mouse at ASE Labs
Press Release
  • Huntkey Has Launched Its New Power Strips with USB Chargers on Amazon US
  • Inspur Releases TensorFlow-Supported FPGA Compute Acceleration Engine TF2
  • Hot Pepper Introduces Spicy New Smartphones in US Markets
  • Sharp Introduces New Desktop Printers For The Advanced Office
  • DJI Introduces Mavic 2 Pro And Mavic 2 Zoom: A New Era For Camera Drones
  • DJI Introduces Mavic 2 Pro And Mavic 2 Zoom: A New Era For Camera Drones
  • Fujifilm launches "instax SQUARE SQ6 Taylor Swift Edition", designed by instax global partner Taylor Swift
  • Huawei nova 3 With Best-in-class AI Capabilities Goes on Sale Today
  • Rand McNally Introduces Its Most Advanced Dashboard Camera
  • =?UTF-8?Q?My_Size_to_Showcase_Its_MySizeId=E2=84=A2_Mobil?= =?UTF-8?Q?e_Measurement_Technology_at_CurvyCon_NYC?=
Home - ASE Publishing - About Us
© 2010 Aron Schatz (ASE Publishing) [Queries: 17 (9 Cached)] [Rows: 363 Fetched: 58] [Page Generation time: 0.021585941314697]