Book Image

Mastering Metasploit

By : Nipun Jaswal
Book Image

Mastering Metasploit

By: Nipun Jaswal

Overview of this book

Table of Contents (17 chapters)
Mastering Metasploit
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Porting Exploits

In the previous chapter, we discussed how to write exploits in Metasploit. However, we do not need to create an exploit for a particular software in cases where a public exploit is already available. A publically available exploit may be in a different programming language such as Perl, Python, and so on. Let's now discover strategies of porting exploits to the Metasploit framework from a variety of different programming languages. This mechanism enables us to transform existing exploits into Metasploit-compatible exploits, thus saving time as we don't have to fuzz software again and again. By the end of this chapter, we will have learned about:

  • Porting exploits from various programming languages

  • Discovering essentials from standalone exploits

  • Generating skeletons for exploits

  • Creating Metasploit modules from existing standalone scanners/tool scripts

The idea of porting scripts into the Metasploit framework is an easy job if we are able to figure out what functions...