Stop traffic capture
()
| 16981 | """Handle scan start request via WebSocket""" |
| 16982 | try: |
| 16983 | scan_type = data.get('type', 'all') |
| 16984 | target = data.get('target', None) |
| 16985 | |
| 16986 | def scan_callback(event_type, event_data): |
| 16987 | socketio.emit('scan_update', { |
| 16988 | 'type': event_type, |
| 16989 | 'data': event_data |
| 16990 | }) |
| 16991 | |
| 16992 | if scan_type == 'single' and target: |
| 16993 | def run_single_scan(): |
| 16994 | try: |
| 16995 | from actions.nmap_vuln_scanner import NmapVulnScanner |
nothing calls this directly
no test coverage detected