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

Function _toggle_scan_interface

webapp_modern.py:11250–11269  ·  view source on GitHub ↗
(enable: bool)

Source from the content-addressed store, hash-verified

11248 debug_info['steps'].append(f"Step 6: Updated {len(arp_hosts)} NetKB entries")
11249
11250 debug_info['results'] = {
11251 'cache_updated': True,
11252 'hosts_found': arp_hosts,
11253 'cache_state': {
11254 'arp_hosts_count': len(network_scan_cache.get('arp_hosts', {})),
11255 'last_arp_scan_time': network_scan_cache.get('last_arp_scan', 'NEVER')
11256 }
11257 }
11258 else:
11259 debug_info['steps'].append("Step 3: No hosts found, cache not updated")
11260 debug_info['results'] = {
11261 'cache_updated': False,
11262 'hosts_found': {},
11263 'error': 'No hosts discovered'
11264 }
11265
11266 return jsonify(debug_info)
11267
11268 except Exception as e:
11269 logger.error(f"Error in force ARP scan: {e}")
11270 return jsonify({'error': str(e), 'timestamp': datetime.now().isoformat()}), 500
11271
11272@app.route('/api/threat-intelligence/trigger-vuln-scan', methods=['POST'])

Callers 2

enable_wifi_scan_controlFunction · 0.85

Calls 7

is_multi_mode_enabledMethod · 0.80
update_scan_modeMethod · 0.80
warningMethod · 0.80
set_scan_enabledMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected