Fierce的介绍与简单使用

Fierce简介

Fierce是一款IP、域名互查的DNS工具,可进行域传送漏洞检测、字典爆破子域名、反查IP段、反查指定域名上下一段IP,属于一款半轻量级的多线程信息收集用具。Fierce可尝试建立HTTP连接以确定子域名是否存在,此功能为非轻量级功能,所以,定义为半轻量级。

参数选项

使用dnsenum -h来查询全部命令

fierce (C) Copywrite 2006,2007 - By RSnake at http://ha.ckers.org/fierce/                                                                                                      
                                                                                                                                                                           
    Usage: fierce [-dns example.com] [OPTIONS]                                                                                                                             
                                                                                                                                                                           
Overview:                                                                                                                                                                      
    Fierce is a semi-lightweight scanner that helps locate non-contiguous                                                                                                  
    IP space and hostnames against specified domains.  It's really meant                                                                                                   
    as a pre-cursor to nmap, unicornscan, nessus, nikto, etc, since all                                                                                                    
    of those require that you already know what IP space you are looking                                                                                                   
    for.  This does not perform exploitation and does not scan the whole                                                                                                   
    internet indiscriminately.  It is meant specifically to locate likely                                                                                                  
    targets both inside and outside a corporate network.  Because it uses                                                                                                  
    DNS primarily you will often find mis-configured networks that leak                                                                                                    
    internal address space. That's especially useful in targeted malware.                                                                                                  
                                                                                                                                                                           
Options:                                                                                                                                                                       
    -connect  [header.txt]      Attempt to make http connections to any non RFC1918                                                                                                    
            (public) addresses.  This will output the return headers but                                                                                                   
            be warned, this could take a long time against a company with                                                                                                  
            many targets, depending on network/machine lag.  I wouldn't                                                                                                    
            recommend doing this unless it's a small company or you have a                                                                                                 
            lot of free time on your hands (could take hours-days).  
            Inside the file specified the text "Host:\n" will be replaced
            by the host specified. Usage:

    fierce -dns example.com -connect headers.txt

    -delay  <number>        The number of seconds to wait between lookups.
    -dns <domain>           The domain you would like scanned.
    -dnsfile  <dnsfile.txt>      Use DNS servers provided by a file (one per line) for
            reverse lookups (brute force).
    -dnsserver  <dnsserver>    Use a particular DNS server for reverse lookups 
            (probably should be the DNS server of the target).  Fierce
            uses your DNS server for the initial SOA query and then uses
            the target's DNS server for all additional queries by default.
    -file           A file you would like to output to be logged to.
    -fulloutput     When combined with -connect this will output everything
            the webserver sends back, not just the HTTP headers.
    -help           This screen.
    -nopattern      Don't use a search pattern when looking for nearby
            hosts.  Instead dump everything.  This is really noisy but
            is useful for finding other domains that spammers might be
            using.  It will also give you lots of false positives, 
            especially on large domains.
    -range   <IP>       Scan an internal IP range (must be combined with 
            -dnsserver).  Note, that this does not support a pattern
            and will simply output anything it finds.  Usage:

    fierce -range 111.222.333.0-255 -dnsserver ns1.example.co

    -search  <Search list>       Search list.  When fierce attempts to traverse up and
            down ipspace it may encounter other servers within other
            domains that may belong to the same company.  If you supply a 
            comma delimited list to fierce it will report anything found.
            This is especially useful if the corporate servers are named
            different from the public facing website.  Usage:

     EXAMPLE:    fierce -dns examplecompany.com -search corpcompany,blahcompany 

            Note that using search could also greatly expand the number of
            hosts found, as it will continue to traverse once it locates
            servers that you specified in your search list.  The more the
            better.
    -suppress       Suppress all TTY output (when combined with -file).
    -tcptimeout <number>    Specify a different timeout (default 10 seconds).  You
            may want to increase this if the DNS server you are querying
            is slow or has a lot of network lag.
    -threads [number] Specify how many threads to use while scanning (default
      is single threaded).
    -traverse   [number]    Specify a number of IPs above and below whatever IP you
            have found to look for nearby IPs.  Default is 5 above and 
            below.  Traverse will not move into other C blocks.
    -version        Output the version number.
    -wide           Scan the entire class C after finding any matching
            hostnames in that class C.  This generates a lot more traffic
            but can uncover a lot more information.
    -wordlist   <sub.txt>    Use a seperate wordlist (one word per line).  Usage:

     EXAMPLE  fierce -dns examplecompany.com -wordlist dictionary.txt

示例

  1. fierce -dns sina.com -threads 5 -tcptimeout 1(对sina.com进行dns查询,使用5个线程,超时时间为1s)

    在这里插入图片描述
    DNS servers:sina.com 的dns服务器
    zone transfer: dns区域传送,现在大多数服务器对于dns区域传送有了严格的限制,所以大多数情况下都不能查出有用的信息。
    在这里插入图片描述
    这里是对子域名进行传统的暴力破解,这里博主只列出了一部分,实际上有非常多的子域名,而且这一部分的扫描非常花费时间,但收获也非常多。

在这里插入图片描述
对子域名所在的IP地址进行分类,后续若有兴趣可以使用nmap进行扫描。

总结 fierce进行dns查询花费的时间比dnsenum多得多,(即便使用-threads和-tcptimeout 也要花费数分钟),但是获得的子域名也比dnsenum多。如果时间充裕,且想要进行随机的目标选择,可以使用fierce。

  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
fierce是一个域名扫描综合性工具,它可以快速获取指定域名的DNS服务器,并检查是否存在区域传输(Zone Transfer)漏洞。如果不存在该漏洞,fierce会自动执行暴力破解,以获取子域名信息。此外,fierce还会遍历周边IP地址,以获取更多的信息,并将IP地址进行分段统计,以便于后期其他工具扫描,如NMAP。\[3\] 要使用fierce工具,你可以在Kali Linux中打开终端,并输入以下命令来安装fierce: ``` sudo apt-get update sudo apt-get install fierce ``` 安装完成后,你可以使用以下命令来运行fierce: ``` fierce -dns example.com ``` 其中,example.com是你要扫描的域名。fierce将会开始扫描该域名的DNS服务器,并输出相关的信息,包括子域名和IP地址等。你也可以使用-f参数来指定输出文件的路径,例如: ``` fierce -dns example.com -f output.txt ``` 这将把扫描结果保存到output.txt文件中。请注意,使用fierce工具需要谨慎,确保你已经获得了合法的授权来进行域名扫描。 #### 引用[.reference_title] - *1* *3* [子域名收集之DNS字典爆破工具fierce与dnsdict6的使用](https://blog.csdn.net/qq_42840244/article/details/89889736)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [kali中的DNS分析工具 --- DNSenum/DNSrecon/fierce](https://blog.csdn.net/weixin_44283446/article/details/111246196)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值