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
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();
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
