mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
Fix string matching call for system without libpcre
hydra_string_match() function is only available if libpcre is present. Compilation crashes without that patch.
This commit is contained in:
parent
150d325027
commit
5d25fa1d1c
1 changed files with 5 additions and 1 deletions
|
@ -229,7 +229,11 @@ int32_t start_http(int32_t s, char *ip, int32_t port, unsigned char options, cha
|
|||
if (ptr != NULL)
|
||||
ptr++;
|
||||
if (ptr != NULL && (*ptr == '2' || *ptr == '3' || strncmp(ptr, "403", 3) == 0 || strncmp(ptr, "404", 3) == 0)) {
|
||||
if (end_condition_type>=0 && hydra_string_match(http_buf,end_condition)!=end_condition_type) {
|
||||
#ifdef HAVE_PCRE
|
||||
if (end_condition_type >= 0 && hydra_string_match(http_buf, end_condition)!=end_condition_type) {
|
||||
#else
|
||||
if (end_condition_type >= 0 && (strstr(http_buf, end_condition) == NULL ? 0 : 1) != end_condition_type) {
|
||||
#endif
|
||||
if (debug) hydra_report(stderr, "End condition not match continue.\n");
|
||||
hydra_completed_pair();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue