Modules: Resolve many Rubocop violations

This commit is contained in:
Brendan Coles
2022-01-22 12:46:42 +00:00
parent bbe805f017
commit a64480dfab
317 changed files with 3238 additions and 3965 deletions

View File

@@ -4,18 +4,15 @@
# See the file 'doc/COPYING' for copying permission
#
class Get_system_info_java < BeEF::Core::Command
def pre_send
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/host/get_system_info_java/getSystemInfo.class','/getSystemInfo','class')
end
def post_execute
content = {}
content['result'] = @datastore['system_info'] if not @datastore['system_info'].nil?
content['fail'] = 'No data was returned.' if content.empty?
save content
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.unbind('/getSystemInfo.class')
end
end
def pre_send
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/host/get_system_info_java/getSystemInfo.class', '/getSystemInfo', 'class')
end
def post_execute
content = {}
content['result'] = @datastore['system_info'] unless @datastore['system_info'].nil?
content['fail'] = 'No data was returned.' if content.empty?
save content
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.unbind('/getSystemInfo.class')
end
end