aries

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPortTimeoutSynScan     = 1000
	DefaultPortTimeoutConnectScan = 2000

	DefaultRateSynScan     = 1000
	DefaultRateConnectScan = 1500

	DefaultRetriesSynScan     = 3
	DefaultRetriesConnectScan = 3

	SynScan             = "s"
	ConnectScan         = "c"
	DefautStatsInterval = 5
)
View Source
const (
	Full        = "1-65535"
	NmapTop100  = "" /* 393-byte string literal not displayed */
	NmapTop1000 = "" /* 3813-byte string literal not displayed */
	DatabaseTop = "" /* 209-byte string literal not displayed */
	HotelTop    = "" /* 211-byte string literal not displayed */
	ICSTop      = "" /* 132-byte string literal not displayed */
	IoTTop      = "" /* 219-byte string literal not displayed */
	MiniTop     = "21,22,23,80,135-139,443,445,1433,1521,1900,3306,3389,5353,5432,6379,8080"
)

List of default ports

Variables

View Source
var (
	ExcludeIps = []string{}
)
View Source
var Version = "0.1.0"

Functions

func ParsePorts

func ParsePorts(options *Options) ([]*port.Port, error)

ParsePorts parses the list of ports and creates a port map

func ShowBanner

func ShowBanner()

Types

type Options

type Options struct {
	Host              goflags.StringSlice // Host is the single host or comma-separated list of hosts to find ports for
	HostsFile         string              // HostsFile is the file containing list of hosts to find port for
	ExcludeIps        string              // Ips or cidr to be excluded from the scan
	ExcludeIpsFile    string              // File containing Ips or cidr to exclude from the scan
	Ports             string              // Ports is the ports to use for enumeration
	PortsFile         string              // PortsFile is the file containing ports to use for enumeration
	ExcludePorts      string              // ExcludePorts is the list of ports to exclude from enumeration
	TopPorts          string              // Tops ports to scan
	ChooseRandomPorts bool                // Choose random ports

	Retries           int                 // Retries is the number of retries for the port
	Threads           int                 // Internal worker threads
	RateLimit         int                 // RateLimit is the rate of port scan requests
	Timeout           int                 // Timeout is the seconds to wait for ports to respond
	IPVersion         goflags.StringSlice // IP Version to use while resolving hostnames
	ScanType          string              // Scan Type
	Debug             bool                // Prints out debug information
	Interface         string              // Interface to use for TCP packets
	Output            string              // Output is the file to write found ports to.
	NmapServiceProbes bool                // Nmap Service Probes
	SkipHostDiscovery bool                // Skip host discovery
}

func ParseOptions

func ParseOptions() *Options

type OutputResult

type OutputResult struct {
	Host    string     `json:"host,omitempty" csv:"host"`
	IP      string     `json:"ip,omitempty" csv:"ip"`
	Port    *port.Port `json:"port" csv:"port"`
	IsCDNIP bool       `json:"cdn,omitempty" csv:"cdn"`
}

func (*OutputResult) CSV

func (or *OutputResult) CSV() []string

func (*OutputResult) JSON

func (or *OutputResult) JSON() ([]byte, error)

func (*OutputResult) TXT

func (or *OutputResult) TXT() string

type Runner

type Runner struct {
	HostCount int32
	PortCount int32
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(options *Options) (*Runner, error)

func (*Runner) BackgroundWorkers

func (r *Runner) BackgroundWorkers()

func (*Runner) Close

func (runner *Runner) Close()

Close runner instance

func (*Runner) NmapServiceProbes

func (r *Runner) NmapServiceProbes()

func (*Runner) PreprocessingHosts

func (runner *Runner) PreprocessingHosts() error

func (*Runner) Run

func (runner *Runner) Run() error

func (*Runner) WriteOutput

func (r *Runner) WriteOutput()

Jump to

Keyboard shortcuts

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