lib

package
v0.0.0-...-03597bf Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ActiveScanLimit = 25

ActiveScanLimit is used as a simple way to prevent DoS attacks and to deal with the fact that we *always* kick off a new scan whenever a page is loaded

If we are hitting more 250 of these on the regular, then have more heavy lifting to do here such as to cache what scans/addrs are currently processing.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScanResults

type ScanResults struct {
	Addr    string
	NMAPRun nmap.Run
	ASN     *geoip.ASN
	City    *geoip.City
	Country *geoip.Country
}

func ScanAddr

func ScanAddr(addr string) *ScanResults

ScanAddr is a fun and easy method to poll It will return what it can when it can.

This nondeterministic method is useful for including on the home page - without breaking the home page.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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