Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote