Link to home
Start Free TrialLog in
Avatar of AJKBOC
AJKBOC

asked on

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.
Avatar of ai_ja_nai
ai_ja_nai
Flag of Italy image

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
Avatar of AJKBOC
AJKBOC

ASKER

i would need proof of that. i mean specific file, specific command.
ASKER CERTIFIED SOLUTION
Avatar of ai_ja_nai
ai_ja_nai
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AJKBOC

ASKER

of course i did not mean for every OS on the planet! Your answer though is quite acceptable and you deserve the points.
Thanks
I'd really like to know *why* you'd even want to do this.
ol' good time trial cracking?
Avatar of AJKBOC

ASKER

nop. online uptime contest maybe? :-)
But this won't make the 'jiffies' C command return a fake value.
Is this possible at all?