From 89a72c48046d86190ddf821e6b418f39237db6c5 Mon Sep 17 00:00:00 2001 From: Byxs20 <97766819@qq.com> Date: Tue, 10 Sep 2024 09:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9:=20jsonPath=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20josn=5Fpath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/demo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/demo.py b/tests/demo.py index 9a51c6a..900b393 100644 --- a/tests/demo.py +++ b/tests/demo.py @@ -7,8 +7,8 @@ flowPath = os.path.join(baseDir, "flow.pcapng") display_filter = "(http.request and urlencoded-form) or (http.request and data-text-lines) or (http.request and mime_multipart) or (http.response.code == 200 and data-text-lines)" -jsonPath = FlowAnalyzer.get_json_data(flowPath, display_filter=display_filter) -for http_seq_num, http in enumerate(FlowAnalyzer(jsonPath).generate_http_dict_pairs(), start=1): +json_path = FlowAnalyzer.get_json_data(flowPath, display_filter=display_filter) +for http_seq_num, http in enumerate(FlowAnalyzer(json_path).generate_http_dict_pairs(), start=1): print(f"[+] 正在处理第{http_seq_num}个HTTP流!") request, response = http.request, http.response