FlowAnalyzer 0.1.5__tar.gz → 0.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,10 +167,10 @@ class FlowAnalyzer:
167
167
  header = full_request[:num]
168
168
 
169
169
  if full_request.endswith(b"\r\n\r\n"):
170
- ret = re.findall(b'^\r\n\r\n.*?\r\n(.*)\r\n.*?\r\n\r\n$', full_request[num:], flags=re.DOTALL)
171
170
  # 判断是否有file_data,没有的话就为b""空字符串
172
171
  # 由于是多个tcp所以需要去除应该是长度的字节 不确定是不是4个字节 后期可能出现bug
173
- file_data = re.sub(b"\r\n.{4}\r\n", b"", ret[0]) if ret != [] else b""
172
+ ret = re.findall(b'^\r\n\r\n[0-9a-f]{1,}\r\n(.*)\r\n\x30\r\n\r\n$', full_request[num:], flags=re.DOTALL)
173
+ file_data = re.sub(b"\r\n[0-9a-f]{1,}\r\n", b"", ret[0]) if ret != [] else b""
174
174
  else:
175
175
  file_data = full_request[num+4:]
176
176
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FlowAnalyzer
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: FlowAnalyzer是一个流量分析器,用于解析和处理tshark导出的JSON数据文件
5
5
  Home-page: https://github.com/Byxs20/FlowAnalyzer
6
6
  Author: Byxs20
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FlowAnalyzer
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: FlowAnalyzer是一个流量分析器,用于解析和处理tshark导出的JSON数据文件
5
5
  Home-page: https://github.com/Byxs20/FlowAnalyzer
6
6
  Author: Byxs20
@@ -6,7 +6,7 @@ with open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8"
6
6
 
7
7
  setup(
8
8
  name="FlowAnalyzer",
9
- version="0.1.5",
9
+ version="0.1.6",
10
10
  description="FlowAnalyzer是一个流量分析器,用于解析和处理tshark导出的JSON数据文件",
11
11
  author="Byxs20",
12
12
  author_email="97766819@qq.com",
File without changes
File without changes
File without changes