Solved

Can i modify uptime of machine?

Posted on 2009-04-10
8
2,871 Views
Last Modified: 2012-05-06
Hello all,

I wanted to know if there is a way to modify a machine's uptime. For example when i issue the command     #uptime on a solaris box, is it possible to get fake results? Question goes for any OS.
0
Comment
Question by:AJKBOC
8 Comments
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24114328
Of course yes, everything if fakeable. These programs just look up a place where the OS wrote the start date of the system on power up. You can fake the uptime program by creating a new uptime command and overwriting the old one; the new one reads the information to be displayed  from a file hidden somewhere. the user will never tell the difference
0
 
LVL 2

Author Comment

by:AJKBOC
ID: 24114372
i would need proof of that. i mean specific file, specific command.
0
 
LVL 16

Accepted Solution

by:
ai_ja_nai earned 500 total points
ID: 24114439
For every OS of the planet? Are you kidding? Every OS has its own method. Beside that, the information you want to know is not written on disk, but in RAM, so it's not even searchable.

I can give you some hints for Linux, which I know: craft a uptime program on your own, which spits out a fixed line. Find the uptime command on filesystem (it should stay on /usr/bin/uptime), rename it in uptime.old and put the fake in its place. Every time the user type 'uptime' your program will be used.

Solaris and MacOSX should work more or less the same way. Windows it's a mistery.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 2

Author Comment

by:AJKBOC
ID: 24114450
of course i did not mean for every OS on the planet! Your answer though is quite acceptable and you deserve the points.
Thanks
0
 
LVL 48

Expert Comment

by:Tintin
ID: 24119555
I'd really like to know *why* you'd even want to do this.
0
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24119907
ol' good time trial cracking?
0
 
LVL 2

Author Comment

by:AJKBOC
ID: 24128063
nop. online uptime contest maybe? :-)
0
 
LVL 1

Expert Comment

by:slavikn
ID: 26413469
But this won't make the 'jiffies' C command return a fake value.
Is this possible at all?
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question