GithubHelp home page GithubHelp logo

justnoonehere / passwordgenerator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

Script to generate a wordlist by creating all possible combinations of characters with a specified length.

C 44.65% JavaScript 55.35%
brute-force combinations combinations-generator cracking cracking-password dictionary-attack generate generate-password password-cracking password-generation

passwordgenerator's Introduction

PasswordGenerator

This Node.js program generates a wordlist by creating all possible combinations of characters with a specified length. It uses the readline module to prompt the user to input the number of characters in each combination and the character set to use (default is all alphabetical, numerical, and special characters). The fs module is used to create a write stream for a file named wordlist_char{numChars}.txt, where {numChars} is replaced with the number of characters inputted by the user.

The program also utilizes the worker_threads module, which allows you to create separate threads for your Node.js program to execute. If the current thread is the main thread, the program will prompt the user for input and then create a worker thread to generate the combinations. The worker thread listens for a message with the necessary information and then generates the combinations using an asynchronous recursive function. Once the worker thread finishes generating the combinations, it sends a message back to the main thread, which ends the write stream and logs the time it took to generate the combinations.

Usage

To use this program, first make sure you have Node.js and npm installed on your machine. Then, clone the repository and navigate to the directory in your terminal. Run the following command to install the necessary dependencies:

npm install

Then, run the program with the following command:

node passwordgenerator.js

You will be prompted to enter the number of characters in each combination and the character set to use. The program will then generate the wordlist and output the time it took to complete. The wordlist will be saved in a file named wordlist_char{numChars}.txt in the same directory as the program.

Example

Here is an example of the program in action:

Enter the number of characters in each combination: 3
Enter the character set to use (default is all characters): abc
Generated wordlist_char3.txt in 0 seconds and 4348025 nanoseconds

The generated wordlist wordlist_char3.txt will contain all possible combinations of the characters a, b, and c with a length of 3, such as aaa, aab, aac, aba, abb, and so on.

C is Better !!

YES C is better see the speed of passwordgenerator.c

"Please note that this script is for educational purposes only and should not be used for any malicious or unethical activities."

passwordgenerator's People

Contributors

justnoonehere avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.