Add kernel_modules method

GSoC/Meterpreter_Web_Console
Brendan Coles 2018-04-05 05:25:36 +00:00
parent 6d92c319f8
commit 499b0a857f
1 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,17 @@ module Kernel
raise 'Could not determine kernel version'
end
#
# Returns the kernel modules
#
# @return [String]
#
def kernel_modules
cmd_exec('cat /proc/modules').to_s
rescue
raise 'Could not determine kernel modules'
end
#
# Returns true if kernel and hardware supports Supervisor Mode Access Prevention (SMAP), false if not.
#