MCPcopy Create free account
hub / github.com/cloudflare/flan / parse_nmap_command

Function parse_nmap_command

output_report.py:36–39  ·  view source on GitHub ↗
(raw_command: str)

Source from the content-addressed store, hash-verified

34
35
36def parse_nmap_command(raw_command: str) -> str:
37 nmap_split = raw_command.split()[:-1] # remove last element, ip address
38 nmap_split[3] = '<output-file>'
39 return ' '.join(nmap_split)
40
41
42def create_default_provider() -> VulnDescriptionProvider:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected