Repository Analysis

robertdavidgraham/masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.

1.0 Likely human-written View on GitHub
1.0
Adjusted Score
1.0
Raw Score
100%
Time Factor
2026-04-23
Last Push
25,748
Stars
C
Language
62,510
Lines of Code
228
Files
60
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 60

Pattern Findings

60 matches across 1 category. Click a row to expand file-level details.

Over-Commented Block60 hits · 60 pts
SeverityFileLineSnippet
LOWsrc/proto-smb.c1/*
LOWsrc/rawsock.c1/*
LOWsrc/rawsock.c21#include "util-malloc.h"
LOWsrc/masscan.h1#ifndef MASSCAN_H
LOWsrc/proto-banner1.c1/*
LOWsrc/proto-netbios.c1#include "proto-netbios.h"
LOWsrc/scripting-banner.c1/*
LOWsrc/pixie-threads.c1#define _GNU_SOURCE
LOWsrc/main-conf.c21#include "crypto-base64.h"
LOWsrc/pixie-file.c1#include "pixie-file.h"
LOWsrc/rawsock-getip6.c21#define _GNU_SOURCE
LOWsrc/rawsock-getip6.c81/*****************************************************************************
LOWsrc/rawsock-getip6.c201#include <sys/types.h>
LOWsrc/proto-coap.c21 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
LOWsrc/pixie-sockets.h1#ifndef PIXIE_SOCKETS_H
LOWsrc/stack-tcp-core.c61#include <string.h>
LOWsrc/proto-memcached.c1/*
LOWsrc/rte-ring.c81#include "pixie-threads.h"
LOWsrc/stub-lua.c1#define LUAAPI
LOWsrc/rawsock-getroute.c1/*
LOWsrc/rawsock-getroute.c21#define ROUNDUP2(a, n) ((a) > 0 ? (1 + (((a) - 1U) | ((n) - 1))) : (n))
LOWsrc/rawsock-getroute.c421}
LOWsrc/proto-x509.c81 critical BOOLEAN DEFAULT FALSE,
LOWsrc/output.h1#ifndef OUTPUT_H
LOWsrc/massip-rangesv6.c1/*
LOWsrc/proto-http.c1#include "proto-http.h"
LOWsrc/smack1.c101 Make it so that the longest match triggers first.
LOWsrc/smack1.c141#elif defined(__powerpc64__)
LOWsrc/proto-versioning.c1/*
LOWsrc/proto-dns.c1/*
LOWsrc/main.c21#include "massip-parse.h"
LOWsrc/main.c41#include "output.h" /* for outputting results */
LOWsrc/main.c61#include "proto-snmp.h" /* parse SNMP responses */
LOWsrc/templ-pkt.c1/*
LOWsrc/proto-udp.c1#include "proto-udp.h"
LOWsrc/rawsock-pcapfile.c21*/
LOWsrc/pixie-threads.h41#define rte_atomic32_cmpset(dst, expected, src) __sync_bool_compare_and_swap((volatile int*)(dst),(int)expected,(int)src
LOWsrc/util-bool.h1#ifndef UTIL_BOOL_H
LOWsrc/proto-ntp.c1/*
LOWsrc/rte-ring.h81#endif
LOWsrc/rte-ring.h121 */
LOWsrc/rawsock-getip.c141 free(pAdapterInfo);
LOWsrc/stub-pfring.h21 } ts;
LOWsrc/crypto-blackrock2.c1#include "crypto-blackrock.h"
LOWsrc/in-binary.c1/*
LOWsrc/stack-tcp-core.h1#ifndef PROTO_TCP_H
LOWsrc/stub-pcap.c41#include <windows.h>
LOWsrc/pixie-timer.c21#include <errno.h>
LOWsrc/unusedparm.h1#ifndef UNUSEDPARM
LOWsrc/proto-mc.h1#ifndef PROTO_MC_H
LOWsrc/util-safefunc.h21#include <time.h>
LOWsrc/util-safefunc.h41#define sprintf SPRINTF_FUNCTION_IS_BAD
LOWsrc/util-safefunc.h81
LOWsrc/read-service-probes.c1#include "read-service-probes.h"
LOWsrc/massip-rangesv4.c21 - fast application of exludes, using an optimal O(n + m) linear
LOWsrc/stub-lua.h41#define LUA_ERRGCMM 5
LOWsrc/stub-lua.h61#define lua_isboolean(L,n) (lua_type(L, (n)) == LUA_TBOOLEAN)
LOWsrc/rawsock-getif.c1/*
LOWsrc/rawsock-getif.c21
LOWsrc/rawsock-getif.c181#include <net/if.h>