def preview(self, num: int = 10): """Preview first N passwords.""" print(f"First num passwords (length self.length, charset 'self.charset'):") for i, pwd in enumerate(self.generate()): if i >= num: break print(f" pwd") print(f"Total combinations: self.total_combinations:,") if name == " main ": # 1. Standard 8-digit numeric wordlist (10^8 = 100 million passwords) print("=== 8-Digit Numeric Wordlist ===") numeric_gen = PasswordWordlistGenerator(length=8, charset="0123456789") numeric_gen.preview(10)
# 2. 8-character lowercase alphanumeric (36^8 = ~2.8 trillion) - too large for disk print("\n=== Alphanumeric (lowercase + digits) ===") alnum_gen = PasswordWordlistGenerator(length=8, charset="abcdefghijklmnopqrstuvwxyz0123456789") print(f"Total combinations: alnum_gen.total_combinations:, (too large for practical saving)") 8 Digit Password Wordlist
gen = PasswordWordlistGenerator(length=8, charset="0123456789") gen.save_to_file("8digit_numeric_full.txt", show_progress=True) But ensure you have and patience. def preview(self, num: int = 10): """Preview first