nerdexam
CompTIA

PT0-002 · Question #592

A penetration tester discovered a new exploit and would like to create a Metasploit module. Which of the following programming languages would be best for the penetration tester to use?

The correct answer is D. Ruby. To create a Metasploit module for a new exploit, the penetration tester should use Ruby, as it is the primary programming language for the Metasploit Framework.

Attacks and Exploits

Question

A penetration tester discovered a new exploit and would like to create a Metasploit module. Which of the following programming languages would be best for the penetration tester to use?

Options

  • AJavaScript
  • BPython
  • CPerl
  • DRuby

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    8% (3)
  • C
    3% (1)
  • D
    87% (33)

Why each option

To create a Metasploit module for a new exploit, the penetration tester should use Ruby, as it is the primary programming language for the Metasploit Framework.

AJavaScript

JavaScript is primarily a client-side web scripting language and is not the native language for Metasploit module development.

BPython

Python is a versatile scripting language used in many security tools, but it is not the native language for Metasploit module development.

CPerl

Perl is an older, powerful scripting language often used for text processing and system administration, but it is not the primary language for Metasploit modules.

DRubyCorrect

The Metasploit Framework is primarily written in Ruby, and all Metasploit modules (exploits, payloads, auxiliary, post-exploitation) are developed using the Ruby programming language. Therefore, Ruby is the best choice for creating new modules that integrate seamlessly with the framework.

Concept tested: Metasploit module development language

Source: https://docs.rapid7.com/metasploit/module-development/

Topics

#Metasploit#Exploit Development#Programming Languages

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice