mirror of
https://github.com/SleepingBag945/dddd.git
synced 2025-06-08 05:57:10 +00:00
41 lines
637 B
Go
Executable File
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",
|
|
},
|
|
}
|