Documentation ¶
Index ¶
- type CipherInfo
- type ExtraPorts
- type ExtraReasons
- type FlattenedCipherInfo
- type Host
- type HostAddress
- type HostPorts
- type HostStatus
- type Hostname
- type Hostnames
- type NMapRun
- func (run NMapRun) GetActivePorts(host string) map[string]PortDetail
- func (run NMapRun) GetCiphers(host, portID, tlsVersion string) []CipherInfo
- func (run NMapRun) GetFlatCiphers() []FlattenedCipherInfo
- func (run NMapRun) GetHostsUp() map[string]Host
- func (run NMapRun) GetTLSTables(host, portID string) map[string]ScriptTable
- func (run NMapRun) LeastStrength(host, portID string) string
- func (run NMapRun) LeastStrengthAll() (rune, error)
- func (run NMapRun) ScannedServices() (map[int]bool, error)
- type PortDetail
- type RunFinished
- type RunStats
- type ScanInfo
- type ScriptOutput
- type ScriptTable
- type TableElem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CipherInfo ¶
type ExtraPorts ¶
type ExtraPorts struct { XMLName xml.Name `xml:"extraports"` State string `xml:"state,attr"` Count int `xml:"count,attr"` ExtraReasons []ExtraReasons `xml:"extrareasons"` }
type ExtraReasons ¶
type FlattenedCipherInfo ¶
type FlattenedCipherInfo struct { HostAddr string PortID string TLSVersion string CipherInfo }
type Host ¶
type Host struct { XMLName xml.Name `xml:"host"` Status HostStatus `xmk:"status"` Address HostAddress `xml:"address"` Hostnames Hostnames `xml:"hostnames"` Ports HostPorts `xml:"ports"` }
type HostAddress ¶
type HostPorts ¶
type HostPorts struct { XMLName xml.Name `xml:"ports"` ExtraPorts ExtraPorts `xml:"extraports"` Ports []PortDetail `xml:"port"` }
type HostStatus ¶
type NMapRun ¶
type NMapRun struct { XMLName xml.Name `xml:"nmaprun"` Args string `xml:"args,attr"` Start string `xml:"start,attr"` // unix timestamp Version string `xml:"version,attr"` ScanInfo ScanInfo `xml:"scaninfo"` Hosts []Host `xml:"host"` RunStats RunStats `xml:"runstats"` }
func (NMapRun) GetActivePorts ¶
func (run NMapRun) GetActivePorts(host string) map[string]PortDetail
func (NMapRun) GetCiphers ¶
func (run NMapRun) GetCiphers(host, portID, tlsVersion string) []CipherInfo
func (NMapRun) GetFlatCiphers ¶
func (run NMapRun) GetFlatCiphers() []FlattenedCipherInfo
func (NMapRun) GetHostsUp ¶
func (NMapRun) GetTLSTables ¶
func (run NMapRun) GetTLSTables(host, portID string) map[string]ScriptTable
func (NMapRun) LeastStrength ¶
func (NMapRun) LeastStrengthAll ¶
type PortDetail ¶
type PortDetail struct { XMLName xml.Name `xml:"port"` Protocol string `xml:"protocol,attr"` PortID string `xml:"portid,attr"` Script ScriptOutput `xml:"script"` }
type RunFinished ¶
type RunStats ¶
type RunStats struct { XMLName xml.Name `xml:"runstats"` Finished RunFinished `xml:"finished"` }
type ScriptOutput ¶
type ScriptOutput struct { XMLName xml.Name `xml:"script"` ID string `xml:"id,attr"` Elems []TableElem `xml:"elem"` Tables []ScriptTable `xml:"table"` }
type ScriptTable ¶
type ScriptTable struct { XMLName xml.Name `xml:"table"` Key string `xml:"key,attr"` Elems []TableElem `xml:"elem"` Tables []ScriptTable `xml:"table"` }
func (ScriptTable) CipherInfo ¶
func (t ScriptTable) CipherInfo() CipherInfo
func (ScriptTable) Elements ¶
func (t ScriptTable) Elements() map[string]string
Click to show internal directories.
Click to hide internal directories.