metasploit + dns_bruteforce

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



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值