• Home
  • Shop
  • Contact us
Login / Register
Search
0 items / $0.00
0 items $0.00
Menu
Home / EXAM / Login Brute Forcing: Hack The Box Module 57
Login Brute Forcing: Hack The Box Module 57
EXAM

Login Brute Forcing: Hack The Box Module 57

$19.00
✓ Secure checkout
✓ Instant digital download
✓ PDF document

Document details

Pages
33
File size
3.71 MB
Format
Digital PDF
Course
Computer Networking
Category
EXAM

Sign in or create a free account to continue. Your purchase will be saved in My Downloads.

About this ebook
Login Brute Forcing: Link to challenge: https://academy.hackthebox.com/module/57 (log in required) Class: Tier II | Easy | Offensive Basic HTTP Auth Brute Forcing Default Passwords: Question: Using the technique you learned in this section, try attacking the IP shown above. What are the credentials used? Answer: admin:admin Method: lets enter in the browser to the URL: http://: We are requested to provide username and password, which we don’t have. We will bruteforce the authentication using the wordlist ‘ftpbetterdefaultpasslist.txt’ (which is part of ‘SecLists’), which is located in the pwnbox on the path ‘/usr/share/seclists/Passwords/Default-Credentials/ftpbetterdefaultpasslist.txt’. And we will use the bruteforce tool ‘hydra’. Before starting with the bruteforce, we will have to determine the http request method when logging in: It is GET request, and the attempted credentials are placed in the ‘Authorization’ property, base64 encoded. (the default browser login alert should always be GET request, but it’s a good practice to confirm) Now that we know the used HTTP method ‘GET’ - We will use the command: hydra -C /usr/share/seclists/Passwords/DefaultCredentials/ftp-betterdefaultpasslist.txt -s http-get / where the wordlist ‘/usr/../ftp-betterdefaultpasslist.txt’ contains a pair of username and password, separated by ‘:’: The ‘-C’ flag purpose is to test both words for username and password. The ‘http-get’ means we attack the http GET method, and the ‘/’ means we attack the website root’s path: The bruteforce found the credentials ‘admin:admin’. Lets login to confirm: We are in. we can proceed. Username Brute Force: Question: Try running the same exercise on the question from the previous section, to learn how to brute force for users. Method: for this bruteforce a combined list for login wont work. we need separate lists – one for usernames and the other for passwords. For the username lists we will use ‘names.txt’, preinstalled in the pwnbox in the path ‘/usr/share/seclists/Usernames/Names/names.txt’. and for the password lists ‘rockyou’, which we will download: wget https://github.com/brannondorsey/naivehashcat/releases/download/data/rockyou.txt The rockyou.txt file is saved to the pwnbox user’s home directory. Or extract from ‘/usr/share/seclists/Passwords/LeakedDatabases/rockyou.txt.tar.gz’ in the pwnbox: tar -xzf /usr/share/seclists/Passwords/LeakedDatabases/rockyou.txt.tar.gz -C ~ (the ‘~’ means extract the file to the user’s home directory): Lets start with bruteforce seperatly (one time bruteforcing the password for the username ‘admin’, and the other time bruteforcing the username for the password ‘admin’) Lets start with the former, we will use the command: hydra -l admin -P rockyou.txt -u -f -s http-get / in here we bruteforce the password for the already obtained ‘admin’ username: ‘-f’ – stop after the first successful login. *: Now for the second brute force – brute force for the username where we have the password ‘admin’: hydra -L /usr/share/seclists/Usernames/Names/names.txt -p admin -u -f -s http-get / Now when those are done, lets bruteforce for the ‘admin’ in both username and password: hydra -L /usr/share/seclists/Usernames/Names/names.txt -P rockyou.txt -u -f -s http-get / **note – due to the bruteforcing length of both username and password, I used the prior know of the credentials to ‘manipulate’ the rockyou.txt lise and inserted the ‘admin’ word in the beginning of the list to shorten the bruteforcing time. in real case, bruteforcing for the credentials will take much much longer. ** Web Forms Brute Forcing Login Form Attacks: Question: Using what you learned in this section, try attacking the '/login.php' page to identify the password for the 'admin' user. Once you login, you should find a flag. Submit the flag as the answer. Answer: HTB{bru73_f0rc1n6_15_4_l457_r350r7} Method: proceeding on the obtained login page: Lets click the ‘Click Here to Login’: Another login panel, lets enter some bogus credentials to see the http request:

File included

PDF
Login_Brute_Forcing.pdf.pdf 3.71 MB

Topics

Basic HTTP Auth Brute Forcing Hack the Box Login Brute Forcing Login Brute Forcing: Hack The Box Module 57 Module 57 Web Forms Brute Forcing
Related ebooks
SEXUAL HEALTH Practice Exams multiple-choice (MCQ) and shortanswer (SAQ) For Nursing, Medical, PRE-MED, USMLE OR PA Students
EXAM

SEXUAL HEALTH Practice Exams multiple-choice (MCQ) and shortanswer (SAQ) For Nursing, Medical, PRE-MED, USMLE OR PA Students

97 pages 2.88 MB Digital PDF
$10.00
View ebook
BGP Commands to configure and monitor Border Gateway Protocol (BGP) | Cisco IOS IP and IP Routing Command Reference
eBook[PDF]

BGP Commands to configure and monitor Border Gateway Protocol (BGP) | Cisco IOS IP and IP Routing Command Reference

184 pages 1.23 MB Digital PDF
$15.00
View ebook
Pivoting, Tunneling, and Port Forwarding: Hack The Box Module 158
EXAM

Pivoting, Tunneling, and Port Forwarding: Hack The Box Module 158

49 pages 4.6 MB Digital PDF
$19.00
View ebook
Network Enumeration with Nmap: Hack The Box Module 19
EXAM

Network Enumeration with Nmap: Hack The Box Module 19

12 pages 1.8 MB Digital PDF
$19.00
View ebook

Greatpricebooks is an online bookstore where you can buy books. You can also rent books if you only need them for a period of time, or sell the ones you no longer need. We offer great prices, free shipping, and an excellent customer experience.

Quick Navigation

Home

Shop

Refund policy

Privacy policy

Need Help?

Contact us

FAQs

Live chat us

support@greatpricebooks.com

Copyright © 2024 Great Price Books | All rights reserved.
payments
Close
  • Home
  • Shop
  • Contact us
  • FAQs
  • Login / Register
Shopping cart
Close
Sign in
Close

Lost your password?

No account yet?

Create an Account
Start typing to search our digital ebook catalogue.
Shop
Sidebar
Wishlist
0 items Cart
My account