Skip to main content
1 of 2
Chris Davies
  • 128.2k
  • 16
  • 179
  • 324

You need to direct both stderr and stdout into the file:

nc -vv -z localhost 1-80 > file.txt 2>&1
Chris Davies
  • 128.2k
  • 16
  • 179
  • 324