From 0d4bcb548f426cd8dbcf3a76b81439f892d735b3 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Wed, 20 Mar 2019 11:35:35 +0800 Subject: [PATCH] Fix conditional compilation when the proper libs are not present --- hydra-memcached.c | 4 ++-- hydra-mongodb.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hydra-memcached.c b/hydra-memcached.c index 83970fd..9065c1e 100644 --- a/hydra-memcached.c +++ b/hydra-memcached.c @@ -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 diff --git a/hydra-mongodb.c b/hydra-mongodb.c index c5b69a6..9dd9a6a 100644 --- a/hydra-mongodb.c +++ b/hydra-mongodb.c @@ -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"); }