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
Learning Python Web Penetration Testing

You're reading from   Learning Python Web Penetration Testing Automate web penetration testing activities using Python

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789533972
Length 138 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Christian Martorella Christian Martorella
Author Profile Icon Christian Martorella
Christian Martorella
Arrow right icon
View More author details
Toc

Adding support for digest authentication

In this section, we're going to start learning about what digest authentication is. Then, we're going to modify our password BruteForcer to support this method, and finally, we're going to test the new script against our test web application.

What is digest authentication?

Digest authentication is a more secure option to basic authentication. It uses MD5 to do the hashing of the username and password plus a nonce. The nonce is used to prevent replay attacks, and it is sent by the server after the user requests a protected resource. The browser creates the response with the following code:

Finally, the response is an MD5 hash of HA1 nonce HA2. The realm value defines...

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