• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3408
  • Last Modified:

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.
0
AJKBOC
Asked:
AJKBOC
1 Solution
 
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
 
ai_ja_naiCommented:
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now