lihu5841314 发表于 2021-6-23 19:13

凡科网登录js练习

import requests
import execjs

start_url = 'https://i.fkw.com/'
url = 'https://i.fkw.com/ajax/login_h.jsp?dogSrc=3'#post请求

headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36'
}
password = 123456
from_data={
'cacct': 'a1234567',
'sacct': '',
'pwd': password,#发现密码被加密了32位16进制多半是MD5加密
'autoLogin': 'false',
'staffLogin': 'false',
'bizType': '5',
'dogId': '0',
'fromsite':'false',
'cmd': 'loginCorpNews',
}

node = execjs.get()
sign = execjs.compile(open('fankewang.js',encoding="utf-8").read())
sign_ = sign.call("md5",password)
print(sign_)#对比之后发现一样
-----------------------------------------------------------------------------------

PPZ丿皮皮智 发表于 2021-6-23 20:13

试一下不就知道了吗。。
页: [1]
查看完整版本: 凡科网登录js练习