Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Latest commit

 

History

History
33 lines (24 loc) · 1.28 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.28 KB

Metasploit_Scripts

List of Metasploit Scripts to help in pentesting.

Clone this repository:
git clone https://github.com/sushiwushi/Metasploit_Scripts.git
cd Metasploit_Scripts/

Using resource file in Metasploit:

You need to copy the resource file (*.rc) into metasploit-framework resource directory
Resource directory: */metasploit-framework/embedded/framework/scripts/resource/

Example: Starting Metasploit with resource file
cd Metasploit_Scripts/
msfconsole -r exploit_multi_handler.rc

Example: Using resource file inside Metasploit (Kali Linux)
cd Metasploit_Scripts/
cp exploit_multi_handler.rc /usr/share/metasploit-framework/embedded/framework/scripts/resource/
msfconsole
resource exploit_multi_handler.rc

Using meterpreter scripts in Metasploit:

You need to copy the Ruby file (*.rb) into metasploit-framework scripts directory
Meterpreter scripts directory: */metasploit-framework/embedded/framework/scripts/meterpreter/

Example: Adding meterpreter scripts into metasploit-framework (Kali Linux)
cd Metasploit_Scripts/
cp utilman_to_cmd.rb /usr/share/metasploit-framework/embedded/framework/scripts/meterpreter/

Example: Using scripts inside meterpreter
meterpreter > run utilman_to_cmd