Book Image

Penetration Testing with the Bash shell

By : Keith Harald Esrick Makan
Book Image

Penetration Testing with the Bash shell

By: Keith Harald Esrick Makan

Overview of this book

Table of Contents (13 chapters)

Using the Metasploit command-line interface


Metasploit is probably the most widely used penetration testing and exploitation development framework—the one tool people use the most for testing, finding, and developing exploits for vulnerabilities. Over the years, Metasploit is seen as support to the security industry's most talented developers and exploit writers.

One of the many useful functionalities of the Metasploit Framework is its ability to expose the invocation of its modules and tools to the command line. This means Metasploit can be used in the feature-rich and powerful problem-solving environment of the bash shell. This functionality is known as the Metasploit command-line interface (msfcli).

Getting started with msfcli

In this section, we will see how to use the Metasploit command-line interface to do basic scanning, exploit some generic vulnerabilities, and integrate some useful bash scripting with the Metasploit command-line interface.

The following is the usage specification for...