A simple port scanner to find which port is open
There is 6 functions provided
scan_port
It is used to scan a single port and see if it's open.
Example
use scan_port;
println!;
scan_port_addr
It is used to scan a single port with a specific ip and see if it's open like the previous one.
Example
use scan_port_addr;
println!
scan_ports
This function scan all ports specified and return all open ports.
Example
use scan_ports;
for open_port in scan_ports
scan_ports_addrs
This function scan ports of all addresses and return a list of all addresses with open port.
Example
use scan_ports_addrs;
for open_addr in scan_ports_addrs
scan_ports_range
This function is like scan_ports but it scan a range of ports.
Example
use scan_ports_range;
for open_port in scan_ports_range
request_open_port
This function ask to the os and open port and return it.
Example
use request_open_port;
println!;