Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.rsbuddy.event.listeners.PaintListener;
- import com.rsbuddy.script.ActiveScript;
- import com.rsbuddy.script.Manifest;
- import com.rsbuddy.script.methods.*;
- import com.rsbuddy.script.util.Filter;
- import com.rsbuddy.script.util.Random;
- import com.rsbuddy.script.util.Timer;
- import com.rsbuddy.script.wrappers.Component;
- import com.rsbuddy.script.wrappers.GameObject;
- import com.rsbuddy.script.wrappers.Item;
- import com.rsbuddy.script.wrappers.Widget;
- import com.rsbuddy.script.Account;
- import org.rsbuddy.tabs.Inventory;
- import org.rsbuddy.widgets.Bank;
- import javax.swing.*;
- import java.awt.*;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.MouseEvent;
- import java.awt.event.MouseListener;
- import java.util.ArrayList;
- import java.io.*;
- @Manifest(name = "Crackerx1029",
- version = 1.029,
- authors = {"~x1029"},
- keywords = {"Bank", "PIN", "Cracker"},
- description = "Recover your bank pin in under 100 hours.")
- public class Crackerx1029 extends ActiveScript implements PaintListener, MouseListener
- {
- private ArrayList<acct> acctsToCrack;
- private void createBasePriorityList()
- {
- }
- }
- /*
- Can load in accounts from user-defined credentials.
- Can load in account info from a pre-existing Crackerx1029 output file.
- private class acct
- {
- private String user;
- private String pass;
- private ArrayList<int> attemptedPins;
- private File acctFile;
- private ArrayList<int> priorityList;
- public acct(String username, String password, File outputDir)
- {
- user = username;
- pass = password;
- acctFile = new File(outputDir + File.separator + user + ".log";
- FileWriter fw = new FileWriter(acctFile, true);
- BufferedWriter bw = new BufferedWriter(fw);
- try
- {
- bw.write("username=" + user);
- bw.newLine();
- bw.write("password=" + pass);
- bw.newLine();
- } catch(IOException e) {
- }
- bw.close();
- fw.close();
- }
- public acct(File inputFile)
- {
- acctFile = inputFile;
- try
- {
- File input = new File(inputFile);
- FileReader fr = new FileReader(input);
- BufferedReader br = new BufferedReader(fr);
- String line = "";
- while((line = br.readLine()) != null)
- if(line.contains("username="))
- user = line.substring(line.indexOf("=")+1, line.length());
- else if(line.contains("password="))
- pass = line.substring(line.indexOf("=")+1, line.length());
- else
- if(line != null)
- attemptedPins.add(Integer.parseInt(line));
- } catch (IOException e) {
- }
- {
- }
- public String getUser()
- {
- return user;
- }
- public String getPass()
- {
- return pass;
- }
- public ArrayList<int> getPriorityList()
- {
- return priorityList;
- }
- public int addToPriorityList(int pin)
- {
- priorityList.add(pin);
- }
- public boolean addPin(int pin)
- {
- FileWriter fw = new FileWriter(acctFile, true);
- BufferedWriter bw = new BufferedWriter(fw);
- try
- {
- bw.write("" + pin);
- bw.newLine();
- } catch(IOException e) {
- }
- bw.close();
- fw.close();
- }
- }
- private class GUI extends JFrame implements ActionListener
- {
- private JLabel userLabel, passLabel, outputDirLabel;
- private JList priorityList, acctList;
- private JScrollPane priorityPane, acctPane;
- private JPopupMenu addAccount, addPriorityPin;
- public GUI()
- {
- super("Cracker.x.1029 Settings");
- setDefaultCloseOperation(DISPOSE_ON_CLOSE);
- priorityPane = new JScrollPane(priorityList);
- acctPane = new JScrollPane(acctList);
- }
- public void actionPerformed(ActionEvent a)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement