Path: blob/master/modules/host/get_system_info_java/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Get_system_info_java < BeEF::Core::Command6def pre_send7BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/host/get_system_info_java/getSystemInfo.class', '/getSystemInfo', 'class')8end910def post_execute11content = {}12content['result'] = @datastore['system_info'] unless @datastore['system_info'].nil?13content['fail'] = 'No data was returned.' if content.empty?14save content15BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.unbind('/getSystemInfo.class')16end17end181920