aries

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 32 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.3"

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 OnResultCallback added in v0.1.1

type OnResultCallback func(r Result)

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 NewOptions added in v0.1.1

func NewOptions(options Options) *Options

func ParseOptions

func ParseOptions() *Options

func (*Options) AutoChangeRateLimit added in v0.1.1

func (options *Options) AutoChangeRateLimit()

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 Result added in v0.1.1

type Result struct {
	Host     string
	IP       string
	Port     int
	Protocol string
	Service  string
	Product  string
}

type Runner

type Runner struct {
	Scanner *scan.Scanner

	HostCount int32
	PortCount int32

	OnResult OnResultCallback
	// 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) Pavo added in v0.1.1

func (runner *Runner) Pavo(host, ip string)

func (*Runner) PreprocessingHosts

func (runner *Runner) PreprocessingHosts() error

func (*Runner) Run

func (runner *Runner) Run() error

func (*Runner) Start added in v0.1.1

func (runner *Runner) Start()

func (*Runner) StartApi added in v0.1.1

func (runner *Runner) StartApi()

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