mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 13:53:59 -07:00
add gzip support for login and password files
* module hydra-teamspeak.c modified, because of conflict of crc32 with zlib crc32
This commit is contained in:
parent
adec22c69f
commit
1aeda5001c
6 changed files with 71 additions and 6 deletions
|
@ -1,5 +1,10 @@
|
|||
#include "hydra-mod.h"
|
||||
|
||||
#ifdef HAVE_ZLIB
|
||||
#include <zlib.h>
|
||||
#else
|
||||
#include "crc32.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
|
@ -65,7 +70,11 @@ int start_teamspeak(int s, char *ip, int port, unsigned char options, char *misc
|
|||
teamspeak.loginlen = 0;
|
||||
strcpy((char *) &teamspeak.login, "");
|
||||
|
||||
#ifdef HAVE_ZLIB
|
||||
teamspeak.crc = crc32(0L, &teamspeak, sizeof(struct team_speak));
|
||||
#else
|
||||
teamspeak.crc = crc32(&teamspeak, sizeof(struct team_speak));
|
||||
#endif
|
||||
|
||||
if (hydra_send(s, (char *) &teamspeak, sizeof(struct team_speak), 0) < 0) {
|
||||
return 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue