From 3aadf6fa754f66f345ed3880500e04adb6be2455 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Sat, 30 Jun 2012 16:00:31 +0100 Subject: [PATCH] Issue #556 : the RESTful api call to retrieve HBs now returns also the ID of the HB --- core/main/rest/handlers/hookedbrowsers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/main/rest/handlers/hookedbrowsers.rb b/core/main/rest/handlers/hookedbrowsers.rb index 6976dda05..f0ecf6bbd 100644 --- a/core/main/rest/handlers/hookedbrowsers.rb +++ b/core/main/rest/handlers/hookedbrowsers.rb @@ -76,11 +76,12 @@ module BeEF details = BeEF::Core::Models::BrowserDetails { + 'id' => hb.id, + 'session' => hb.session, 'name' => details.get(hb.session, 'BrowserName'), 'version' => details.get(hb.session, 'BrowserVersion'), 'os' => details.get(hb.session, 'OsName'), 'platform' => details.get(hb.session, 'SystemPlatform'), - 'session' => hb.session, 'ip' => hb.ip, 'domain' => details.get(hb.session, 'HostName'), 'port' => hb.port.to_s,