Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Brute - force attacks Tasks Deploy Your Authentication Mechanism. I prepared a basic login and authentication with php , then connected it to mysql through

Brute-force attacks
Tasks
Deploy Your Authentication Mechanism.
I prepared a basic login and authentication with php, then connected it to mysql through XAMPP. I used PHP's internal built in server for running the server.
The authentication and login codes are as following: exist you get invalid username otherwise invalid password
2. Test out Brute-force Attack on Your Authentication Mechanism Then I used THC-Hydra which is a brute-force attack tool. I used with the following command, I had prepared a wordlist.txt with 5 example passwords one of them being the correct password
The password is hashed with MD5, so hydra tries the hashed versions of the passwords given.
3. Conclusion
Hydra basically tries a combination of all passwords. I already gave it the username to
cut the steps short. Also another thing that could've be done better is simply having an .env file for the case of database login and passwords. I did not need to do that here as to not spend more time and make it more complex. Also the case with wordlist.txt is that the reason why having a very unique password is much more unique is because of that. Because if it is unique then they won't be able to easily find it like that, and be more safe from brute-force attacks. Another thing that can done better is limiting tries for passwords based on the device, or according to time.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Decide when, where, and how you will meet.

Answered: 1 week ago