Metasploit Framework
The Metasploit Framework is a Ruby-based, modular penetration testing platform that enables you to write, test, and execute exploit code. The Metasploit Framework contains a suite of tools that you can use to test security vulnerabilities, enumerate networks, execute attacks, and evade detection. At its core, the Metasploit Framework is a collection of commonly used tools that provide a complete environment for penetration testing and exploit development.
Accessing MSFconsole
MSFconsole provides a command line interface to access and work with the Metasploit Framework. The MSFconsole is the most commonly used interface to work with the Metasploit Framework. The console lets you do things like scan targets, exploit vulnerabilities, and collect data.
Accessing MSFconsole on Linux
To run MSFconsole on Linux, open a terminal, cd
into the framework directory and
type:
./msfconsole
If all goes well, you’ll see the following prompt :
However, if this is first time you are accessing the console, you may see an error indicating
that you are missing some gems. To fix this error, run bundle install
to grab those
gems.
To run bundle install, simply type :
bundle install
After you run bundle install, you can try to launch the console again by retyping
./msfconsole
.
If you are using a commercial version of Metasploit, such as Metasploit Pro, you can run
only for pro users !!./msfpro
to launch the console.
Accessing MSFconsole on Windows
If you’re a Windows user, launching MSFconsole is really easy. Go to the Start menu and choose All Programs > Metasploit > Framework > Metasploit Console.
If you prefer to run the console from the command line, open a terminal and run the following commands:
cd /metasploit
console.bat
If the console successfully loads, you’ll see the following prompt :