Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/flan
/ functions
Functions
75 in github.com/cloudflare/flan
⨍
Functions
75
◇
Types & classes
12
↓ 21 callers
Method
_append
(self, text: str)
contrib/report_builders/latex_report_builder.py:99
↓ 18 callers
Method
_append_line
(self, text: str, separators: int = 2, spaces: int = 0)
contrib/report_builders/markdown_report_builder.py:85
↓ 3 callers
Method
_append
(self, text: str, spaces: int = 0)
contrib/report_builders/markdown_report_builder.py:80
↓ 3 callers
Method
get_description
(self, vuln: str, vuln_type: str)
contrib/descriptions/cveproject.py:19
↓ 2 callers
Method
_append_location
(self, address: str, ports: List[str], spaces: int)
contrib/report_builders/markdown_report_builder.py:93
↓ 2 callers
Method
_append_service
(self, index: int, name: str, spaces: int = 0)
contrib/report_builders/markdown_report_builder.py:89
↓ 2 callers
Method
_serialize_locations
(locations: Dict[str, List[str]])
contrib/report_builders/json_report_builder.py:44
↓ 2 callers
Method
initialize_section
Adds begin of report section
contrib/report_builders/report_builder.py:47
↓ 2 callers
Method
parse
Parse xmltodict output and fill internal collections :param data: xmltodict output
contrib/parsers/flan_xml_parser.py:41
↓ 2 callers
Method
parse_host
(self, host: Dict[str, Any])
contrib/parsers/flan_xml_parser.py:106
↓ 2 callers
Method
parse_port
(self, ip_addr: str, port: Dict[str, Any])
contrib/parsers/flan_xml_parser.py:84
↓ 2 callers
Method
parse_script
(self, ip_addr: str, port: str, app_name: str, script: Dict[str, Any])
contrib/parsers/flan_xml_parser.py:71
↓ 2 callers
Method
parse_vuln
(self, app_name: str, vuln: List[Dict[str, Any]])
contrib/parsers/flan_xml_parser.py:57
↓ 1 callers
Method
_read_template
(self)
contrib/report_builders/html_report_builder.py:20
↓ 1 callers
Method
add_ip_address
Adds IP-address to scanned addresses section
contrib/report_builders/report_builder.py:59
↓ 1 callers
Method
add_ips_section
Adds section with list of scanned ip addresses
contrib/report_builders/report_builder.py:53
↓ 1 callers
Method
add_non_vulnerable_section
Adds header for section with services without detected vulnerabilities
contrib/report_builders/report_builder.py:29
↓ 1 callers
Method
add_non_vulnerable_services
Adds descriptions of services without detected vulnerabilities
contrib/report_builders/report_builder.py:41
↓ 1 callers
Method
add_vulnerable_section
Adds header for section with vulnerable services
contrib/report_builders/report_builder.py:23
↓ 1 callers
Method
add_vulnerable_services
Adds descriptions of vulnerable services
contrib/report_builders/report_builder.py:35
↓ 1 callers
Method
build
:return: Ready report in specific format
contrib/report_builders/report_builder.py:17
↓ 1 callers
Method
convert_severity
:return: Float severity value to text
contrib/internal_types/flan_types.py:34
↓ 1 callers
Function
create_default_provider
()
output_report.py:42
↓ 1 callers
Function
create_report
(parser: FlanXmlParser, builder: ReportBuilder, nmap_command: str, start_date: str, output_writer: IO,
output_report.py:13
↓ 1 callers
Function
create_report_builder
(report_type: str)
output_report.py:46
↓ 1 callers
Method
finalize
Adds report footer
contrib/report_builders/report_builder.py:65
↓ 1 callers
Method
get_app_name
(service: Dict[str, Any])
contrib/parsers/flan_xml_parser.py:139
↓ 1 callers
Method
init_report
Creates document section with report overview
contrib/report_builders/report_builder.py:11
↓ 1 callers
Function
main
(dirname: str, output_file: str, ip_file: str, report_type: str = 'tex')
output_report.py:61
↓ 1 callers
Function
parse_nmap_command
(raw_command: str)
output_report.py:36
↓ 1 callers
Method
read_xml_contents
(contents: str)
contrib/parsers/flan_xml_parser.py:157
↓ 1 callers
Method
read_xml_file
Read file and convert to dictionary. To read raw contents use `read_xml_contents` :param path: path to .xml file :return: pa
contrib/parsers/flan_xml_parser.py:127
↓ 1 callers
Method
to_dict
(self)
contrib/internal_types/flan_types.py:25
Method
__init__
(self)
contrib/parsers/flan_xml_parser.py:16
Method
__init__
(self, text: str, url: Optional[str] = None)
contrib/descriptions/description_provider.py:8
Method
__init__
(self, session: Session)
contrib/descriptions/cveproject.py:15
Method
__init__
:param description_provider: A provider of vulnerability full description
contrib/report_builders/latex_report_builder.py:14
Method
__init__
(self, description_provider: VulnDescriptionProvider)
contrib/report_builders/html_report_builder.py:11
Method
__init__
(self, description_provider: VulnDescriptionProvider)
contrib/report_builders/markdown_report_builder.py:12
Method
__init__
(self, description_provider: VulnDescriptionProvider)
contrib/report_builders/json_report_builder.py:10
Method
__init__
(self, name: str, vuln_type: str, severity: float)
contrib/internal_types/flan_types.py:20
Method
__init__
(self)
contrib/internal_types/flan_types.py:56
Method
add_ip_address
(self, ip: str)
contrib/report_builders/latex_report_builder.py:92
Method
add_ip_address
(self, ip: str)
contrib/report_builders/markdown_report_builder.py:70
Method
add_ip_address
(self, ip: str)
contrib/report_builders/json_report_builder.py:40
Method
add_ips_section
(self)
contrib/report_builders/latex_report_builder.py:88
Method
add_ips_section
(self)
contrib/report_builders/markdown_report_builder.py:67
Method
add_non_vulnerable_section
(self)
contrib/report_builders/latex_report_builder.py:85
Method
add_non_vulnerable_section
(self)
contrib/report_builders/markdown_report_builder.py:30
Method
add_non_vulnerable_services
(self, scan_results: Dict[str, ScanResult])
contrib/report_builders/latex_report_builder.py:69
Method
add_non_vulnerable_services
(self, scan_results: Dict[str, ScanResult])
contrib/report_builders/markdown_report_builder.py:55
Method
add_non_vulnerable_services
(self, scan_results: Dict[str, ScanResult])
contrib/report_builders/json_report_builder.py:34
Method
add_vulnerable_section
(self)
contrib/report_builders/latex_report_builder.py:82
Method
add_vulnerable_section
(self)
contrib/report_builders/markdown_report_builder.py:27
Method
add_vulnerable_services
(self, scan_results: Dict[str, ScanResult])
contrib/report_builders/latex_report_builder.py:38
Method
add_vulnerable_services
(self, scan_results: Dict[str, ScanResult])
contrib/report_builders/markdown_report_builder.py:33
Method
add_vulnerable_services
(self, scan_results: Dict[str, ScanResult])
contrib/report_builders/json_report_builder.py:21
Method
build
(self)
contrib/report_builders/latex_report_builder.py:31
Method
build
(self)
contrib/report_builders/html_report_builder.py:17
Method
build
(self)
contrib/report_builders/markdown_report_builder.py:24
Method
build
(self)
contrib/report_builders/json_report_builder.py:18
Method
finalize
(self)
contrib/report_builders/latex_report_builder.py:95
Method
finalize
(self)
contrib/report_builders/markdown_report_builder.py:73
Method
get_description
(self, vuln: str, vuln_type: str)
contrib/descriptions/description_provider.py:18
Method
header
(self)
contrib/report_builders/latex_report_builder.py:35
Method
header
(self)
contrib/report_builders/markdown_report_builder.py:77
Method
init_report
(self, start_date: str, nmap_command: str)
contrib/report_builders/latex_report_builder.py:24
Method
init_report
(self, start_date: str, nmap_command: str)
contrib/report_builders/markdown_report_builder.py:16
Method
init_report
(self, start_date: str, nmap_command: str)
contrib/report_builders/json_report_builder.py:14
Method
initialize_section
(self)
contrib/report_builders/latex_report_builder.py:78
Method
initialize_section
(self)
contrib/report_builders/markdown_report_builder.py:64
Method
non_vuln_services
:return: App names for services without detected vulnerabilities
contrib/parsers/flan_xml_parser.py:35
Method
non_vulnerable_dict
:return: Map {app_name -> scan result} for services without detected vulnerabilities
contrib/parsers/flan_xml_parser.py:28
Method
severity_str
:return: Text severity representation
contrib/internal_types/flan_types.py:45
Method
vulnerable_dict
:return: Map {app_name -> scan result} for vulnerable services
contrib/parsers/flan_xml_parser.py:21