證明我怎麼會爲了得到它放在一個鎖着的zip文件試密碼Zip文件餅乾蟒蛇3 - 概念
chars = "abcdefghijklmnopqrstuvwxyz"
password = "hello"
def brute_force(x, y):
#Where x stands for chars(list to check in) and y stands for password variable to check against
for length in range(1, 100):
to_attempt = product(x, repeat=length)
for attempt in to_attempt:
i = i + 1
if ''.join(attempt) == y:
print('Password: ' + ''.join(attempt))
return
是什麼產品功能在做? – Hackaholic 2014-11-03 18:57:06
即時通訊它的itertools.product方法(發生器的大小repreatix集x的所有排列) – 2014-11-03 18:58:23
您的問題不清楚 – Hackaholic 2014-11-03 19:00:08