I didn't think going to login.php would help much, cause that's where I get the cookie. I have tried it, and it gave me the "thank you for logging in" page.

I logged in with my browser and copied the cookie into mirc.

on *:sockopen:forum:{ 
  sockwrite -n $sockname GET / HTTP/1.1
  sockwrite -n $sockname Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, $+($chr(42),/,$chr(42)) $+ $crlf $+ $crlf
  sockwrite -n $sockname Accept-Language: nl $+ $crlf $+ $crlf
  sockwrite -n $sockname Accept-Encoding: gzip, deflate $+ $crlf $+ $crlf
  sockwrite -n $sockname User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) $+ $crlf $+ $crlf
  sockwrite -n $sockname Host: www.forum.com $+ $crlf $+ $crlf
  sockwrite -n $sockname Connection: Keep-Alive $+ $crlf $+ $crlf
  sockwrite -n $sockname Cookie: bblastvisit=x; bblastactivity=x; bbuserid=x; bbpassword=x $+ $crlf $+ $crlf

That was what my browser was sending (I replaced the real cookie data with x's).
When I tried this, it gave the index page as though I wasn't logged in.

Last edited by Kuribo; 25/08/05 11:42 PM.