看过了
yafengliang
-
油管看电影之南方车站的聚会 -
亲子早教幼儿必备资料《折纸大全》666
-
天翼云盘GitHub自动签到源代码失效了,哪位大神改改?@zeze 在GitHub上还能正常用么?我的报下标越界
-
天翼云盘GitHub自动签到源代码失效了,哪位大神改改?url = "https://cloud.189.cn/udb/udb_login.jsp?pageId=1&redirectURL=/main.action"
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})在login这个方法中,captchaToken、li、returnurl等参数已经没了,排查发现url = "https://cloud.189.cn/udb/udb_login.jsp?pageId=1&redirectURL=/main.action"的Url好像是更改了,改成了/autoLogin.do导致上述参数无效,主要是加密方式j_rsakey为取到,这个参数取到后还是可以继续排查,卡到这个点了,大神出来瞅瞅
-
天翼云盘GitHub自动签到源代码失效了,哪位大神改改?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/udb/udb_login.jsp?pageId=1&redirectURL=/main.action" 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()
融合了钉钉机器人、Server酱、企业微信签到通知
-
微信红包封面都没了,这么快的么
-
爱好论坛邀请码每日不定时发放 -
搭了一个看小姐姐的小站卧槽 上班期间不适合打开。。。 刚刚不小心点开了
-
爱好论坛邀请码每日不定时发放 -
爱好论坛邀请码每日不定时发放@心际旅行 24小时只能一个
-
爱好论坛邀请码每日不定时发放用完说一声,我会跟帖发
-
爱好论坛邀请码每日不定时发放 -
鬼吹灯之云南虫谷666
-
腾讯会议兑换腾讯视频,腾讯音乐会员!可无限刷!666,刚好有两个手机
-
北京电信星卡客户免费流量或通话速领,前几天比较忙,刚刚办理了领取,不知道月末会不会到账
-
北京电信星卡客户免费流量或通话星卡老用户福利,5G流量限时免费领取(可替换为200分钟通话)!关注北京电信微信公众号回复“531”即可参与,快快行动吧!
-
未看到截至日期,短信是8月24日收到的,赶紧行动
-
选择领取内容,5G流量还是200分钟通话
-
已收到5G流量
-
-
广东移动10元10G流量包一年浙江移动1元5G体验,优惠期12个月,原价30,现价1,到期自动取消,然后每月有免费送了10G加油包,以上流量都是当月有效,不可结转
-
【搬运】阿里云盘资源666
-
广东移动0元5GB流量【活动提醒】尊敬的客户,邀请您参与体验杭州移动1元5GB流量特惠包活动。5G特惠包标准资费30元5GB国内流量(不含港澳台),现优惠至1元/月,优惠期12个月,到期自动取消。您可发送571883到10086直接办理,转发无效。【中国移动和你一起】
-
百度搜索 site:.xxx 有惊喜!我了个去,竟然还能搜索到