当前位置:网站首页>Cookie encryption 15 login encryption

Cookie encryption 15 login encryption

2022-06-30 01:25:00 Fan zhidu

website :84e30ac5376fb6f065eb98c2c2d5168b8e8ab661

        Login encryption can be carried after login cookie Visit the required web address , For example, my bookcase on the novel website , My shopping cart on Taobao .

First find the location of password transmission ( There is usually a load ), see cookie The setting process of

, Then find my bookcase and return to its location , Find out , Sure enough cookie

 

import time
import requests


login_url = "###"

session = requests.session()
def login():
    headers = {
        'Host': 'passport.17k.com',
        'Connection': 'keep-alive',
        'Content-Length': 45,
        'Pragma': 'no-cache',
        'Cache-Control': 'no-cache',
        'sec-ch-ua': '"Chromium";v="21", " Not;A Brand";v="99"',
        'sec-ch-ua-mobile': '?0',
        'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36',
        'sec-ch-ua-platform': '"Windows"',
        'CONTENT-TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
        'Accept': '*/*',
        'Origin': 'https://passport.17k.com',
        'Sec-Fetch-Site': 'same-origin',
        'Sec-Fetch-Mode': 'cors',
        'Sec-Fetch-Dest': 'empty',
        'Referer': 'https://passport.17k.com/login/',
        'Accept-Encoding': 'gzip, deflate, br',
        'Accept-Language': 'zh-CN,zh;q=0.9',
        'Cookie': 'GUID=fed8f891-ef9a-4914-a580-56c4e6d3eae2; Hm_lvt_9793f42b498361373512340937deb2a0=1656494052; Hm_lpvt_9793f42b498361373512340937deb2a0=1656494298; sajssdk_2015_cross_new_user=1; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%22fed8f891-ef9a-4914-a580-56c4e6d3eae2%22%2C%22%24device_id%22%3A%22181aec1149132a-0a649f46956651-5e133e12-1049088-181aec11492185%22%2C%22props%22%3A%7B%7D%7D',
    }
    data={
        'loginName': '##212',
        'password': '##40975'
    }
    session.post(login_url,verify=False)
    html_set_cookie = requests.utils.dict_from_cookiejar(session.cookies)
    print(html_set_cookie['__jsluid_s'])
    session.get( Web address in bookshelf )


def main():
    login()
if __name__ == '__main__':
    main()

 

 

原网站

版权声明
本文为[Fan zhidu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/181/202206300123350210.html