Adding Additional Protocols to Hydra
Hydra is structured in a very modular way, and therefore adding support for an additional protocol requires that Hydra support the defined module interface.
Each protocol is implemented in a file called
hydra-
<service name>
.c containing a function
prototype:
void service_<service name> (unsigned long int ip, int sp, unsigned char options,
char *miscptr, FILE *fp, int port);The options passed to the service function are outlined in Table 3-2.
Table 3-2. Service function parameters
|
Parameter |
Description |
|---|---|
ip |
|
sp |
|
options |
|
miscptr |
|
fp |
|
port |
If the user has defined a port to connect to, it is contained in
|
Once the service file has been written, integrating the modules into Hydra is simple:
Add the new hydra-
<service>into the relevant areas within the Makefile.am file.Edit the hydra.c file to add a reference ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access