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

Function get_recon_status

webapp_modern.py:17714–17728  ·  view source on GitHub ↗

Get recon engine status

()

Source from the content-addressed store, hash-verified

17712
17713
17714@app.route('/api/network-intelligence/add-vulnerability', methods=['POST'])
17715def add_vulnerability():
17716 """Add a new vulnerability finding"""
17717 try:
17718 if not (hasattr(shared_data, 'network_intelligence') and
17719 shared_data.network_intelligence and
17720 shared_data.config.get('network_intelligence_enabled', True)):
17721 return jsonify({'error': 'Network intelligence not available'}), 400
17722
17723 data = request.get_json()
17724 required_fields = ['host', 'port', 'service', 'vulnerability']
17725
17726 if not all(field in data for field in required_fields):
17727 return jsonify({'error': 'Missing required fields'}), 400
17728
17729 vuln_id = shared_data.network_intelligence.add_vulnerability(
17730 host=data['host'],
17731 port=data['port'],

Callers

nothing calls this directly

Calls 5

errorMethod · 0.80
get_recon_engineFunction · 0.70
is_availableMethod · 0.45
to_dictMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected