Get recon engine status
()
| 17712 | |
| 17713 | |
| 17714 | @app.route('/api/network-intelligence/add-vulnerability', methods=['POST']) |
| 17715 | def 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'], |
nothing calls this directly
no test coverage detected