使用nmap扫描

问题描述 投票:0回答:2

各位。有没有办法使用 nmap 扫描网络中打开的解析器。我从 nmap 页面上有这个命令,但它似乎不起作用

nmap -sU -p 53 --script=dns-recursion <target>
dns nmap
2个回答
0
投票

我执行了命令,它正在按预期工作。

[root@Golgota /home/test]# nmap -sU -p 53 --script=dns-recursion 8.8.8.8

Starting Nmap 6.47 ( http://nmap.org ) at 2015-02-26 22:39 CET
Nmap scan report for google-public-dns-a.google.com (8.8.8.8)
Host is up (0.021s latency).
PORT   STATE SERVICE
53/udp open  domain
|_dns-recursion: Recursion appears to be enabled

Nmap done: 1 IP address (1 host up) scanned in 0.50 seconds

0
投票

试试这个:

sudo nmap -sS -sU -PN -p 53

-sU为UDP扫描 -sS 是TCP扫描 -PN 躲避主机发现并将所有目标视为在线。 -p 53 使用 DNS 默认端口 53

要查找您的网络子网和网络掩码,请使用命令 ip addr show

  1. 找到你的 eth0 或 wlan0
  2. 例如,如果您看到 192.169.1.100 那么范围将是 192.169.100.0/24
© www.soinside.com 2019 - 2024. All rights reserved.