From fb7155781c1a109c5ebef519cea804bf37adf351 Mon Sep 17 00:00:00 2001 From: Jorge Matricali Date: Wed, 7 Jun 2017 20:28:55 -0300 Subject: [PATCH] + --version --- bin/brutekrag | 6 +++++- setup.py | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/brutekrag b/bin/brutekrag index d875e27..61985fa 100755 --- a/bin/brutekrag +++ b/bin/brutekrag @@ -134,7 +134,7 @@ banner = ('''\033[92m _ _ _ | '_ \| '__| | | | __/ _ \ |/ / '__/ _` |/ _` | | |_) | | | |_| | || __/ <| | | (_| | (_| | |_.__/|_| \__,_|\__\___|_|\_\_| \__,_|\__, | - \033[0m\033[1mOpenSSH Brute force tool 0.3.0\033[92m __/ | + \033[0m\033[1mOpenSSH Brute force tool 0.3.1\033[92m __/ | \033[0m(c) Copyright 2014 Jorge Matricali\033[92m |___/\033[0m \n''') @@ -156,6 +156,7 @@ parser.add_argument('--threads', type=int, default=1, help='Total number of thre parser.add_argument('-o', '--output', type=str, default=None, help='Output file for compromised hosts.') parser.add_argument('--progress', action='store_true', help='Progress bar.') parser.add_argument('-v', '--verbose', action='store_true', help='Verbose output.') +parser.add_argument('--version', action='store_true', help='Prints version and banner.') try: args = parser.parse_args() @@ -165,6 +166,9 @@ except TypeError: print(banner) +if args.version: + sys.exit(0) + ''' PARSE TARGETS ''' diff --git a/setup.py b/setup.py index 424779f..1a505ba 100644 --- a/setup.py +++ b/setup.py @@ -3,13 +3,13 @@ setup( name='brutekrag', packages=['brutekrag'], - version='0.3.0', + version='0.3.1', description='Penetration tests on SSH servers using brute force or dictionary attacks', author='Jorge Matricali', author_email='jorgematricali@gmail.com', license='MIT', url='https://github.com/jorge-matricali/brutekrag', - download_url='https://github.com/jorge-matricali/brutekrag/archive/v0.3.0.tar.gz', + download_url='https://github.com/jorge-matricali/brutekrag/archive/v0.3.1.tar.gz', scripts=['bin/brutekrag'], keywords=['ssh', 'brute force', 'ethical hacking', 'pentesting', 'dictionary attack', 'penetration test'], classifiers=(