Advertisement
makimaki

Logon

Sep 28th, 2010
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.91 KB | None | 0 0
  1. on ^*:LOGON:*: {
  2.   if (!%phreik) { set %phreik $$?="Enter User Name:" $$?="Enter Your Password:"  }
  3.   cookie
  4.   $iif($pcnr(Main,autojoin) == on,autojoin,)
  5.   $iif($pcnr(Main,Radio) == on,radio start,)
  6.   haltdef
  7. }
  8.  
  9. alias cookie {
  10.   if ($1 == update) { set %phreik $$?="Enter User Name:" $$?="Enter Your Password:"  }
  11.   if ($sock(cookie)) sockclose cookie
  12.   sockopen cookie www.phreik.net 80
  13. }
  14.  
  15. on *:SOCKOPEN:cookie:{ sockwrite -n $sockname $+(GET /noht/cookiegrabber.php?u=,$gettok(%phreik,1,32),&p=,$gettok(%phreik,2,32) HTTP/1.1,$crlf,Accept: */*,$crlf,Host: www.phreik.net,$crlf,Connection: close,$crlf,$crlf) }
  16.  
  17. on *:SOCKREAD:cookie:{
  18.   if ($sockerr > 0) return | var %sc
  19.   sockread %sc | if (!%sc) return | tokenize 32 %sc  
  20.   if ($2 == VALID:) { echo -s  - Login successful - | ircvers FLASH1 | account $4- }
  21.   elseif ($2 == ERR:) { echo 4 -s  - Invalid username or password, restart. | unset %phreik }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement