nerdexam
CompTIACompTIA

PT0-002 · Question #609

PT0-002 Question #609: Real Exam Question with Answer & Explanation

The correct answer is C: session -u l. To promote a basic reverse shell session to a more powerful Meterpreter session in Metasploit, the 'sessions -u' command is used.

Post-exploitation and lateral movement

Question

A penetration tester uses Metasploit Framework and obtains a reverse shell session: Which of the following commands should the penetration tester run at Metasploit to promote this shell to a Meterpreter session?

Options

  • Asession -t l
  • Bsession -i l
  • Csession -u l
  • Dsession -k l

Explanation

To promote a basic reverse shell session to a more powerful Meterpreter session in Metasploit, the 'sessions -u' command is used.

Common mistakes.

  • A. The -t flag is not used for upgrading sessions in Metasploit; it is typically associated with listing or filtering session types.
  • B. The -i flag is used to interact with an existing session, not to upgrade it to a different type of session.
  • D. The -k flag is used to kill or terminate an existing session, which is the opposite action of promoting it.

Concept tested. Metasploit session management (upgrading to Meterpreter)

Reference. https://docs.metasploit.com/docs/using-metasploit/basic-msf-usage/handling-sessions.html

Topics

#Metasploit#Meterpreter#Shell upgrade#Post-exploitation

Community Discussion

No community discussion yet for this question.

Full PT0-002 PracticeBrowse All PT0-002 Questions