DNSenum ---- DNS枚举工具

DNSenum是一款强大的域名信息收集工具,能通过Google或字典文件猜解可能存在的域名,并执行多种查询,包括A记录、NS记录、MX记录及反向查询等。此外,它还能执行axfr请求获取更多域名信息,并支持多线程操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  DNSenum是一款非常强大的域名信息收集工具。它能够通过google或者字典文件猜解可能存在的域名,并对一个网段进行反向查询。它不仅可以查询网站的主机地址信息、域名服务器和邮件交换记录,还可以在域名服务器上执行axfr请求通过谷歌脚本得到拓展域名信息,提取子域名并查询,最后计算C类地址并执行whois查询,执行反向查询,将地址段写入文件。
root@kali:~# dnsenum 
dnsenum.pl VERSION:1.2.3
Usage: dnsenum.pl [Options] <domain>  //用法
[Options]:
Note: the brute force -f switch is obligatory.  
GENERAL OPTIONS:  
  --dnsserver   <server>
            Use this DNS server for A, NS and MX queries.  //指定一个DNS服务器查询A, NS and MX记录
  --enum        Shortcut option equivalent to --threads 5 -s 15 -w.  //等同于--threads 5 -s 15 -w
  -h, --help        Print this help message.  //显示帮助信息
  --noreverse       Skip the reverse lookup operations.  //跳过反向查询
  --nocolor     Disable ANSIColor output.  //禁止ADSIColor输出
  --private     Show and save private ips at the end of the file domain_ips.txt.  
                //在文件domain_ips.txt的末尾显示并保存私有密码
  --subfile <file>  Write all valid subdomains to this file.  //将所有有效子域写入此文件
  -t, --timeout <value> The tcp and udp timeout values in seconds (default: 10s).  //设置tcp和udp超时值
  --threads <value> The number of threads that will perform different queries.  //设置线程数
  -v, --verbose     Be verbose: show all the progress and all the error messages.  
                     //显示所有进度和所有错误消息.
GOOGLE SCRAPING OPTIONS:  
  -p, --pages <value>   The number of google search pages to process when scraping names, the default is 5 pages, the -s switch must be specified.
                     //抓取名称时要处理的google搜索页面的数量,默认为5页,必须指定-s开关。
  -s, --scrap <value>   The maximum number of subdomains that will be scraped from Google (default 15).  //要从Google中删除的子域的最大数量
BRUTE FORCE OPTIONS:
  -f, --file <file> Read subdomains from this file to perform brute force. //从此文件读取子域执行暴力枚举 
  -u, --update  <a|g|r|z>
            Update the file specified with the -f switch with valid subdomains.
            //使用有效的子域更新,使用-f指定文件。
    a (all)     Update using all results.  //使用所有结果更新。
    g       Update using only google scraping results.  //仅使用Google抓取结果更新
    r       Update using only reverse lookup results.  //仅使用反向查找结果进行更新。
    z       Update using only zonetransfer results.  //仅使用区域转移结果进行更新
  -r, --recursion   Recursion on subdomains, brute force all discovred subdomains that have an NS record.  //允许使用递归查询
WHOIS NETRANGE OPTIONS:
  -d, --delay <value>   The maximum value of seconds to wait between whois queries, the value is defined randomly, default: 3s.  //在whois查询之间等待的最大秒数,随机定义为3秒。
  -w, --whois       Perform the whois queries on c class network ranges.  //对c类网络范围执行whois查询。
             **Warning**: this can generate very large netranges and it will take lot of time to performe reverse lookups.
            // **警告**:这可以产生非常大的netranges,花费大量的时间来执行反向查找。
REVERSE LOOKUP OPTIONS:
  -e, --exclude <regexp>
            Exclude PTR records that match the regexp expression from reverse lookup results, useful on invalid hostnames.  //从反向查找结果中排除匹配正则表达式表达式的PTR记录,这对无效主机名有用。
OUTPUT OPTIONS:
  -o --output <file>    Output in XML format. Can be imported in MagicTree (www.gremwell.com)  
               //以XML保存输出结果
Example

这里写图片描述

这里写图片描述

这里写图片描述

### Kali Linux中的dnsenum工具使用教程 #### 工具概述 `dnsenum` 是一款用于枚举域名系统的强大脚本,能够帮助安全研究人员收集关于目标域的大量信息。该工具可以执行子域名暴力破解、查询DNS记录以及检测可能存在的错误配置等问题[^1]。 #### 安装与更新 在Kali Linux环境中,默认已经安装了`dnsenum`。如果需要确保版本是最新的,则可以通过Apt包管理器来完成升级操作: ```bash sudo apt update && sudo apt install dnsenum -y ``` #### 基础命令语法 基本用法如下所示: ```bash dnsenum domain.com ``` 这将会针对指定的目标域名 `domain.com` 进行一系列的信息搜集工作,并输出结果到终端窗口中。 #### 高级选项说明 为了更深入地利用此工具的功能,还可以添加更多参数来自定义扫描过程。下面列举了一些常用高级选项及其作用: - `-f wordlist.txt`: 指定自定义字典文件来进行子域名猜测; - `-o outputfile.xml`: 将最终报告保存为XML格式并命名为outputfile.xml; - `--nocolor`: 关闭彩色输出模式,在某些情况下可能会提高兼容性和可读性; - `-s`: 启用额外的服务探测功能; 例如,要使用特定单词列表对example.org进行全面测试并将结果导出至名为report.xml的文件里,应该这样输入指令: ```bash dnsenum example.org -f /path/to/wordlist.txt -o report.xml --nocolor -s ``` #### 实际案例展示 假设现在有一个任务是要调查testsite.net这个网站的相关情况,那么就可以按照以下步骤依次展开行动: 1. 执行默认设置下的初步探索: ```bash dnsenum testsite.net ``` 2. 结合大型词表进行更为详尽的子域名挖掘: ```bash dnsenum testsite.net -f big_wordlist.txt ``` 3. 开启服务识别特性以获得更加丰富的细节描述: ```bash dnsenum testsite.net -s ``` 以上就是有关于如何运用`dnsenum`开展实际工作的简单介绍。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值