fuck
This commit is contained in:
parent
dfb11b0a1c
commit
f7c797c851
@ -6,4 +6,4 @@ from .scanner import HTTPZScanner
|
|||||||
from .colors import Colors
|
from .colors import Colors
|
||||||
|
|
||||||
|
|
||||||
__version__ = '2.0.1'
|
__version__ = '2.0.2'
|
@ -7,11 +7,13 @@ import asyncio
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import json
|
||||||
|
|
||||||
from .colors import Colors
|
from .colors import Colors
|
||||||
from .scanner import HTTPZScanner
|
from .scanner import HTTPZScanner
|
||||||
from .utils import SILENT_MODE, info
|
from .utils import SILENT_MODE, info
|
||||||
from .parsers import parse_status_codes, parse_shard
|
from .parsers import parse_status_codes, parse_shard
|
||||||
|
from .formatters import format_console_output
|
||||||
|
|
||||||
def setup_logging(level='INFO', log_to_disk=False):
|
def setup_logging(level='INFO', log_to_disk=False):
|
||||||
'''
|
'''
|
||||||
@ -147,8 +149,12 @@ async def main():
|
|||||||
shard=args.shard
|
shard=args.shard
|
||||||
)
|
)
|
||||||
|
|
||||||
# Run the scanner with file/stdin input
|
# Run the scanner and process results
|
||||||
await scanner.scan(args.file)
|
async for result in scanner.scan(args.file):
|
||||||
|
if args.jsonl:
|
||||||
|
print(json.dumps(result))
|
||||||
|
else:
|
||||||
|
print(format_console_output(result, args.debug, show_fields, args.match_codes, args.exclude_codes))
|
||||||
|
|
||||||
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.1',
|
version='2.0.2',
|
||||||
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