mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 02:27:31 -07:00
Merge pull request #1 from morla10111/master
fix for redirect splitting.
This commit is contained in:
commit
9cce09c20b
1 changed files with 2 additions and 2 deletions
|
@ -395,8 +395,8 @@ int start_http_form(int s, char *ip, int port, unsigned char options, char *misc
|
|||
if (strlen(str) - strlen(str2) == 0) {
|
||||
strcpy(str3, "/");
|
||||
} else {
|
||||
strncpy(str3, str + strlen(str2), strlen(str) - strlen(str2) - 1);
|
||||
str3[strlen(str) - strlen(str2) - 1] = 0;
|
||||
strncpy(str3, str + strlen(str2), strlen(str) - strlen(str2));
|
||||
str3[strlen(str) - strlen(str2)] = 0;
|
||||
}
|
||||
} else {
|
||||
strncpy(str2, webtarget, sizeof(str2) - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue