Loading src/main-conf.c +1 −1 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ masscan_echo_nic(struct Masscan *masscan, FILE *fp, unsigned i) (masscan->nic[i].src.ip.first>> 0)&0xFF ); else fprintf(fp, "adapter-ip%s = %u.%u.%u.%u\n", zzz, fprintf(fp, "adapter-ip%s = %u.%u.%u.%u-%u.%u.%u.%u\n", zzz, (masscan->nic[i].src.ip.first>>24)&0xFF, (masscan->nic[i].src.ip.first>>16)&0xFF, (masscan->nic[i].src.ip.first>> 8)&0xFF, Loading src/main.c +2 −1 Original line number Diff line number Diff line Loading @@ -815,8 +815,9 @@ receive_thread(void *v) status = Port_Unknown; if ((px[parsed.transport_offset+13] & 0x2) == 0x2) status = Port_Open; if ((px[parsed.transport_offset+13] & 0x4) == 0x4) if ((px[parsed.transport_offset+13] & 0x4) == 0x4) { status = Port_Closed; } /* verify: syn-cookies */ if (cookie != seqno_me - 1) { Loading src/out-redis.c +7 −7 Original line number Diff line number Diff line Loading @@ -231,8 +231,8 @@ myvalue "$%u\r\n%s\r\n" "$%u\r\n%s\r\n" , strlen("host"), "host", strlen(ip_string), ip_string (unsigned)strlen("host"), "host", (unsigned)strlen(ip_string), ip_string ); count = send(fd, line, (int)strlen(line), 0); Loading @@ -252,8 +252,8 @@ myvalue "$%u\r\n%s\r\n" "$%u\r\n%s\r\n" , strlen(ip_string), ip_string, strlen(port_string), port_string); (unsigned)strlen(ip_string), ip_string, (unsigned)strlen(port_string), port_string); count = send(fd, line, (int)strlen(line), 0); if (count != strlen(line)) { Loading @@ -268,16 +268,16 @@ myvalue * VALUE: timestamp:status:reason:ttl */ sprintf_s(values, sizeof(values), "%u:%u:%u:%u", timestamp, status, reason, ttl); (unsigned)timestamp, status, reason, ttl); sprintf_s(line, sizeof(line), "*3\r\n" "$4\r\nSADD\r\n" "$%u\r\n%s:%s\r\n" "$%u\r\n%s\r\n" , strlen(ip_string) + 1 + strlen(port_string), (unsigned)(strlen(ip_string) + 1 + strlen(port_string)), ip_string,port_string, strlen(values), values (unsigned)strlen(values), values ); count = send(fd, line, (int)strlen(line), 0); Loading src/out-text.c +2 −2 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ text_out_status(struct Output *out, FILE *fp, time_t timestamp, (ip>>16)&0xFF, (ip>> 8)&0xFF, (ip>> 0)&0xFF, timestamp (unsigned)timestamp ); } Loading Loading @@ -73,7 +73,7 @@ text_out_banner(struct Output *out, FILE *fp, time_t timestamp, (ip>>16)&0xFF, (ip>> 8)&0xFF, (ip>> 0)&0xFF, timestamp, (unsigned)timestamp, masscan_app_to_string(proto), normalize_string(px, length, banner_buffer, sizeof(banner_buffer)) ); Loading src/out-xml.c +2 −2 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ xml_out_status(struct Output *out, FILE *fp, time_t timestamp, int status, "</ports>" "</host>" "\r\n", timestamp, (unsigned)timestamp, (ip>>24)&0xFF, (ip>>16)&0xFF, (ip>> 8)&0xFF, Loading Loading @@ -116,7 +116,7 @@ xml_out_banner(struct Output *out, FILE *fp, time_t timestamp, "</ports>" "</host>" "\r\n", timestamp, (unsigned)timestamp, (ip>>24)&0xFF, (ip>>16)&0xFF, (ip>> 8)&0xFF, Loading Loading
src/main-conf.c +1 −1 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ masscan_echo_nic(struct Masscan *masscan, FILE *fp, unsigned i) (masscan->nic[i].src.ip.first>> 0)&0xFF ); else fprintf(fp, "adapter-ip%s = %u.%u.%u.%u\n", zzz, fprintf(fp, "adapter-ip%s = %u.%u.%u.%u-%u.%u.%u.%u\n", zzz, (masscan->nic[i].src.ip.first>>24)&0xFF, (masscan->nic[i].src.ip.first>>16)&0xFF, (masscan->nic[i].src.ip.first>> 8)&0xFF, Loading
src/main.c +2 −1 Original line number Diff line number Diff line Loading @@ -815,8 +815,9 @@ receive_thread(void *v) status = Port_Unknown; if ((px[parsed.transport_offset+13] & 0x2) == 0x2) status = Port_Open; if ((px[parsed.transport_offset+13] & 0x4) == 0x4) if ((px[parsed.transport_offset+13] & 0x4) == 0x4) { status = Port_Closed; } /* verify: syn-cookies */ if (cookie != seqno_me - 1) { Loading
src/out-redis.c +7 −7 Original line number Diff line number Diff line Loading @@ -231,8 +231,8 @@ myvalue "$%u\r\n%s\r\n" "$%u\r\n%s\r\n" , strlen("host"), "host", strlen(ip_string), ip_string (unsigned)strlen("host"), "host", (unsigned)strlen(ip_string), ip_string ); count = send(fd, line, (int)strlen(line), 0); Loading @@ -252,8 +252,8 @@ myvalue "$%u\r\n%s\r\n" "$%u\r\n%s\r\n" , strlen(ip_string), ip_string, strlen(port_string), port_string); (unsigned)strlen(ip_string), ip_string, (unsigned)strlen(port_string), port_string); count = send(fd, line, (int)strlen(line), 0); if (count != strlen(line)) { Loading @@ -268,16 +268,16 @@ myvalue * VALUE: timestamp:status:reason:ttl */ sprintf_s(values, sizeof(values), "%u:%u:%u:%u", timestamp, status, reason, ttl); (unsigned)timestamp, status, reason, ttl); sprintf_s(line, sizeof(line), "*3\r\n" "$4\r\nSADD\r\n" "$%u\r\n%s:%s\r\n" "$%u\r\n%s\r\n" , strlen(ip_string) + 1 + strlen(port_string), (unsigned)(strlen(ip_string) + 1 + strlen(port_string)), ip_string,port_string, strlen(values), values (unsigned)strlen(values), values ); count = send(fd, line, (int)strlen(line), 0); Loading
src/out-text.c +2 −2 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ text_out_status(struct Output *out, FILE *fp, time_t timestamp, (ip>>16)&0xFF, (ip>> 8)&0xFF, (ip>> 0)&0xFF, timestamp (unsigned)timestamp ); } Loading Loading @@ -73,7 +73,7 @@ text_out_banner(struct Output *out, FILE *fp, time_t timestamp, (ip>>16)&0xFF, (ip>> 8)&0xFF, (ip>> 0)&0xFF, timestamp, (unsigned)timestamp, masscan_app_to_string(proto), normalize_string(px, length, banner_buffer, sizeof(banner_buffer)) ); Loading
src/out-xml.c +2 −2 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ xml_out_status(struct Output *out, FILE *fp, time_t timestamp, int status, "</ports>" "</host>" "\r\n", timestamp, (unsigned)timestamp, (ip>>24)&0xFF, (ip>>16)&0xFF, (ip>> 8)&0xFF, Loading Loading @@ -116,7 +116,7 @@ xml_out_banner(struct Output *out, FILE *fp, time_t timestamp, "</ports>" "</host>" "\r\n", timestamp, (unsigned)timestamp, (ip>>24)&0xFF, (ip>>16)&0xFF, (ip>> 8)&0xFF, Loading