Fix small bug and automate parallel brute forcing
This commit is contained in:
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
[
|
||||
{
|
||||
"username": "test",
|
||||
"password": "test"
|
||||
"password": "12"
|
||||
},
|
||||
{
|
||||
"username": "lower",
|
||||
"password": "lol"
|
||||
},
|
||||
{
|
||||
"username": "Gaylord",
|
||||
"password": "Lol_123"
|
||||
"username": "admin",
|
||||
"password": "admin"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user