Guest User

Untitled

a guest
Sep 14th, 2011
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. alias google_login {
  2. unset %gcookies
  3. sockclose googlelogin*
  4. write -c temp1.html
  5. write -c temp2.html
  6. write -c temp3.html
  7. write -c temp4.html
  8. if (!%google_user) set %google_user $$?="What is your google email address? $+ $crlf $+ Typing /unset % $+ google_pass or /unset % $+ google_user will remove the password/username."
  9. if (!%google_pass) set %google_pass $$?="What is your google password? $+ $crlf $+ Typing /unset % $+ google_pass or /unset % $+ google_user will remove the password/username."
  10. sockopen googlelogin1 www.google.com 80
  11. }
  12. on *:SOCKOPEN:googlelogin1:{
  13. sockwrite -n $sockname GET / HTTP/1.1
  14. sockwrite -n $sockname Host: $sock($sockname).addr $+ $str($crlf,2)
  15. }
  16. on *:SOCKREAD:googlelogin1:{
  17. var %x | sockread -f %x
  18. write temp1.html %x
  19. echo -a %x
  20. if (Location: * iswm %x) {
  21. sockclose $sockname
  22. sockopen googlelogin1 $remove(%x,http:,/,Location:,$chr(32)) 80
  23. echo 4 -a Switch!
  24. }
  25. elseif (Set-Cookie: * iswm %x) { set %gcookies %gcookies $remove($gettok(%x,2,32),;) $+ ; | echo 4 -a %gcookies }
  26. elseif (*<html>* iswm %x) {
  27. sockclose $sockname
  28. sockopen -e googlelogin2 accounts.google.com 443
  29. }
  30. }
  31. on *:SOCKOPEN:googlelogin2:{
  32. sockwrite -n $sockname GET /ServiceLogin?hl=en&continue=http://www.google.com.au/ HTTP/1.1
  33. sockwrite -n $sockname Host: $sock($sockname).addr
  34. sockwrite -n $sockname Cookie: %gcookies $+ $str($crlf,2)
  35. }
  36. on *:SOCKREAD:googlelogin2:{
  37. var %x | sockread -f %x
  38. write temp2.html %x
  39. echo -a %x
  40. elseif (Set-Cookie: * iswm %x) { set %gcookies %gcookies $remove($gettok(%x,2,32),;) $+ ; | echo 4 -a %gcookies }
  41. elseif (*<html>* iswm %x) {
  42. sockclose $sockname
  43. sockopen -e googlelogin3 accounts.google.com 443
  44. echo 4 -a Switch2 :o
  45. }
  46. }
  47. on *:SOCKOPEN:googlelogin3:{
  48. var %x pstMsg=1&dnConn=https%3A%2F%2Faccounts.youtube.com&continue=http%3A%2F%2Fwww.google.com.au%2F&dsh=952531576245130717&hl=en&timeStmp=&secTok=&GALX=vPRzjlliZ_Y&Email= $+ %google_user $+ &Passwd= $+ %google_pass $+ &PersistentCookie=yes&rmShown=1&signIn=Sign+in&asts=
  49. sockwrite -n $sockname POST /ServiceLoginAuth HTTP/1.1
  50. sockwrite -n $sockname Host: $sock($sockname).addr
  51. sockwrite -n $sockname Cookie: %gcookies
  52. sockwrite -n $sockname Content-type: application/x-www-form-urlencoded
  53. sockwrite -n $sockname Content-length: $len(%x)
  54. sockwrite -n $sockname $crlf $+ %x $+ $str($crlf,2)
  55. }
  56. on *:SOCKREAD:googlelogin3:{
  57. var %x | sockread -f %x
  58. echo -a %x
  59. write temp3.html %x
  60. elseif (Set-Cookie: * iswm %x) { set %gcookies %gcookies $remove($gettok(%x,2,32),;) $+ ; | echo 4 -a %gcookies }
  61. elseif (*<html>* iswm %x) {
  62. echo 4 -a TESTING!
  63. sockclose $sockname
  64. sockopen googlelogin4 google.com.au 80
  65. }
  66. }
  67. on *:SOCKOPEN:googlelogin4:{
  68. sockwrite -n $sockname GET / HTTP/1.1
  69. sockwrite -n $sockname Host: $sock($sockname).addr
  70. sockwrite -n $sockname Cookie: %gcookies $+ $str($crlf,2)
  71. }
  72. on *:SOCKREAD:googlelogin4:{
  73. var %x | sockread -f %x
  74. echo -a %x
  75. write temp4.html %x
  76. if (Location: * iswm %x) {
  77. tokenize 32 %x
  78. sockclose $sockname
  79. sockopen googlelogin4 $remove($2,http:,/) 80
  80. Echo 4 -a Switching to $2 >.>
  81. }
  82. }
Advertisement
Add Comment
Please, Sign In to add comment