V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
bruceliang
V2EX  ›  Linux

Linux 如何改变运行的程序获取的系统时间不是当前系统时间?

  •  
  •   bruceliang · Jul 13, 2019 · 4560 views
    This topic created in 2481 days ago, the information mentioned may be changed or developed.

    程序中有获取系统当前时间的代码,如何让程序获取的系统时间不是真正的系统时间呢?

    8 replies    2019-07-13 15:20:42 +08:00
    GiRLIn11
        1
    GiRLIn11  
       Jul 13, 2019 via Android
    Linux API hooking
    bearice
        2
    bearice  
       Jul 13, 2019
    libfaketime
    virusdefender
        3
    virusdefender  
       Jul 13, 2019
    LD_PRELOAD
    hicdn
        4
    hicdn  
       Jul 13, 2019
    防止别人修改系统时间绕过一些功能检测?这样的话通过网络获取时间,服务端返回时间用 gpg 加密,客户端用公钥解密。
    karia
        5
    karia  
       Jul 13, 2019 via Android
    faketime
    xabc
        6
    xabc  
       Jul 13, 2019 via iPhone
    doing1
        7
    doing1  
       Jul 13, 2019
    这对于我来说也是个技术难点啊,呜呜
    guyeu
        8
    guyeu  
       Jul 13, 2019
    修改内核的系统调用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5831 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 03:39 · PVG 11:39 · LAX 20:39 · JFK 23:39
    ♥ Do have faith in what you're doing.