bug/bundler_fix
benpturner 2015-05-07 19:23:25 +01:00
parent 01c2bc0287
commit 24abe597e4
1 changed files with 3 additions and 3 deletions

View File

@ -39,11 +39,11 @@ class Msf::Sessions::PowerShell < Msf::Sessions::CommandShell
#
def shell_command(cmd)
# insert random marker
strm = Rex::Text.rand_text_alpha(15)
endm = Rex::Text.rand_text_alpha(15)
strm = Rex::Text.rand_text_numeric(15)
endm = Rex::Text.rand_text_numeric(15)
# Send the shell channel's stdin.
shell_write("'#{strm}';#{cmd};'#{endm}';\n")
shell_write(";#{strm};#{cmd};#{endm};\n")
timeout = 1800 # 30 minute timeout
etime = ::Time.now.to_f + timeout