Skip to content

Commit 662e299

Browse files
committed
Releasing exclude_columns support in mysql
1 parent 1766175 commit 662e299

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hawk_scanner/internals/system.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
import shutil
1313
import os, cv2
1414
import tarfile
15+
import pkg_resources
1516

1617
data_sources = ['s3', 'mysql', 'redis', 'firebase', 'gcs', 'fs', 'postgresql', 'mongodb', 'slack', 'couchdb', 'gdrive', 'gdrive_workspace', 'text']
1718
data_sources_option = ['all'] + data_sources
1819

1920
def parse_args(args=None):
21+
version = pkg_resources.require("hawk_scanner")[0].version
2022
parser = argparse.ArgumentParser(description='🦅 A powerful scanner to scan your Filesystem, S3, MySQL, PostgreSQL, MongoDB, Redis, Google Cloud Storage and Firebase storage for PII and sensitive data.')
2123
parser.add_argument('command', nargs='?', choices=data_sources_option, help='Command to execute')
2224
parser.add_argument('--connection', action='store', help='YAML Connection file path')
@@ -28,6 +30,7 @@ def parse_args(args=None):
2830
parser.add_argument('--debug', action='store_true', help='Enable debug mode')
2931
parser.add_argument('--no-write', action='store_true', help='Do not write previous alerts to file, this may flood you with duplicate alerts')
3032
parser.add_argument('--shutup', action='store_true', help='Suppress the Hawk Eye banner 🫣', default=False)
33+
parser.add_argument('--version', action='version', version='%(prog)s v' + version)
3134
parser.add_argument('--hawk-thuu', action='store_true', help="Delete all spitted files during testing phase forcefully")
3235
return parser.parse_args(args)
3336

0 commit comments

Comments
 (0)