Advertisement
Guest User

mIRC api_user_key script

a guest
Aug 31st, 2012
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.75 KB | None | 0 0
  1. alias pastelogin {
  2.   sockclose Pastebin~
  3.   set %PasteLogin api_dev_key= $+ $$1 $+ &api_user_name= $+ $$2 $+ &api_user_password= $+ $$3
  4.   sockopen Pastebin~ pastebin.com 80
  5. }
  6.  
  7. on *:SOCKOPEN:Pastebin~: {
  8.   sockwrite -n Pastebin~ POST /api/api_login.php HTTP/1.1
  9.   sockwrite -n Pastebin~ Host: pastebin.com
  10.   sockwrite -n Pastebin~ Content-Type: application/x-www-form-urlencoded
  11.   sockwrite -n Pastebin~ Content-length: $len(%PasteLogin)
  12.   sockwrite Pastebin~ $crlf
  13.   sockwrite Pastebin~ %PasteLogin
  14. }
  15.  
  16. on *:SOCKREAD:Pastebin~: {
  17.   var %P
  18.   sockread %P
  19.   while ($sockbr) {
  20.     echo -ag %P
  21.     if ($regex(%P,/^[a-z\d]{20,40}$/) > 0) {
  22.       echo -ag %P
  23.       unset %PasteLogin
  24.       sockclose Pastebin~
  25.       return
  26.     }
  27.     sockread %P
  28.   }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement