Advertisement
Soren805

Untitled

Jul 12th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.65 KB | None | 0 0
  1. Private Sub SystemLoad()
  2.         Try
  3.             Log(Prefix & " Resolving target...")
  4.  
  5.             Using req As New HttpRequest
  6.                 req.IgnoreProtocolErrors = True
  7.                 req.Cookies = New CookieStorage(False)
  8.                 req.UserAgent = Http.RandomUserAgent
  9.  
  10.                 If Main.ComboBox1.SelectedIndex = 0 Then
  11.                     Dim P As String = Main.Proxies(New Random().Next(Main.ProxiesCount)).ToString
  12.                     req.Proxy = New HttpProxyClient(P.Split(":")(0), P.Split(":")(1))
  13.  
  14.                     Log(Prefix & " Using proxy " & P)
  15.                 ElseIf Main.ComboBox1.SelectedIndex = 1 Then
  16.                     Dim P As String = Main.Proxies(New Random().Next(Main.ProxiesCount)).ToString
  17.                     req.Proxy = New Socks4ProxyClient(P.Split(":")(0), P.Split(":")(1))
  18.  
  19.                     Log(Prefix & " Using proxy " & P)
  20.                 ElseIf Main.ComboBox1.SelectedIndex = 2 Then
  21.                     Dim P As String = Main.Proxies(New Random().Next(Main.ProxiesCount)).ToString
  22.                     req.Proxy = New Socks5ProxyClient(P.Split(":")(0), P.Split(":")(1))
  23.  
  24.                     Log(Prefix & " Using proxy " & P)
  25.                 End If
  26.  
  27.                 req.ConnectTimeout = Convert.ToInt32(Link.Split("|")(2))
  28.                 req.KeepAliveTimeout = Convert.ToInt32(Link.Split("|")(2))
  29.                 req.ReadWriteTimeout = Convert.ToInt32(Link.Split("|")(2))
  30.  
  31.                 Dim Respo As String = req.Post(Link.Split("|")(1)).ToString
  32.                 ResolveTarget(Respo)
  33.             End Using
  34.         Catch ex As Exception
  35.             LogError(ex)
  36.         End Try
  37.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement