mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
proxy connect debug
This commit is contained in:
parent
b54a3b2495
commit
1845c4476b
1 changed files with 6 additions and 0 deletions
|
@ -283,6 +283,12 @@ int32_t internal__hydra_connect(char *host, int32_t port, int32_t protocol, int3
|
||||||
snprintf(buf, 4096, "CONNECT %s:%d HTTP/1.0\r\nProxy-Authorization: Basic %s\r\n\r\n", hydra_address2string(host), port, proxy_authentication[selected_proxy]);
|
snprintf(buf, 4096, "CONNECT %s:%d HTTP/1.0\r\nProxy-Authorization: Basic %s\r\n\r\n", hydra_address2string(host), port, proxy_authentication[selected_proxy]);
|
||||||
|
|
||||||
send(s, buf, strlen(buf), 0);
|
send(s, buf, strlen(buf), 0);
|
||||||
|
if (debug) {
|
||||||
|
char *ptr = index(buf, '\r');
|
||||||
|
if (ptr != NULL)
|
||||||
|
*ptr = 0;
|
||||||
|
printf("DEBUG_CONNECT_PROXY_SENT: %s\n", buf);
|
||||||
|
}
|
||||||
recv(s, buf, 4096, 0);
|
recv(s, buf, 4096, 0);
|
||||||
if (strncmp("HTTP/", buf, 5) == 0 && (tmpptr = index(buf, ' ')) != NULL && *++tmpptr == '2') {
|
if (strncmp("HTTP/", buf, 5) == 0 && (tmpptr = index(buf, ' ')) != NULL && *++tmpptr == '2') {
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue