From 04bbbcd0553362f7764c5b70d614c71f1817aed1 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 26 Sep 2020 15:15:15 +0200 Subject: Improved event parsing for Python scripts. Signed-off-by: Toni Uhlig --- examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py') 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)) -- cgit v1.2.3