From 2470ad449f0430cb99427f5f5234336769b75dde Mon Sep 17 00:00:00 2001 From: "M. Cory Billington" Date: Sun, 13 Nov 2022 17:07:36 -0600 Subject: [PATCH 1/2] Create fail2ban-client.md --- _gtfobins/fail2ban-client.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 _gtfobins/fail2ban-client.md 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 +--- From d2a94718c9b12617d59cbbc4bfff547fb25136e2 Mon Sep 17 00:00:00 2001 From: "M. Cory Billington" Date: Sun, 13 Nov 2022 17:09:47 -0600 Subject: [PATCH 2/2] Reword description --- _gtfobins/fail2ban-client.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_gtfobins/fail2ban-client.md b/_gtfobins/fail2ban-client.md index 301315b..b6bbe1d 100644 --- a/_gtfobins/fail2ban-client.md +++ b/_gtfobins/fail2ban-client.md @@ -1,6 +1,6 @@ --- 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. + 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: |