[GXYCTF2019]StrongestMind 1

ZG206發表於2024-07-13

計算器


直接上指令碼跑

from requests import *
import time
import re
url="http://d7ae47ab-f31d-482d-bf36-7d505b252d2e.node3.buuoj.cn/index.php"
s=session()
kk = re.compile(r'\d+ [-|+] \d+')
r=s.get(url)

for i in range(1001):
    

    zz=kk.findall(r.text)[0]
    #print(zz)
    zzz=eval(zz)
    #print(zzz)
    data={"answer":zzz}
    time.sleep(0.1)
    
    r=s.post(url,data=data)
    
    r.encoding='utf-8'
    
    print((r.text))