• Post author:
  • Post category:Blog
  • Reading time:2 mins read
  • Post last modified:June 12, 2024

A cybersecurity student is learning about Netcat commands that could be used in a penetration testing engagement. The student wants to use Netcat as a port scanner. What command should be used?

  • nc -nv <IP address> <Port>
  • nc -lvp <port>
  • nc -z <IP address> <port range>
  • nc -nv <IP address> <input.txt>

Explanation & Hint:

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

  • nc -nv <IP address> <Port> – to connect to a TCP port
  • nc -lvp <port> – to listen on a given TCP port
  • nc -lvp 1234 > output.txt (receiving system) and nc -nv <IP address> <input.txt (sending system) – to transfer a file
  • nc -z <IP address> <port range> – to be used as a port scanner

For more Questions and Answers:

8.3.3 Quiz – Performing Post-Exploitation Techniques Answers Full 100%

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments