Skip to content

Commit

Permalink
淇敼: jsonPath 鏀逛负 josn_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Byxs20 committed Sep 10, 2024
1 parent caf45f5 commit 89a72c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89a72c4

Please sign in to comment.