Repository navigation
stringer 1.2.0
Byte-range filters for scoped scans + JSON fixes
What’s new
-r, --range SPEC(repeatable): limit hits to specific file byte ranges.start:end,start+len,start:,:end(decimal or hex0x...).- Ranges are unioned (string is kept if its
[off, off+bytes)overlaps any range).
- Works across ASCII and UTF-16LE emit paths, for both text and JSON output.
-rcombines with-fusing AND semantics:- string must be in-range and match at least one
-fpattern.
- string must be in-range and match at least one
Examples
# Only strings in .rdata (file offset 0x4000, size 0x2000)
stringer -r 0x4000+0x2000 a.exe
# Find 'token' or 'password' only in that region
stringer -r 0x4000+0x2000 -f token -f password a.exe
# Two disjoint regions
stringer -r 700:800 -r 13000:14000 -f linux -f gnu test/samples/a.out