sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.69k stars 1.52k forks source link

change the time of program #3119

Closed jackcore21 closed 1 year ago

jackcore21 commented 1 year ago

Is your feature request related to a problem or use case?

NO

Describe the solution you'd like

no

Describe alternatives you've considered

no

jackcore21 commented 1 year ago

Hello, I would like to inquire if your program has the capability to adjust the time for a specific program. I previously attempted to use the tool "RunAsDate" but it was ineffective in changing the real time. In order for the program to work, I had to change the operation time of my Windows 10. Could you please let me know if your program can make a real-time adjustment for a specific program?

bastik-1001 commented 1 year ago

(Time what is time)

I am curious if the use-case is about the time of the day, like needing some program to think it's 12:00 (or something like that), or if a program is supposed to be made think it would be a certain date, like the 1st of July 2023.

DavidXanatos commented 1 year ago

this is currently not supported

bastik-1001 commented 1 year ago

While this is not currently supported, is it something that you think is feasible? I mean, you did not close it, right away, as something that is outside the scope of the project. That still might be the case.

coltsfootrock commented 1 year ago

A lot of folk used to use this runasdate to spoof trial period checks on software etc. Wonder how some security software would react to Sbie engineering dates. Not something that I personally think should have any priority.

DavidXanatos commented 1 year ago

oh thats brilliant, so no need for me to add it? just use this tool in sandboxie an done

bastik-1001 commented 1 year ago

It might be a language issue, but the request mentions the time, so I am still not sure if the request is about the time of the day. There might be programs that use dark-mode only after a certain time of the day or something else is tied to the time. It might be better to ask the software developer for an option.

The only software I know, where this applies, is a game, namely Animal Crossing, where the time in the game is the actual time. I have not played that, but I believe not only night and day, but that also certain events were bound to the time.

One might be better off with a VM, where you should be able to set time and date, or another location with a different timezone. Something trying to prevent that, can still request the time and other information when it has access to the internet.

However, the tool runasdate should be able to provide a way to set time and date. I have not tested it.

Given that Sandboxie Plus has an addon manager (upcoming releases will have it), a tool for spoofing the time and date, could be provided via that manager, like runasdate.

wutaijieing commented 1 year ago

🙂 bat:

date 2023/07/01 "C:\Program Files\Sandboxie-Plus\SandMan.exe" /box:01 /terminate ping -n 1 127.0.0.1>nul "C:\Program Files\Sandboxie-Plus\SandMan.exe" /box:01 delete_sandbox ping -n 1 127.0.0.1>nul "C:\Program Files\Sandboxie-Plus\SandMan.exe" /box:01 D:\8899\se\xxxxx.exe ping -n 5 127.0.0.1>nul w32tm /config /manualpeerlist:"time.nist.gov" /syncfromflags:manual /reliable:yes /update w32tm /resync w32tm /resync w32tm /config /manualpeerlist:"time.windows.com" /syncfromflags:manual /reliable:yes /update w32tm /resync w32tm /resync

Terminate and delete_ Sandbox is optional