Documentation
¶
Index ¶
- Constants
- Variables
- func DnsScan(host string, port int) bool
- func FixProtocol(oldProtocol string) string
- func GuessProtocol(port int) string
- func SetFilter(filter int)
- func SetLogger(v Logger)
- type FingerPrint
- type Logger
- type Nmap
- func (n *Nmap) AddMatch(probeName string, expr string)
- func (n *Nmap) OpenDeepIdentify()
- func (n *Nmap) Scan(ip string, port int) (status Status, response *Response)
- func (n *Nmap) ScanTimeout(ip string, port int, timeout time.Duration) (status Status, response *Response)
- func (n *Nmap) SetTimeout(timeout time.Duration)
- type PortList
- type ProbeList
- type Response
- type Status
Constants ¶
View Source
const ( Closed Status = 0x000a1 Open = 0x000b2 Matched = 0x000c3 NotMatched = 0x000d4 Unknown = 0x000e5 )
Variables ¶
View Source
var MatchCount = 0
View Source
var ProbesCount = 0
View Source
var UsedMatchCount = 0
View Source
var UsedProbesCount = 0
Functions ¶
func FixProtocol ¶
func GuessProtocol ¶
Types ¶
type FingerPrint ¶
type Logger ¶
type Logger interface {
Printf(format string, v ...interface{})
Println(v ...interface{})
}
type Nmap ¶
type Nmap struct {
// contains filtered or unexported fields
}
func (*Nmap) OpenDeepIdentify ¶
func (n *Nmap) OpenDeepIdentify()
func (*Nmap) ScanTimeout ¶
func (*Nmap) SetTimeout ¶
type Response ¶
type Response struct {
Raw string
TLS bool
FingerPrint *FingerPrint
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.