Documentation ¶
Index ¶
- func Ip2long(ip string) uint32
- func Long2ip(proper uint32) string
- type Scanner
- func (s *Scanner) DoScanPort(target, portList string, callback func(net.Conn)) bool
- func (s *Scanner) DoScanPortRange(target string, portStart, portEnd int, callback func(net.Conn), ...) bool
- func (s *Scanner) ScanAllPort(ip string, callback func(net.Conn)) error
- func (s *Scanner) ScanIp(startIp string, endIp string, port int, callback func(net.Conn)) error
- func (s *Scanner) ScanIpPortList(portList, startIp string, mask uint, callback func(net.Conn)) error
- func (s *Scanner) ScanPort(ip, port string, callback func(net.Conn)) error
- func (s *Scanner) ScanPortSplit(portList string, startIplong, endIplong uint32, callback func(net.Conn), ...)
- func (s *Scanner) SetTimeout(t time.Duration) *Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
func (*Scanner) DoScanPort ¶
func (*Scanner) DoScanPortRange ¶
func (*Scanner) ScanAllPort ¶
扫描目标主机打开的端口列表
func (*Scanner) ScanIp ¶
异步TCP扫描网段及端口,如果扫描的端口是打开的,那么将链接给定给回调函数进行调用 注意startIp和endIp需要是同一个网段,否则会报错,并且回调函数不会执行
func (*Scanner) ScanIpPortList ¶
func (s *Scanner) ScanIpPortList(portList, startIp string, mask uint, callback func(net.Conn)) error
注意startIp和endIp需要是同一个网段,否则会报错,并且回调函数不会执行
func (*Scanner) ScanPortSplit ¶
Click to show internal directories.
Click to hide internal directories.