A cybersecurity student is learning about Netcat commands that could be used in a penetration testing engagement. Which Netcat command is used to connect to a TCP port?

IT Exam Items Repository › Category: Ethical Hacker › A cybersecurity student is learning about Netcat commands that could be used in a penetration testing engagement. Which Netcat command is used to connect to a TCP port?

A cybersecurity student is learning about Netcat commands that could be used in a penetration testing engagement. Which Netcat command is used to connect to a TCP port?

  • nc -nv
  • nc -lvp
  • nc -z
  • nc -nv

Explanation: Several Netcat commands can be used in a penetration testing engagement. Some of them are the following:

  • nc -nv - to connect to a TCP port
  • nc -lvp - to listen on a given TCP port
  • nc -lvp 1234 > output.txt (receiving system) and nc -nv nc -z - to be used as a port scanner

Related exam: 8.3.3 Quiz - Performing Post-Exploitation Techniques Answers