-
Notifications
You must be signed in to change notification settings - Fork 2
/
messages.go
35 lines (33 loc) · 960 Bytes
/
messages.go
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
30
31
32
33
34
35
package misp
// ContextResult is the result of the /context api
type ContextResult struct {
Actor string `json:"actor"`
FirstSeen string `json:"first_seen"`
IP string `json:"ip"`
LastSeen string `json:"last_seen"`
Metadata struct {
ASN string `json:"asn"`
Category string `json:"category"`
City string `json:"city"`
Country string `json:"country"`
CountryCode string `json:"country_code"`
Organization string `json:"organization"`
Os string `json:"os"`
Rdns string `json:"rdns"`
Tor bool `json:"tor"`
} `json:"metadata"`
RawData struct {
Scan []struct {
Port int64 `json:"port"`
Protocol string `json:"protocol"`
} `json:"scan"`
Web struct {
} `json:"web"`
} `json:"raw_data"`
Seen bool `json:"seen"`
Tags []string `json:"tags"`
}
// ErrorResult is the result when an error occurs
type ErrorResult struct {
Error string `json:"error"`
}