I'm not sure what it is, but after opening a socket using sockopen -e, i'm just not getting any response back from the server. i'm wanting to connect to messenger using the protocol 15.
alias email return bzerk_10@msn.com
alias msnlogin {
sockopen initial messenger.hotmail.com 1863
}
on *:SOCKOPEN:initial: {
sockwrite -n $sockname VER 0 MSNP15 CVR0
}
on *:SOCKREAD:initial: {
var %x | sockread %x | tokenize 32 %x
echo -a %x
if ($1-3 == VER 0 MSNP15) {
sockwrite -n $sockname CVR 1 0x0409 winnt 5.1 i386 MSNMSGR 8.0.0328 msmsgs bzerk_10@msn.com
}
elseif ($1-2 == CVR 1) {
sockwrite -n $sockname USR 2 TWN I bzerk_10@msn.com
}
; redirection (need to use ssl when connecting to switchboard server - sockopen -e)
elseif ($1 == XFR) {
var %ip = $gettok($4,1,58)
sockopen -e switchboard %ip 1863
}
}
on *:SOCKOPEN:switchboard: {
sockwrite -n $sockname VER 0 MSNP15 CVR0
}
on *:SOCKREAD:switchboard: {
var %x | sockread %x | tokenize 32 %x
echo -a %x
}
The switchboard socket just seems to close after i send:
sockwrite -n $sockname VER 0 MSNP15 CVR0
This is the documentation that I'm following:
http://209.85.229.132/search?q=cache:mvF1xSZB0IcJ:www.csse.monash.edu.au/courseware/cse1370/2006/Chat/mosim.doc+msnp14+authentication&cd=8&hl=en&ct=clnk&gl=uk
I hope someone can help me out here