Advertisement
ksamk_99491

Untitled

May 8th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Public useranget As String
  2. Public useranget1 As String
  3.  
  4.  
  5. Public Sub getcsrf()
  6. Dim webClient As WebClient = New WebClient()
  7. Dim text As String = webClient.DownloadString("https://pastebin.com/raw/mNfUkgnq")
  8. Dim flag As Boolean = text.Contains(":")
  9. If flag Then
  10. Dim array As String() = text.Split(New Char() {":"c})
  11. Me.useranget = array(0)
  12. Me.useranget1 = array(1)
  13. End If
  14. End Sub
  15.  
  16.  
  17.  
  18. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  19. Me.getcsrf()
  20. End Sub
  21.  
  22.  
  23. httpWebRequest.UserAgent = Me.useranget1
  24. webClient.Headers.Add("User-Agent", Me.useranget)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement