more buffer

This commit is contained in:
van Hauser 2020-05-28 22:38:52 +02:00
parent e33152230b
commit 1ed6909836
2 changed files with 97 additions and 4 deletions

View file

@ -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)