Get all Ethernet interfaces.
()
| 11317 | if 'error' in result: |
| 11318 | return jsonify(result), 409 |
| 11319 | return jsonify(result) |
| 11320 | except Exception as e: |
| 11321 | logger.error(f"Wardriving wipe error: {e}") |
| 11322 | return jsonify({'error': str(e)}), 500 |
| 11323 | |
| 11324 | # ============================================================================ |
| 11325 | # REAL-TIME SCANNING ENDPOINTS |
| 11326 | # ============================================================================ |
| 11327 | |
| 11328 | def run_arp_scan_localnet(interface='wlan0'): |
| 11329 | """Run arp-scan on local network to discover active hosts""" |
| 11330 | command = ['sudo', 'arp-scan', f'--interface={interface}', '--localnet'] |
| 11331 | logger.info(f"Running arp-scan localnet: {' '.join(command)}") |
| 11332 | try: |
| 11333 | result = subprocess.run(command, capture_output=True, text=True, timeout=30) |
| 11334 | if result.returncode == 0: |
nothing calls this directly
no test coverage detected