dddd/lib/gonmap/type-response.go
SleepingBag945 01e7d0b159 dddd
2023-08-18 08:55:46 +02:00

41 lines
637 B
Go
Executable File

package gonmap
const (
Closed Status = 0x000a1
Open = 0x000b2
Matched = 0x000c3
NotMatched = 0x000d4
Unknown = 0x000e5
)
type Status int
func (s Status) String() string {
switch s {
case Closed:
return "Closed"
case Open:
return "Open"
case Matched:
return "Matched"
case NotMatched:
return "NotMatched"
case Unknown:
return "Unknown"
default:
return "Unknown"
}
}
type Response struct {
Raw string
TLS bool
FingerPrint *FingerPrint
}
var dnsResponse = Response{Raw: "DnsServer", TLS: false,
FingerPrint: &FingerPrint{
Service: "dns",
},
}