diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7b2b787..371258c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,7 +3,7 @@ # These owners will be the default owners for everything in the # repo. Unless a later match takes precedence, these owners will be # requested for review when someone opens a pull request. -* @dav3r @felddy @mcdonnnj +* @dav3r @felddy @jsf9k @mcdonnnj # These folks own any files in the .github directory at the root of # the repository and any of its subdirectories. diff --git a/src/ioc_scan/_version.py b/src/ioc_scan/_version.py index b58ac8d..39b2a5c 100644 --- a/src/ioc_scan/_version.py +++ b/src/ioc_scan/_version.py @@ -1,2 +1,2 @@ """This file defines the version of this module.""" -__version__ = "1.3.0" +__version__ = "1.4.0" diff --git a/src/ioc_scan/ioc_scanner.py b/src/ioc_scan/ioc_scanner.py index 220397b..fb28687 100644 --- a/src/ioc_scan/ioc_scanner.py +++ b/src/ioc_scan/ioc_scanner.py @@ -165,9 +165,22 @@ def main(): description="Indicators of compromise (IoC) scanning tool." ) parser.add_argument( - "-f", "--file", dest="hashfile", help="Get IOC hashes from specified file." + "-d", + "--debug", + dest="debug_output", + action="store_true", + help="enable debug logging output", + ) + parser.add_argument( + "-f", "--file", dest="hashfile", help="get IOC hashes from specified file" ) args = parser.parse_args() + + logging.basicConfig( + format="%(asctime)-15s %(levelname)s %(message)s", + level=logging.DEBUG if args.debug_output else logging.INFO, + ) + if args.hashfile: logging.debug("Reading hashes from '%s'.", args.hashfile) with open(args.hashfile) as f: