summaryrefslogtreecommitdiff
path: root/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-09-26 15:15:15 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-09-26 15:15:15 +0200
commit04bbbcd0553362f7764c5b70d614c71f1817aed1 (patch)
treea537b753aef66a9fe3ef1371fce1c941056bc6fe /examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py
parent8c61f883621169f5c9451758eed4b3a4ee9ee3a2 (diff)
Improved event parsing for Python scripts.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py')
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py b/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py
index 5636b25d5..f3348e9a1 100755
--- a/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py
+++ b/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py
@@ -33,8 +33,6 @@ def parse_json_str(json_str):
elif event == 'detected' or event == 'detection-update' or event == 'guessed' or event == 'not-detected':
if 'ndpi' in j and 'flow_risk' in j['ndpi']:
print('Risky flow with id {}, PCAP dump returned: {}'.format(flow_id, FLOWS[flow_id].fin('risky')))
-
- FLOWS[flow_id].detected()
else:
raise RuntimeError('unknown flow event name: {}'.format(event))