Example #1
0
def initPage(threadName):
    #some special init
    UtilNoVC.sendPtLoginGet("http://ptlogin2.qq.com/qq_signup?ptlang=2052&regkey=313D40DEBEB5C0B0083AEF80FAB95A6DD1DA8393E4BE6CB6DFEE4F918EDBBE2B&ADUIN=0&ADSESSION=0&ADTAG=CLIENT.QQ.5281_NewAccount_Btn.0&ADPUBNO=26292")
    #zc.qq.com
    UtilNoVC.sendPtLoginGet2(UtilNoVC.newurl)
    #new router
    UtilNoVC.sendPtLoginGet3(UtilNoVC.newurl)
    #index.html
    UtilNoVC.sendIndexGet(UtilNoVC.newurl)
    UtilNoVC.sendVerJSGet("http://zc.qq.com/en/ver.js?v=0.8133795140461465", UtilNoVC.newurl)
    response = UtilNoVC.sendGetWithReferHeader("http://zc.qq.com/cgi-bin/en/othmailreg/init?r=0.6421093098453319&cookieCode=undefined", UtilNoVC.newurl)
    UtilNoVC.setInitData(response, UtilNoVC.postdata)
    UtilNoVC.sendMoniKeyWithRefer("http://zc.qq.com/cgi-bin/common/attr?id=173278&r=0.6699955210210492", UtilNoVC.newurl)
    response = UtilNoVC.sendSJSGet("http://a.zc.qq.com/s.js?t=0.2977374854148608", UtilNoVC.newurl)
    secCode = SecCode.getSecCode(response)
    UtilNoVC.sendMoniKeyWithRefer("http://zc.qq.com/cgi-bin/common/attr?id=61112&timeused=0&seed=0.47954484357333593", UtilNoVC.newurl)
    UtilNoVC.sendMoniKeyWithRefer("http://zc.qq.com/cgi-bin/common/attr?id=260714&r=0.45523373243084253", UtilNoVC.newurl)
    UtilNoVC.sendMoniKeyWithRefer("http://zc.qq.com/cgi-bin/common/attr?id=278039&r=0.126593756287934", UtilNoVC.newurl)
    UtilNoVC.sendMoniKeyWithRefer("http://zc.qq.com/cgi-bin/common/attr?id=173279&r=0.6062411974921303", UtilNoVC.newurl)
    UtilNoVC.sendSecCheckGet("http://a.zc.qq.com/Cgi-bin/SecCheck?" + secCode + "&0.5301467733723995", UtilNoVC.newurl)
    UtilNoVC.sendVerJSGet("http://zc.qq.com/chs/m.js?v=0.11557472582923711", UtilNoVC.newurl)
    UtilNoVC.sendMoniKeyWithReferAQQ("http://a.zc.qq.com/Cgi-bin/MoniKey?0|4|" + str(UtilNoVC.getTime()), UtilNoVC.newurl)
    
    '''
    swith from en to chs
    '''
    UtilNoVC.sendIndexGet("http://zc.qq.com/chs/index.html")
    UtilNoVC.sendGetWithHeader("http://zc.qq.com/chs/ver.js?v=0.1699609496164347")
    UtilNoVC.sendGetWithHeader("http://zc.qq.com/cgi-bin/common/attr?id=252190&r=0.09858561242344455")
    response = UtilNoVC.sendGetWithHeader("http://zc.qq.com/cgi-bin/chs/numreg/init?r=0.26596747531327136&cookieCode=undefined")
    UtilNoVC.setInitData(response, UtilNoVC.postdata)
    UtilNoVC.sendGetWithHeader("http://zc.qq.com/cgi-bin/common/attr?id=173276&r=0.7227281477307663")
    response = UtilNoVC.sendOtherCheckGet("http://a.zc.qq.com/s.js?t=0.016436040078278036")
    secCode = SecCode.getSecCode(response)
    UtilNoVC.sendGetWithHeader("http://zc.qq.com/cgi-bin/common/attr?id=58030&timeused=0&seed=0.3017548276392469")
    UtilNoVC.sendGetWithHeader("http://zc.qq.com/cgi-bin/common/attr?id=260714&r=0.5433415712664798")
    UtilNoVC.sendGetWithHeader("http://zc.qq.com/cgi-bin/common/attr?id=278037&r=0.29890037895792143")
    UtilNoVC.sendGetWithHeader("http://zc.qq.com/cgi-bin/common/attr?id=173279&r=0.49857171260968147")
    UtilNoVC.sendOtherCheckGet("http://a.zc.qq.com/Cgi-bin/SecCheck?" + secCode + "&0.8532321740752858")
    UtilNoVC.sendGetWithHeader("http://zc.qq.com/chs/m.js?v=0.8039430183252769")
Example #2
0
def initPage(threadName):
    #some special init
    UtilNoVC.sendPtLoginGet(
        "http://ptlogin2.qq.com/qq_signup?ptlang=2052&regkey=313D40DEBEB5C0B0083AEF80FAB95A6DD1DA8393E4BE6CB6DFEE4F918EDBBE2B&ADUIN=0&ADSESSION=0&ADTAG=CLIENT.QQ.5281_NewAccount_Btn.0&ADPUBNO=26292"
    )
    #zc.qq.com
    UtilNoVC.sendPtLoginGet2(UtilNoVC.newurl)
    #new router
    UtilNoVC.sendPtLoginGet3(UtilNoVC.newurl)
    #index.html
    UtilNoVC.sendIndexGet(UtilNoVC.newurl)
    UtilNoVC.sendVerJSGet("http://zc.qq.com/en/ver.js?v=0.43872181845795954",
                          UtilNoVC.newurl)
    response = UtilNoVC.sendGetWithReferHeader(
        "http://zc.qq.com/cgi-bin/en/othmailreg/init?r=0.24418687457830135&cookieCode=undefined",
        UtilNoVC.newurl)
    UtilNoVC.setInitData(response, UtilNoVC.postdata)
    UtilNoVC.sendMoniKeyWithRefer(
        "http://zc.qq.com/cgi-bin/common/attr?id=173278&r=0.4823622304987377",
        UtilNoVC.newurl)
    response = UtilNoVC.sendSJSGet(
        "http://a.zc.qq.com/s.js?t=0.24530231477609288", UtilNoVC.newurl)
    secCode = SecCode.getSecCode(response)
    UtilNoVC.sendMoniKeyWithRefer(
        "http://zc.qq.com/cgi-bin/common/attr?id=61112&timeused=0&seed=0.604333513720689",
        UtilNoVC.newurl)
    UtilNoVC.sendMoniKeyWithRefer(
        "http://zc.qq.com/cgi-bin/common/attr?id=260714&r=0.3472621924413579",
        UtilNoVC.newurl)
    UtilNoVC.sendMoniKeyWithRefer(
        "http://zc.qq.com/cgi-bin/common/attr?id=278039&r=0.3472621924413579",
        UtilNoVC.newurl)
    UtilNoVC.sendMoniKeyWithRefer(
        "http://zc.qq.com/cgi-bin/common/attr?id=173279&r=0.7947500385044993",
        UtilNoVC.newurl)
    UtilNoVC.sendSecCheckGet(
        "http://a.zc.qq.com/Cgi-bin/SecCheck?" + secCode +
        "&0.6500512622421963", UtilNoVC.newurl)
    UtilNoVC.sendVerJSGet("http://zc.qq.com/chs/m.js?v=0.6500512622421963",
                          UtilNoVC.newurl)
    UtilNoVC.sendMoniKeyWithReferAQQ(
        "http://a.zc.qq.com/Cgi-bin/MoniKey?0|4|" + str(UtilNoVC.getTime()),
        UtilNoVC.newurl)
    '''
    swith from en to chs
    '''
    UtilNoVC.sendIndexGet("http://zc.qq.com/chs/index.html")
    UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/chs/ver.js?v=0.31069383764330194")
    UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/cgi-bin/common/attr?id=252190&r=0.22635801480032836")
    response = UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/cgi-bin/chs/numreg/init?r=0.36417453496381036&cookieCode=undefined"
    )
    UtilNoVC.setInitData(response, UtilNoVC.postdata)
    UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/cgi-bin/common/attr?id=173276&r=0.13578290820534156")
    response = UtilNoVC.sendOtherCheckGet(
        "http://a.zc.qq.com/s.js?t=0.08964190026085761")
    secCode = SecCode.getSecCode(response)
    UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/cgi-bin/common/attr?id=58030&timeused=0&seed=0.4558886059222319"
    )
    UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/cgi-bin/common/attr?id=260714&r=0.12701587357325306")
    UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/cgi-bin/common/attr?id=278037&r=0.8267383217521348")
    UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/cgi-bin/common/attr?id=173279&r=0.7496830598910985")
    UtilNoVC.sendOtherCheckGet("http://a.zc.qq.com/Cgi-bin/SecCheck?" +
                               secCode + "&0.3160149435567958")
    UtilNoVC.sendGetWithHeader(
        "http://zc.qq.com/chs/m.js?v=0.15440199096039964")