ISSUE-570: Enhance rayhunter-check output#1015
Open
herbenderbler wants to merge 1 commit into
Open
Conversation
11 tasks
Collaborator
|
coming back to this I think we need to output as json instead of Nd json. If this is somethig you are still interested in lets work on that and rebase this. |
herbenderbler
force-pushed
the
ISSUE-570/check-output
branch
2 times, most recently
from
June 30, 2026 05:31
ab2b251 to
ef3768a
Compare
Author
let me know how this lands with you whenever you get a chance. |
herbenderbler
force-pushed
the
ISSUE-570/check-output
branch
5 times, most recently
from
July 16, 2026 21:10
48f40bc to
905b470
Compare
`--format json` writes a JSON array of per-file { path, metadata, rows }
reports to stdout; `--output` also writes each as <output>/<input>.json.
`--pcapify` writes PCAPNG beside each QMDL by default, or under --output.
Output files are named <input>.<ext> so dotted stems and same-stem
.qmdl/.pcap pairs don't collide; existing files are never overwritten.
`--show-skipped` includes skipped-message rows. Logging goes to stderr so
stdout stays clean for jq.
A file that can't be opened or parsed is skipped with an error and the run
continues (exit code 1 if any input failed) rather than aborting and
forfeiting every report; mid-stream read errors keep rows processed so far.
Legacy pcap files are accepted alongside pcapng, detected by magic number,
with link-layer framing stripped and timestamps rebased to the epoch the
analyzer expects. Packets too short for GSMTAP are reported as skipped rows
instead of panicking (lib). pcapify removes its partial output on write
failure so the refuse-to-overwrite guard can't pin a corrupt file.
herbenderbler
force-pushed
the
ISSUE-570/check-output
branch
from
July 16, 2026 22:06
905b470 to
e390cab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a machine readable output mode to
rayhunter-checkso its analysis can be picked up by other tools, not just read off the terminal. Fixes #570. Replaces closed #941.--format jsonprints a JSON array of per file reports ({ path, metadata, rows }) to stdout. Pass--output <dir>to also drop a copy of each as<dir>/<input>.json.--pcapifywrites the PCAPNG next to each QMDL, or into--outputwhen it is given.<input>.<ext>), existing files are never overwritten, and dotted or shared stems no longer collide.--show-skippedadds the skipped rows. Logs go to stderr, so stdout stays clean.analyze_pcap_packetnow treats a packet too short for GSMTAP as a skipped row instead of panicking.Also adds
anyhow, rebases onto latest main, and updatesdoc/reanalyzing.md.AI disclosure
Generative AI (Claude) was used to help write this pull request, including code, comments, and this description. I have read, understand, and take responsibility for all of the changes.