Just curious, Can you fake an uptime
, for instance increase it to 10 years?
I have tried changing system time, and it won't do this trick.
Yeah, you should be able to attach a gdb to the running kernel, and hack the uptime value. You'd need to know where it was kept, and have a symbols file. I am assuming here, that uptime is held in something statically allocated.
Alternatively, write a small kernel module which hacks the uptime when you load it (and immediately unloads again).
Have a look at this utility: UptimeFaker.