Update kernel_modules method to return Array

GSoC/Meterpreter_Web_Console
Brendan Coles 2018-04-06 15:02:43 +00:00
parent 499b0a857f
commit ba88118d7a
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@ module Kernel
#
# Returns the kernel modules
#
# @return [String]
# @return [Array]
#
def kernel_modules
cmd_exec('cat /proc/modules').to_s
cmd_exec('cat /proc/modules').to_s.scan(/^[^ ]+/)
rescue
raise 'Could not determine kernel modules'
end