bruteforcejs :heart:
A JavaScript bruteforcing module
:package: Install
Install with NPM: npm i bruteforcejs
:clipboard: Usage
Import
const bruteforce = require("bruteforcejs")
Syntax
bruteforce(characters [string|string[]]
, (result) => {})
Example
bruteforce('characters [list or string]', (result) => {
if(result == "right") return true
}, 5)
Bruteforce until callback returns true (characters => string)
bruteforce("ABCabc", result => {
console.log(result)
if (result == "abBac") {
return true
}
})
Bruteforce until callback returns true (characters => list)
bruteforce(["A", "B", "C", "a", "b", "c"], result => {
console.log(result)
if (result == "abBac") {
return true
}
})
Bruteforce until maxLength is hit or callback returns true (characters => string)
bruteforce(
"ABCabc",
result => {
console.log(result)
if (result == "abBac") {
return true
}
},
5
)
Bruteforce until maxLength is hit or callback returns true (characters => list)
bruteforce(
["A", "B", "C", "a", "b", "c"],
result => {
console.log(result)
if (result == "abBac") {
return true
}
},
5
)
Website ·
GitHub @MarvinJWendt