masscan

package
v0.0.0-...-71f1257 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(out *os.File, outerr *os.File, args []string) error

Types

type AppProtocol

type AppProtocol int
const (
	PROTO_NONE AppProtocol = iota
	PROTO_HEUR
	PROTO_SSH1
	PROTO_SSH2
	PROTO_HTTP
	PROTO_FTP
	PROTO_DNS_VERSIONBIND
	PROTO_SNMP    /* simple network management protocol, udp/161 */
	PROTO_NBTSTAT /* netbios, udp/137 */
	PROTO_SSL3
	PROTO_SMB /* SMB tcp/139 and tcp/445 */
	PROTO_SMTP
	PROTO_POP3
	PROTO_IMAP4
	PROTO_UDP_ZEROACCESS
	PROTO_X509_CERT
	PROTO_HTML_TITLE
	PROTO_HTML_FULL
	PROTO_NTP /* network time protocol, udp/123 */
	PROTO_VULN
	PROTO_HEARTBLEED
	PROTO_TICKETBLEED
	PROTO_VNC_RFB
	PROTO_SAFE
	PROTO_MEMCACHED
	PROTO_SCRIPTING
	PROTO_VERSIONING
	PROTO_COAP /* constrained app proto, udp/5683, RFC7252 */
	PROTO_TELNET
	PROTO_RDP         /* Microsoft Remote Desktop Protocol tcp/3389 */
	PROTO_end_of_list /* must be last one */
)

type Record

type Record struct {
	Timestamp time.Time
	IP        net.IP
	Port      int
	Proto     byte /*TODO figure out wtf the real types are*/
	Reason    byte
	TTL       int
	MAC       net.HardwareAddr
	AppProto  AppProtocol
	Banner    []byte
}

type Scan

type Scan struct {
	Records []Record
}

func ParseScan

func ParseScan(scan []byte) (Scan, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL