MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _parse_wifi_interface_arg

Function _parse_wifi_interface_arg

webapp_modern.py:11099–11108  ·  view source on GitHub ↗

Validate and sanitize a requested Wi-Fi interface name.

(raw_value)

Source from the content-addressed store, hash-verified

11097 # Filter out lines with PACKETSTORM, vulners, CVE, exploit references
11098 filtered_lines = []
11099 for line in script_lines:
11100 line_lower = line.lower()
11101 # Skip lines containing vulnerability/exploit references
11102 if any(keyword in line_lower for keyword in ['packetstorm', 'vulners.com', 'cve-', 'exploit', 'https://']):
11103 continue
11104 # Skip lines that look like vulnerability IDs or scores
11105 if re.search(r'\d+\.\d+\s+https?://', line):
11106 continue
11107 # Skip nmap footer messages
11108 if 'service detection performed' in line_lower:
11109 continue
11110 if 'please report any incorrect results' in line_lower:
11111 continue

Callers 4

get_wifi_statusFunction · 0.85
_toggle_scan_interfaceFunction · 0.85
scan_wifi_networksFunction · 0.85
get_wifi_networksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected