Documentation ¶
Index ¶
- Constants
- func GetHelperArgs(method string, opts map[string]string) ([]string, error)
- func LoadPlugin() ([]string, gomapperplugins.PluginInterface, error)
- func ParseScanToDbNetwork(network string, results *NmapRun) (net formats.DbNetwork)
- type Address
- type Debugging
- type Elem
- type ErrorResponse
- type ExtraPorts
- type ExtraReason
- type Finished
- type FinishedHosts
- type Host
- type Hostname
- type Hostnames
- type NmapPlugin
- func (p NmapPlugin) DiscoverNetworks(conf map[string]interface{}) (res []string, err error)
- func (p NmapPlugin) HandleScanRequest(conf map[string]interface{}, input *formats.ReqInput) (response interface{}, dbEntry formats.DbNetwork)
- func (p NmapPlugin) ScanNetwork(conf map[string]interface{}, network string) (dbEntry formats.DbNetwork, err error)
- type NmapRun
- type Port
- type Ports
- type RunStats
- type ScanInfo
- type Scanner
- func (s *Scanner) HandleReturn(err error, stdout string, stderr string)
- func (s *Scanner) ReturnFail(err error, msg string)
- func (s *Scanner) RunScan()
- func (s *Scanner) SetAckDiscovery()
- func (s *Scanner) SetConnectDiscovery()
- func (s *Scanner) SetDebug(debug bool)
- func (s *Scanner) SetExec(executable string)
- func (s *Scanner) SetHelperInput(method string, opts map[string]string)
- func (s *Scanner) SetPingDiscovery()
- func (s *Scanner) SetRawInput(args []string)
- func (s *Scanner) SetSynDiscovery()
- func (s *Scanner) SetTarget(target string)
- func (s *Scanner) SetUdpDiscovery()
- type Script
- type Service
- type Status
- type Table
- type Times
- type Verbose
Constants ¶
View Source
const NMAP_DEFAULT_DISCOVERY_MODE = "nmap_ping"
View Source
const NMAP_DISCOVERY_ENV_VAR = "GOMAPPER_NMAP_DISCOVERY_MODE"
Variables ¶
This section is empty.
Functions ¶
func LoadPlugin ¶
func LoadPlugin() ([]string, gomapperplugins.PluginInterface, error)
Types ¶
type ErrorResponse ¶
type ExtraPorts ¶
type ExtraPorts struct { State string `xml:"state,attr"` Count int `xml:"count,attr"` ExtraReasons []ExtraReason `xml:"extrareasons"` }
type ExtraReason ¶
type FinishedHosts ¶
type NmapPlugin ¶
type NmapPlugin struct{}
func (NmapPlugin) DiscoverNetworks ¶
func (p NmapPlugin) DiscoverNetworks(conf map[string]interface{}) (res []string, err error)
func (NmapPlugin) HandleScanRequest ¶
func (NmapPlugin) ScanNetwork ¶
type NmapRun ¶
type NmapRun struct { Scanner string `xml:"scanner,attr"` Args string `xml:"args,attr"` Start int `xml:"start,attr"` StartStr string `xml:"startstr,attr"` Version string `xml:"version,attr"` ScanInfo ScanInfo `xml:"scaninfo"` Verbose Verbose `xml:"verbose"` Debugging Debugging `xml:"debugging"` Hosts []Host `xml:"host"` RunStats RunStats `xml:"runstats"` }
type Ports ¶
type Ports struct { ExtraPorts ExtraPorts `xml:"extraports"` Ports []Port `xml:"port"` }
type RunStats ¶
type RunStats struct { Finished Finished `xml:"finished"` FinishedHosts FinishedHosts `xml:"hosts"` }
type Scanner ¶
type Scanner struct { Executable string ReqInput *formats.ReqInput Target string RawArgs []string ComputedArgs []string Xml string Results *NmapRun Error ErrorResponse Failed bool Debug bool }
func RequestScanner ¶
func (*Scanner) HandleReturn ¶
func (*Scanner) ReturnFail ¶
func (*Scanner) SetAckDiscovery ¶
func (s *Scanner) SetAckDiscovery()
func (*Scanner) SetConnectDiscovery ¶
func (s *Scanner) SetConnectDiscovery()
func (*Scanner) SetHelperInput ¶
func (*Scanner) SetPingDiscovery ¶
func (s *Scanner) SetPingDiscovery()
func (*Scanner) SetRawInput ¶
func (*Scanner) SetSynDiscovery ¶
func (s *Scanner) SetSynDiscovery()
func (*Scanner) SetUdpDiscovery ¶
func (s *Scanner) SetUdpDiscovery()
Click to show internal directories.
Click to hide internal directories.