Update browser details from module post_execute
This commit is contained in:
@@ -92,6 +92,8 @@ class Modules < BeEF::Extension::AdminUI::HttpController
|
||||
['Browser Components', 'ActiveX', 'HasActiveX'],
|
||||
['Browser Components', 'Session Cookies', 'hasSessionCookies'],
|
||||
['Browser Components', 'Persistent Cookies', 'hasPersistentCookies'],
|
||||
['Browser Components', 'Unity', 'HasUnity'],
|
||||
['Browser Components', 'Foxit', 'HasFoxit'],
|
||||
|
||||
# Geolocation
|
||||
['Location', 'City', 'LocationCity'],
|
||||
|
||||
@@ -9,6 +9,9 @@ class Detect_activex < BeEF::Core::Command
|
||||
content = {}
|
||||
content['activex'] = @datastore['activex']
|
||||
save content
|
||||
if @datastore['results'] =~ /^activex=(Yes|No)/
|
||||
bd = BeEF::Core::Models::BrowserDetails.set(@datastore['beefhook'], 'HasActiveX', $1)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -9,6 +9,9 @@ class Detect_foxit < BeEF::Core::Command
|
||||
content = {}
|
||||
content['foxit'] = @datastore['foxit']
|
||||
save content
|
||||
if @datastore['results'] =~ /^foxit=(Yes|No)/
|
||||
bd = BeEF::Core::Models::BrowserDetails.set(@datastore['beefhook'], 'HasFoxit', $1)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -9,6 +9,9 @@ class Detect_office < BeEF::Core::Command
|
||||
content = {}
|
||||
content['office'] = @datastore['office']
|
||||
save content
|
||||
if @datastore['results'] =~ /^office=Office (\d+|Xp)/
|
||||
bd = BeEF::Core::Models::BrowserDetails.set(@datastore['beefhook'], 'HasOffice', $1)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -11,4 +11,4 @@ class Detect_unity < BeEF::Core::Command
|
||||
save content
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,6 +9,9 @@ class Detect_wmp < BeEF::Core::Command
|
||||
content = {}
|
||||
content['wmp'] = @datastore['wmp']
|
||||
save content
|
||||
if @datastore['results'] =~ /^wmp=(Yes|No)/
|
||||
bd = BeEF::Core::Models::BrowserDetails.set(@datastore['beefhook'], 'HasWMP', $1)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user