Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit f7ccc69

Browse files
committed
Update to version 1.0.7
1 parent 1bb2e58 commit f7ccc69

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

scanless/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.7'

scanless/scanless.py

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import sys
1010
from random import choice
1111

12+
from . import __version__
1213
from .scanners import *
1314

1415

@@ -52,6 +53,8 @@ def run(s):
5253

5354
def get_parser():
5455
parser = argparse.ArgumentParser(description='scanless, public port scan scrapper')
56+
parser.add_argument('-v', '--version', help='display the current version',
57+
action='store_true')
5558
parser.add_argument('-t', '--target', help='ip or domain to scan',
5659
type=str)
5760
parser.add_argument('-s', '--scanner', help='scanner to use (default: hackertarget)',
@@ -69,6 +72,10 @@ def main():
6972
parser = get_parser()
7073
args = vars(parser.parse_args())
7174

75+
if args['version']:
76+
print(__version__)
77+
return
78+
7279
if args['list']:
7380
print(SCAN_LIST)
7481
return

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
#!/usr/bin/env python
22

33
from setuptools import setup
4+
from scanless import __version__
45

56
setup(
67
name='scanless',
78
packages=['scanless', 'scanless.scanners'],
8-
version='1.0.6',
9+
version=__version__,
910
description='An online port scan scraper.',
1011
license='Unlicense',
1112
url='https://github.com/vesche/scanless',
1213
author='Austin Jackson',
13-
author_email='austinjackson892@gmail.com',
14+
author_email='vesche@protonmail.com',
1415
entry_points={
1516
'console_scripts': [
1617
'scanless = scanless.scanless:main',

0 commit comments

Comments
 (0)