passbe/beef-migration-test-3 — Issue #478: can't load metasploit commands in the BeEF control Panel
Author: passbe
Created: 2011-12-09 01:12:22+00:00
State: open

The metasploit was successfully connect:

[ 0:10:55][*] BeEF is loading. Wait a few seconds...
[ 0:10:56][*] Successful connection with Metasploit.
[ 0:10:56][*] 10 extensions loaded:
[ 0:10:56] | Demos
[ 0:10:56] | Autoloader
[ 0:10:56] | Requester
[ 0:10:56] | Console
[ 0:10:56] | Events
[ 0:10:56] | Initialization
[ 0:10:56] | Metasploit
[ 0:10:56] | Proxy
[ 0:10:56] | Admin UI
[ 0:10:56] |_ XSSRays

When I load the commands in the control panel,I got this:

[2011-08-21 00:13:53] ERROR NoMethodError: undefined method `[]=' for nil:NilClass
/pentest/web/beef/extensions/metasploit/msfcommand.rb:77:in `update_info'
/pentest/web/beef/extensions/admin_ui/controllers/modules/modules.rb:451:in `block in select_command_modules_tree'
/var/lib/gems/1.9.2/gems/gems/dm-core-1.1.0.rc3/lib/dm-core/collection.rb:507:in `block in each'
/var/lib/gems/1.9.2/gems/gems/dm-core-1.1.0.rc3/lib/dm-core/support/lazy_array.rb:413:in `block in each'
/var/lib/gems/1.9.2/gems/gems/dm-core-1.1.0.rc3/lib/dm-core/support/lazy_array.rb:413:in `each'
/var/lib/gems/1.9.2/gems/gems/dm-core-1.1.0.rc3/lib/dm-core/support/lazy_array.rb:413:in `each'
/var/lib/gems/1.9.2/gems/gems/dm-core-1.1.0.rc3/lib/dm-core/collection.rb:504:in `each'
/pentest/web/beef/extensions/admin_ui/controllers/modules/modules.rb:434:in `select_command_modules_tree'
/pentest/web/beef/extensions/admin_ui/classes/httpcontroller.rb:69:in `call'
/pentest/web/beef/extensions/admin_ui/classes/httpcontroller.rb:69:in `run'
/pentest/web/beef/extensions/admin_ui/handlers/ui.rb:48:in `do_GET'
/usr/lib/ruby/1.9.2/webrick/httpservlet/abstract.rb:35:in `service'
/usr/lib/ruby/1.9.2/webrick/httpserver.rb:111:in `service'
/usr/lib/ruby/1.9.2/webrick/httpserver.rb:70:in `run'
/usr/lib/ruby/1.9.2/webrick/server.rb:183:in `block in start_thread'

and loaded faile.

I am using Backtrack 5 & BeEF revision 1221

Looking for your help.Thank you!
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=458