Seclists Password ((top)) ⭐ Recommended
# Cache directory if args.no_cache_dir and not args.cache_dir: print("Error: --no-cache-dir requires --cache-dir to be set", file=sys.stderr) sys.exit(1) cache_dir = args.cache_dir if args.cache_dir else DEFAULT_CACHE_DIR
if min_len is not None: result = [p for p in result if len(p) >= min_len] if max_len is not None: result = [p for p in result if len(p) <= max_len] if pattern: regex = re.compile(pattern) result = [p for p in result if regex.search(p)] if only_digits: result = [p for p in result if p.isdigit()] if only_alpha: result = [p for p in result if p.isalpha()] if only_lower: result = [p for p in result if p.islower()] if only_upper: result = [p for p in result if p.isupper()] if exclude_special: result = [p for p in result if p.isalnum()] if must_contain: result = [p for p in result if must_contain in p] seclists password
WORDLISTS = "10k_most_common": "url": f"SECLISTS_BASE_URL/Common-Credentials/10k-most-common.txt", "description": "10,000 most common passwords", , "500_worst": "url": f"SECLISTS_BASE_URL/500-worst-passwords.txt", "description": "500 worst passwords", , "rockyou_20": "url": f"SECLISTS_BASE_URL/RockYou-20.txt", "description": "Top 20 from RockYou leak", , "xato_10k": "url": f"SECLISTS_BASE_URL/xato-net-10-million-passwords-10000.txt", "description": "Xato 10k most common", , "linkedin": "url": f"SECLISTS_BASE_URL/LinkedIn-common-passwords.txt", "description": "LinkedIn leak common passwords", , Download & Cache Management ---------------------------------------------------------------------- def download_wordlist(name: str, cache_dir: Path) -> Path: """Download wordlist to cache directory, return local path.""" if name not in WORDLISTS: raise ValueError(f"Unknown wordlist: name. Choose from list(WORDLISTS.keys())") # Cache directory if args
print(f"[↓] Downloading name from url") cache_dir.mkdir(parents=True, exist_ok=True) 000 most common passwords"