Newer
Older
import abc
from contrib.internal_types import ScanResult
__all__ = ['ReportBuilder']
class ReportBuilder(metaclass=abc.ABCMeta):
def init_report(self, start_date: str, nmap_command: str, output_path: str):
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"""
Creates document section with report overview
"""
pass
def build(self) -> Any:
"""
:return: Ready report in specific format
"""
pass
def add_vulnerable_section(self):
"""
Adds header for section with vulnerable services
"""
pass
def add_non_vulnerable_section(self):
"""
Adds header for section with services without detected vulnerabilities
"""
pass
def add_vulnerable_services(self, scan_results: Dict[str, ScanResult]):
"""
Adds descriptions of vulnerable services
"""
pass
def add_non_vulnerable_services(self, scan_results: Dict[str, ScanResult]):
"""
Adds descriptions of services without detected vulnerabilities
"""
pass
def initialize_section(self):
"""
Adds begin of report section
"""
pass
def add_ips_section(self):
"""
Adds section with list of scanned ip addresses
"""
pass
def add_ip_address(self, ip: str):
"""
Adds IP-address to scanned addresses section
"""
pass
def set_password_auth_enabled(self, enabled: List[str]):
pass