diff --git a/bfg.c b/bfg.c index 46be0ca..5f1f163 100644 --- a/bfg.c +++ b/bfg.c @@ -150,7 +150,7 @@ int bf_init(char *arg) { bf_options.current = bf_options.from; memset((char *) bf_options.state, 0, sizeof(bf_options.state)); if (debug) - printf("[DEBUG] bfg INIT: from %d, to %d, len: %d, set: %s\n", bf_options.from, bf_options.to, bf_options.crs_len, bf_options.crs); + printf("[DEBUG] bfg INIT: from %u, to %u, len: %u, set: %s\n", bf_options.from, bf_options.to, bf_options.crs_len, bf_options.crs); return 0; } @@ -189,9 +189,9 @@ char *bf_next() { bf_options.ptr[bf_options.current] = 0; if (debug) { - printf("[DEBUG] bfg IN: len %d, from %d, current %d, to %d, state:", bf_options.crs_len, bf_options.from, bf_options.current, bf_options.to); + printf("[DEBUG] bfg IN: len %u, from %u, current %u, to %u, state:", bf_options.crs_len, bf_options.from, bf_options.current, bf_options.to); for (i = 0; i < bf_options.current; i++) - printf(" %d", bf_options.state[i]); + printf(" %u", bf_options.state[i]); printf(", x: %s\n", bf_options.ptr); } diff --git a/hydra-http.c b/hydra-http.c index 2d15477..715e99e 100644 --- a/hydra-http.c +++ b/hydra-http.c @@ -201,7 +201,7 @@ int start_http(int s, char *ip, int port, unsigned char options, char *miscptr, } } else { if (ptr != NULL && *ptr != '4') - fprintf(stderr, "[WARNING] Unusual return code: %.3s for %s:%s\n", (char) *ptr, login, pass); + fprintf(stderr, "[WARNING] Unusual return code: %.3s for %s:%s\n", (char *) ptr, login, pass); //the first authentication type failed, check the type from server header if ((hydra_strcasestr(http_buf, "WWW-Authenticate: Basic") == NULL) && (http_auth_mechanism == AUTH_BASIC)) { diff --git a/hydra.c b/hydra.c index 5f05010..33c15e0 100644 --- a/hydra.c +++ b/hydra.c @@ -1761,7 +1761,7 @@ int hydra_send_next_pair(int target_no, int head_no) { if (loop_cnt > (hydra_brains.countlogin * 2) + 1 && loop_cnt > (hydra_brains.countpass * 2) + 1) { if (debug) - printf("[DEBUG] too many loops in send_next_pair, returning -1 (loop_cnt %d, sent %ld, todo %ld)\n", loop_cnt, hydra_targets[target_no]->sent, hydra_brains.todo); + printf("[DEBUG] too many loops in send_next_pair, returning -1 (loop_cnt %d, sent %lu, todo %lu)\n", loop_cnt, hydra_targets[target_no]->sent, hydra_brains.todo); return -1; } @@ -2534,7 +2534,7 @@ int main(int argc, char *argv[]) { } //printf("target: %s service: %s port: %s opt: %s\n", target_pos, hydra_options.service, port_pos, param_pos); if (debug) - printf("[DEBUG] opt:%d argc:%d mod:%s tgt:%s port:%d misc:%s\n", optind, argc, hydra_options.service, hydra_options.server, hydra_options.port, hydra_options.miscptr); + printf("[DEBUG] opt:%d argc:%d mod:%s tgt:%s port:%u misc:%s\n", optind, argc, hydra_options.service, hydra_options.server, hydra_options.port, hydra_options.miscptr); } else { hydra_options.server = NULL; hydra_options.service = NULL; diff --git a/ntlm.c b/ntlm.c index e98b859..865dccf 100644 --- a/ntlm.c +++ b/ntlm.c @@ -1307,7 +1307,7 @@ void dumpAuthResponse(FILE * fp, tSmbNtlmAuthResponse * response); void dumpAuthRequest(FILE * fp, tSmbNtlmAuthRequest * request) { fprintf(fp, "NTLM Request:\n"); fprintf(fp, " Ident = %s\n", request->ident); - fprintf(fp, " mType = %d\n", IVAL(&request->msgType, 0)); + fprintf(fp, " mType = %u\n", IVAL(&request->msgType, 0)); fprintf(fp, " Flags = %08x\n", IVAL(&request->flags, 0)); fprintf(fp, " Host = %s\n", GetString(request, host)); fprintf(fp, " Domain = %s\n", GetString(request, domain)); @@ -1316,7 +1316,7 @@ void dumpAuthRequest(FILE * fp, tSmbNtlmAuthRequest * request) { void dumpAuthChallenge(FILE * fp, tSmbNtlmAuthChallenge * challenge) { fprintf(fp, "NTLM Challenge:\n"); fprintf(fp, " Ident = %s\n", challenge->ident); - fprintf(fp, " mType = %d\n", IVAL(&challenge->msgType, 0)); + fprintf(fp, " mType = %u\n", IVAL(&challenge->msgType, 0)); fprintf(fp, " Domain = %s\n", GetUnicodeString(challenge, uDomain)); fprintf(fp, " Flags = %08x\n", IVAL(&challenge->flags, 0)); fprintf(fp, " Challenge = "); @@ -1327,7 +1327,7 @@ void dumpAuthChallenge(FILE * fp, tSmbNtlmAuthChallenge * challenge) { void dumpAuthResponse(FILE * fp, tSmbNtlmAuthResponse * response) { fprintf(fp, "NTLM Response:\n"); fprintf(fp, " Ident = %s\n", response->ident); - fprintf(fp, " mType = %d\n", IVAL(&response->msgType, 0)); + fprintf(fp, " mType = %u\n", IVAL(&response->msgType, 0)); fprintf(fp, " LmResp = "); DumpBuffer(fp, response, lmResponse); fprintf(fp, " NTResp = ");