5Luy5oG65Yac5Lia5bel56iL5a2m6Zmi5pWZ5Yqh572R57uc566h55CG57O757uf

import requests
import re

def getHTMLText(url):
    try:
        headers={
        'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
        'Accept-Encoding':'gzip,deflate',
        'Accept-Language':'zh-CN,zh;q=0.9',
        'Cache-Control':'no-cache',
        'Connection':'keep-alive',
        'Cookie':'name=value;ASP.NET_SessionId=fkmcxj45yhvmur45qfbogr45;sto-id-20480=ANADKIMAFBAA;name=value',
        'Host':'jw.zhku.edu.cn',
        'Pragma':'no-cache',
        'Referer':'http://jw.zhku.edu.cn/home.aspx',
        'Upgrade-Insecure-Requests':'1',
        'User-Agent':'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/92.0.4515.131Safari/537.36'
        }
        r=requests.get(url,timeout=30,headers=headers)
        r.raise_for_status()
        r.encoding=r.apparent_encoding
        return r.text
    except:
        pass

url="http://jw.zhku.edu.cn/_data/login_home.aspx"
html=getHTMLText(url)
pattern=r'(?<=__VIEWSTATE" value=")(.+?)(?=" />)'
s__VIEWSTATE=re.findall(pattern,html)[0]
print(s__VIEWSTATE)
//5Luy5oG65Yac5Lia5bel56iL5a2m6Zmi5pWZ5Yqh572R57uc566h55CG57O757uf
const CryptoJs=require('K:/nodejs/node_global/node_modules/crypto-js')
const md5=CryptoJs.MD5
var encpwd = md5("201720814306" + md5("123").toString().substring(0, 30).toUpperCase() + '11347').toString().substring(0, 30).toUpperCase();
console.log(encpwd)
var yzm = md5(md5("YHXE".toUpperCase()).toString().substring(0, 30).toUpperCase() + '11347').toString().substring(0, 30).toUpperCase();
console.log(yzm)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值