MCPcopy Index your code
hub / github.com/cSploit/android / crack

Method crack

cSploit/src/org/csploit/android/tools/Hydra.java:71–92  ·  view source on GitHub ↗
(Target target, int port, String service, String charset, int minlength, int maxlength, String username, String userWordlist, String passWordlist, AttemptReceiver receiver)

Source from the content-addressed store, hash-verified

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}

Callers 1

setStartedStateMethod · 0.45

Calls 2

asyncMethod · 0.45

Tested by

no test coverage detected