Bug Fixes & Improvements
Fixed bug where AutoRecon would finish but not output the last few lines. Added new pattern to config file.
This commit is contained in:
parent
32f18900a3
commit
0d2da7cc7a
12
autorecon.py
12
autorecon.py
|
@ -764,6 +764,9 @@ def cancel_all_tasks(signal, frame):
|
||||||
# Restore original terminal settings.
|
# Restore original terminal settings.
|
||||||
termios.tcsetattr(sys.stdin.fileno(), termios.TCSADRAIN, terminal_settings)
|
termios.tcsetattr(sys.stdin.fileno(), termios.TCSADRAIN, terminal_settings)
|
||||||
|
|
||||||
|
def timeout(signal, frame):
|
||||||
|
raise Exception("Function timed out.")
|
||||||
|
|
||||||
async def start_heartbeat(target, period=60):
|
async def start_heartbeat(target, period=60):
|
||||||
while True:
|
while True:
|
||||||
await asyncio.sleep(period)
|
await asyncio.sleep(period)
|
||||||
|
@ -1665,11 +1668,20 @@ async def main():
|
||||||
if i >= num_new_targets:
|
if i >= num_new_targets:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# The verbosity_monitor.stop() function sometimes seems to block forever.
|
||||||
|
# Since it will get killed at the end of the program anyway, if it takes
|
||||||
|
# more than 1 second to work, we'll time it out.
|
||||||
|
signal.signal(signal.SIGALRM, timeout)
|
||||||
|
signal.alarm(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
verbosity_monitor.stop()
|
verbosity_monitor.stop()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Cancel the alarm.
|
||||||
|
signal.alarm(0)
|
||||||
|
|
||||||
if timed_out:
|
if timed_out:
|
||||||
cancel_all_tasks(None, None)
|
cancel_all_tasks(None, None)
|
||||||
|
|
||||||
|
|
13
config.toml
13
config.toml
|
@ -1,7 +1,7 @@
|
||||||
# Configure regular AutoRecon options at the top of this file.
|
# Configure regular AutoRecon options at the top of this file.
|
||||||
|
|
||||||
# verbose = 1
|
# verbose = 1
|
||||||
# max-scans = 1
|
# max-scans = 30
|
||||||
|
|
||||||
# Configure global pattern matching here.
|
# Configure global pattern matching here.
|
||||||
[[pattern]]
|
[[pattern]]
|
||||||
|
@ -11,10 +11,19 @@ pattern = 'State: (?:(?:LIKELY\_?)?VULNERABLE)'
|
||||||
[[pattern]]
|
[[pattern]]
|
||||||
pattern = '(?i)unauthorized'
|
pattern = '(?i)unauthorized'
|
||||||
|
|
||||||
|
[[pattern]]
|
||||||
|
description = 'CVE Identified: {match}'
|
||||||
|
pattern = '(CVE-\d{4}-\d{4,7})'
|
||||||
|
|
||||||
# Configure global options here.
|
# Configure global options here.
|
||||||
# [global]
|
# [global]
|
||||||
# username-wordlist = '/usr/share/seclists/Usernames/cirt-default-usernames.txt'
|
# username-wordlist = '/usr/share/seclists/Usernames/cirt-default-usernames.txt'
|
||||||
|
|
||||||
# Configure plugin options here.
|
# Configure plugin options here.
|
||||||
# [dirbuster]
|
# [dirbuster]
|
||||||
# wordlist = ['/usr/share/seclists/Discovery/Web-Content/common.txt', '/usr/share/seclists/Discovery/Web-Content/big.txt', '/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt']
|
# threads = 50
|
||||||
|
# wordlist = [
|
||||||
|
# '/usr/share/seclists/Discovery/Web-Content/common.txt',
|
||||||
|
# '/usr/share/seclists/Discovery/Web-Content/big.txt',
|
||||||
|
# '/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt'
|
||||||
|
# ]
|
||||||
|
|
Loading…
Reference in New Issue