Add docs to nosuid?

GSoC/Meterpreter_Web_Console
cbrnrd 2018-04-10 05:53:19 -04:00
parent 6e6bc9bc6b
commit 0a79c5a15b
1 changed files with 4 additions and 0 deletions

View File

@ -252,6 +252,10 @@ module System
raise 'Unable to check for noexec volume' raise 'Unable to check for noexec volume'
end end
#
# Checks if `mount_path` is mounted with nosuid
# @return [Boolean]
#
def nosuid?(mount_path) def nosuid?(mount_path)
cmd_exec("mount | grep --color=never ' #{mount_path} '").to_s.include? 'nosuid' cmd_exec("mount | grep --color=never ' #{mount_path} '").to_s.include? 'nosuid'
rescue rescue