robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23k stars 3.02k forks source link

Rate won't be visible in terminal when forwarding output #719

Open mynote opened 1 year ago

mynote commented 1 year ago

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.

mzpqnxow commented 7 months ago

You can use 2>&1 for this

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

mzpqnxow commented 7 months ago

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