Loading src/main-conf.c +2 −2 Original line number Diff line number Diff line Loading @@ -890,7 +890,7 @@ masscan_set_parameter(struct Masscan *masscan, unsigned index; unsigned name_length; char *newname; unsigned value_length = strlen(value); unsigned value_length = (unsigned)strlen(value); unsigned char *newvalue; /* allcoate new value */ Loading @@ -902,7 +902,7 @@ masscan_set_parameter(struct Masscan *masscan, name += 11; while (ispunct(*name)) name++; name_length = strlen(name); name_length = (unsigned)strlen(name); while (name_length && ispunct(name[name_length-1])) name_length--; newname = (char*)malloc(name_length+1); Loading src/main.c +2 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ #include "templ-port.h" #include "in-binary.h" /* covert binary output to XML/JSON */ #include "main-globals.h" /* all the global variables in the program */ #include "proto-zeroaccess.h" #include <assert.h> #include <limits.h> Loading Loading @@ -1383,6 +1384,7 @@ int main(int argc, char *argv[]) x += smack_selftest(); x += banner1_selftest(); x += mainconf_selftest(); x += zeroaccess_selftest(); if (x != 0) { Loading src/masscan-app.c +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ masscan_app_to_string(enum ApplicationProtocol proto) case PROTO_SMTP: return "smtp"; case PROTO_POP3: return "pop"; case PROTO_IMAP4: return "imap"; case PROTO_UDP_ZEROACCESS: return "zeroaccess"; default: sprintf_s(tmp, sizeof(tmp), "(%u)", proto); Loading src/masscan-app.h +1 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ enum ApplicationProtocol { PROTO_SMTP, PROTO_POP3, PROTO_IMAP4, PROTO_UDP_ZEROACCESS, }; const char * Loading src/proto-udp.c +8 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ #include "proto-dns.h" #include "proto-netbios.h" #include "proto-snmp.h" #include "proto-zeroaccess.h" #include "proto-preprocess.h" #include "syn-cookie.h" #include "logger.h" Loading Loading @@ -32,6 +33,13 @@ void handle_udp(struct Output *out, time_t timestamp, const unsigned char *px, u case 161: status = handle_snmp(out, timestamp, px, length, parsed); break; case 16464: case 16465: case 16470: case 16471: status = handle_zeroaccess(out, timestamp, px, length, parsed); break; } if (status == 0) Loading Loading
src/main-conf.c +2 −2 Original line number Diff line number Diff line Loading @@ -890,7 +890,7 @@ masscan_set_parameter(struct Masscan *masscan, unsigned index; unsigned name_length; char *newname; unsigned value_length = strlen(value); unsigned value_length = (unsigned)strlen(value); unsigned char *newvalue; /* allcoate new value */ Loading @@ -902,7 +902,7 @@ masscan_set_parameter(struct Masscan *masscan, name += 11; while (ispunct(*name)) name++; name_length = strlen(name); name_length = (unsigned)strlen(name); while (name_length && ispunct(name[name_length-1])) name_length--; newname = (char*)malloc(name_length+1); Loading
src/main.c +2 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ #include "templ-port.h" #include "in-binary.h" /* covert binary output to XML/JSON */ #include "main-globals.h" /* all the global variables in the program */ #include "proto-zeroaccess.h" #include <assert.h> #include <limits.h> Loading Loading @@ -1383,6 +1384,7 @@ int main(int argc, char *argv[]) x += smack_selftest(); x += banner1_selftest(); x += mainconf_selftest(); x += zeroaccess_selftest(); if (x != 0) { Loading
src/masscan-app.c +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ masscan_app_to_string(enum ApplicationProtocol proto) case PROTO_SMTP: return "smtp"; case PROTO_POP3: return "pop"; case PROTO_IMAP4: return "imap"; case PROTO_UDP_ZEROACCESS: return "zeroaccess"; default: sprintf_s(tmp, sizeof(tmp), "(%u)", proto); Loading
src/masscan-app.h +1 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ enum ApplicationProtocol { PROTO_SMTP, PROTO_POP3, PROTO_IMAP4, PROTO_UDP_ZEROACCESS, }; const char * Loading
src/proto-udp.c +8 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ #include "proto-dns.h" #include "proto-netbios.h" #include "proto-snmp.h" #include "proto-zeroaccess.h" #include "proto-preprocess.h" #include "syn-cookie.h" #include "logger.h" Loading Loading @@ -32,6 +33,13 @@ void handle_udp(struct Output *out, time_t timestamp, const unsigned char *px, u case 161: status = handle_snmp(out, timestamp, px, length, parsed); break; case 16464: case 16465: case 16470: case 16471: status = handle_zeroaccess(out, timestamp, px, length, parsed); break; } if (status == 0) Loading