Skip to content

Commit

Permalink
add new data capture
Browse files Browse the repository at this point in the history
  • Loading branch information
khusmann committed Dec 24, 2024
1 parent 5d13055 commit 4c75c2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions btsnoop/fix_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def to_text(cmd: bytes):
reader = csv.DictReader(sys.stdin)

output_header = [
"id", "dir", "is_known", "group", "is_reply", "command", "message"
"id", "dir", "is_known", "group", "is_reply", "command", "message", "original"
]

writer = csv.DictWriter(sys.stdout, fieldnames=output_header)
Expand Down Expand Up @@ -75,5 +75,6 @@ def to_text(cmd: bytes):
"group": frame.data.command_group.name,
"is_reply": frame.data.is_reply,
"command": frame.data.command.name,
"message": str(frame.data.body)
"message": str(frame.data.body),
"original": frame.data.to_bytes()
})
1 change: 1 addition & 0 deletions btsnoop/input/uv-pro/0.7.10-3/send_data.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Send "test 123" and "test 321"

0 comments on commit 4c75c2b

Please sign in to comment.