V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
foxyier
V2EX  ›  JavaScript

请教一下 jsfuck 代码如何解密

  •  
  •   foxyier · 2019-01-21 17:13:40 +08:00 · 10213 次点击
    这是一个创建于 1893 天前的主题,其中的信息可能已经有所发展或是发生改变。
    大佬们, 请问 jsfuck 代码可以还原么,求助
    14 条回复    2021-11-01 15:54:01 +08:00
    Kokororin
        1
    Kokororin  
       2019-01-21 17:18:50 +08:00
    jsunfuck
    kingwl
        2
    kingwl  
       2019-01-21 17:19:15 +08:00
    prepack
    CloudMx
        3
    CloudMx  
       2019-01-21 17:22:21 +08:00
    mytry
        4
    mytry  
       2019-01-21 17:50:32 +08:00
    hook `Function`:

    ```js
    Function.prototype.__defineGetter__('constructor', function() {
    return function(...args) {
    console.log('code:', ...args);
    return Function(...args);
    };
    });

    // run code here
    ```
    Kylin30
        5
    Kylin30  
       2019-01-21 18:15:06 +08:00   ❤️ 1
    jsCondom
    foxyier
        6
    foxyier  
    OP
       2019-01-21 19:56:54 +08:00
    @Kokororin
    @kingwl
    @CloudMx
    @mytry
    @Kylin30
    多谢, 我试一下
    infra
        7
    infra  
       2019-01-21 20:11:15 +08:00
    长见识了
    4goodworld
        8
    4goodworld  
       2019-01-21 21:24:55 +08:00
    @mytry 能再解释解释吗?...args 是什么意思呢?参数?
    mytry
        9
    mytry  
       2019-01-22 10:12:46 +08:00
    @4goodworld 就是传给 Function 的 arguments
    SakuraKuma
        10
    SakuraKuma  
       2019-01-22 10:14:10 +08:00   ❤️ 1
    把最后两括号换成.toString()
    jiejiss
        11
    jiejiss  
       2019-01-22 10:33:28 +08:00 via Android
    100 页草稿纸+10 根铅笔+2 块橡皮应该就够了,可以练习 js 里的数据类型转换(手动狗头
    4goodworld
        12
    4goodworld  
       2019-01-22 20:03:23 +08:00
    @mytry 可有可以调试的实例呢?
    libook
        13
    libook  
       2019-01-29 16:01:18 +08:00
    这个应该是 JS 版的 Brainfuck 解释器?

    我还以为是这个:
    https://github.com/alcuadrado/hieroglyphy
    这个可以把任何数字或字符串转换成 Brianfuck 风格的 JS 原生代码。
    ihcanan
        14
    ihcanan  
       2021-11-01 15:54:01 +08:00
    @mytry 大佬牛啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   957 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:46 · PVG 05:46 · LAX 14:46 · JFK 17:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.