{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "ssh root@prod.karlkratz.com \"echo '=== nftables (alle Tabellen) ===' && (nft list ruleset 2>&1 | grep 145.224.75.45 | grep -v Warning || echo 'SAUBER - nicht in nftables') && echo '=== ipset ssh-blacklist ===' && (ipset test ssh-blacklist-permanent 145.224.75.45 2>&1) && echo '=== fail2ban Bans ===' && (for jail in \\$(fail2ban-client status | grep 'Jail list' | sed 's\/.*:\/\/;s\/,\/ \/g'); do banned=\\$(fail2ban-client status \\$jail 2>\/dev\/null | grep 145.224.75.45); if [ -n \\\"\\$banned\\\" ]; then echo \\\"GEBANNT in: \\$jail\\\"; fi; done; echo 'Keine Bans gefunden') && echo '=== Whitelist ===' && fail2ban-client get recidive ignoreip\" 2>&1",
"timeout": 15000,
"description": "Final complete verification"
}
}