Fix small bug and automate parallel brute forcing

This commit is contained in:
2025-10-09 15:39:11 +02:00
parent f8bb3b837e
commit b4061e2e3b
4 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ app.post('/login', (req, res) => {
const user = users.find(u => u.username === username && u.password === password);
if (user) {
res.status(200);
res.send('Login erfolgreich');
res.json({ ok: true, message: 'Login erfolgreich' });
} else {
res.status(401).send('Falscher Benutzername oder Passwort');
}
+4 -8
View File
@@ -1,14 +1,10 @@
[
{
"username": "test",
"password": "test"
"password": "12"
},
{
"username": "lower",
"password": "lol"
},
{
"username": "Gaylord",
"password": "Lol_123"
"username": "admin",
"password": "admin"
}
]
]