Skip to content

Commit d73030e

Browse files
authored
Update creds
1 parent 37f186b commit d73030e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

creds

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# -*- coding: utf-8 -*-
33

44
'''
5-
Search for a default credentials using the DefaultCreds-cheat-sheet dataset.
6-
inspired by @ncrocfer whatportis project.
5+
Search for default credentials using the DefaultCreds-cheat-sheet database.
6+
code structure inspired by @ncrocfer whatportis project.
77
'''
88
__author__ = "ihebski"
9-
__version__ = "0.5.2"
9+
__version__ = "0.5.3"
1010
__codename__ = 'creds'
1111
__source__ ="https://github.com/ihebski/DefaultCreds-cheat-sheet"
1212

@@ -103,7 +103,7 @@ def search(keyword,export=False,proxy=None):
103103
:param keyword
104104
:return table
105105
"""
106-
if len(db.all()) == 0:
106+
if not db.all() :
107107
get_db(proxy=proxy)
108108
print_table(db.search(where("product").search(str(keyword).lower())),keyword,export)
109109
else:
@@ -134,5 +134,8 @@ def update(proxy=None):
134134
def version():
135135
print(f"[INF] DefaultCreds-cheat-sheet Version: v{__version__}")
136136

137-
if __name__ == "__main__":
137+
def run():
138138
fire.Fire()
139+
140+
if __name__ == "__main__":
141+
run()

0 commit comments

Comments
 (0)