dipsec / armitage

Automatically exported from code.google.com/p/armitage
0 stars 0 forks source link

Undefined method '[]' for nil:NilClass error when running NMap scan #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run Intense NMap scan against a host
2.
3.

What is the expected output? What do you see instead?
The scan ends with what you see below and the host never appears in the host 
panel.

[...snip...]
[*] Nmap: Nmap done: 1 IP address (1 host up) scanned in 146.70 seconds
[*] Nmap: Raw packets sent: 65713 (2.892MB) | Rcvd: 65556 (2.623MB)
[-] Error while running command db_nmap: undefined method `[]' for nil:NilClass

Call stack:
C:/framework/msf3/lib/rex/parser/nmap_xml.rb:109:in `tag_start'
C:/framework/ruby/lib/ruby/1.9.1/rexml/parsers/streamparser.rb:24:in `parse'
C:/framework/ruby/lib/ruby/1.9.1/rexml/document.rb:204:in `parse_stream'
C:/framework/msf3/lib/msf/core/db.rb:3948:in `import_nmap_xml'
C:/framework/msf3/lib/msf/core/db.rb:3810:in `import_nmap_xml_file'
C:/framework/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1574:in 
`cmd_db_nmap'
C:/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:331:in `run_command'
C:/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:293:in `block in 
run_single'
C:/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:287:in `each'
C:/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:287:in `run_single'
C:/framework/msf3/lib/rex/ui/text/shell.rb:143:in `run'
C:/framework/msf3/lib/msf/ui/web/console.rb:65:in `block in initialize'
C:/framework/msf3/lib/msf/core/thread_manager.rb:64:in `call'
C:/framework/msf3/lib/msf/core/thread_manager.rb:64:in `block in spawn'

What version of Metasploit are you using (type: svn info)? On which
operating system?

      =[ metasploit v3.7.0-dev [core:3.7 api:1.0]
+ -- --=[ 683 exploits - 355 auxiliary
+ -- --=[ 217 payloads - 27 encoders - 8 nops
       =[ svn r12463 updated today (2011.04.28)

On Windows

Which database are you using?

postgres

Please provide any additional information below.

Original issue reported on code.google.com by ismi...@gmail.com on 28 Apr 2011 at 8:52

GoogleCodeExporter commented 9 years ago
This is a Metasploit installer bug, nothing to do with Armitage. Here's the bug 
(for this issue) filed with the Metasploit team:

https://dev.metasploit.com/redmine/issues/4206

Original comment by rsmu...@gmail.com on 29 Apr 2011 at 12:13