mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
more buffer
This commit is contained in:
parent
e33152230b
commit
1ed6909836
2 changed files with 97 additions and 4 deletions
|
@ -8,7 +8,7 @@ char *http_proxy_buf = NULL;
|
|||
int32_t start_http_proxy(int32_t s, char *ip, int32_t port, unsigned char options, char *miscptr, FILE *fp, char *hostname) {
|
||||
char *empty = "";
|
||||
char *login, *pass, buffer[5000], buffer2[4500];
|
||||
char url[210], host[60];
|
||||
char url[510], host[60];
|
||||
char *header = ""; /* XXX TODO */
|
||||
char *ptr, *fooptr, *auth_hdr;
|
||||
|
||||
|
@ -21,7 +21,7 @@ int32_t start_http_proxy(int32_t s, char *ip, int32_t port, unsigned char option
|
|||
strcpy(url, "http://www.microsoft.com/");
|
||||
strcpy(host, "Host: www.microsoft.com\r\n");
|
||||
} else {
|
||||
sprintf(url, "%.200s", miscptr);
|
||||
sprintf(url, "%.500s", miscptr);
|
||||
ptr = strstr(miscptr, "://"); // :// check is in hydra.c
|
||||
sprintf(host, "Host: %.50s", ptr + 3);
|
||||
if ((ptr = index(host, '/')) != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue