bruteforcejs
TypeScript icon, indicating that this package has built-in type declarations

1.1.11 • Public • Published

bruteforcejs ❤️

A JavaScript bruteforcing module

📦 Install

Install with NPM: npm i bruteforcejs

📋 Usage

Import

const bruteforce = require("bruteforcejs")

Syntax

bruteforce(characters [string|string[]], (result) => {})

Example
bruteforce('characters [list or string]', (result) => {
  // Do something with result
  if(result == "right") return true // Finish the bruteforce
}, 5) // Maxlenght (if this is not set the bruteforce will continue until cancled)

Bruteforce until callback returns true (characters => string)

bruteforce("ABCabc", result => {
  console.log(result) // Display current bruteforce string
  if (result == "abBac") {
    // If current bruteforce string is right
    return true // Return true => finish bruteforce
  }
})

Bruteforce until callback returns true (characters => list)

bruteforce(["A", "B", "C", "a", "b", "c"], result => {
  console.log(result) // Display current bruteforce string
  if (result == "abBac") {
    // If current bruteforce string is right
    return true // Return true => finish bruteforce
  }
})

Bruteforce until maxLength is hit or callback returns true (characters => string)

bruteforce(
  "ABCabc",
  result => {
    console.log(result) // Display current bruteforce string
    if (result == "abBac") {
      // If current bruteforce string is right
      return true // Return true => finish bruteforce
    }
  },
  5
)

Bruteforce until maxLength is hit or callback returns true (characters => list)

bruteforce(
  ["A", "B", "C", "a", "b", "c"],
  result => {
    console.log(result) // Display current bruteforce string
    if (result == "abBac") {
      // If current bruteforce string is right
      return true // Return true => finish bruteforce
    }
  },
  5
)

Website  ·  GitHub @MarvinJWendt

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.11
    4
    • latest

Version History

Package Sidebar

Install

npm i bruteforcejs

Weekly Downloads

13

Version

1.1.11

License

MIT

Unpacked Size

13 kB

Total Files

13

Last publish

Collaborators

  • marvinjwendt