深圳航空顶象滑块第一部分

声明

本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!

关键代码

function getAc(token, x, y) {
    n = {
        "token": token
    }
    if(n.token==undefined){
        n={
    "token": ""
}
        x=100
         y=20
    }
    an = new v["default"](n)
    sliderArray = slide_track(x)
    for (let i = 0; i < sliderArray.length; i++) {
        an.tm = new Date().getTime() - sliderArray[i][2]
        an.recordSA({'pageX': sliderArray[i][0], 'pageY': sliderArray[i][1]})
    }
    an[['sendSA'].join("")]();
    an.sendTemp({
        "xpath": "/html/body/div[1]",
        "x": x,
        "y": y
    })
    return an.getUA()
}
console.log(getAc())

动态替换相关代码


def insert_expression_before_substring(a, b, c):
    position = a.find(b)
    if position == -1:
        return text
    new_text = a[:position] + c + a[position:]
    return new_text

环境代码

 

const jsdom = require('jsdom');
const {JSDOM} = jsdom;
const dom = new JSDOM(`

Hello world

`, { url: '' }); window = dom.window; document = window.document; navigator = window.navigator; location = window.location; history = window.history; screen = window.screen; setInterval = function () { } setTimeout = function () { }

结果

深圳航空顶象滑块第一部分_第1张图片

总结

1.出于安全考虑,本章未提供完整流程,调试环节省略较多,只提供大致思路,具体细节要你自己还原,相信你也能调试出来。

你可能感兴趣的:(前端,javascript,java,爬虫,python,go,node.js)