Intro to MySQL — SQL Injection Fundamentals — HTB Academy Walkthrough
TIER 0 MODULE: SQL INJECTION FUNDAMENTALS
SECTION: Intro to MySQL
Please open your pwnbox or connect to the vpn in order to complete the tasks.
If you are not registered in HTB Academy, then use this link to register now: https://referral.hackthebox.com/mzxKOJt
1. Connect to the database using the MySQL client from the command line. Use the ‘show databases;’ command to list databases in the DBMS. What is the name of the first database?
Spawn the target IP address of this section then, try to establish a connection via this command:
mysql -u root -h <target-ip> -P <port> -p
Enter the password as ‘password’ and login.
Now, use the show databases;
command to list all the databases.
First database name is your answer.
Answer: employees
☣️ HAPPY ETHICAL HACKING ☣️
DISCLAIMER: THIS CONTENT DOES NOT BELONG TO ME, I AM JUST WRITING A WALK-THROUGH OF A FREE MODULE OF HACK THE BOX ACADEMY. (WRITING WALKTHROUGHS OF FREE MODULES IS PERMITTED BY HTB ACADEMY)