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

windows 下怎么给某个软件单独设置一个系统时间

  •  
  •   SJ2050cn · Jan 13, 2022 · 2359 views
    This topic created in 1567 days ago, the information mentioned may be changed or developed.
    我现在用的某一款软件的试用期是根据本地系统时间判断的,也就是我可以通过将系统时间调到之前就可以一直试用,但把电脑的系统时间调前后,会对其他软件产生影响,我想问一下有没有办法仅修改某个软件内的时间从而达到欺骗的目的?
    6 replies    2022-01-13 16:27:17 +08:00
    x66
        1
    x66  
       Jan 13, 2022
    把软件装到虚拟机里面去
    0o0O0o0O0o
        2
    0o0O0o0O0o  
       Jan 13, 2022 via iPhone   ❤️ 1
    hook 吧,类似 Locale Emulator 的做法
    https://github.com/xupefei/Locale-Emulator-Core

    有个现成的闭源给出了需要 hook 的 API
    https://www.nirsoft.net/utils/run_as_date.html
    > How does it work ?
    > RunAsDate intercepts the kernel API calls that returns the current date and time (GetSystemTime, GetLocalTime, GetSystemTimeAsFileTime, NtQuerySystemTime, GetSystemTimePreciseAsFileTime), and replaces the current date/time with the date/time that you specify.
    byasm32
        3
    byasm32  
       Jan 13, 2022   ❤️ 1
    RunAsDate 应该能满足需求了
    xuc
        4
    xuc  
       Jan 13, 2022   ❤️ 1
    就是楼上说的 RunAsDate Web http://www.nirsoft.net
    SJ2050cn
        5
    SJ2050cn  
    OP
       Jan 13, 2022
    @x66 #1 不想就为了一个软件装一个虚拟机啊😂
    jones2000
        6
    jones2000  
       Jan 13, 2022
    把这个软件获取系统时间的函数勾掉, 换成自己的函数就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3070 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 14:22 · PVG 22:22 · LAX 07:22 · JFK 10:22
    ♥ Do have faith in what you're doing.