beauty output

This commit is contained in:
van Hauser 2017-07-08 15:11:13 +02:00
commit 0a4f0987d1

44
hydra.c
View file

@ -2124,30 +2124,38 @@ int32_t main(int32_t argc, char *argv[]) {
struct sockaddr_in *ipv4 = NULL;
printf("%s %s (c) 2017 by %s - Please do not use in military or secret service organizations, or for illegal purposes.\n\n", PROGRAM, VERSION, AUTHOR);
#ifndef LIBPOSTGRES
SERVICES = hydra_string_replace(SERVICES, "postgres ", "");
strcat(unsupported, "postgres ");
#endif
#ifndef LIBSAPR3
SERVICES = hydra_string_replace(SERVICES, "sapr3 ", "");
strcat(unsupported, "sapr3 ");
#ifndef LIBAFP
SERVICES = hydra_string_replace(SERVICES, "afp ", "");
strcat(unsupported, "afp ");
#endif
#ifndef LIBFIREBIRD
SERVICES = hydra_string_replace(SERVICES, "firebird ", "");
strcat(unsupported, "firebird ");
#endif
#ifndef HAVE_GCRYPT
SERVICES = hydra_string_replace(SERVICES, "radmin2 ", "");
strcat(unsupported, "radmin2 ");
#endif
#ifndef LIBAFP
SERVICES = hydra_string_replace(SERVICES, "afp ", "");
strcat(unsupported, "afp ");
#ifndef LIBMYSQLCLIENT
SERVICES = hydra_string_replace(SERVICES, "mysql ", "mysql(v4) ");
strcat(unsupported, "mysql5 ");
#endif
#ifndef LIBNCP
SERVICES = hydra_string_replace(SERVICES, "ncp ", "");
strcat(unsupported, "ncp ");
#endif
#ifndef LIBORACLE
SERVICES = hydra_string_replace(SERVICES, "oracle ", "");
strcat(unsupported, "oracle ");
#endif
#ifndef LIBPOSTGRES
SERVICES = hydra_string_replace(SERVICES, "postgres ", "");
strcat(unsupported, "postgres ");
#endif
#ifndef HAVE_GCRYPT
SERVICES = hydra_string_replace(SERVICES, "radmin2 ", "");
strcat(unsupported, "radmin2 ");
#endif
#ifndef LIBSAPR3
SERVICES = hydra_string_replace(SERVICES, "sapr3 ", "");
strcat(unsupported, "sapr3 ");
#endif
#ifndef LIBSSH
SERVICES = hydra_string_replace(SERVICES, "ssh ", "");
strcat(unsupported, "ssh ");
@ -2158,14 +2166,6 @@ int32_t main(int32_t argc, char *argv[]) {
SERVICES = hydra_string_replace(SERVICES, "svn ", "");
strcat(unsupported, "svn ");
#endif
#ifndef LIBORACLE
SERVICES = hydra_string_replace(SERVICES, "oracle ", "");
strcat(unsupported, "oracle ");
#endif
#ifndef LIBMYSQLCLIENT
SERVICES = hydra_string_replace(SERVICES, "mysql ", "mysql(v4) ");
strcat(unsupported, "mysql5 ");
#endif
#ifndef LIBOPENSSL
// for ftps
SERVICES = hydra_string_replace(SERVICES, " ftps", "");