-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathparse.go
More file actions
29 lines (27 loc) · 699 Bytes
/
Copy pathparse.go
File metadata and controls
29 lines (27 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package masscan
import "encoding/xml"
type Address struct {
Addr string `xml:"addr,attr"`
AddrType string `xml:"addrtype,attr"`
}
type State struct {
State string `xml:"state,attr"`
Reason string `xml:"reason,attr"`
ReasonTTL string `xml:"reason_ttl,attr"`
}
type Host struct {
XMLName xml.Name `xml:"host"`
Endtime string `xml:"endtime,attr"`
Address Address `xml:"address"`
Ports Ports `xml:"ports>port"`
}
type Ports []struct {
Protocol string `xml:"protocol,attr"`
Portid string `xml:"portid,attr"`
State State `xml:"state"`
Service Service `xml:"service"`
}
type Service struct {
Name string `xml:"name,attr"`
Banner string `xml:"banner,attr"`
}