summaryrefslogtreecommitdiff
path: root/examples/py-ja3-checker
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-02-27 02:53:39 +0100
committerToni Uhlig <matzeton@googlemail.com>2022-02-27 02:53:39 +0100
commit9db048c9d93a00adf4b258d2341b24229d2a45a1 (patch)
tree58994c0e8e5b77a1909b232c5cb57109583cf8b4 /examples/py-ja3-checker
parentcb80c415d8a20b03f0d6a8f2fc38e8c8250a04da (diff)
Serialize flow risk score / confidence.
* bump libnDPI to 8b062295cc76a60e3905c054ce37bd17669464d1 * removed ndpi_id_struct's Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/py-ja3-checker')
-rwxr-xr-xexamples/py-ja3-checker/py-ja3-checker.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/py-ja3-checker/py-ja3-checker.py b/examples/py-ja3-checker/py-ja3-checker.py
index b7f9df5b1..d3db3b56e 100755
--- a/examples/py-ja3-checker/py-ja3-checker.py
+++ b/examples/py-ja3-checker/py-ja3-checker.py
@@ -8,15 +8,11 @@ import requests
import sys
import time
+sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies')
sys.path.append(os.path.dirname(sys.argv[0]) + '/../share/nDPId')
sys.path.append(os.path.dirname(sys.argv[0]) + '/../usr/share/nDPId')
-try:
- import nDPIsrvd
- from nDPIsrvd import nDPIsrvdSocket
-except ImportError:
- sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies')
- import nDPIsrvd
- from nDPIsrvd import nDPIsrvdSocket
+import nDPIsrvd
+from nDPIsrvd import nDPIsrvdSocket
global ja3_fps
ja3_fps = dict()