Added post_soft_load timed API call. Corrected BeEF::Module.exist function to use Class specification in configuration
git-svn-id: https://beef.googlecode.com/svn/trunk@1233 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -79,8 +79,8 @@ module Module
|
||||
config = BeEF::Core::Configuration.instance
|
||||
if self.is_enabled(mod)
|
||||
begin
|
||||
require config.get("beef.module.#{mod}.path")+'/module.rb'
|
||||
if self.exists?(mod)
|
||||
require config.get("beef.module.#{mod}.path")+'module.rb'
|
||||
if self.exists?(config.get("beef.module.#{mod}.class"))
|
||||
# start server mount point
|
||||
BeEF::Core::Server.instance.mount("/command/#{mod}.js", false, BeEF::Core::Handlers::Commands, mod)
|
||||
BeEF::Core::Configuration.instance.set("beef.module.#{mod}.mount", "/command/#{mod}.js")
|
||||
|
||||
Reference in New Issue
Block a user