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

Function get_traffic_summary

webapp_modern.py:16996–17010  ·  view source on GitHub ↗

Get traffic analysis summary

()

Source from the content-addressed store, hash-verified

16994 report_text += "\n"
16995 else:
16996 report_text += "RECOMMENDED ACTIONS\n"
16997 report_text += "-------------------\n"
16998 report_text += "• Review target for legitimate business purpose\n"
16999 report_text += "• Monitor for unusual activity\n"
17000 report_text += "• Apply standard security controls\n\n"
17001
17002 if report_content.get('exploitation_prediction'):
17003 pred = report_content['exploitation_prediction']
17004 report_text += "EXPLOITATION PREDICTION\n"
17005 report_text += "-----------------------\n"
17006 report_text += f"Likelihood: {pred.get('exploitation_likelihood', 0) * 100:.1f}%\n"
17007 report_text += f"Timeline: {pred.get('predicted_timeline_days', 'Unknown')} days\n"
17008 report_text += f"Confidence: {pred.get('confidence', 0) * 100:.1f}%\n\n"
17009
17010 report_text += f"""REPORT METADATA
17011---------------
17012Generated by: Ragnar Threat Intelligence System
17013Report ID: {hashlib.md5(report_content['target'].encode()).hexdigest()[:12]}

Callers

nothing calls this directly

Calls 4

errorMethod · 0.80
get_traffic_analyzerFunction · 0.70
get_summaryMethod · 0.45

Tested by

no test coverage detected