nmap 端口扫描工具
Summary: Author: 张亚飞 | Read Time: 1 minute read | Published: 2021-04-25
Filed under
—
Categories:
Linux
—
Tags:
Note,
nmap 端口扫描工具
nmap
安装
rpm -vhU https://nmap.org/dist/nmap-7.93-1.x86_64.rpm
查看安装版本信息
nmap -v
Starting Nmap 7.93 ( https://nmap.org ) at 2022-12-28 10:34 CST
Read data files from: /usr/bin/../share/nmap
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.04 seconds
用法
查看 103.234.22.131
的 udp
端口是否连通
sudo nmap -sU -p 3478 103.234.22.131
Starting Nmap 7.93 ( https://nmap.org ) at 2022-12-28 10:38 CST
Nmap scan report for 103.234.22.131
Host is up (0.00027s latency).
PORT STATE SERVICE
3478/udp open stun
Nmap done: 1 IP address (1 host up) scanned in 0.11 seconds
查看 IPV4
端口上的 tcp
的监听
sudo netstat -lntp --inet
sudo netstat -lntp --inet6
扫描 TCP
端口
sudo nmap 103.234.22.131 -sT -p1-65535
扫描 UDP
端口
sudo nmap 103.234.22.131 -sU -p1-65535
Comments