Linux NC Commands

Source: Internet
Author: User
Tags domain name server

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.