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.
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)- A3% (1)
- B8% (3)
- C3% (1)
- D87% (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.
JavaScript is primarily a client-side web scripting language and is not the native language for Metasploit module development.
Python is a versatile scripting language used in many security tools, but it is not the native language for Metasploit module development.
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.
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
Community Discussion
No community discussion yet for this question.