Ben-Lichtman / ropr

A blazing fast™ multithreaded ROP Gadget finder. ropper / ropgadget alternative
477 stars 27 forks source link

Piping output into head panics #8

Closed 0xricksanchez closed 2 years ago

0xricksanchez commented 2 years ago

It's me again :D! Just noticed a weird behavior that's just a small UX thing:

image

Piping into tail, sort, or even vim works just fine, but piping directly into head does not. Not sure where the inconsistency comes from here, but I figured I'd let you know.

Cheers

Ben-Lichtman commented 2 years ago

Hi, this is because head may close stdin before it finishes reading everything. This should not affect most uses and I was already aware of this issue, but I should probably handle the case anyway.

(Less can also cause this)

Ben-Lichtman commented 2 years ago

fixed in 0.2.21

Ben-Lichtman commented 2 years ago

btw you can add -c true to the arguments to force ANSI colours to pass through to head / other pipes