Get observed TLS (JA3/JA3S) fingerprints per host.
()
| 17069 | if not (hasattr(shared_data, 'network_intelligence') and |
| 17070 | shared_data.network_intelligence and |
| 17071 | shared_data.config.get('network_intelligence_enabled', True)): |
| 17072 | return jsonify({'error': 'Network intelligence not available'}), 400 |
| 17073 | |
| 17074 | data = request.get_json() |
| 17075 | required_fields = ['host', 'service', 'username', 'password'] |
| 17076 | |
| 17077 | if not all(field in data for field in required_fields): |
| 17078 | return jsonify({'error': 'Missing required fields'}), 400 |
| 17079 | |
| 17080 | cred_id = shared_data.network_intelligence.add_credential( |
| 17081 | host=data['host'], |
| 17082 | service=data['service'], |
| 17083 | username=data['username'], |
| 17084 | password=data['password'], |
| 17085 | protocol=data.get('protocol', 'unknown'), |
| 17086 | details=data.get('details', {}) |
| 17087 | ) |
| 17088 | |
| 17089 | if cred_id: |
nothing calls this directly
no test coverage detected