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

Redis exploitation


Sometimes while pentesting, we may come across a Redis installation that was left public unintentionally. In an unauthenticated Redis installation, the simplest thing to do is to write random files. In this recipe, we will see how to get root access of Redis installations running without authentication.

How to do it...

To learn exploitation of Redis follow the given steps:

  1. We first telnet to the server and check whether a successful connection is possible or not:
        telnet x.x.x.x 6379

The following screenshot shows the output for the preceding command:

  1. We then terminate the telnet session. Next, we generate our SSH key using the following command:
        ssh-keygen -t rsa -C youremail@example.com
  1. Then, we enter the file where we want to save it:
  1. Our key is generated; now we need to write it on the server:
  1. We need to install redis-cli for that; we can use the following command:
        sudo apt-get install redis-tools
  1. Once it is installed, we go back to our generated key and...
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