1.1.11 • Published 5 years ago

bruteforcejs v1.1.11

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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) => {
  // 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

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

6 years ago