跳转至内容
0
  • 版块
  • 讨论
  • 最新
  • 标签
  • 热门
  • 顶端
  • 用户
  • 版块
  • 讨论
  • 最新
  • 标签
  • 热门
  • 顶端
  • 用户
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Zephyr)
  • 不使用皮肤
折叠
JIKE社区
Y

yafengliang

@yafengliang
🍌
关于
帖子
264
主题
21
分享
0
群组
1
粉丝
3
关注
0

帖子

最新 最佳 有争议的

  • #集中帖# 腾讯会议挂机发布帖
    Y yafengliang

    yafengliang 说:

    点击链接直接加入会议:
    https://meeting.tencent.com/dm/pMFYbirhmE2a?rs=25

    会议 ID:100 828 965

    无密码

    新会议

    会议时间:2021/09/10-2021/09/30 00:30-18:00(GMT+08:00) 中国标准时间 - 北京, 每天

    点击链接入会,或添加至会议列表:
    https://meeting.tencent.com/dm/yTUppibxinXR?rs=25

    会议 ID:677 4366 4916

    活动优惠

  • 输错了域名有惊人的发现
    Y yafengliang

    百度也忒不要脸了

    水区乐园 阿里云 百度云

  • 人工智能修复老照片【jpghd】
    Y yafengliang

    @malaohu 感觉像是来推广的

    技术专区

  • 爱好论坛邀请码每日不定时发放
    Y yafengliang

    @yafengliang

    素质呢?

    账号密钥

  • 爱好论坛邀请码每日不定时发放
    Y yafengliang

    素质、素质呢

    账号密钥

  • 爱好论坛邀请码每日不定时发放
    Y yafengliang

    用了都不说一声的么?

    账号密钥

  • 人工智能修复老照片【jpghd】
    Y yafengliang

    遗憾的是收费

    技术专区

  • 爱好论坛邀请码每日不定时发放
    Y yafengliang

    2021-09-09 08:55 https://www.aihao.cc/home.php?mod=invite&id=13354&c=nyff43

    账号密钥

  • #集中帖# 腾讯会议挂机发布帖
    Y yafengliang

    点击链接直接加入会议:
    https://meeting.tencent.com/dm/pMFYbirhmE2a?rs=25

    会议 ID:100 828 965

    无密码

    活动优惠

  • 天翼云盘GitHub自动签到源代码失效了,哪位大神改改?
    Y yafengliang

    @lmy 试试这个

    import requests, time, re, rsa, json, base64
    from urllib import parse
    
    s = requests.Session()
    
    username = "账号"
    password = "密码"
    
    if(username == "" or password == ""):
        username = input("账号:")
        print(username[:3] + '****' + username[7:])
        password = input("密码:")
    
    def main():
        msg = login(username, password)
        if(msg == "error"):
            return None
        else:
            pass
        rand = str(round(time.time()*1000))
        surl = f'https://api.cloud.189.cn/mkt/userSign.action?rand={rand}&clientType=TELEANDROID&version=8.6.3&model=SM-G930K'
        url = f'https://m.cloud.189.cn/v2/drawPrizeMarketDetails.action?taskId=TASK_SIGNIN&activityId=ACT_SIGNIN'
        url2 = f'https://m.cloud.189.cn/v2/drawPrizeMarketDetails.action?taskId=TASK_SIGNIN_PHOTOS&activityId=ACT_SIGNIN'
        headers = {
            'User-Agent':'Mozilla/5.0 (Linux; Android 5.1.1; SM-G930K Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 Ecloud/8.6.3 Android/22 clientId/355325117317828 clientModel/SM-G930K imsi/460071114317824 clientChannelId/qq proVersion/1.0.6',
            "Referer" : "https://m.cloud.189.cn/zhuanti/2016/sign/index.jsp?albumBackupOpened=1",
            "Host" : "m.cloud.189.cn",
            "Accept-Encoding" : "gzip, deflate",
        }
        #签到
        response = s.get(surl,headers=headers)
        netdiskBonus = response.json()['netdiskBonus']
        print(f"签到获得{netdiskBonus}M空间")
        headers = {
            'User-Agent':'Mozilla/5.0 (Linux; Android 5.1.1; SM-G930K Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 Ecloud/8.6.3 Android/22 clientId/355325117317828 clientModel/SM-G930K imsi/460071114317824 clientChannelId/qq proVersion/1.0.6',
            "Referer" : "https://m.cloud.189.cn/zhuanti/2016/sign/index.jsp?albumBackupOpened=1",
            "Host" : "m.cloud.189.cn",
            "Accept-Encoding" : "gzip, deflate",
        }
        #第一次抽奖
        response = s.get(url,headers=headers)
        if ("prizeName" in response.text):
            #description = response.json()['description']
            #print(f"抽奖获得{description}")
            prizeName = response.json()['prizeName']
            print(f"抽奖获得{prizeName}")
        else:
            try:
                if(response.json()['errorCode'] == "User_Not_Chance"):
                    print("抽奖次数不足")
                else:
                    print(response.text)
            except:
                    print(str(response.status_code) + response.text)
        #第二次抽奖
        response = s.get(url2,headers=headers)
        if ("prizeName" in response.text):
            #description = response.json()['description']
            #print(f"抽奖获得{description}")
            prizeName = response.json()['prizeName']
            print(f"抽奖获得{prizeName}")
        else:
            try:
                if(response.json()['errorCode'] == "User_Not_Chance"):
                    print("抽奖次数不足")
                else:
                    print(response.text)
            except:
                    print(str(response.status_code) + response.text)
    
    BI_RM = list("0123456789abcdefghijklmnopqrstuvwxyz")
    def int2char(a):
        return BI_RM[a]
    
    b64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
    def b64tohex(a):
        d = ""
        e = 0
        c = 0
        for i in range(len(a)):
            if list(a)[i] != "=":
                v = b64map.index(list(a)[i])
                if 0 == e:
                    e = 1
                    d += int2char(v >> 2)
                    c = 3 & v
                elif 1 == e:
                    e = 2
                    d += int2char(c << 2 | v >> 4)
                    c = 15 & v
                elif 2 == e:
                    e = 3
                    d += int2char(c)
                    d += int2char(v >> 2)
                    c = 3 & v
                else:
                    e = 0
                    d += int2char(c << 2 | v >> 4)
                    d += int2char(15 & v)
        if e == 1:
            d += int2char(c << 2)
        return d
    
    
    def rsa_encode(j_rsakey, string):
        rsa_key = f"-----BEGIN PUBLIC KEY-----\n{j_rsakey}\n-----END PUBLIC KEY-----"
        pubkey = rsa.PublicKey.load_pkcs1_openssl_pem(rsa_key.encode())
        result = b64tohex((base64.b64encode(rsa.encrypt(f'{string}'.encode(), pubkey))).decode())
        return result
    
    def calculate_md5_sign(params):
        return hashlib.md5('&'.join(sorted(params.split('&'))).encode('utf-8')).hexdigest()
    
    def login(username, password):
        url = "https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https://cloud.189.cn/web/redirect.html"
        r = s.get(url)
        print("r:::"+r.text)
        captchaToken = re.findall(r"captchaToken' value='(.+?)'", r.text)[0]
        lt = re.findall(r'lt = "(.+?)"', r.text)[0]
        returnUrl = re.findall(r"returnUrl = '(.+?)'", r.text)[0]
        paramId = re.findall(r'paramId = "(.+?)"', r.text)[0]
        j_rsakey = re.findall(r'j_rsaKey" value="(\S+)"', r.text, re.M)[0]
        s.headers.update({"lt": lt})
    
        username = rsa_encode(j_rsakey, username)
        password = rsa_encode(j_rsakey, password)
        url = "https://open.e.189.cn/api/logbox/oauth2/loginSubmit.do"
        headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/76.0',
            'Referer': 'https://open.e.189.cn/',
            }
        data = {
            "appKey": "cloud",
            "accountType": '01',
            "userName": f"{{RSA}}{username}",
            "password": f"{{RSA}}{password}",
            "validateCode": "",
            "captchaToken": captchaToken,
            "returnUrl": returnUrl,
            "mailSuffix": "@189.cn",
            "paramId": paramId
            }
        r = s.post(url, data=data, headers=headers, timeout=5)
        if(r.json()['result'] == 0):
            print(r.json()['msg'])
        else:
            print(r.json()['msg'])
            return "error"
        redirect_url = r.json()['toUrl']
        r = s.get(redirect_url)
        return s
    
    if __name__ == "__main__":
        main()
    
    技术专区

  • 天翼云盘GitHub自动签到源代码失效了,哪位大神改改?
    Y yafengliang

    @lmy 可以的

    import requests, time, re, rsa, json, base64
    from urllib import parse
    
    s = requests.Session()
    
    username = "账号"
    password = "密码"
    
    if(username == "" or password == ""):
        username = input("账号:")
        print(username[:3] + '****' + username[7:])
        password = input("密码:")
    
    def main():
        msg = login(username, password)
        if(msg == "error"):
            return None
        else:
            pass
        rand = str(round(time.time()*1000))
        surl = f'https://api.cloud.189.cn/mkt/userSign.action?rand={rand}&clientType=TELEANDROID&version=8.6.3&model=SM-G930K'
        url = f'https://m.cloud.189.cn/v2/drawPrizeMarketDetails.action?taskId=TASK_SIGNIN&activityId=ACT_SIGNIN'
        url2 = f'https://m.cloud.189.cn/v2/drawPrizeMarketDetails.action?taskId=TASK_SIGNIN_PHOTOS&activityId=ACT_SIGNIN'
        headers = {
            'User-Agent':'Mozilla/5.0 (Linux; Android 5.1.1; SM-G930K Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 Ecloud/8.6.3 Android/22 clientId/355325117317828 clientModel/SM-G930K imsi/460071114317824 clientChannelId/qq proVersion/1.0.6',
            "Referer" : "https://m.cloud.189.cn/zhuanti/2016/sign/index.jsp?albumBackupOpened=1",
            "Host" : "m.cloud.189.cn",
            "Accept-Encoding" : "gzip, deflate",
        }
        #签到
        response = s.get(surl,headers=headers)
        netdiskBonus = response.json()['netdiskBonus']
        print(f"签到获得{netdiskBonus}M空间")
        headers = {
            'User-Agent':'Mozilla/5.0 (Linux; Android 5.1.1; SM-G930K Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 Ecloud/8.6.3 Android/22 clientId/355325117317828 clientModel/SM-G930K imsi/460071114317824 clientChannelId/qq proVersion/1.0.6',
            "Referer" : "https://m.cloud.189.cn/zhuanti/2016/sign/index.jsp?albumBackupOpened=1",
            "Host" : "m.cloud.189.cn",
            "Accept-Encoding" : "gzip, deflate",
        }
        #第一次抽奖
        response = s.get(url,headers=headers)
        if ("prizeName" in response.text):
            #description = response.json()['description']
            #print(f"抽奖获得{description}")
            prizeName = response.json()['prizeName']
            print(f"抽奖获得{prizeName}")
        else:
            try:
                if(response.json()['errorCode'] == "User_Not_Chance"):
                    print("抽奖次数不足")
                else:
                    print(response.text)
            except:
                    print(str(response.status_code) + response.text)
        #第二次抽奖
        response = s.get(url2,headers=headers)
        if ("prizeName" in response.text):
            #description = response.json()['description']
            #print(f"抽奖获得{description}")
            prizeName = response.json()['prizeName']
            print(f"抽奖获得{prizeName}")
        else:
            try:
                if(response.json()['errorCode'] == "User_Not_Chance"):
                    print("抽奖次数不足")
                else:
                    print(response.text)
            except:
                    print(str(response.status_code) + response.text)
    
    BI_RM = list("0123456789abcdefghijklmnopqrstuvwxyz")
    def int2char(a):
        return BI_RM[a]
    
    b64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
    def b64tohex(a):
        d = ""
        e = 0
        c = 0
        for i in range(len(a)):
            if list(a)[i] != "=":
                v = b64map.index(list(a)[i])
                if 0 == e:
                    e = 1
                    d += int2char(v >> 2)
                    c = 3 & v
                elif 1 == e:
                    e = 2
                    d += int2char(c << 2 | v >> 4)
                    c = 15 & v
                elif 2 == e:
                    e = 3
                    d += int2char(c)
                    d += int2char(v >> 2)
                    c = 3 & v
                else:
                    e = 0
                    d += int2char(c << 2 | v >> 4)
                    d += int2char(15 & v)
        if e == 1:
            d += int2char(c << 2)
        return d
    
    
    def rsa_encode(j_rsakey, string):
        rsa_key = f"-----BEGIN PUBLIC KEY-----\n{j_rsakey}\n-----END PUBLIC KEY-----"
        pubkey = rsa.PublicKey.load_pkcs1_openssl_pem(rsa_key.encode())
        result = b64tohex((base64.b64encode(rsa.encrypt(f'{string}'.encode(), pubkey))).decode())
        return result
    
    def calculate_md5_sign(params):
        return hashlib.md5('&'.join(sorted(params.split('&'))).encode('utf-8')).hexdigest()
    
    def login(username, password):
        url = "https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https://cloud.189.cn/web/redirect.html"
        r = s.get(url)
        print("r:::"+r.text)
        captchaToken = re.findall(r"captchaToken' value='(.+?)'", r.text)[0]
        lt = re.findall(r'lt = "(.+?)"', r.text)[0]
        returnUrl = re.findall(r"returnUrl = '(.+?)'", r.text)[0]
        paramId = re.findall(r'paramId = "(.+?)"', r.text)[0]
        j_rsakey = re.findall(r'j_rsaKey" value="(\S+)"', r.text, re.M)[0]
        s.headers.update({"lt": lt})
    
        username = rsa_encode(j_rsakey, username)
        password = rsa_encode(j_rsakey, password)
        url = "https://open.e.189.cn/api/logbox/oauth2/loginSubmit.do"
        headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/76.0',
            'Referer': 'https://open.e.189.cn/',
            }
        data = {
            "appKey": "cloud",
            "accountType": '01',
            "userName": f"{{RSA}}{username}",
            "password": f"{{RSA}}{password}",
            "validateCode": "",
            "captchaToken": captchaToken,
            "returnUrl": returnUrl,
            "mailSuffix": "@189.cn",
            "paramId": paramId
            }
        r = s.post(url, data=data, headers=headers, timeout=5)
        if(r.json()['result'] == 0):
            print(r.json()['msg'])
        else:
            print(r.json()['msg'])
            return "error"
        redirect_url = r.json()['toUrl']
        r = s.get(redirect_url)
        return s
    
    if __name__ == "__main__":
        main()```
    技术专区

  • 爱好论坛邀请码每日不定时发放
    Y yafengliang

    2021-09-07 11:57 https://www.aihao.cc/home.php?mod=invite&id=13329&c=ftfpk7

    账号密钥

  • 天翼云盘GitHub自动签到源代码失效了,哪位大神改改?
    Y yafengliang

    @yafengliang

    
    小钉
    11:54
    2021-09-07 03:54:36 Tuesday
    账号:178****9198
    密码:登录成功
    签到获得51M空间
    抽奖次数不足
    抽奖次数不足
    账号:173****2113
    密码:登录成功
    签到获得4M空间
    抽奖次数不足
    抽奖次数不足
    
    技术专区

  • 天翼云盘GitHub自动签到源代码失效了,哪位大神改改?
    Y yafengliang

    找了下区别,确实是登录的url更换了https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https://cloud.189.cn/web/redirect.html

    技术专区

  • 天翼云盘GitHub自动签到源代码失效了,哪位大神改改?
    Y yafengliang

    @zeze
    Pycharm确实可以跑

    登录成功
    已经签到过了,签到获得4M空间
    抽奖获得天翼云盘50M空间
    抽奖获得天翼云盘50M空间
    
    技术专区

  • 天翼云盘GitHub自动签到源代码失效了,哪位大神改改?
    Y yafengliang

    @wushuiyin 卧槽,这好事怎么不分享经验,不厚道哟

    技术专区

  • 天翼云盘GitHub自动签到源代码失效了,哪位大神改改?
    Y yafengliang

    @zeze 签到账号1
    Traceback (most recent call last):
    File "C189Checkin.py", line 154, in <module>
    main()
    File "C189Checkin.py", line 15, in main
    msg = login(username, password)
    File "C189Checkin.py", line 118, in login
    captchaToken = re.findall(r"captchaToken' value='(.+?)'", r.text)[0]
    IndexError: list index out of range
    Error: Process completed with exit code 1.

    技术专区

  • 油管看电影之南方车站的聚会
    Y yafengliang

    看过了

    影音书籍

  • 亲子早教幼儿必备资料《折纸大全》
    Y yafengliang

    666

    影音书籍
  • 1
  • 2
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 9 / 14
  • 登录

  • 没有帐号? 注册

  • 登录或注册以进行搜索。
百度网盘
1,491 个主题
连续剧
760 个主题
国产剧
597 个主题
美剧
359 个主题
中国移动
307 个主题
动画片
259 个主题
中国电信
222 个主题
动作片
218 个主题

233

在线

40.7k

用户

40.5k

主题

111.0k

帖子
  • 第一个帖子
    最后一个帖子
//禁止F12 var ConsoleManager={ onOpen:function(){ alert("啥? 想用脚本? 那是不行滴 😄") }, onClose:function(){ alert("啥? 想用脚本? 那是不行滴 😄") }, init:function(){ var self = this; var x = document.createElement('div'); var isOpening = false,isOpened=false; Object.defineProperty(x, 'id', { get:function(){ if(!isOpening){ self.onOpen(); isOpening=true; } isOpened=true; } }); setInterval(function(){ isOpened=false; console.info(x); console.info("啥? 想用脚本? 那是不行滴 😄") console.clear(); if(!isOpened && isOpening){ self.onClose(); isOpening=false; } },10) } } ConsoleManager.onOpen = function(){ try{ window.open('https://jike.info',target='_self'); }catch(err){ var a = document.createElement("button"); a.onclick=function(){ window.open('https://jike.info',target='_self'); } a.click(); } } ConsoleManager.onClose = function(){ alert("啥? 想用脚本? 那是不行滴 😄") } ConsoleManager.init(); $(document).ready(function () { app.coldLoad(); }); }