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

Function get_traffic_beacons

webapp_modern.py:17053–17067  ·  view source on GitHub ↗

Get current C2 beacon candidates ranked by score.

()

Source from the content-addressed store, hash-verified

17051 return report_text.encode('utf-8')
17052
17053 except Exception as e:
17054 logger.error(f"Error creating text report: {e}")
17055 error_content = f"Error generating report: {e}".encode('utf-8')
17056 return error_content
17057
17058@app.route('/api/threat-intelligence/download-report', methods=['POST'])
17059def download_threat_intelligence_report():
17060 """Generate and download a comprehensive threat intelligence report"""
17061 with _network_context_from_request():
17062 try:
17063 if not threat_intelligence:
17064 return jsonify({'error': 'Threat intelligence system not available'}), 503
17065
17066 data = request.get_json()
17067 if not data:
17068 return jsonify({'error': 'No data provided'}), 400
17069
17070 target = data.get('target', '').strip()

Callers

nothing calls this directly

Calls 4

get_beaconsMethod · 0.80
errorMethod · 0.80
get_traffic_analyzerFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected