凡科网

抓取网址:https://i.fkw.com/?_ta=3

抓取目标:登录过程

image-20240909230914846

网页分析

打开网页后,按F12打开开发者工具,然后输入账号密码,点击登录。

image-20240909231056961

使用关键词搜索

image-20240909231223250

使用路径交叉搜索

image-20240909231438643

代码中搜索

image-20240909231613237

md5加密,在加密网站验证没有改过的md5加密

image-20240909232133674

代码

  • js代码
const Cryptojs = require("E:\\WAWS_ENV\\nodejs\\node_modules\\crypto-js")
data = '11212'
function waws(data){
return Cryptojs.MD5(data).toString()
}
  • python代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import execjs
import requests

cookies = {
'_cliid': 'cCZL3EmS95IkfeTJ',
'loginReferer': 'https://github.com/',
'loginComeForm': 'fkjz',
'first_ta': '3',
'_ta': '3',
'_tp': '-',
'_newUnion': '0',
'_kw': '0',
'_vid_url': 'https%3A%2F%2Fi.fkw.com%2F%3F_ta%3D3',
'_s_pro': 'i.fkw.com%2F',
'_c_pro': 'i.fkw.com%2F',
'reg_sid': '0',
'innerFlag': '1',
'wxRegBiz': 'none',
'_faiHeDistictId': '6475d129134b96a8',
'SL_G_WPT_TO': 'eo',
'SL_GWPT_Show_Hide_tmp': '1',
'SL_wptGlobTipTmp': '1',
}

headers = {
'Accept': '*/*',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
# 'Cookie': '_cliid=cCZL3EmS95IkfeTJ; loginReferer=https://github.com/; loginComeForm=fkjz; first_ta=3; _ta=3; _tp=-; _newUnion=0; _kw=0; _vid_url=https%3A%2F%2Fi.fkw.com%2F%3F_ta%3D3; _s_pro=i.fkw.com%2F; _c_pro=i.fkw.com%2F; reg_sid=0; innerFlag=1; wxRegBiz=none; _faiHeDistictId=6475d129134b96a8; SL_G_WPT_TO=eo; SL_GWPT_Show_Hide_tmp=1; SL_wptGlobTipTmp=1',
'Origin': 'https://i.fkw.com',
'Pragma': 'no-cache',
'Referer': 'https://i.fkw.com/?_ta=3',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36',
'X-Requested-With': 'XMLHttpRequest',
'sec-ch-ua': '"Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
}

# 账号密码
cacct = 'zzzz'
pwd = 'aaaa'

t = execjs.compile(open('./demo.js',"r",encoding='utf-8').read()).call('waws',pwd)
params = {
'dogSrc': '3',
}

proxies = {
'http': '127.0.0.1:10792',
'https': '127.0.0.1:10792'
}

data = {
'cacct': cacct,
'sacct': '',
'pwd': t,
'autoLogin': 'false',
'staffLogin': 'false',
'bizType': '5',
'dogId': '0',
'fromsite': 'false',
'cmd': 'loginCorpNews',
}

response = requests.post('https://i.fkw.com/ajax/login_h.jsp', params=params, cookies=cookies, headers=headers, data=data,proxies=proxies).text
print(response)

结果

image-20240909230335456