Kali Linux Web Penetration Testing Cookbook
eBook - ePub

Kali Linux Web Penetration Testing Cookbook

  1. 296 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Kali Linux Web Penetration Testing Cookbook

About this book

Over 80 recipes on how to identify, exploit, and test web application security with Kali Linux 2

About This Book

  • Familiarize yourself with the most common web vulnerabilities a web application faces, and understand how attackers take advantage of them
  • Set up a penetration testing lab to conduct a preliminary assessment of attack surfaces and run exploits
  • Learn how to prevent vulnerabilities in web applications before an attacker can make the most of it

Who This Book Is For

This book is for IT professionals, web developers, security enthusiasts, and security professionals who want an accessible reference on how to find, exploit, and prevent security vulnerabilities in web applications. You should know the basics of operating a Linux environment and have some exposure to security technologies and tools.

What You Will Learn

  • Set up a penetration testing laboratory in a secure way
  • Find out what information is useful to gather when performing penetration tests and where to look for it
  • Use crawlers and spiders to investigate an entire website in minutes
  • Discover security vulnerabilities in web applications in the web browser and using command-line tools
  • Improve your testing efficiency with the use of automated vulnerability scanners
  • Exploit vulnerabilities that require a complex setup, run custom-made exploits, and prepare for extraordinary scenarios
  • Set up Man in the Middle attacks and use them to identify and exploit security flaws within the communication between users and the web server
  • Create a malicious site that will find and exploit vulnerabilities in the user's web browser
  • Repair the most common web vulnerabilities and understand how to prevent them becoming a threat to a site's security

In Detail

Web applications are a huge point of attack for malicious hackers and a critical area for security professionals and penetration testers to lock down and secure. Kali Linux is a Linux-based penetration testing platform and operating system that provides a huge array of testing tools, many of which can be used specifically to execute web penetration testing.

This book will teach you, in the form step-by-step recipes, how to detect a wide array of vulnerabilities, exploit them to analyze their consequences, and ultimately buffer attackable surfaces so applications are more secure, for you and your users.

Starting from the setup of a testing laboratory, this book will give you the skills you need to cover every stage of a penetration test: from gathering information about the system and the application to identifying vulnerabilities through manual testing and the use of vulnerability scanners to both basic and advanced exploitation techniques that may lead to a full system compromise. Finally, we will put this into the context of OWASP and the top 10 web application vulnerabilities you are most likely to encounter, equipping you with the ability to combat them effectively. By the end of the book, you will have the required skills to identify, exploit, and prevent web application vulnerabilities.

Style and approach

Taking a recipe-based approach to web security, this book has been designed to cover each stage of a penetration test, with descriptions on how tools work and why certain programming or configuration practices can become security vulnerabilities that may put a whole system, or network, at risk. Each topic is presented as a sequence of tasks and contains a proper explanation of why each task is performed and what it accomplishes.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Information

Kali Linux Web Penetration Testing Cookbook


Table of Contents

Kali Linux Web Penetration Testing Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Setting Up Kali Linux
Introduction
Updating and upgrading Kali Linux
Getting ready
How to do it...
How it works...
There's more...
Installing and running OWASP Mantra
Getting ready
How to do it...
See also
Setting up the Iceweasel browser
How to do it...
How it works...
There's more...
Installing VirtualBox
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a vulnerable virtual machine
How to do it...
How it works...
See also
Creating a client virtual machine
How to do it...
How it works...
See also
Configuring virtual machines for correct communication
Getting ready
How to do it...
How it works...
Getting to know web applications on a vulnerable VM
Getting ready
How to do it...
How it works...
2. Reconnaissance
Introduction
Scanning and identifying services with Nmap
Getting ready
How to do it...
How it works...
There's more...
See also
Identifying a web application firewall
How to do it...
How it works...
Watching the source code
Getting ready
How to do it...
How it works...
Using Firebug to analyze and alter basic behavior
Getting ready
How to do it...
How it works...
There's more...
Obtaining and modifying cookies
Getting ready
How to do it...
How it works...
Taking advantage of robots.txt
How to do it...
How it works...
Finding files and folders with DirBuster
Getting ready
How to do it...
How it works...
Password profiling with CeWL
How to do it...
How it works...
See also
Using John the Ripper to generate a dictionary
Getting ready
How to do it...
How it works...
There's more...
Finding files and folders with ZAP
Getting ready
How to do it...
How it works...
See also
3. Crawlers and Spiders
Introduction
Downloading a page for offline analysis with Wget
Getting ready
How to do it...
How it works...
There's more...
Downloading the page for offline analysis with HTTrack
Getting ready
How to do it...
How it works...
There's more...
Using ZAP's spider
Getting ready
How to do it...
How it works...
There's more...
Using Burp Suite to crawl a website
Getting ready
How to do it...
How it works...
Repeating requests with Burp's repeater
Getting ready
How to do it...
How it works...
Using WebScarab
Getting ready
How to do it...
How it works...
Identifying relevant files and directories from crawling results
How to do it...
How it works...
4. Finding Vulnerabilities
Introduction
Using Hackbar add-on to ease parameter probing
Getting ready
How to do it...
How it works...
Using Tamper Data add-on to intercept and modify requests
How to do it...
How it works...
Using ZAP to view and alter requests
Getting ready
How to do it...
How it works...
Using Burp Suite to view and alter requests
Getting ready
How to do it...
How it works...
Identifying cross-site scripting (XSS) vulnerabilities
How to do it...
How it works...
There's more...
Identifying error based SQL injection
How to do it...
How it works...
There's more...
Identifying a blind SQL Injection
How to do it...
How it works...
See also
Identifying vulnerabilities in cookies
How to do it
How it works...
There's more...
Obtaining SSL and TLS information with SSLScan
How to do it...
How it works...
There's more...
See also
Looking for file inclusions
How to do it...
How it works...
There's more...
Identifying POODLE vulnerability
Getting ready
How to do it...
How it works...
See also
5. Automated Scanners
Introduction
Scanning with Nikto
How to do it...
How it works...
Finding vulnerabilities with Wapiti
How to do it...
How it works...
Using OWASP ZAP to scan for vulnerabilities
Getting ready
How to do it...
How it works...
There's more...
Scanning with w3af
How to do it...
How it works...
There's more...
Using Vega scanner
How to do it...
How it works...
Finding Web vulnerabilities with Metasploit's Wmap
Getting ready
How to do it...
How it works...
6. Exploitation – Low Hanging Fruits
Introduction
Abusing file inclusions and uploads
Getting ready
How to do it...
How it works...
There's more...
Exploiting OS Command Injections
How to do it...
Ho...

Table of contents

  1. Kali Linux Web Penetration Testing Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Kali Linux Web Penetration Testing Cookbook by Gilberto Najera-Gutierrez in PDF and/or ePUB format, as well as other popular books in Computer Science & Cyber Security. We have over one million books available in our catalogue for you to explore.