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:
passbe
2011-08-23 10:24:48 +00:00
parent 12a7c7f134
commit 211ec00683
4 changed files with 34 additions and 2 deletions

View File

@@ -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")