D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
im360
/
subsys
/
Filename :
fail2ban.py
back
Copy
from defence360agent.utils import run async def is_running(): try: rc, *_ = await run(["fail2ban-client", "status"]) return rc == 0 except (FileNotFoundError, NotADirectoryError): return False