nerdexam
GIAC

GPEN · Question #386

Which Metasploitvncinject stager will allow VNC communications from the attacker to a listening port of the attacker's choosing on the victim machine?

The correct answer is B. Vncinject/reverse.tcp. In Metasploit, the vncinject/reverse_tcp stager causes the victim to initiate an outbound TCP connection back to an attacker-controlled listener, injecting VNC traffic over that reverse channel.

Exploitation & Post-Exploitation Techniques

Question

Which Metasploitvncinject stager will allow VNC communications from the attacker to a listening port of the attacker's choosing on the victim machine?

Options

  • AVncinject/find.lag
  • BVncinject/reverse.tcp
  • CVncinject/reverse-http
  • DVncinject /bind.tcp

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    79% (33)
  • C
    2% (1)
  • D
    14% (6)

Why each option

In Metasploit, the vncinject/reverse_tcp stager causes the victim to initiate an outbound TCP connection back to an attacker-controlled listener, injecting VNC traffic over that reverse channel.

AVncinject/find.lag

vncinject/find_tag (listed here as find.lag) is not a standard payload transport stager; it does not establish a reverse VNC communication channel.

BVncinject/reverse.tcpCorrect

The reverse_tcp stager directs the compromised system to connect outbound to the attacker's LHOST and LPORT, effectively letting the attacker choose the listening port on their own machine. VNC session traffic is then tunneled through this reverse TCP connection, bypassing inbound firewall rules on the victim.

CVncinject/reverse-http

reverse_http tunnels the payload over HTTP rather than a raw TCP socket, which is a distinct transport mechanism not described in the question.

DVncinject /bind.tcp

bind_tcp opens a listening port on the victim and waits for the attacker to connect inbound, which is the opposite direction of a reverse stager.

Concept tested: Metasploit vncinject reverse_tcp stager connection direction

Source: https://www.offensive-security.com/metasploit-unleashed/meterpreter-basics/

Topics

#Metasploit#VNC injection#reverse TCP stager#post-exploitation

Community Discussion

No community discussion yet for this question.

Full GPEN Practice