日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

沃支付登录

發布時間:2023/12/20 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 沃支付登录 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

涉及到的知識有
驗證碼
js逆向

import time,os import cv2 import js2py import requestsheaders = {'authority': 'epay.10010.com','pragma': 'no-cache','cache-control': 'no-cache','sec-ch-ua': '" Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"','accept': '*/*','x-requested-with': 'XMLHttpRequest','sec-ch-ua-mobile': '?0','user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36','sec-ch-ua-platform': '"Windows"','sec-fetch-site': 'same-origin','sec-fetch-mode': 'cors','sec-fetch-dest': 'empty','referer': 'https://epay.10010.com/auth/minipage/loginWindow_newlogin.jsp','accept-language': 'zh-CN,zh;q=0.9', }def get_getPubKey():times = int(time.time() * 1000)response = requests.get(url=f'https://epay.10010.com/auth/auth/getPubKey.jsp?_={times}',headers=headers).text.replace('200--', '').strip()return responsedef get_loginPwd(pwd):key = get_getPubKey()f = open('1.js', 'r').read()context = js2py.EvalJs()context.execute(f)loginPwd = context.encryptRequest(pwd, key)return loginPwddef get_yzm():response = requests.get('https://epay.10010.com/auth/a.randomPic', headers=headers).contentwith open('1.png', 'wb') as f:f.write(response)IMG = cv2.imread('./1.png')cv2.imshow("Image", IMG)cv2.waitKey()yzm = input('請輸入驗證碼:')os.remove('1.png')return yzmdef main():yzm = get_yzm()user = input('請輸入賬號:')pwd = input('請輸入密碼:')loginPwd = get_loginPwd(pwd)data = {'errorurl': 'https://epay.10010.com/auth/auth/errorPage.jsp','RelayState': 'type%3DC%3Bbackurl%3Dhttps%3A%2F%2Fepay.10010.com%2Fauth%2Fauth%2FloginBack.jsp%3Bspid%3D4028f09638eb576a013904e27b440002%3Bnl%3D8%3BloginFrom%3Dhttps%3A%2F%2Fepay.10010.com%2Fpss%2Fuser%2Fmy','loginType': '1','loginPwdType': '1','loginPwd': loginPwd,'flag': 'no','userid': user,'pwd': '','validCode': yzm}response = requests.post('https://epay.10010.com/auth/Login', headers=headers, data=data).status_codeprint(response)if __name__ == '__main__':main()

總結

以上是生活随笔為你收集整理的沃支付登录的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。