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: 492
Rept. Given: 489
Rept. Rcvd 439 Times in 180 Posts
Thanks Given: 853
Thanks Rcvd at 176 Times in 112 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: Germany
Posts: 300
Rept. Given: 111
Rept. Rcvd 64 Times in 42 Posts
Thanks Given: 178
Thanks Rcvd at 215 Times in 92 Posts
deepzero Reputation: 64
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 offline
VIP
 
Join Date: Jul 2016
Posts: 725
Rept. Given: 35
Rept. Rcvd 48 Times in 30 Posts
Thanks Given: 666
Thanks Rcvd at 1,053 Times in 478 Posts
chants Reputation: 48
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: 13
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 12
Thanks Rcvd at 4 Times in 4 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: 179
Rept. Given: 2
Rept. Rcvd 46 Times in 32 Posts
Thanks Given: 58
Thanks Rcvd at 350 Times in 116 Posts
DavidXanatos Reputation: 46
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 offline
VIP
 
Join Date: Jul 2016
Posts: 725
Rept. Given: 35
Rept. Rcvd 48 Times in 30 Posts
Thanks Given: 666
Thanks Rcvd at 1,053 Times in 478 Posts
chants Reputation: 48
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 44 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 4 Users Say Thank You to phono For This Useful Post:
cp74 (09-13-2020), 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting exe file information merrycosta General Discussion 1 01-24-2003 07:59


All times are GMT +8. The time now is 19:23.


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