ticketwatch parses klist output into a live, auto-refreshing terminal table to track active Kerberos tickets, SPNs, and expiration times in real time.
- Auto-refreshing loop for live cache monitoring
- Color-coded countdown timers based on remaining lifespan:
- Green: > 2 hours
- Yellow: < 2 hours
- Red: < 15 minutes
- Critical (Flashing Red/White): < 2 minutes
- Grey: Expired
- Unique color highlighting for standard AD SPNs (
krbtgt,ldap,cifs,mssql,http, etc.) - Multi-platform date parsing (MIT Kerberos, Heimdal, Windows)
- Python 3.8+
- System
klistutility available inPATH
git clone https://github.com/kipair/ticketwatch.git
cd ticketwatch
pip install -r requirements.txt# Default refresh rate (1 second)
python3 ticketwatch.py
# Custom refresh rate (e.g., every 5 seconds)
python3 ticketwatch.py -r 5options:
-h, --help show this help message and exit
-r REFRESH, --refresh REFRESH
Refresh rate in seconds (default: 1)
GPL v3