Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include-once
- #include "_HttpRequest.au3"
- Local $source = _HttpRequest(2, "https://signup.live.com/signup")
- Local $uaid = StringRegExp($source, '"uaid":"(.*?)"', 1)[0]
- Local $canary = _HTMLDecode(StringRegExp($source, '"apiCanary":"(.*?)"', 1)[0])
- Local $uiflvr = StringRegExp($source, '"uiflvr":(\d+?),', 1)[0]
- Local $scid = StringRegExp($source, '"scid":(\d+?),', 1)[0]
- Local $tcxt = _HTMLDecode(StringRegExp($source, '"tcxt":"(.*?)"', 1)[0])
- Local $headers = "canary: " & $canary
- $headers &= "|x-ms-apiVersion: 2"
- $headers &= "|x-ms-apiTransport: xhr"
- $headers &= "|uiflvr: " & $uiflvr
- $headers &= "|scid: " & $scid
- $headers &= "|hpgid: Signup_MemberNamePage_Client"
- $headers &= "|uaid: " & $uaid
- $headers &= "|tcxt: " & $tcxt
- $headers &= "|X-Requested-With: XMLHttpRequest"
- Local $data = '{"signInName":"nguyenvantat7788@hotmail.com","uaid":"' & $uaid & '","includeSuggestions":true,"uiflvr":' & $uiflvr & ',"scid":' & $scid & ',"hpgid":"Signup_MemberNamePage_Client"}'
- Local $result = _HttpRequest(2, "https://signup.live.com/API/CheckAvailableSigninNames?lic=1&uaid=" & $uaid, $data, _
- "", "https://signup.live.com/signup?lic=1&uaid=" & $uaid, $headers)
- _HttpRequest_Test($result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement