metasploit + dns_bruteforce

来源:互联网 发布:优阅网络下载 编辑:程序博客网 时间:2024/05/18 14:42

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