Skip to content

Write data to the database and search for a password by email on this database

License

Notifications You must be signed in to change notification settings

minbbb/pySearchPassDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

pySearchPassDB

Write data to the database and search for a password by email on this database. MongoDB is used as a database. The script connects to the localhost:27017 database and, if necessary, creates a database and a collection named pySearchPassDB.

How to use

Search for passwords by email.

python pySearchPassDB.py -s [email protected]
python pySearchPassDB.py --search [email protected]

Add fields to the database from files. The lines in the file must be in the format email:password. Specifies the path to the folder where these files are with passwords. All files and subdirectories are parsed.

python pySearchPassDB.py -a "path/to/dir"
python pySearchPassDB.py --add "path/to/dir"

Show count fileds of db.

python pySearchPassDB.py -c
python pySearchPassDB.py --count

Clear all db fields.

python pySearchPassDB.py --clear

Delimiters

There can be different separators in the lists. These delimiters can be changed in the script itself in the tuple PATTERN_SPLIT. The default is 2 delimiters (":" and ";").

About

Write data to the database and search for a password by email on this database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages