Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Function method_0(string_6 As String) As Object
- Dim result As Object = False
- Application.DoEvents()
- Try
- Guid.NewGuid().ToString().ToUpper()
- Me.string_1.Split(New Char() { "|"c })
- Dim str As String = Guid.NewGuid().ToString().ToUpper()
- Dim stringBuilder As StringBuilder = New StringBuilder()
- Dim stringBuilder2 As StringBuilder = stringBuilder
- Dim text As String = String.Concat(New String() { "" })
- text = String.Format("{0}.{1}", Form1.smethod_0(text, "b03e0daaf2ab17cda2a569cace938d639d1288a1197f9ecf97efd0a4ec0874d7"), text)
- stringBuilder2.AppendLine("--" + str)
- stringBuilder2.AppendLine("Content-Disposition: form-data; name=""signed_body""")
- stringBuilder2.AppendLine()
- stringBuilder2.AppendLine(text)
- stringBuilder2.AppendLine("--" + str)
- stringBuilder2.AppendLine("Content-Disposition: form-data; name=""ig_sig_key_version""")
- stringBuilder2.AppendLine()
- stringBuilder2.AppendLine("4")
- stringBuilder2.Append("--" + str + "--")
- Dim bytes As Byte() = Encoding.UTF8.GetBytes(stringBuilder.ToString())
- Dim httpWebRequest As HttpWebRequest = CType(WebRequest.Create("https://i.instagram.com/api/v1/feed/user/" + string_6 + "/username/"), HttpWebRequest)
- httpWebRequest.AutomaticDecompression = DecompressionMethods.GZip
- httpWebRequest.Method = "POST"
- httpWebRequest.Host = "i.instagram.com"
- httpWebRequest.UserAgent = "Instagram 26.15.0 Android (18/4.3; 320dpi; 720x1280; Xiaomi; HM 1SW; armani; qcom; en_US)"
- httpWebRequest.Headers.Add("Accept-Language", "ar;q=1, en;q=0.9")
- httpWebRequest.KeepAlive = True
- httpWebRequest.Proxy = Nothing
- httpWebRequest.ContentType = "multipart/form-data; boundary=" + str
- httpWebRequest.ContentLength = CLng(bytes.Length)
- httpWebRequest.CookieContainer = Me.cookieContainer_0
- Dim requestStream As Stream = httpWebRequest.GetRequestStream()
- requestStream.Write(bytes, 0, bytes.Length)
- requestStream.Close()
- Dim httpWebResponse As HttpWebResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
- Using streamReader As StreamReader = New StreamReader(httpWebResponse.GetResponseStream())
- If streamReader.ReadToEnd().Contains("auto_load_more_enabled") Then
- result = False
- Else
- result = True
- End If
- If streamReader.ReadToEnd().Contains("wait") Then
- result = True
- End If
- streamReader.Close()
- End Using
- httpWebResponse.Close()
- Catch ex As Exception
- result = False
- End Try
- Return result
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement