This commit is contained in:
Dionysus 2025-02-11 21:31:00 -05:00
parent 44e27630de
commit cd66542003
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
3 changed files with 9 additions and 7 deletions

View File

@ -6,4 +6,4 @@ from .scanner import HTTPZScanner
from .colors import Colors
__version__ = '2.0.6'
__version__ = '2.0.7'

View File

@ -155,17 +155,19 @@ async def main():
with open(args.output, 'a') as f:
f.write(json.dumps(result) + '\n')
# Only output and increment counter if we have content to show
# Handle JSON output separately
if args.jsonl:
print(json.dumps(result))
continue
# Only output and increment counter if we have content to show for normal output
formatted = format_console_output(result, args.debug, show_fields, args.match_codes, args.exclude_codes)
if formatted:
if args.progress:
count += 1
info(f"[{count}] {formatted}")
else:
if args.jsonl:
print(json.dumps(result))
else:
print(formatted)
print(formatted)
except KeyboardInterrupt:
logging.warning('Process interrupted by user')

View File

@ -10,7 +10,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup(
name='httpz_scanner',
version='2.0.6',
version='2.0.7',
author='acidvegas',
author_email='acid.vegas@acid.vegas',
description='Hyper-fast HTTP Scraping Tool',