Python
문자열 조합 방법 (brute forcing)
k1rha
2013. 4. 7. 14:36
keyword : 문자열 조합 brute forcing
부르투 포싱을 할때 쓸 문자열 조합 방법이다.
import time
your_list1 = 'abcdefghijklmnopqrstuvwxyz'
your_list2 = '1234567890'
your_list3 = 'abcdefghijklmnopqrstuvwxyz1234567890'
TheKey = ''
current =''
def bruteForcing(y):
for current in xrange(7):
TheKey = [i for i in your_list1]
for y in xrange(current):
TheKey = [x+i for i in your_list1 for x in TheKey]
for i in range(0,len(TheKey)) :
print TheKey[i]
def main():
bruteForcing(0)
if __name__ == '__main__' :
main()