Formatting changes in the _manual_commands.txt file.

This commit is contained in:
Tib3rius 2019-03-02 12:51:29 -05:00
parent 57540dfece
commit 2e2ee592e3
1 changed files with 2 additions and 3 deletions

View File

@ -361,15 +361,14 @@ async def scan_services(loop, semaphore, target):
file.writelines(e('[*] {service} on {protocol}/{port}\n\n'))
heading = True
description = service_scans_config[service_scan]['manual'][manual]['description']
file.writelines(e('[-] {description}\n\n'))
file.writelines(e('\t[-] {description}\n\n'))
if 'commands' in service_scans_config[service_scan]['manual'][manual]:
if not heading:
file.writelines(e('[*] {service} on {protocol}/{port}\n\n'))
heading = True
for manual_command in service_scans_config[service_scan]['manual'][manual]['commands']:
manual_command = e(manual_command)
file.writelines(e('{manual_command}\n'))
file.writelines('\n')
file.writelines('\t\t' + e('{manual_command}\n\n'))
if heading:
file.writelines('\n')