Skip to content

这个项目是一个简单的字典生成器,使用 Python 的 itertools.product() 方法生成一个任意位数密码字典

Notifications You must be signed in to change notification settings

siyannon/python_dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Password Dictionary Generator

This script generates a password dictionary based on the specified character set, password length, and output file. It utilizes itertools.product to generate all possible combinations of the given characters.

Features

  • Generate password combinations using a custom character set.
  • Specify the password length.
  • Output the generated passwords to a specified file.

Requirements

  • Python 3.x
  • argparse (This module is part of Python's standard library, so no installation is needed.)

Usage

Command-line Arguments

To use the script, you can run the following command in the terminal:

python generate_passwords.py -w "01234" -r 2 -o 1.txt

Arguments

  • -w / --words Required: The characters to use for password generation. Example: "01234" or "abcdefg".

  • -r / --repeat Required: The length of the generated password. Example: 2 for generating 2-character passwords.

  • -o / --output Required: The output file where the generated passwords will be saved. Example: 1.txt.

Example

To generate a dictionary of all 2-character passwords using the characters "01234" and save it to 1.txt, run:

python generate_passwords.py -w "01234" -r 2 -o 1.txt

This will create the following passwords:

00
01
02
03
04
10
11
12
13
14
20
21
22
23
24
30
31
32
33
34
40
41
42
43
44

The passwords will be saved to the 1.txt file.

屏幕截图(833)

Help

For more information on how to use the script, run:

python generate_passwords.py -h

This will display a description of the available arguments and their usage. example: 屏幕截图(831)

About

这个项目是一个简单的字典生成器,使用 Python 的 itertools.product() 方法生成一个任意位数密码字典

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages