(Target target, int port, String service, String charset, int minlength, int maxlength, String username, String userWordlist, String passWordlist, AttemptReceiver receiver)
| 69 | } |
| 70 | |
| 71 | public Child crack(Target target, int port, String service, String charset, int minlength, int maxlength, String username, String userWordlist, String passWordlist, AttemptReceiver receiver) throws ChildManager.ChildNotStartedException { |
| 72 | String command = "-F "; |
| 73 | |
| 74 | if(userWordlist != null) |
| 75 | command += "-L " + userWordlist; |
| 76 | |
| 77 | else |
| 78 | command += "-l " + username; |
| 79 | |
| 80 | if(passWordlist != null) |
| 81 | command += " -P " + passWordlist; |
| 82 | |
| 83 | else |
| 84 | command += " -x \"" + minlength + ":" + maxlength + ":" + charset + "\" "; |
| 85 | |
| 86 | command += " -s " + port + " -V -t 10 " + target.getCommandLineRepresentation() + " " + service; |
| 87 | |
| 88 | if(service.equalsIgnoreCase("http-head")) |
| 89 | command += " /"; |
| 90 | |
| 91 | return super.async(command, receiver); |
| 92 | } |
| 93 | } |
no test coverage detected