Update autorecon.py

Added notes.txt back.
This commit is contained in:
Tib3rius 2021-08-28 08:43:11 -04:00
parent 1e9f938248
commit 32f18900a3
1 changed files with 4 additions and 0 deletions

View File

@ -1085,6 +1085,10 @@ async def scan_target(target):
info('Found {bmagenta}' + service.name + '{rst} on {bmagenta}' + service.protocol + '/' + str(service.port) + '{rst} on {byellow}' + target.address + '{rst}')
if not autorecon.config['only_scans_dir']:
with open(os.path.join(target.reportdir, 'notes.txt'), 'a') as file:
file.writelines('[*] ' + service.name + ' found on ' + service.protocol + '/' + str(service.port) + '.\n\n\n\n')
service.target = target
# Create variables for command references.