mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 21:33:51 -07:00
http-form: no empty headers
This commit is contained in:
parent
02ae72c7e7
commit
5a451ba541
2 changed files with 4 additions and 0 deletions
1
CHANGES
1
CHANGES
|
@ -6,6 +6,7 @@ Release 9.3-dev
|
||||||
* new module: cobaltstrike by ultimaiiii, thank you!
|
* new module: cobaltstrike by ultimaiiii, thank you!
|
||||||
* fix for ssh to support -M or ip/range
|
* fix for ssh to support -M or ip/range
|
||||||
* fix for rdp to detect empty passwords
|
* fix for rdp to detect empty passwords
|
||||||
|
* fix for http-form to no send empty headers
|
||||||
* fix for http on non-default ports when using with a proxy
|
* fix for http on non-default ports when using with a proxy
|
||||||
* for vnc/cisco/... protocols that only check for a password, skip host
|
* for vnc/cisco/... protocols that only check for a password, skip host
|
||||||
after the password is found
|
after the password is found
|
||||||
|
|
|
@ -258,6 +258,9 @@ int32_t add_header(ptr_header_node *ptr_head, char *header, char *value, char ty
|
||||||
ptr_header_node cur_ptr = NULL;
|
ptr_header_node cur_ptr = NULL;
|
||||||
ptr_header_node existing_hdr, new_ptr;
|
ptr_header_node existing_hdr, new_ptr;
|
||||||
|
|
||||||
|
if (!header || !value || !strlen(header) || !strlen(value))
|
||||||
|
return;
|
||||||
|
|
||||||
// get to the last header
|
// get to the last header
|
||||||
for (cur_ptr = *ptr_head; cur_ptr && cur_ptr->next; cur_ptr = cur_ptr->next)
|
for (cur_ptr = *ptr_head; cur_ptr && cur_ptr->next; cur_ptr = cur_ptr->next)
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue