声明:
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
有相关问题请第一时间头像私信联系我删除博客!
前言
akamai不同站点监测点有点不同,打算多适配多几个网站简单分析一下wizzair。
逆向过程
这个网站监测点比DHL国际快递严格了很多,补了2天环境才弄出来。DHL那个检测就轻一些。
py代码
response = session.get(######', headers=headers,cookies=cookies)_html = response.text js_url_prefix = "" template_url = '#####' url = f"{template_url}{js_url_prefix}" response = session.get(url, headers=headers) with open('./test/code.js','w',encoding='utf-8') as fp:fp.write(response.text) ck = dict(session.cookies)result = req.get("http://127.0.0.1:3000/abck",json=ck,params={'url':"https://wizzair.com/en-gb"}).json() sensor_data = result['_abck'] print(sensor_data) header = result['headers'] headers['newrelic'] = header['newrelicHeader'] headers['traceparent'] = header['traceContextParentHeader'] headers['tracestate'] = header['traceContextStateHeader'] headers['x-newrelic-id']='VwIBWVdXABAFXVVQAgYBUFA=' data = sensor_dataprint(data) response = session.post(url,headers=headers,data=data ) print(response.text) print(response.cookies)json_data = {'departureStation': 'HAM','months': 6,'discountedOnly': False, }response = session.post('###/26.4.0/Api/search/CheapFlights', headers=headers, json=json_data) print(response.text)
结果
_abck从1变0即为正确,后续继续适配多几个网站。