Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Metasploit 5.0 for Beginners

You're reading from   Metasploit 5.0 for Beginners Perform penetration testing to secure your IT environment against threats and vulnerabilities

Arrow left icon
Product type Paperback
Published in Apr 2020
Publisher
ISBN-13 9781838982669
Length 246 pages
Edition 2nd Edition
Arrow right icon
Author (1):
Arrow left icon
Sagar Rahalkar Sagar Rahalkar
Author Profile Icon Sagar Rahalkar
Sagar Rahalkar
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: Introduction and Environment Setup
2. Chapter 1: Introduction to Metasploit and Supporting Tools FREE CHAPTER 3. Chapter 2: Setting Up Your Environment 4. Chapter 3: Metasploit Components and Environment Configuration 5. Section 2: Practical Metasploit
6. Chapter 4: Information Gathering with Metasploit 7. Chapter 5: Vulnerability Hunting with Metasploit 8. Chapter 6: Client-Side Attacks with Metasploit 9. Chapter 7: Web Application Scanning with Metasploit 10. Chapter 8: Antivirus Evasion and Anti-Forensics 11. Chapter 9: Cyber Attack Management with Armitage 12. Chapter 10: Extending Metasploit and Exploit Development 13. Chapter 11: Case Studies 14. Other Books You May Enjoy

Auto-exploitation with db_autopwn

In the previous section, we saw how the Metasploit Framework helps us import scans from various other tools such as NMAP and Nessus. Now, once we have imported the scan results into the database, the next logical step would be to find exploits matching the vulnerabilities /ports from the imported scan. We can certainly do this manually, for instance, if our target is Windows XP and it has TCP port 445 open, then we can try out the MS08_67netapi vulnerability against it.

The Metasploit Framework offers a script called db_autopwn, which automates the exploit matching process, executes the appropriate exploit if a match is found, and gives us a remote shell. However, before you try this script, a few of the following things need to be considered.

The db_autopwn script is officially depreciated from the Metasploit Framework. You would need to explicitly download and add it to your Metasploit instance. This is a very resource-intensive script since...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime