Faking the Uptime in Linux
If, for whatever reason, you need to fake the Linux server uptime, there is a hacked kernel module you can use. The instructions are below.
cd /tmp ; wget https://github.com/dkorunic/uptime_hack/archive/master.zip ; unzip master.zip ; cd uptime_hack-master ; make; insmod uptime_hack.ko uptime=0; echo 1020210 > /sys/module/uptime_hack/parameters/uptime ; echo y > /sys/module/uptime_hack/parameters/hideme ; uptime
Replace the “1020210” string with a number where 1 is approximately 1001 seconds, thus 1020210 means uptime of about 11830 days.
No Comment »
1 Pingbacks »
[…] you may need to change system time first, or use some other trick. Here’s a cool one: “Faking the Uptime in Linux“. […]