Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can i modify uptime of machine?

Posted on 2009-04-10
8
Medium Priority
?
3,193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1500 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
Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

 
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…
Suggested Courses

721 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