Validate and sanitize a requested Wi-Fi interface name.
(raw_value)
| 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 |
no outgoing calls
no test coverage detected