dnsenum的命令参数中文说明

本文详细介绍dnsenum工具的各项功能及使用方法,包括常规选项、Google抓取选项、暴力破解选项、WHOIS网络区间选项、反向查询选项及输出选项等内容。

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

dnsenum英文说明:

GENERAL OPTIONS:

  --dnsserver     <server>
            Use this DNS server for A, NS and MX queries.
  --enum        Shortcut option equivalent to --threads 5 -s 15 -w.
  -h, --help        Print this help message.
  --noreverse        Skip the reverse lookup operations.
  --nocolor        Disable ANSIColor output.
  --private        Show and save private ips at the end of the file 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).
  --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.
  -s, --scrap <value>    The maximum number of subdomains that will be scraped from Google (default 15).
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.
    a (all)        Update using all results.
    g        Update using only google scraping results.
    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.
  -w, --whois        Perform the whois queries on c class network ranges.
             **Warning**: this can generate very large netranges and it will take lot of time to performe reverse lookups.
REVERSE LOOKUP OPTIONS:
  -e, --exclude    <regexp>
            Exclude PTR records that match the regexp expression from reverse lookup results, useful on invalid hostnames.
OUTPUT OPTIONS:

  -o --output <file>    Output in XML format. Can be imported in MagicTree (www.gremwell.com)

dnsenum中文说明:

常规选项:

--dnsserver     <server> 使用指定DNS服务器查询A记录(注释1),NS记录(注释2),MX记录(注释3)。
  --enum 枚举快捷选项 等效于 --threads 5 -s 15 -w。
  -h, --help        打印这个帮助信息。
  --noreverse        跳过反向查找操作。
  --nocolor        禁用ANSIColor(注释4)输出。
  --private        在domain_ips.txt文件结尾显示和保存私有ip。
  --subfile <file>    将所有有效子域写入此文件。
  -t, --timeout <value>    TCP和UDP超时值(默认值: 10s)。
  --threads <value>    执行不同查询的线程数。
  -v, --verbose        详细信息:显示所有的进度和错误信息。
GOOGLE SCRAPING OPTIONS(google抓取选项):
  -p, --pages <value>    在抓取域名时要处理的谷歌搜索页面的数量,默认为5页,必须指定-s参数.
  -s, --scrap <value>    从谷歌搜索中清除子域的最大数目(默认为15).

BRUTE FORCE OPTIONS(暴力破解选项):
  -f, --file <file>    从该文件中读取子域进行暴力破解.
  -u, --update    <a|g|r|z> 使用文件中指定有效的子域更新- f参数中的文件。
    a (all)        使用所有的结果更新。
    g        只使用谷歌抓取结果更新。
    r        只使用反向查找结果更新。
    z        只使用区域传送(注释5)结果更新。
  -r, --recursion    在子域上递归查询,暴力破解过所有拥有NS记录的子域。
WHOIS NETRANGE OPTIONS(WHOIS 网络区间选项):
  -d, --delay <value>    在whois查询之间延时等待时间的最大值,该值是随机定义的,默认为3s。
  -w, --whois        在C类网络范围内执行whois查询。
             **警告**: 者可以产生非常大的网络区间,并且需要大量时间进行反向查找。
REVERSE LOOKUP OPTIONS(反向查询选项):
  -e, --exclude    <regexp>
            排除域regexp表达式匹配的反向查找结果的PTR记录(注释6),对无效的主机名有用。
OUTPUT OPTIONS(输出选项):

  -o --output <file>   输出为XML格式文件。可导入MagicTree (www.gremwell.com)

注释:

注释1:A(Address)记录是用来指定主机名或域名对应的IP得知记录。

注释2:NS(Name Server)记录是域名服务器记录,用来指定该域名由哪个DNS服务器来进行解析。

注释3:MX(Mail Exchanger)记录是邮件交换记录,他指向一个邮件服务器,用于电子邮件系统发送邮件时根据收信人的地址后缀来定位邮件服务器。

注释4:ANSIColor,ANSI是一种字符代码,是扩展ASCII编码,ANSIColor是添加特定的ANSI标示符的字符就可以显示不同的颜色。

注释5:DNS区域传送(DNS zone transfer)指的是一台备用服务器使用来自主服务器的数据刷新自己的域(zone)数据库。

注释6:PTR记录用于将一个IP地址映射到对应的域名,也可以看成是A记录的反向,IP地址的反向解析。

### 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、付费专栏及课程。

余额充值