scan

package
v0.0.0-...-9b53864 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CosmosPortsMap map[uint32]string
	FantomPortsMap map[uint32]string
	EthPortsMap    map[uint32]string
)

Functions

func PortScan

func PortScan(address, chain string) []byte

PortScan accepts an IP/hostname and returns scan results.

Types

type Signature

type Signature struct {
	// Chain will be the most likely blockchain the service is associated with.
	Chain string `yaml:"chain"`
	// Service will be the service, RPC, Prometheus, etc.
	Service string `yaml:"service"`
	// Value is what to search for, this is a regular expression
	Value string `yaml:"value"`
	// Location is where to search, can be 'header' or 'body'
	Location string `yaml:"location"`
	// Key is only used if Location is header: what http header to match against
	Key string `yaml:"key"`
}

Signature holds the information needed to match against an HTTP response and attribute a server type

Jump to

Keyboard shortcuts

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