GCIH Exam QuestionsBrowse all questions from this exam

GCIH Exam - Question 90


How could an attacker set up a persistent backdoor listener to a login shell on TCP port 53 using netcat on a Linux system?

Show Answer
Correct Answer: D

To set up a persistent backdoor listener on TCP port 53 using netcat, the command should run continuously to ensure persistence. The command 'while true; do nc -l -p 53 -e /bin/sh; done' sets up an infinite loop that repeatedly starts a netcat listener on port 53, which executes a shell when a connection is made, thus maintaining persistence.

Discussion

3 comments
Sign in to comment
sasds
Jul 10, 2023

correct answer A

XBal
Sep 15, 2023

Answer should be D because of word "Persistent"

847ch0n3Option: D
Sep 3, 2024

persistent = while true