Can i modify uptime of machine?

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.
LVL 2
AJKBOCAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ai_ja_naiConnect With a Mentor Commented:
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
 
ai_ja_naiCommented:
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
 
AJKBOCAuthor Commented:
i would need proof of that. i mean specific file, specific command.
0
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

 
AJKBOCAuthor Commented:
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
 
TintinCommented:
I'd really like to know *why* you'd even want to do this.
0
 
ai_ja_naiCommented:
ol' good time trial cracking?
0
 
AJKBOCAuthor Commented:
nop. online uptime contest maybe? :-)
0
 
slaviknCommented:
But this won't make the 'jiffies' C command return a fake value.
Is this possible at all?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.