Adding modules

In this example we will add the following module:

Update searchsploit db

searchsploit -u

Move to modules/exploits directory

cd .msf4/modules/exploits

Find desired module

searchsploit manageengine opmanager

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ---------------------------------
 Exploit Title                                                                                                                                                                                                                                                                            |  Path
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ---------------------------------
ManageEngine OpManager - Remote Code Execution (Metasploit)                                                                                                                                                                                                                               | java/remote/38221.rb
ManageEngine OpManager / Applications Manager / IT360 - 'FailOverServlet' Multiple Vulnerabilities                                                                                                                                                                                        | multiple/webapps/43894.txt
ManageEngine OpManager / Social IT - Arbitrary File Upload (Metasploit)                                                                                                                                                                                                                   | java/remote/34867.rb
ManageEngine OpManager / Social IT Plus / IT360 - Multiple Vulnerabilities                                                                                                                                                                                                                | jsp/webapps/35209.txt
ManageEngine OpManager / Social IT Plus / IT360 - Multiple Vulnerabilities                                                                                                                                                                                                                | multiple/webapps/43896.txt
ManageEngine OpManager 11.5 - Multiple Vulnerabilities                                                                                                                                                                                                                                    | multiple/webapps/38174.txt
ManageEngine opManager 12.3.150 - Authenticated Code Execution                                                                                                                                                                                                                            | windows/webapps/47255.py
ManageEngine OpManager 12.4x - Privilege Escalation / Remote Command Execution (Metasploit)                                                                                                                                                                                               | multiple/remote/47227.rb
ManageEngine OpManager 12.4x - Unauthenticated Remote Command Execution (Metasploit)                                                                                                                                                                                                      | multiple/remote/47229.rb
OPMANAGER - Blind SQL Injection / XPath Injection                                                                                                                                                                                                                                         | aix/webapps/10372.txt
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ---------------------------------

Replicate directory structure, so in this case:

Copy desired module from local exploitdb path to metasploit directory

So path is now: ~/msf4/modules/exploits/multiple/remote/47229.rb

Update local DB

Now restart msfconsole, should now show up when searching

exploit/multiple/remote/47229 is the module we have just added.

Last updated