Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDEA] Standard I/O and pipe support? #32

Open
AshkanArabim opened this issue Jun 26, 2023 · 1 comment
Open

[IDEA] Standard I/O and pipe support? #32

AshkanArabim opened this issue Jun 26, 2023 · 1 comment

Comments

@AshkanArabim
Copy link

I'm working on a project that involves transmitting tcpdump data from an android phone over ADB. pcapfix has been a life-saver, but it could be much more versatile if it could fix a stream of packets on the fly using stdin and stdout. This way I could use it as part of a pipeline directly into Wireshark.

@andrew-morris
Copy link

just chiming in that I'd really love this, trying to figure out how to hand jam this:

$ kcat -b 127.0.0.1:29092 -t lmao | ~/Downloads/pcapfix-1.1.7/pcapfix -v /dev/stdin
pcapfix 1.1.7 (c) 2012-2021 Robert Krause

[*] Reading from file: /dev/stdin
[*] Writing to file: fixed_stdin
[*] File size: -1 bytes.
% Auto-selecting Consumer mode (use -P or -C to override)
[+] This is a PCAP file.
[-] File is too small to read pcap global header.
[-] FAILED: Unable to recover pcap file.

You may help to improve pcapfix by sending your pcap file to ruport@f00l.de

% ERROR: Write error for message of 721 bytes in lmao [0] at offset 411: Broken pipe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants