Brute force script in Python 3.2

前端 未结 4 1976
日久生厌
日久生厌 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:28

    import random
    
    digits=list(range(0,1000))
    password=random.randint(0,1000)
    eachdigit=-1
    print(password)
    while eachdigit!=password:
        for eachdigit in digits:
            print(eachdigit)
            if eachdigit==password:
                print("Password is found:"+str(eachdigit)+"---------------------------")
                password=str(input("Enter new password if you wish"))
    

提交回复
热议问题