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
Kali Linux - An Ethical Hacker's Cookbook

You're reading from   Kali Linux - An Ethical Hacker's Cookbook End-to-end penetration testing solutions

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781787121829
Length 376 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Himanshu Sharma Himanshu Sharma
Author Profile Icon Himanshu Sharma
Himanshu Sharma
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Kali – An Introduction FREE CHAPTER 2. Gathering Intel and Planning Attack Strategies 3. Vulnerability Assessment 4. Web App Exploitation – Beyond OWASP Top 10 5. Network Exploitation on Current Exploitation 6. Wireless Attacks – Getting Past Aircrack-ng 7. Password Attacks – The Fault in Their Stars 8. Have Shell Now What? 9. Buffer Overflows 10. Playing with Software-Defined Radios 11. Kali in Your Pocket – NetHunters and Raspberries 12. Writing Reports

Using the paranoid meterpreter


Sometime during 2015, hackers realized it was possible to steal/hijack someone's meterpreter session by simply playing around with the victim's DNS and launching their own handler to connect. This then led to the development and release of meterpreter paranoid mode. They introduced an API that verified the SHA1 hash of the certificate presented by the msf at both ends. In this recipe, we will see how to use the paranoid mode.

How to do it...

We will need an SSL certificate to begin with:

  1. We can generate our own using the following commands:
        openssl req -new -newkey rsa:4096 -days 365 -nodes -x509
        -keyout meterpreter.key -out meterpreter.crt

The following screenshot shows the output for the preceding command:

We fill in the information such as country code and other information accordingly:

        cat meterpreter.key meterpreter.crt > meterpreter.pem
  1. The previous command basically opens two files before and writes them into a single file. We then...
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 $19.99/month. Cancel anytime