diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml
new file mode 100644
index 0000000..02b915b
--- /dev/null
+++ b/.idea/git_toolbox_prj.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/remote-targets.xml b/.idea/remote-targets.xml
new file mode 100644
index 0000000..92372d3
--- /dev/null
+++ b/.idea/remote-targets.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/fr/motysten/usertwist/exploit/tools/Parser.java b/src/fr/motysten/usertwist/exploit/tools/Parser.java
index 2ce115f..79a525e 100644
--- a/src/fr/motysten/usertwist/exploit/tools/Parser.java
+++ b/src/fr/motysten/usertwist/exploit/tools/Parser.java
@@ -15,18 +15,22 @@ public class Parser {
}
}
- public static void asyncGetPass(JSONArray usersArray, int rotation) {
+ public static void asyncGetPass(JSONArray usersArray, int rotation) throws InterruptedException {
for (int i = 0; i < usersArray.length(); i++) {
int finalI = i;
- new Thread(() -> {
+
+ Runnable r = () -> {
JSONObject user = usersArray.getJSONObject(finalI);
String login = user.getString("username");
String password = Cesar.rotate(user.getString("data"), rotation);
System.out.println((finalI + 1) + ". " + login + " => " + password);
- }).start();
+ };
+
+ Thread t = Thread.startVirtualThread(r);
+ t.join();
}
}