Skip to content

KaiQTang/passwordScanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

passwordScanner

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

Installation

python -m pip install -r requirements.txt

How to use:

Command Line:

python scanner.py -c config.json -p /root/logs -o output.json

GUI:

python gui.py

Config.json format

{"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.

About

User this python file to scan potential password/token leak in log files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages