From 4c945e018e8373f1438050dd91383fe2d8a45d95 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Wed, 8 Oct 2014 11:49:29 +0200 Subject: [PATCH] Added geolocation info to PF restufl api call --- core/main/rest/handlers/hookedbrowsers.rb | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/core/main/rest/handlers/hookedbrowsers.rb b/core/main/rest/handlers/hookedbrowsers.rb index 6d72613c2..fa63d7541 100644 --- a/core/main/rest/handlers/hookedbrowsers.rb +++ b/core/main/rest/handlers/hookedbrowsers.rb @@ -104,14 +104,19 @@ module BeEF hbs.each do |hb| details = BeEF::Core::Models::BrowserDetails # TODO jQuery.dataTables needs fixed array indexes, add emptry string if a value is blank - hbs_online << [hb.id, - hb.ip, - details.get(hb.session, 'BrowserName'), - details.get(hb.session, 'BrowserVersion'), - details.get(hb.session, 'OsName'), - details.get(hb.session, 'BrowserPlatform'), - details.get(hb.session, 'BrowserLanguage'), - details.get(hb.session, 'BrowserPlugins') + hbs_online << [ + hb.id, + hb.ip, + details.get(hb.session, 'BrowserName'), + details.get(hb.session, 'BrowserVersion'), + details.get(hb.session, 'OsName'), + details.get(hb.session, 'BrowserPlatform'), + details.get(hb.session, 'BrowserLanguage'), + details.get(hb.session, 'BrowserPlugins'), + details.get(hb.session, 'LocationCity'), + details.get(hb.session, 'LocationCountry'), + details.get(hb.session, 'LocationLatitude'), + details.get(hb.session, 'LocationLongitude') ] end hbs_online