|
Sunday, 19 March 2006 |
MD5-identification For secure authentication with NickServ, SorceryNet provides a method to authenticate using MD5. MD5 is a one-way encryption algorithm usually used for verifying data integrity. This authentication is done using the identify-md5 command and a typical sessions looks like this: - First you request some random text called the cookie:
/NickServ identify-md5 The response will be something like: 205 S/MD5 1.0 c2096ab:b2ed This means your cookie is "c2096ab:b2ed". This text is unique for this particular session, and it ensures that each of your responses is unique. Eavesdropping will be useless. - The next step is to build the response. To be able to compare the final result, NickServ needs to duplicate these operations. As NickServ does not have your actual password, only a MD5 hash of it, you need to authenticate using the MD5 hash rather than the actual password. The response is made by joining your nickname in lowercase, the cookie and the (hexadecimal) MD5 hash of your password by colons. So in Perl for example: $response = join(':', lc($nick), $cookie, md5_hex($password))
- Now you can authenticate by sending the hexadecimal MD5 hash of this response back to NickServ, for example:
/NickServ identify-md5 3cd7a0db76ff9dca48979e24c39b408c SorceryNet users have already written MD5 authentication scripts for the following clients: Irssi You need to have an Irssi with Perl support and the Perl module Digest::MD5 for this script to work. - Download identify-md5.pl and place it in your Irssi scripts autorun directory (usually ~/.irssi/scripts/autorun).
- Open it in your favourite editor and follow the instructions in the file for adding your nicknames and passwords.
- Fire up Irssi and identify using the new /identify-md5 command.
mIRC In your remotes add: on *:NOTICE:205 S/MD5 1.0*:?:{ set %MD5cookie $4 | md5 } on *:NOTICE:This nick belongs to another user.*:?:{ msg Nickserv identify-md5 } alias md5 { { set %hash $lower($me) $+ : $+ %MD5cookie $+ : $+ $md5(YourPasswordHere) } { msg nickserv identify-md5 $me $md5(%hash) } } This script was written by Tony Vroon. Download and install this perl-script, written by Allan Preston. MemoServ notification This script adds a little counter to your status bar and uses it to display the number of memos you have in your MemoServ inbox. Irssi Download it here: memoservbar.pl.
|
|
Last Updated ( Sunday, 10 September 2006 )
|