From 3ebe44732b4fc5e497ed6d5ec3d304960a31f8c1 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Sun, 15 Apr 2012 12:54:04 +0100 Subject: [PATCH] Added beef.module.key.class to /api/module JSON response. --- core/main/rest/handlers/modules.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/core/main/rest/handlers/modules.rb b/core/main/rest/handlers/modules.rb index 61e78209c..7addcf623 100644 --- a/core/main/rest/handlers/modules.rb +++ b/core/main/rest/handlers/modules.rb @@ -41,6 +41,7 @@ module BeEF next if !BeEF::Module.is_enabled(modk) mods_hash[i] = { 'id' => mod.id, + 'class' => config.get("beef.module.#{modk}.class"), 'name' => config.get("beef.module.#{modk}.name"), 'category' => config.get("beef.module.#{modk}.category") }