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

Function get_ethernet_interfaces

webapp_modern.py:11319–11331  ·  view source on GitHub ↗

Get all Ethernet interfaces.

()

Source from the content-addressed store, hash-verified

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
11328def 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:

Callers

nothing calls this directly

Calls 3

errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected