吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1096|回复: 2
收起左侧

[求助] 在弄rs5,请大神帮帮忙

[复制链接]
Aerfa9527 发表于 2025-4-11 16:30
[JavaScript] 纯文本查看 复制代码
delete __dirname
delete __filename
function get_enviroment(proxy_array) {
    for(var i=0; i<proxy_array.length; i++){
        handler = '{\n' +
            '    get: function(target, property, receiver) {\n' +
            '        console.log("方法:", "get  ", "对象:", ' +
            '"' + proxy_array[i] + '" ,' +
            '"  属性:", property, ' +
            '"  属性类型:", ' + 'typeof property, ' +
            // '"  属性值:", ' + 'target[property], ' +
            '"  属性值类型:", typeof target[property]);\n' +
            '        return target[property];\n' +
            '    },\n' +
            '    set: function(target, property, value, receiver) {\n' +
            '        console.log("方法:", "set  ", "对象:", ' +
            '"' + proxy_array[i] + '" ,' +
            '"  属性:", property, ' +
            '"  属性类型:", ' + 'typeof property, ' +
            // '"  属性值:", ' + 'target[property], ' +
            '"  属性值类型:", typeof target[property]);\n' +
            '        return Reflect.set(...arguments);\n' +
            '    }\n' +
            '}'
        eval('try{\n' + proxy_array[i] + ';\n'
        + proxy_array[i] + '=new Proxy(' + proxy_array[i] + ', ' + handler + ')}catch (e) {\n' + proxy_array[i] + '={};\n'
        + proxy_array[i] + '=new Proxy(' + proxy_array[i] + ', ' + handler + ')}')
    }
}
proxy_array = ['window', 'document', 'location', 'navigator', 'history','screen']
 
content = 'RbpmW6cofr7eyEOxPgGsWCOM.usmMcoTMGLjc_ZzfA3'

null_fuc = function () {
    console.log(arguments)
}

window = global
window.top = window
window.addEventListener = function (res) {
    console.log('window->addEventListener', res)
}
window.HTMLCanvasElement = null_fuc
window.name = ''
window.XMLHttpRequest = function (res) {
    console.log('window->XMLHttpRequest', res)
    return {
        open: function (res) {
            console.log('window->XMLHttpRequest->open', res)
        },
        send: function (res) {
            console.log('window->XMLHttpRequest->send', res)
        },
        setRequestHeader: function (res) {
            console.log('window->XMLHttpRequest->setRequestHeader', res)
        }
    }
}

setInterval = null_fuc
setTimeout = null_fuc

div = {
    getElementsByTagName: function (res) {
        console.log('div->getElementsByTagName', res)
        if (res == 'i') {
            console.log('div->getElementsByTagName->i', res)
            return ''
        }
    },
}

script = {
    0:{},
    1:{},
}

document = {
    getElementsByTagName: function (res) {
        console.log('document->getElementsByTagName', res)
        if (res == 'script') {
            console.log('document->getElementsByTagName->script', res)
            return script
        }
        if (res == 'base') {
            console.log('document->getElementsByTagName->base', res)
            return []
        }
    },
    createElement: function (res) {
        console.log('document->createElement', res)
        if (res == 'div') {
            return div
        }
    },
    appendChild: function (res) {
        console.log('document->appendChild', res)
        console.log(arguments);
        return {}
    },
    removeChild: null_fuc,
    getElementById: function (res) {
        console.log('document->getElementById', res)
    },
    addEventListener: function (res) {
        console.log('document->addEventListener', res)
        return {}
    },
    attachEvent: function (res) {
        console.log('document->attachEvent', res)
        return ''
    },
}

meta = {
    getAttribute: function (res) {
        if (res === "r") {
            return "m"
        }
    },
    parentNode: {
        removeChild: function (res) {
            console.log('meta->parentNode', res)
        }
    },
    content: content
}

location = {
    "ancestorOrigins": {},
    "href": "https://xxxxxxxxxx",
    "origin": "https://XXXXXXX",
    "protocol": "https:",
    "host": "XXXX",
    "hostname": "XXXXX",
    "port": "",
    "pathname": "/portal/",
    "search": "",
    "hash": "XXXXX"
}

navigator = {
    appCodeName: "Mozilla",
    appName: "Netscape",
    appVersion: "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0",
    userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0",
}
 
get_enviroment(proxy_array)


运行代码,在最后会卡顿一段时间,然后就报错,我debug原网站,看到最后 创建一个XMLHttpRequest,然后再将传参格式化,例如 ‘a=&b=&c=’, 最后调用  send方法传到 rs,我要怎么样补这个
微信截图_20250411162408.png

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

star0angel 发表于 2025-4-11 16:47
环境没补到位
crmyy 发表于 2025-4-11 21:16
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-8-7 12:52

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表