return hostname

GSoC/Meterpreter_Web_Console
Brendan Coles 2018-12-01 05:20:47 +00:00
parent 99fa011c35
commit dc125d1dc5
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ module System
def get_hostname
hostname = cmd_exec('uname -n').to_s
report_host({:host => rhost, :name => hostname})
hostname
rescue
raise 'Unable to retrieve hostname'
end