Added timeout argument instead of having it set staticllyl.
This commit is contained in:
parent
02e1962130
commit
d6c64d6953
11
aftermath.py
11
aftermath.py
@ -64,7 +64,7 @@ def scan_target(target, args):
|
||||
|
||||
r = requests.get(target,
|
||||
headers=headers,
|
||||
timeout=10,
|
||||
timeout=args.timeout,
|
||||
allow_redirects=False,
|
||||
verify=False)
|
||||
|
||||
@ -118,6 +118,14 @@ def main():
|
||||
metavar='<threads>',
|
||||
help='number of threads to use')
|
||||
|
||||
parser.add_argument('-T',
|
||||
'--timeout',
|
||||
type=int,
|
||||
dest='timeout',
|
||||
default=10,
|
||||
metavar='<timeout>',
|
||||
help='the request timeout in seconds')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
print(
|
||||
@ -148,7 +156,6 @@ def main():
|
||||
|
||||
logging.info(f'scanning completed. valid webshells: {valid}')
|
||||
sys.exit(-1)
|
||||
# scan_targets(args)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print(f'{ui.prompt()} user interrupt detected - exiting')
|
||||
|
Loading…
Reference in New Issue
Block a user