Advertisement
Guest User

Untitled

a guest
Jun 14th, 2019
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.19 KB | None | 0 0
  1. #include-once
  2. #include "_HttpRequest.au3"
  3.  
  4. Local $source = _HttpRequest(2, "https://signup.live.com/signup")
  5.  
  6. Local $uaid = StringRegExp($source, '"uaid":"(.*?)"', 1)[0]
  7. Local $canary = _HTMLDecode(StringRegExp($source, '"apiCanary":"(.*?)"', 1)[0])
  8. Local $uiflvr = StringRegExp($source, '"uiflvr":(\d+?),', 1)[0]
  9. Local $scid = StringRegExp($source, '"scid":(\d+?),', 1)[0]
  10. Local $tcxt = _HTMLDecode(StringRegExp($source, '"tcxt":"(.*?)"', 1)[0])
  11.  
  12. Local $headers = "canary: " & $canary
  13. $headers &= "|x-ms-apiVersion: 2"
  14. $headers &= "|x-ms-apiTransport: xhr"
  15. $headers &= "|uiflvr: " & $uiflvr
  16. $headers &= "|scid: " & $scid
  17. $headers &= "|hpgid: Signup_MemberNamePage_Client"
  18. $headers &= "|uaid: " & $uaid
  19. $headers &= "|tcxt: " & $tcxt
  20. $headers &= "|X-Requested-With: XMLHttpRequest"
  21.  
  22. Local $data = '{"signInName":"nguyenvantat7788@hotmail.com","uaid":"' & $uaid & '","includeSuggestions":true,"uiflvr":' & $uiflvr & ',"scid":' & $scid & ',"hpgid":"Signup_MemberNamePage_Client"}'
  23.  
  24. Local $result = _HttpRequest(2, "https://signup.live.com/API/CheckAvailableSigninNames?lic=1&uaid=" & $uaid, $data, _
  25.         "", "https://signup.live.com/signup?lic=1&uaid=" & $uaid, $headers)
  26. _HttpRequest_Test($result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement