FlowAnalyzer 0.4.5__py3-none-any.whl → 0.4.6__py3-none-any.whl

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.
@@ -20,7 +20,7 @@ class PacketParser:
20
20
  4: tcp.payload
21
21
  5: frame.time_epoch
22
22
  6: exported_pdu.exported_pdu
23
- 7: http.request.full_uri
23
+ 7: http.request.full_uri
24
24
  8: tcp.segment.count
25
25
  """
26
26
  frame_num = int(row[3])
@@ -48,9 +48,11 @@ class PacketParser:
48
48
  headerEnd = file_data.find(b"\r\n\r\n")
49
49
  if headerEnd != -1:
50
50
  return file_data[: headerEnd + 4], file_data[headerEnd + 4 :]
51
- elif file_data.find(b"\n\n") != -1:
52
- headerEnd = file_data.index(b"\n\n") + 2
53
- return file_data[:headerEnd], file_data[headerEnd:]
51
+
52
+ headerEnd = file_data.find(b"\n\n")
53
+ if headerEnd != -1:
54
+ return file_data[: headerEnd + 2], file_data[headerEnd + 2 :]
55
+
54
56
  return b"", file_data
55
57
 
56
58
  @staticmethod
@@ -73,6 +75,10 @@ class PacketParser:
73
75
  raise ValueError("Not chunked data")
74
76
 
75
77
  size_line = file_data[cursor:newline_idx].strip()
78
+ # Handle chunk extension: ignore everything after ';'
79
+ if b";" in size_line:
80
+ size_line = size_line.split(b";", 1)[0].strip()
81
+
76
82
  if not size_line:
77
83
  cursor = newline_idx + 1
78
84
  continue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: FlowAnalyzer
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: FlowAnalyzer是一个流量分析器,用于解析和处理tshark导出的JSON数据文件
5
5
  Home-page: https://github.com/Byxs20/FlowAnalyzer
6
6
  Author: Byxs20
@@ -1,12 +1,12 @@
1
1
  FlowAnalyzer/FlowAnalyzer.py,sha256=9SshWk5wf0XATI7W4eBiIpzEqeGFyQJs3on5ox-zrNQ,12666
2
2
  FlowAnalyzer/Models.py,sha256=2x7nPJIAyLTC1oiGFlW4mELDPgthk2IsmuyearT-MSQ,622
3
- FlowAnalyzer/PacketParser.py,sha256=vdXUMFteSlIbOJ4y4_ikUIL3HwBCFBBgjevNL0jLozE,6174
3
+ FlowAnalyzer/PacketParser.py,sha256=So3iD2ykkWpT0e3aLjBdx_ohoNscD-oAt4bfr_oRqgo,6331
4
4
  FlowAnalyzer/Path.py,sha256=E5VvucTftp8VTQUffFzFWHotQEYtZL-j7IQPOaleiug,130
5
5
  FlowAnalyzer/PcapSplitter.py,sha256=0E_vmLYYsE_gD34XTwG1XPx5kBg8ZchJspQEnkBoIdY,4855
6
6
  FlowAnalyzer/__init__.py,sha256=vfiHONPTrvjUU3MwhjFOEo3sWfzlhkA6gOLn_4UJ7sg,70
7
7
  FlowAnalyzer/logging_config.py,sha256=fnBlvoimteQ38IBlQBV9fdLQvfAlRgGhcvLpUC3YunA,732
8
- flowanalyzer-0.4.5.dist-info/licenses/LICENSE,sha256=ybAV0ECduYBZCpjkHyNALVWRRmT_eM0BDgqUszhwEFU,1080
9
- flowanalyzer-0.4.5.dist-info/METADATA,sha256=oyoNqX8eZkkiNTrkz8qrZ6T7ofrW0lnFSxXoV2Q1wIU,6099
10
- flowanalyzer-0.4.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
11
- flowanalyzer-0.4.5.dist-info/top_level.txt,sha256=2MtvAF6dEe_eHipw_6G5pFLb2uOCbGnlH0bC4iBtm5A,13
12
- flowanalyzer-0.4.5.dist-info/RECORD,,
8
+ flowanalyzer-0.4.6.dist-info/licenses/LICENSE,sha256=ybAV0ECduYBZCpjkHyNALVWRRmT_eM0BDgqUszhwEFU,1080
9
+ flowanalyzer-0.4.6.dist-info/METADATA,sha256=j9Bw-2Sr1dx_DatRtxo56WE0BB1-WMOoIhfoSoSYk-Y,6099
10
+ flowanalyzer-0.4.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
11
+ flowanalyzer-0.4.6.dist-info/top_level.txt,sha256=2MtvAF6dEe_eHipw_6G5pFLb2uOCbGnlH0bC4iBtm5A,13
12
+ flowanalyzer-0.4.6.dist-info/RECORD,,