Book Image

Kali Linux Intrusion and Exploitation Cookbook

By : Dhruv Shah, Ishan Girdhar
Book Image

Kali Linux Intrusion and Exploitation Cookbook

By: Dhruv Shah, Ishan Girdhar

Overview of this book

With the increasing threats of breaches and attacks on critical infrastructure, system administrators and architects can use Kali Linux 2.0 to ensure their infrastructure is secure by finding out known vulnerabilities and safeguarding their infrastructure against unknown vulnerabilities. This practical cookbook-style guide contains chapters carefully structured in three phases – information gathering, vulnerability assessment, and penetration testing for the web, and wired and wireless networks. It's an ideal reference guide if you’re looking for a solution to a specific problem or learning how to use a tool. We provide hands-on examples of powerful tools/scripts designed for exploitation. In the final section, we cover various tools you can use during testing, and we help you create in-depth reports to impress management. We provide system engineers with steps to reproduce issues and fix them.
Table of Contents (18 chapters)
Title Page
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Misconfigured software installations/insecure file permissions


In this recipe, we look at an attacker can misconfigured software installations and escalate privileges on the application. This is one of the classic examples where the installed setup is configured without considering the user's rights over the files and folders of the application.

Getting ready

For this recipe, we will need to install an called WinSMS. This can be downloaded from https://www.exploit-db.com/exploits/40375/ and can be installed on any Windows machine running XP, Vista, 7, or 10. For demo purposes, we will be using Windows 7. Apart from this, we will need our Kali system up and running to take the reverse shell.

How to do it...

  1. Once we install the application, we will execute our command prompt and check for the permissions on the folder where the file has installed itself. Enter the following command:
cacls "C:\Program Files\WinSMS" 

 

The output will be as shown in the following screenshot:

  1. As we can see...