insall install nmap | ||||||
---|---|---|---|---|---|---|
centos | yum install nmap | |||||
RPM install | rpm -vhU https://nmap.org/dist/nmap-7.92-1.x86_64.rpm | |||||
Ubuntu | apt update apt install nmap | |||||
usage | ||||||
| ||||||
list of port | nmap -p 22,80,443,1280,830,930 -T4 192.168.0.204 | |||||
UDP port | -p U:53,111,137,T:21-25,80,139,8080 | |||||
port range 1-1024 22-45006 | [root@node1 ~]# nmap 172.20.8.17 -p 22-45006 Starting Nmap 7.92 ( https://nmap.org ) at 2022-07-09 18:15 UTC Nmap scan report for 172.20.8.17 Host is up (0.000012s latency). Not shown: 44979 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 443/tcp open https 930/tcp open unknown 4505/tcp open unknown 4506/tcp open unknown | |||||
GUI | zenmap https://nmap.org/zenmap/ | |||||
...