passbe/beef-migration-test-2 — Issue #321: Implement a graceful exit when MSF is not accessible
Author: passbe
Created: 2011-12-08 11:00:21+00:00
State: open

What steps will reproduce the problem?
1. Set enable_msf = 1
2. Either don't have MSF running or don't tun the instruction: 'load xmlrpc Pass=abc123 ServerType=Web'
3. Start BeEF

What is the expected output?
An error message should be displayed to the console. The message should explain the problem and a method to potentially fix it.

What do you see instead?
A stacktrace is output to the console:

/opt/local/lib/ruby/1.8/net/http.rb:560:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from /opt/local/lib/ruby/1.8/net/http.rb:560:in `open'
from /opt/local/lib/ruby/1.8/net/http.rb:560:in `connect'
from /opt/local/lib/ruby/1.8/timeout.rb:67:in `timeout'
from /opt/local/lib/ruby/1.8/timeout.rb:101:in `timeout'
from /opt/local/lib/ruby/1.8/net/http.rb:560:in `connect'
from /opt/local/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /opt/local/lib/ruby/1.8/net/http.rb:548:in `start'
from /opt/local/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc'
from /opt/local/lib/ruby/1.8/xmlrpc/client.rb:420:in `call2'
from /opt/local/lib/ruby/1.8/xmlrpc/client.rb:410:in `call'
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=257