Documentation
¶
Overview ¶
Borrowed from lair-framework's work
Index ¶
- type Address
- type CPE
- type Debugging
- type Distance
- type Element
- type ExtraPorts
- type Finished
- type Hop
- type Host
- type HostStats
- type Hostname
- type IpIdSequence
- type NmapRun
- type Os
- type OsClass
- type OsFingerprint
- type OsMatch
- type Owner
- type Port
- type PortUsed
- type Reason
- type RunStats
- type ScanInfo
- type Script
- type Sequence
- type Service
- type Smurf
- type State
- type Status
- type Table
- type Target
- type Task
- type TaskProgress
- type TcpSequence
- type TcpTsSequence
- type Times
- type Timestamp
- type Trace
- type Uptime
- type Verbose
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraPorts ¶
type Finished ¶
type Finished struct {
Time Timestamp `xml:"time,attr" json:"time"`
TimeStr string `xml:"timestr,attr" json:"timestr"`
Elapsed float32 `xml:"elapsed,attr" json:"elapsed"`
Summary string `xml:"summary,attr" json:"summary"`
Exit string `xml:"exit,attr" json:"exit"`
ErrorMsg string `xml:"errormsg,attr" json:"errormsg"`
}
type Host ¶
type Host struct {
StartTime Timestamp `xml:"starttime,attr" json:"starttime"`
EndTime Timestamp `xml:"endtime,attr" json:"endtime"`
Comment string `xml:"comment,attr" json:"comment"`
Status Status `xml:"status" json:"status"`
Addresses []Address `xml:"address" json:"addresses"`
Hostnames []Hostname `xml:"hostnames>hostname" json:"hostnames"`
Smurfs []Smurf `xml:"smurf" json:"smurfs"`
Ports []Port `xml:"ports>port" json:"ports"`
ExtraPorts []ExtraPorts `xml:"ports>extraports" json:"extraports"`
Os Os `xml:"os" json:"os"`
Distance Distance `xml:"distance" json:"distance"`
Uptime Uptime `xml:"uptime" json:"uptime"`
TcpSequence TcpSequence `xml:"tcpsequence" json:"tcpsequence"`
IpIdSequence IpIdSequence `xml:"ipidsequence" json:"ipidsequence"`
TcpTsSequence TcpTsSequence `xml:"tcptssequence" json:"tcptssequence"`
HostScripts []Script `xml:"hostscript>script" json:"hostscripts"`
Trace Trace `xml:"trace" json:"trace"`
Times Times `xml:"times" json:"times"`
}
type IpIdSequence ¶
type IpIdSequence Sequence
type NmapRun ¶
type NmapRun struct {
Scanner string `xml:"scanner,attr" json:"scanner"`
Args string `xml:"args,attr" json:"args"`
Start Timestamp `xml:"start,attr" json:"start"`
StartStr string `xml:"startstr,attr" json:"startstr"`
Version string `xml:"version,attr" json:"version"`
ProfileName string `xml:"profile_name,attr" json:"profile_name"`
XMLOutputVersion string `xml:"xmloutputversion,attr" json:"xmloutputversion"`
ScanInfo ScanInfo `xml:"scaninfo" json:"scaninfo"`
Verbose Verbose `xml:"verbose" json:"verbose"`
Debugging Debugging `xml:"debugging" json:"debugging"`
TaskBegin []Task `xml:"taskbegin" json:"taskbegin"`
TaskProgress []TaskProgress `xml:"taskprogress" json:"taskprogress"`
TaskEnd []Task `xml:"taskend" json:"taskend"`
PreScripts []Script `xml:"prescript>script" json:"prescripts"`
PostScripts []Script `xml:"postscript>script" json:"postscripts"`
Hosts []Host `xml:"host" json:"hosts"`
Targets []Target `xml:"target" json:"targets"`
RunStats RunStats `xml:"runstats" json:"runstats"`
}
type Os ¶
type Os struct {
PortsUsed []PortUsed `xml:"portused" json:"portsused"`
OsMatches []OsMatch `xml:"osmatch" json:"osmatches"`
OsFingerprints []OsFingerprint `xml:"osfingerprint" json:"osfingerprints"`
}
type OsFingerprint ¶
type OsFingerprint struct {
Fingerprint string `xml:"fingerprint,attr" json:"fingerprint"`
}
type Service ¶
type Service struct {
Name string `xml:"name,attr" json:"name"`
Conf int `xml:"conf,attr" json:"conf"`
Method string `xml:"method,attr" json:"method"`
Version string `xml:"version,attr" json:"version"`
Product string `xml:"product,attr" json:"product"`
ExtraInfo string `xml:"extrainfo,attr" json:"extrainfo"`
Tunnel string `xml:"tunnel,attr" json:"tunnel"`
Proto string `xml:"proto,attr" json:"proto"`
Rpcnum string `xml:"rpcnum,attr" json:"rpcnum"`
Lowver string `xml:"lowver,attr" json:"lowver"`
Highver string `xml:"hiver,attr" json:"hiver"`
Hostname string `xml:"hostname,attr" json:"hostname"`
OsType string `xml:"ostype,attr" json:"ostype"`
DeviceType string `xml:"devicetype,attr" json:"devicetype"`
ServiceFp string `xml:"servicefp,attr" json:"servicefp"`
CPEs []CPE `xml:"cpe" json:"cpes"`
}
type TaskProgress ¶
type TcpSequence ¶
type TcpTsSequence ¶
type TcpTsSequence Sequence
type Timestamp ¶
func (Timestamp) MarshalJSON ¶
func (Timestamp) MarshalXMLAttr ¶
func (*Timestamp) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.