mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
Fix conditional compilation when the proper libs are not present
This commit is contained in:
parent
e57f97417d
commit
0d4bcb548f
2 changed files with 4 additions and 4 deletions
|
@ -134,8 +134,6 @@ void service_mcached(char *ip, int32_t sp, unsigned char options, char *miscptr,
|
|||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int32_t service_mcached_init(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE * fp, int32_t port, char *hostname) {
|
||||
// called before the childrens are forked off, so this is the function
|
||||
// which should be filled if initial connections and service setup has to be
|
||||
|
@ -177,3 +175,5 @@ int32_t service_mcached_init(char *ip, int32_t sp, unsigned char options, char *
|
|||
sock = hydra_disconnect(sock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -143,8 +143,6 @@ void service_mongodb(char *ip, int32_t sp, unsigned char options, char *miscptr,
|
|||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int32_t service_mongodb_init(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE * fp, int32_t port, char *hostname) {
|
||||
// called before the childrens are forked off, so this is the function
|
||||
// which should be filled if initial connections and service setup has to be
|
||||
|
@ -179,6 +177,8 @@ int32_t service_mongodb_init(char *ip, int32_t sp, unsigned char options, char *
|
|||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void usage_mongodb(const char* service) {
|
||||
printf("Module mongodb is optionally taking a database name to attack, default is \"admin\"\n\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue