mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 13:23:57 -07:00
Bugfix for issue 121 -- increased URL/POST/cookie data size to 6096 bytes from 1000 bytes.
This commit is contained in:
parent
4575af1476
commit
df5ec9ea30
3 changed files with 22 additions and 16 deletions
4
hydra.c
4
hydra.c
|
@ -3249,7 +3249,7 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
if (strcmp(hydra_options.service, "http-get-form") == 0 || strcmp(hydra_options.service, "http-post-form") == 0 || strcmp(hydra_options.service, "https-get-form") == 0
|
||||
|| strcmp(hydra_options.service, "https-post-form") == 0) {
|
||||
char bufferurl[1024], *url, *variables, *cond, *optional1;
|
||||
char bufferurl[6096+24], *url, *variables, *cond, *optional1; //6096 comes from issue 192 on github. Extra 24 bytes for null padding.
|
||||
|
||||
if (strncmp(hydra_options.service, "http-", 5) == 0) {
|
||||
i = 1;
|
||||
|
@ -3284,7 +3284,7 @@ int main(int argc, char *argv[]) {
|
|||
if (strstr(hydra_options.miscptr, "\\:") != NULL) {
|
||||
fprintf(stderr, "[INFORMATION] escape sequence \\: detected in module option, no parameter verification is performed.\n");
|
||||
} else {
|
||||
sprintf(bufferurl, "%.1000s", hydra_options.miscptr);
|
||||
sprintf(bufferurl, "%.6096s", hydra_options.miscptr);
|
||||
url = strtok(bufferurl, ":");
|
||||
variables = strtok(NULL, ":");
|
||||
cond = strtok(NULL, ":");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue