Fixes issue 621: Added 2 new command line options. Now it's psosible to specify a different config.yaml file. Also changed the core load order, adding a new bootstrap module.

This commit is contained in:
antisnatchor
2012-03-04 14:55:03 +01:00
parent 3f06f6db18
commit e9a6049e58
13 changed files with 111 additions and 91 deletions

View File

@@ -1,6 +1,6 @@
BEEF_TEST_DIR = "/tmp/beef-test/"
ATTACK_DOMAIN = "attacker.beefproject.com"
VICTIM_DOMAIN = "victim.beefproject.com"
ATTACK_DOMAIN = "127.0.0.1"
VICTIM_DOMAIN = "127.0.0.1"
ATTACK_URL = "http://" + ATTACK_DOMAIN + ":3000/ui/panel"
VICTIM_URL = "http://" + VICTIM_DOMAIN + ":3000/demos/basic.html"

View File

@@ -41,6 +41,7 @@ class TC_Metasploit < Test::Unit::TestCase
# Load the config for testing
#
def load_config
BeEF::Core::Configuration.new("#{$root_dir}/config.yaml")
BeEF::Core::Configuration.instance.load_extensions_config
@config = BeEF::Core::Configuration.instance.get('beef.extension.metasploit')
end