Skip to content

Commit 2cbb107

Browse files
committed
Update enum_configs
1 parent a30144f commit 2cbb107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/linux/gather/enum_configs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_host
5252
when /meterpreter/
5353
host = sysinfo["Computer"]
5454
when /shell/
55-
host = session.shell_command_token("hostname").chomp
55+
host = cmd_exec("hostname").chomp
5656
end
5757

5858
return host

0 commit comments

Comments
 (0)