Linux NC Commands
The Linux NC command is used to set up the router.
Execute this instruction to set the relevant parameters of the router.
Grammar
NC [-hlnruz][-g< Gateway ...>][-g< number of points >][-i< delay seconds >][-o< output file >][-p< communication port >][-s< Source address >][ -V ...] [-w< timeout number of seconds;] [Host name] [Communication port ...]
Parameter description:
-g< Gateway > Set Router Hop communication gateway, the most lost oh can be set to 8.
-g< number of pointers > set source route-to-point, with a number of multiples of 4.
-H online Help.
-i< delay seconds > Set time interval for transmitting information and scanning communication ports.
-L Use the monitor mode to control incoming data.
-N uses the IP address directly, not through the domain name server.
-o< output File > Specify the name of the file, and transfer the data transferred to the file in 16 Loadline to save.
-p< Communication port > Set the communication port used by the local host.
-R chaos Specifies the communication port between the local and the remote host.
-s< Source location > Set the IP address of the local host to send the packet.
-U uses the UDP transport protocol.
-V Displays the instruction execution process.
-w< Timeout seconds > Set the time to wait for the connection.
-Z uses 0 in/out mode and is only used when scanning communication ports.
Instance
TCP port Scan
# nc-v-z-w2 192.168.0.3 1-100 2> err.txt
192.168.0.3:inverse Host Lookup Failed:unknown host
(UNKNOWN) [192.168.0.3] (HTTP) Open
(UNKNOWN) [192.168.0.3] (telnet) Open
(UNKNOWN) [192.168.0.3] (SSH) Open
The port range of the scan 192.168.0.3 is 1-100
Scan UDP ports
# nc-u-z-w2 192.168.0.1 1-1000 2> err.txt//scan 192.168.0.3 port range is 1-1000
Scan a specified port
# NC-NVV 192.168.0.1 80//Scan 80 ports
(UNKNOWN) [192.168.0.1] (?) Open
Y//user input
Linux NC Commands