The latest common network tools in CentOS: nmap for batch host service Scanning

Source: Internet
Author: User

The latest common network tools in CentOS: nmap for batch host service Scanning

In Linux, there are many powerful network scanning tools, including host scanning, host service scanning, and route scanning.

You have previously written common host scanning and routing scanning tools. nmap supports batch host scanning and host service scanning.

Use yum install nmap directly for nmap installation.

ICMP scan for nmap

Nmap can use the ICMP protocol to implement the Ping function. It supports batch host scanning to detect the host survival status.

Compared with the TCP protocol, ICMP does not require three-way handshakes. Therefore, it is faster, but some firewalls or operators cannot scan ICMP.

Common commands:

nmap -sP 192.168.0.1/24nmap -sP 192.168.0.*nmap -sP 192.168.0.1-255

Tcp syn scan for nmap

Nmap supports TCP semi-open scan by sending tcp syn packets to scan the open status of the TCP port of the host.

SYN scanning is faster than full open scanning after three handshakes, and is not easy to detect.

By default, nmap scans Ports 1-and some other common ports. To scan other ports, you can use the p option to specify them.

Common commands:

nmap -sS 192.168.2.224nmap -sS 192.168.2.230-255nmap -sS -p 0-30000 192.168.2.230-255

TCP Connect scan for nmap

The Connect scan of nmap is detected by three handshakes over TCP. Therefore, the speed is slower than that of SYN semi-open scan, but the result is more reliable.

The default scan port and port are the same as SYN scan.

Common commands:

nmap -sT 192.168.2.230-255nmap -sT -p 0-30000 192.168.2.230-255

UDP scan for nmap

Nmap also supports UDP port scanning.

UDP is less likely to be intercepted by the firewall than TCP.

Common commands:

nmap -sU 192.168.2.230-255nmap -sU -p 0-30000 192.168.2.230-255

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.