Files
beef/modules/host/detect_software/module.rb
2018-01-04 09:12:47 +10:00

17 lines
515 B
Ruby

#
# Copyright (c) 2006-2018 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Detect_software < BeEF::Core::Command
def post_execute
content = {}
content['installed_software'] = @datastore['installed_software'] if not @datastore['installed_software'].nil?
content['installed_patches'] = @datastore['installed_patches'] if not @datastore['installed_patches'].nil?
save content
end
end