rapid7/metasploit-framework — Issue #61: db_import of Burp session fails
Author: mboman
Created: 2011-12-16 13:35:24+00:00
State: open

Steps:
1) Save burp state (example.burp)
2) Unzip the burp state (unzip example.burp)
3) Rename the extracted file "burp" to "burp.xml"
4) run db_import /path/to/burp.xml (path has no spaces btw)
Following ruby stack trace is displayed:

2011-12-16 12:23:37 +0100 S:0 J:1 > db_import /root/burp.xml
[-] Error while running command db_import: getaddrinfo: Name or service not known

Call stack:
/opt/framework/msf3/lib/rex/socket.rb:176:in `gethostbyname'
/opt/framework/msf3/lib/rex/socket.rb:176:in `getaddress'
/opt/framework/msf3/lib/rex/socket.rb:124:in `is_ipv4?'
/opt/framework/msf3/lib/msf/core/db.rb:163:in `ipv4_validator'
/opt/framework/msf3/lib/msf/core/db.rb:158:in `ipv46_validator'
/opt/framework/msf3/lib/msf/core/db.rb:2226:in `import_filetype_detect'
/opt/framework/msf3/lib/msf/core/db.rb:2086:in `import'
/opt/framework/msf3/lib/msf/core/db.rb:2072:in `import_file'
/opt/framework/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1018:in `block (2 levels) in cmd_db_import'
/opt/framework/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1011:in `each'
/opt/framework/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1011:in `block in cmd_db_import'
/opt/framework/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1005:in `each'
/opt/framework/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1005:in `cmd_db_import'
/opt/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:380:in `run_command'
/opt/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:342:in `block in run_single'
/opt/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in `each'
/opt/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in `run_single'
/opt/framework/msf3/lib/rex/ui/text/shell.rb:199:in `run'
/opt/framework/msf3/lib/msf/ui/web/console.rb:65:in `block in initialize'
/opt/framework/msf3/lib/msf/core/thread_manager.rb:64:in `call'
/opt/framework/msf3/lib/msf/core/thread_manager.rb:64:in `block in spawn'

2011-12-16 12:23:37 +0100 S:0 J:1 > version
Framework: 4.2.0-dev.14161
Console : 4.2.0-dev.14065

On Backtrack 5 R1 (64-bit)