Java Brute Force Attack Project Please check the code down below and I need a ti
ID: 3712528 • Letter: J
Question
Java Brute Force Attack Project
Please check the code down below and I need a timer.
Also,
my eclipse oxygen shows nothing in console
and
Dr Java is showing numbers and skipping input into console
-------------------------------------------------------------------------------
import java.util.Scanner;
public class Brute {
public static void main(String[] args) {
System.out.print("Please type in a Password to crack");
Scanner input = new Scanner(System.in);
String newinput = input + "";
String[] arr = newinput.split("");
int[] nums = new int[255];
for (int p = 0; p < 255; p++) {
Character.toString ((char) p);
for (char i = (char)p; i < nums.length; i++) {
for (int j = 0; j < arr.length; j++) {
if (i == arr[j].charAt(0)) {
System.out.print((i + arr[j].charAt(0)));
} else {
System.out.print((i + arr[j].charAt(0)));
}
}
}
}
input.close();
}
}
Explanation / Answer
import java.util.Scanner; public class Brute { public static void main(String[] args) { System.out.print("Please type in a Password to crack"); Scanner input = new Scanner(System.in); String newinput = input.next() + ""; String[] arr = newinput.split(""); int[] nums = new int[255]; for (int p = 0; p < 255; p++) { Character.toString((char) p); for (char i = (char) p; iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.