xbase-util 0.2.3__tar.gz → 0.2.4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {xbase_util-0.2.3 → xbase_util-0.2.4}/PKG-INFO +1 -1
- {xbase_util-0.2.3 → xbase_util-0.2.4}/setup.py +1 -1
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/esreq.py +1 -1
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/xbase_util.py +9 -1
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util.egg-info/PKG-INFO +1 -1
- {xbase_util-0.2.3 → xbase_util-0.2.4}/README.md +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/setup.cfg +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/__init__.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/__init__.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/bean/ConfigBean.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/bean/CurrentConfigBean.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/bean/FlowBean.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/bean/TaskTemplateBean.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/bean/__init__.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/dao/ConfigDao.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/dao/CurrentConfigDao.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/dao/FlowDao.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/dao/TaskTemplateDao.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/dao/__init__.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/db/initsqlite3.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/es_db_util.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/geo_util.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/handle_features_util.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/pcap_util.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util/xbase_constant.py +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util.egg-info/SOURCES.txt +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util.egg-info/dependency_links.txt +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util.egg-info/not-zip-safe +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util.egg-info/top_level.txt +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util_assets/GeoLite2-City.mmdb +0 -0
- {xbase_util-0.2.3 → xbase_util-0.2.4}/xbase_util_assets/arkimeparse.js +0 -0
@@ -13,7 +13,7 @@ class EsReq:
|
|
13
13
|
def search(self, body, index=""):
|
14
14
|
if not index.startswith("/"):
|
15
15
|
index = "/" + index
|
16
|
-
return requests.post(self.es_url +
|
16
|
+
return requests.post(self.es_url + f"{index}/_search", timeout=self.timeout, json=body)
|
17
17
|
|
18
18
|
def start_scroll(self, exp, scroll, index=""):
|
19
19
|
if not index.startswith("/"):
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import json
|
2
|
+
import os
|
2
3
|
import re
|
3
4
|
from urllib.parse import urlparse, parse_qs
|
4
5
|
|
@@ -16,7 +17,7 @@ def process_origin_pos(originPos):
|
|
16
17
|
.replace("[", "")
|
17
18
|
.replace("\\", "")
|
18
19
|
.replace("\"", "")
|
19
|
-
.replace(" ","")
|
20
|
+
.replace(" ", "")
|
20
21
|
.split(","))
|
21
22
|
return [int(f"{i}") for i in temres]
|
22
23
|
|
@@ -403,3 +404,10 @@ def get_dns_domain_suffix(domain, dns_lock):
|
|
403
404
|
return extracted.suffix
|
404
405
|
except Exception as e:
|
405
406
|
return ""
|
407
|
+
|
408
|
+
|
409
|
+
def check_path(file_path: str):
|
410
|
+
directory = os.path.dirname(file_path)
|
411
|
+
if not os.path.exists(directory):
|
412
|
+
os.makedirs(directory)
|
413
|
+
return file_path
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|