xbase-util 0.1.2__tar.gz → 0.1.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xbase_util
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: 网络安全基础工具
5
5
  Home-page: https://gitee.com/jimonik/xbase_util.git
6
6
  Author: xyt
@@ -3,7 +3,7 @@ from distutils.core import setup
3
3
  from setuptools import find_packages
4
4
 
5
5
  setup(name="xbase_util",
6
- version="0.1.2",
6
+ version="0.1.3",
7
7
  description="网络安全基础工具",
8
8
  long_description="包含提取,预测,训练的基础工具",
9
9
  author="xyt",
@@ -230,7 +230,7 @@ def get_dns_domain(packets):
230
230
  return domain_name
231
231
 
232
232
 
233
- def extract_session_fields(cls, origin_list, geoUtil):
233
+ def extract_session_fields(origin_list, geoUtil):
234
234
  res = []
235
235
  for item in origin_list:
236
236
  _source = item.get("_source", {})
@@ -243,8 +243,8 @@ def extract_session_fields(cls, origin_list, geoUtil):
243
243
  uri = http.get('uri', [])
244
244
  uri_length = [len(u) for u in uri]
245
245
  uri_depth = [get_uri_depth(u) for u in uri]
246
- uri_filename_length = [cls.get_uri_filename_length(u) for u in uri]
247
- uri_params = [cls.get_url_param_count(u) for u in uri]
246
+ uri_filename_length = [get_uri_filename_length(u) for u in uri]
247
+ uri_params = [get_url_param_count(u) for u in uri]
248
248
  res.append(geoUtil.get_geo_by_ip({
249
249
  "id": item["_id"],
250
250
  "node": _source.get("node", ""),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xbase-util
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: 网络安全基础工具
5
5
  Home-page: https://gitee.com/jimonik/xbase_util.git
6
6
  Author: xyt
File without changes
File without changes