User this python program to scan potential password/token leak in log files
User this python file to scan potential password/token leak in log files
python -m pip install -r requirements.txt
Command Line:
python scanner.py -c config.json -p /root/logs -o output.json
GUI:
python gui.py
{"patterns": ["password='fakepassword"], "types": ["txt", "log"], "keywords": ["refresh_token", "password"]}
types: file types to scan
keywords: keywords to find
patterns: known patterns, will not shown in result
Patterns are filtered out using regular expression, so if you want to filter out
the exact word password="**", Please use password=\"[*][*]\" because * is a special character in regular expression.
Also " must be added as \" otherwise it will break the json format.