Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SuggestTimeout ¶
SuggestTimeout suggests a global timeout based on the number of ports
Types ¶
type Result ¶
type Result []Port
func ConnectScan ¶
ConnectScan uses the basic connect() method to determine if ports are open. address can be a hostname, not limited to IP address. ConnectScan retries the FILTERED ports for once again.
func StealthScan ¶
ip must be a valid IPv4/IPv6 address, not a domain. StealthScan retries the FILTERED ports for once again. StealthScan has two timeout: One is the global timeout, which is set to stop reading packets after X time. Second is the read timeout, which is set to terminate reading from socket after X time, if no packe read. Read timeout is useful if (for example) the global timeout is 10 sec, but no packet arrive after 2 sec, so you dont have to wait for the remaining 8 sec.
func (*Result) GetPortsInt ¶
GetPorts returns the ports from r with state s.