Commit d2ae36b8 authored by robertdavidgraham's avatar robertdavidgraham
Browse files

zeroaccess

parent 12c8c742
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */
@@ -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);
+2 −0
Original line number Diff line number Diff line
@@ -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>
@@ -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) {
+1 −0
Original line number Diff line number Diff line
@@ -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);
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ enum ApplicationProtocol {
    PROTO_SMTP,
    PROTO_POP3,
    PROTO_IMAP4,
    PROTO_UDP_ZEROACCESS,
};

const char *
+8 −0
Original line number Diff line number Diff line
@@ -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"
@@ -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