Démarrez la machine, hackez le système et trouvez les flags cachés pour compléter ce défi et gagner des points!
Lancez votre machine dédiée pour commencer à hacker
Ce guide explique comment hacker le lab et capturer les flags. Pour de l'aide avec les questions du Mode Apprentissage, utilisez le bouton Demander un Indice à côté de chaque question.
Navigate to the target URL in your browser. You'll see a simple login form asking for username and password.
https://lab.hdna.me/52-hack-the-login
Press F12 to open browser Developer Tools. This gives you access to all client-side resources including HTML, CSS, and JavaScript files.
Navigate to the Sources tab (Chrome/Edge) or Debugger tab (Firefox) to view the JavaScript files.
Click on script.js to view the authentication logic. The code reveals a critical vulnerability:
if (username === "admin" && password === "SecretPassword123!") {
// Authentication successful
fetch('7d9f3b2e1c8a5f6d4e0/flag.txt')
.then(response => response.text())
.then(flag => {
messageDiv.textContent = `Success! Flag: ${flag}`;
});
}
The credentials are hardcoded in plain text:
adminSecretPassword123!Return to the login form and enter the discovered credentials:
adminSecretPassword123!The page will display the flag after successful authentication.
The JavaScript also reveals the flag file location. You can access it directly without logging in:
https://lab.hdna.me/52-hack-the-login/7d9f3b2e1c8a5f6d4e0/flag.txt
This works because there's no server-side authentication protecting the file - security through obscurity alone.
Copy the UUID displayed on the page and submit it as your flag.
Créez un compte gratuit pour démarrer votre propre serveur dédié, soumettre des flags et gagner des points au classement.
Commencer à Hacker GratuitementChoisissez comment vous voulez commencer
Connectez-vous à votre compte