diff --git a/httpz_scanner/__init__.py b/httpz_scanner/__init__.py index 4a108dc..d6c2568 100644 --- a/httpz_scanner/__init__.py +++ b/httpz_scanner/__init__.py @@ -6,4 +6,4 @@ from .scanner import HTTPZScanner from .colors import Colors -__version__ = '1.0.8' \ No newline at end of file +__version__ = '1.0.9' \ No newline at end of file diff --git a/httpz_scanner/cli.py b/httpz_scanner/cli.py index f6f3a27..a4a3b9f 100644 --- a/httpz_scanner/cli.py +++ b/httpz_scanner/cli.py @@ -103,6 +103,11 @@ async def main(): parser.add_argument('-r', '--resolvers', help='File containing DNS resolvers (one per line)') parser.add_argument('-to', '--timeout', type=int, default=5, help='Request timeout in seconds') + # If no arguments provided, print help and exit + if len(sys.argv) == 1: + parser.print_help() + sys.exit(0) + args = parser.parse_args() # Setup logging based on arguments diff --git a/setup.py b/setup.py index b1c9967..558c1db 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ with open('README.md', 'r', encoding='utf-8') as f: setup( name='httpz_scanner', - version='1.0.8', + version='1.0.9', author='acidvegas', author_email='acid.vegas@acid.vegas', description='Hyper-fast HTTP Scraping Tool',