Book Image

Metasploit Penetration Testing Cookbook - Third Edition

By : Daniel Teixeira, Abhinav Singh, Nipun Jaswal, Monika Agarwal
Book Image

Metasploit Penetration Testing Cookbook - Third Edition

By: Daniel Teixeira, Abhinav Singh, Nipun Jaswal, Monika Agarwal

Overview of this book

Metasploit is the world's leading penetration testing tool and helps security and IT professionals find, exploit, and validate vulnerabilities. Metasploit allows penetration testing automation, password auditing, web application scanning, social engineering, post exploitation, evidence collection, and reporting. Metasploit's integration with InsightVM (or Nexpose), Nessus, OpenVas, and other vulnerability scanners provides a validation solution that simplifies vulnerability prioritization and remediation reporting. Teams can collaborate in Metasploit and present their findings in consolidated reports. In this book, you will go through great recipes that will allow you to start using Metasploit effectively. With an ever increasing level of complexity, and covering everything from the fundamentals to more advanced features in Metasploit, this book is not just for beginners but also for professionals keen to master this awesome tool. You will begin by building your lab environment, setting up Metasploit, and learning how to perform intelligence gathering, threat modeling, vulnerability analysis, exploitation, and post exploitation—all inside Metasploit. You will learn how to create and customize payloads to evade anti-virus software and bypass an organization's defenses, exploit server vulnerabilities, attack client systems, compromise mobile phones, automate post exploitation, install backdoors, run keyloggers, highjack webcams, port public exploits to the framework, create your own modules, and much more.
Table of Contents (20 chapters)
Title Page
Copyright and Credits
Contributors
Packt Upsell
Preface
Index

Metasploit in the cloud


In previous chapters, I have already shown you that we use Metasploit in a DigitalOcean Droplet. In this recipe, I will show you how to do it and which other options we have to deploy Metasploit in the cloud.

Getting ready

After creating our DigitalOcean account, before we can install Metasploit we need to create a new Droplet. DigitalOcean calls its cloud servers Droplets meaning that we will be using Infrastructure as a Service to deploy Metasploit.

In this recipe, we will use the Ubuntu 16.04.3 x64 Droplet with 4 GB memory and an 80 GB disk, which is more than enough for most of our needs.

After selecting the distribution for our Droplet, scroll to the bottom of the page, choose a hostname, and create the Droplet.

After less than a minute, we should have our Droplet up-and-running.

Now double-click on the Droplet name to access its menu.

Access the Droplet console and we can use the Launch Console option to open a VNC connection to the Droplet or use SSH with the root...