Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use Nmap

Shulou Source: shulou.com Published: 2022-06-01 14:08:25 10月28日 Update

This article introduces the relevant knowledge of "how to use Nmap". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Nmap (Network Mapper) is an open source network detection and security audit tool. It is designed to scan large networks quickly, although it can scan individual hosts without problems.

1)Get system type and open port of remote host nmap-sS-P0-sV-O

This can be a single IP, or hostname, or domain name, or subnet.

- sS TCP SYN scan (also known as semi-open, or stealth scan)-P0 allows you to turn off ICMP pings. - sV Open system version detection-O Try to identify remote OS

Other options:

- A open operating system fingerprint and version detection at the same time-v detailed output scan situation.

2)List of hosts with a specified port open nmap-sT-p 80-oG-192.168.1. * | grep open 3) Find all online hosts in the web nmap-sP 192.168.0. *

Alternatively, you can use the following command:

nmap -sP 192.168.0.0/24

Specify subnet

4)Ping IP addresses in the specified range nmap-sP 192.168.1.100 - 2545) Find unoccupied IPnmap-T4-sP www.example.com && egrep "00:00:00:00:00:00 PM 00 ″/proc/net/arp6) Scan the local area network for Conficker worm nmap-PN-T4-p139, 445-n-v-script = smb-check-vulns-script-args safe = 1 192.168.0.1 - 2547) Scan the network for malicious access points (rogue APs). nmap-A-p1 - 85,113,443, 8080 - 8100-T4-min-hostgroup 50-max-rtt-timeout 2000-initial-rtt-timeout 300-max-retries 3-host-timeout 2 0 m-max-scan-delay 1000-oA wapscan www.example.com) Scan host ports using decoy scan method sudo nmap-sS www.example.com-D www.example.com) List reverse DNS records for a subnet n map-R-sL www.example.com 192.168.2.0/24grep '('10) Shows how many Linux and Win devices are on the network?|| sudo nmap-F-O 192.168.0.1-255| grep "Running:">/tmp/os; echo "$(cat/tmp/os| grep Linux\| wc-l) Linux device(s)"; echo "$(cat/tmp/os| grep Windows| wc-l) Window (s) device "" How to use Nmap "is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Tags: Host network system open port operating system content situation more version knowledge subnet detection output practical security learning and then single also known as Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft macOS Shulou Information Shulou Tech Info