[筆記] Python bruteforce script
```python3
from itertools import product
def bruteforce_generator(characters, min_length, max_length):
for i in range(min_length, max_length+1):
for candicate in product(characters, repeat=i):
yield ''.join(candicate)
for p in bruteforce_generator("abcd", 1, 4):
print(p)
```
2021-01-23 16:56:32
留言
Last fetch: --:--
現在還沒有留言!