xbase-util 0.3.2__tar.gz → 0.3.4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {xbase_util-0.3.2 → xbase_util-0.3.4}/PKG-INFO +1 -1
- {xbase_util-0.3.2 → xbase_util-0.3.4}/setup.py +1 -1
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/xbase_util.py +8 -6
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util.egg-info/PKG-INFO +1 -1
- {xbase_util-0.3.2 → xbase_util-0.3.4}/README.md +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/setup.cfg +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/__init__.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/__init__.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/bean/ConfigBean.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/bean/CurrentConfigBean.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/bean/FlowBean.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/bean/TaskTemplateBean.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/bean/__init__.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/dao/ConfigDao.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/dao/CurrentConfigDao.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/dao/FlowDao.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/dao/TaskTemplateDao.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/dao/__init__.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/db/initsqlite3.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/es_db_util.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/esreq.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/geo_util.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/handle_features_util.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/pcap_util.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util/xbase_constant.py +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util.egg-info/SOURCES.txt +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util.egg-info/dependency_links.txt +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util.egg-info/not-zip-safe +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util.egg-info/top_level.txt +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util_assets/GeoLite2-City.mmdb +0 -0
- {xbase_util-0.3.2 → xbase_util-0.3.4}/xbase_util_assets/arkimeparse.js +0 -0
@@ -225,21 +225,22 @@ def get_statistic_fields(packets):
|
|
225
225
|
return field_map
|
226
226
|
|
227
227
|
|
228
|
-
def
|
229
|
-
|
228
|
+
def get_dns_domain(packets):
|
229
|
+
domain_name = ""
|
230
230
|
for packet_item in packets:
|
231
231
|
if DNS in packet_item:
|
232
232
|
dns_layer = packet_item[DNS]
|
233
233
|
if dns_layer.qd:
|
234
234
|
try:
|
235
235
|
domain_name = dns_layer.qd.qname.decode('utf-8')
|
236
|
+
# print(f"dns域名:{domain_name}")
|
236
237
|
except Exception:
|
237
238
|
domain_name = str(dns_layer.qd.qname)
|
238
239
|
print(f"dns域名编码失败的字符串:{domain_name}")
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
return
|
240
|
+
break
|
241
|
+
if domain_name.endswith("."):
|
242
|
+
domain_name = domain_name[:-1]
|
243
|
+
return domain_name
|
243
244
|
|
244
245
|
|
245
246
|
def extract_session_fields(origin_list, geoUtil):
|
@@ -323,6 +324,7 @@ def extract_session_fields(origin_list, geoUtil):
|
|
323
324
|
"http.request-refererCnt": http.get("requestRefererCnt", 0),
|
324
325
|
"http.path": http.get("path", []),
|
325
326
|
"http.hostCnt": http.get("hostCnt", 0),
|
327
|
+
"http.host": http.get("host", []),
|
326
328
|
"http.response-server": http.get("response-server", []),
|
327
329
|
"http.pathCnt": http.get("pathCnt", 0),
|
328
330
|
"http.useragentTokens": http.get("useragentTokens", ""),
|
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
|
File without changes
|