Fix pid_uid

GSoC/Meterpreter_Web_Console
William Vu 2019-01-15 14:34:29 -06:00
parent bb24c3114a
commit 3bf4726b15
1 changed files with 1 additions and 4 deletions

View File

@ -218,12 +218,9 @@ module System
# @return [String]
#
def pid_uid(pid)
file_pid = "/proc/" + pid.to_s + "/status"
result = read_file(file_pid)
return result
read_file("/proc/#{pid}/status").to_s
end
#
# Checks if `file_path` is mounted on a noexec mount point
# @return [Boolean]