fuck
This commit is contained in:
parent
d5ce06ed1e
commit
44e27630de
@ -6,4 +6,4 @@ from .scanner import HTTPZScanner
|
|||||||
from .colors import Colors
|
from .colors import Colors
|
||||||
|
|
||||||
|
|
||||||
__version__ = '2.0.5'
|
__version__ = '2.0.6'
|
@ -148,7 +148,6 @@ async def main():
|
|||||||
shard=args.shard
|
shard=args.shard
|
||||||
)
|
)
|
||||||
|
|
||||||
# Run the scanner and handle ALL output here
|
|
||||||
count = 0
|
count = 0
|
||||||
async for result in scanner.scan(args.file):
|
async for result in scanner.scan(args.file):
|
||||||
# Write to output file if specified
|
# Write to output file if specified
|
||||||
@ -156,15 +155,17 @@ async def main():
|
|||||||
with open(args.output, 'a') as f:
|
with open(args.output, 'a') as f:
|
||||||
f.write(json.dumps(result) + '\n')
|
f.write(json.dumps(result) + '\n')
|
||||||
|
|
||||||
# Console output
|
# Only output and increment counter if we have content to show
|
||||||
if args.progress:
|
formatted = format_console_output(result, args.debug, show_fields, args.match_codes, args.exclude_codes)
|
||||||
count += 1
|
if formatted:
|
||||||
info(f"[{count}] {format_console_output(result, args.debug, show_fields, args.match_codes, args.exclude_codes)}")
|
if args.progress:
|
||||||
else:
|
count += 1
|
||||||
if args.jsonl:
|
info(f"[{count}] {formatted}")
|
||||||
print(json.dumps(result))
|
|
||||||
else:
|
else:
|
||||||
print(format_console_output(result, args.debug, show_fields, args.match_codes, args.exclude_codes))
|
if args.jsonl:
|
||||||
|
print(json.dumps(result))
|
||||||
|
else:
|
||||||
|
print(formatted)
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logging.warning('Process interrupted by user')
|
logging.warning('Process interrupted by user')
|
||||||
|
2
setup.py
2
setup.py
@ -10,7 +10,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='httpz_scanner',
|
name='httpz_scanner',
|
||||||
version='2.0.5',
|
version='2.0.6',
|
||||||
author='acidvegas',
|
author='acidvegas',
|
||||||
author_email='acid.vegas@acid.vegas',
|
author_email='acid.vegas@acid.vegas',
|
||||||
description='Hyper-fast HTTP Scraping Tool',
|
description='Hyper-fast HTTP Scraping Tool',
|
||||||
|
Loading…
Reference in New Issue
Block a user