xbase-util 0.1.9__tar.gz → 0.2.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {xbase_util-0.1.9 → xbase_util-0.2.1}/PKG-INFO +1 -1
- {xbase_util-0.1.9 → xbase_util-0.2.1}/setup.py +1 -1
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/esreq.py +4 -2
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/xbase_util.py +11 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util.egg-info/PKG-INFO +1 -1
- {xbase_util-0.1.9 → xbase_util-0.2.1}/README.md +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/setup.cfg +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/__init__.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/__init__.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/bean/ConfigBean.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/bean/CurrentConfigBean.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/bean/FlowBean.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/bean/TaskTemplateBean.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/bean/__init__.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/dao/ConfigDao.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/dao/CurrentConfigDao.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/dao/FlowDao.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/dao/TaskTemplateDao.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/dao/__init__.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/db/initsqlite3.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/es_db_util.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/geo_util.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/handle_features_util.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/pcap_util.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util/xbase_constant.py +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util.egg-info/SOURCES.txt +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util.egg-info/dependency_links.txt +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util.egg-info/not-zip-safe +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util.egg-info/top_level.txt +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util_assets/GeoLite2-City.mmdb +0 -0
- {xbase_util-0.1.9 → xbase_util-0.2.1}/xbase_util_assets/arkimeparse.js +0 -0
@@ -13,8 +13,10 @@ class EsReq:
|
|
13
13
|
def search(self, body):
|
14
14
|
return requests.post(self.es_url + "/_search", timeout=self.timeout, json=body)
|
15
15
|
|
16
|
-
def start_scroll(self, exp, scroll):
|
17
|
-
|
16
|
+
def start_scroll(self, exp, scroll,index=""):
|
17
|
+
if not index.startswith("/"):
|
18
|
+
index = "/" + index
|
19
|
+
return requests.post(self.es_url + f"{index}/_search?scroll={scroll}", timeout=self.timeout,
|
18
20
|
json=exp)
|
19
21
|
|
20
22
|
def scroll_by_id(self, scroll_id, scroll):
|
@@ -10,6 +10,17 @@ from scapy.layers.dns import DNS
|
|
10
10
|
from xbase_util.xbase_constant import parse_path, dns_domain_list
|
11
11
|
|
12
12
|
|
13
|
+
def process_origin_pos(originPos):
|
14
|
+
temres = (f"{originPos}"
|
15
|
+
.replace("]", "")
|
16
|
+
.replace("[", "")
|
17
|
+
.replace("\\", "")
|
18
|
+
.replace("\"", "")
|
19
|
+
.replace(" ","")
|
20
|
+
.split(","))
|
21
|
+
return [int(f"{i}") for i in temres]
|
22
|
+
|
23
|
+
|
13
24
|
def parse_expression(expression):
|
14
25
|
if expression:
|
15
26
|
with open(parse_path, "r") as f:
|
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
|