masscan icon indicating copy to clipboard operation
masscan copied to clipboard

Rate won't be visible in terminal when forwarding output

Open mynote opened this issue 2 years ago • 2 comments

It looks like that rate (example: rate: 0.00-kpps, 100.00% done, waiting 1-secs, found=1)

won't be forwarded to the Terminal or at least should be written as a newline to the buffer like "Discovered open port" as an option to allow tools like CSharp SSHClients to forward the rate and time remaining.

Right now rate: .. is written in stderr instead of stdout, which should be optionally be possible to write in stdout as well.

mynote avatar May 19 '23 14:05 mynote

You can use 2>&1 for this

Additionally, if you need to adjust the buffering behavior of stdout/stderr, see this

mzpqnxow avatar Dec 09 '23 15:12 mzpqnxow

You can use 2>&1 for this

Additionally, if you need to adjust the buffering behavior of stdout/stderr, see this

You may also be able to use -oD - to emit the found ports to stdout

mzpqnxow avatar Dec 09 '23 15:12 mzpqnxow