V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
e1o
V2EX  ›  问与答

能通过编译后的 JS 打包文件,反编译出原本的吗?

  •  
  •   e1o · Aug 12, 2022 · 2614 views
    This topic created in 1362 days ago, the information mentioned may be changed or developed.

    公司给的任务,打包后的 static/js 目录下全是 0.115a629e5b545e024f28.js 1.25a4e62f98be2e719575.js 这样的东西,想要在这里面改一下页面

    11 replies    2022-08-12 12:47:52 +08:00
    GentleFifth
        1
    GentleFifth  
       Aug 12, 2022 via Android
    建议换个公司
    e1o
        2
    e1o  
    OP
       Aug 12, 2022
    @GentleFifth 哈哈哈
    firya
        3
    firya  
       Aug 12, 2022
    有 map 文件可以试试 reverse-sourcemap 这个库
    如果没有建议润
    molvqingtai
        4
    molvqingtai  
       Aug 12, 2022
    如果有 sourceMap 文件可以
    BUHeF254Lpd1MH06
        5
    BUHeF254Lpd1MH06  
       Aug 12, 2022
    很蓝的啦,不过也不是不行
    shintendo
        6
    shintendo  
       Aug 12, 2022
    x-y 问题,你的目的是反编译还是改页面?
    horseInBlack
        7
    horseInBlack  
       Aug 12, 2022   ❤️ 1
    如果是该页面,可以再挂一个自己写的 js ,直接去操作 DOM ,反正就是等之前的程序执行完了,你再去修改覆盖
    mxT52CRuqR6o5
        8
    mxT52CRuqR6o5  
       Aug 12, 2022
    水平到了就能改,不过如果是大改动的话改起来会很累
    iold
        9
    iold  
       Aug 12, 2022 via iPhone
    (*☻-☻*) 问公司源码呢?
    lneoi
        10
    lneoi  
       Aug 12, 2022
    小改就直接加, 大改还是跑吧, 要不然自己重新实现
    fox0001
        11
    fox0001  
       Aug 12, 2022 via Android
    这种情况,试过魔改…调用方法的 toString(),替换字符串后 eval 改那方法的定义。当然,不推荐这么玩…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3299 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 00:06 · PVG 08:06 · LAX 17:06 · JFK 20:06
    ♥ Do have faith in what you're doing.