Brute force script in Python 3.2

前端 未结 4 1944
日久生厌
日久生厌 2021-01-01 03:17

I\'m a beginner in writing code and I\'ve started with Python because it seemed the neatest and the easiest to start with (I currently have Python 3.2). Now I\'ve read some

4条回答
  •  醉梦人生
    2021-01-01 03:43

    You want something like this:

    PassWord = str(random.randint(0,9999))#example password 
    for i in range(10000):    #0-9999
       Trial = str(i)  
       if Trial == Password:  
           print('Found password: ' + Password) 
    

提交回复
热议问题