Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2020, 00:01
wilson bibe wilson bibe is offline
VIP
 
Join Date: Nov 2012
Posts: 443
Rept. Given: 477
Rept. Rcvd 439 Times in 180 Posts
Thanks Given: 395
Thanks Rcvd at 156 Times in 97 Posts
wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499
An information

Hello, Is there any way to fix a certain date on the PC boot? Manually I can set that date at any time, however what I seek is to fix a date permanently, thank you in advance for any suggestion.
Reply With Quote
  #2  
Old 07-03-2020, 05:19
deepzero's Avatar
deepzero deepzero is offline
VIP
 
Join Date: Mar 2010
Location: Europe
Posts: 239
Rept. Given: 100
Rept. Rcvd 60 Times in 38 Posts
Thanks Given: 103
Thanks Rcvd at 112 Times in 59 Posts
deepzero Reputation: 60
Just set it manually in the BIOS? You will probably also have to disable time syncing with internet in Windows. If the problem is that the PC doesnt remember the date, the battery on your mainboard might be empty.
Reply With Quote
The Following User Says Thank You to deepzero For This Useful Post:
wilson bibe (07-03-2020)
  #3  
Old 07-03-2020, 11:07
chants chants is online now
Family
 
Join Date: Jul 2016
Posts: 555
Rept. Given: 5
Rept. Rcvd 35 Times in 21 Posts
Thanks Given: 468
Thanks Rcvd at 833 Times in 390 Posts
chants Reputation: 35
If you dont need the clock to tick after boot then battery removal is th quick solution.

I think to not have to manually do it in BIOS since you say every boot back to same time, that well BIOS modding is the best but an overkill method. Not only reversing the BIOS understanding the time module, finding some space for your patch and such but also flashing it when it's not properly packaged or signed or what other restrictions are there. Any mistake and the machine is bricked, a laboratory must reflash the ROM.

If you are loading Windows then make a Kernel driver and set it to boot priority to make it early in the boot process. You might have to turn off driver signing enforcement if you do not have an authenticode certificate to sign it. Probably the driver will be very short on code but I do not know what kernel calls or effectively BIOS interrupts are needed to do it. Obviously you won't use WinAPI here.
Reply With Quote
The Following User Says Thank You to chants For This Useful Post:
wilson bibe (07-03-2020)
  #4  
Old 07-04-2020, 01:53
silver silver is offline
Friend
 
Join Date: May 2017
Posts: 11
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 12
Thanks Rcvd at 5 Times in 5 Posts
silver Reputation: 0
If you are booting via UEFI, try insert an UEFI module ;~)
Reply With Quote
The Following User Says Thank You to silver For This Useful Post:
wilson bibe (07-04-2020)
  #5  
Old 07-04-2020, 02:30
DavidXanatos DavidXanatos is offline
Family
 
Join Date: Jun 2018
Posts: 115
Rept. Given: 1
Rept. Rcvd 25 Times in 18 Posts
Thanks Given: 32
Thanks Rcvd at 233 Times in 77 Posts
DavidXanatos Reputation: 25
Is the clock integrated into the chip set or a standard standalone chip on the main board?

if its the later than its probably connected via I2C or SPI, you could solder in an Arduino to emulate that chip and instead of it always return a fixed date.
Reply With Quote
The Following User Says Thank You to DavidXanatos For This Useful Post:
wilson bibe (07-04-2020)
  #6  
Old 07-04-2020, 12:54
chants chants is online now
Family
 
Join Date: Jul 2016
Posts: 555
Rept. Given: 5
Rept. Rcvd 35 Times in 21 Posts
Thanks Given: 468
Thanks Rcvd at 833 Times in 390 Posts
chants Reputation: 35
Oh if booting by MBR then write code in a few bytes to do it load sector one and then jump to that code. In sector one, put your original MBR. Of course it will confuse partition utilities if you also dont write the partition table also at the end of this sector but that's also doable. It will still confuse MBR utilities but that's the price for this method.

As for the UEFI idea, disabling secure boot and going that route is interesting but I imagine building a proper UEFI module which will chainload the original UEFI module is no easy task.

Both of these methods although early in the boot process are more difficult than writing the kernel driver.

Of all ideas so far, many are novelty or impractical or lead to certain subtle disfunctions except the kernel driver. If you want a frozen clock not just a reset on boot one, then taking out the battery is the way to go. Soldering an arduino to your mainboard in a good machine or playing with MBR or UEFI loaders or BIOS modding would certainly lead to an article, a video or source code I'd love to see
Reply With Quote
The Following User Says Thank You to chants For This Useful Post:
wilson bibe (07-04-2020)
  #7  
Old 07-18-2020, 03:20
phono phono is offline
Friend
 
Join Date: May 2016
Posts: 17
Rept. Given: 0
Rept. Rcvd 5 Times in 3 Posts
Thanks Given: 5
Thanks Rcvd at 42 Times in 10 Posts
phono Reputation: 5
Just to add one other possibility, you could use VMware and disable all time synchro in the OS and in the VM editing the .vmx file (google should help out):

rtc.startTime = "1514811661"
time.synchronize.continue ="FALSE"
time.synchronize.restore = "FALSE"
time.synchronize.resume.disk = "FALSE"
time.synchronize.resume.memory = "FALSE"
time.synchronize.shrink = "FALSE"
tools.syncTime = "FALSE"

rtc.startTime is in seconds from "Jan 1 1970 00:00 UTC"
Reply With Quote
The Following 3 Users Say Thank You to phono For This Useful Post:
val2032 (07-18-2020), wilson bibe (07-18-2020), WRP (07-18-2020)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 09:02.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX
( 1998 - 2020 )