metasploit + dns_bruteforce

本文介绍如何使用Metasploit框架中的dns_bruteforce模块进行DNS暴力猜解,并解决运行过程中出现的错误。

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

auxiliary/gather/dns_bruteforce 模块可以用于暴力猜解dns.


msf > use auxiliary/gather/dns_bruteforce
msf auxiliary(dns_bruteforce) > set DOAMIN www.example.com
DOAMIN => www.example.com
msf auxiliary(dns_bruteforce) > set WORDLIST /path/to/wordlist
WORDLIST => /path/to/wordlist
msf auxiliary(dns_bruteforce) > run




使用时,可能会提示下面错误:

[-] Auxiliary failed: NameError uninitialized constant Net::DNS::RR::OPT
[-] Call stack:
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/rr.rb:326:in `eval'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/rr.rb:326:in `eval'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/rr.rb:326:in `new_from_binary'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/rr.rb:176:in `parse_packet'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/packet.rb:547:in `block in new_from_data'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/packet.rb:546:in `times'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/packet.rb:546:in `new_from_data'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/packet.rb:153:in `parse'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/resolver.rb:980:in `send'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/resolver.rb:891:in `query'
[-]   /opt/metasploit/apps/pro/msf3/lib/net/dns/resolver.rb:838:in `search'
[-]   /usr/share/metasploit-framework/modules/auxiliary/gather/dns_bruteforce.rb:66:in `get_ip'
[-]   /usr/share/metasploit-framework/modules/auxiliary/gather/dns_bruteforce.rb:70:in `block in get_ip'
[-]   /usr/share/metasploit-framework/modules/auxiliary/gather/dns_bruteforce.rb:68:in `each'
[-]   /usr/share/metasploit-framework/modules/auxiliary/gather/dns_bruteforce.rb:68:in `get_ip'
[-]   /usr/share/metasploit-framework/modules/auxiliary/gather/dns_bruteforce.rb:70:in `block in get_ip'
[-]   /usr/share/metasploit-framework/modules/auxiliary/gather/dns_bruteforce.rb:68:in `each'
[-]   /usr/share/metasploit-framework/modules/auxiliary/gather/dns_bruteforce.rb:68:in `get_ip'
[-]   /usr/share/metasploit-framework/modules/auxiliary/gather/dns_bruteforce.rb:115:in `block (2 levels) in dnsbrt'
[-]   /opt/metasploit/apps/pro/msf3/lib/msf/core/thread_manager.rb:100:in `call'
[-]   /opt/metasploit/apps/pro/msf3/lib/msf/core/thread_manager.rb:100:in `block in spawn'
[*] Auxiliary module execution completed
msf auxiliary(dns_bruteforce) > ruby -v
[*] exec: ruby -v

ruby 1.9.3p194 (2012-04-20 revision 35410) [i486-linux]

=================================================================================
修复方法: gem install net-dns



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值