|
Can I Spy on Another Mac User?I have been an avid reader for some time but I have a question. The kids all have computers now (we all have macs) and I was wondering if there was a way to check up on them every once in a while. We all have macs running OS X. and I have read the oriely 'control' your mac from afar. but I was wondering if there was a cool way to login screenshot and logout through SSH, I am the only admin so I can get their passwords, I was just wondering about the process. A very interesting question, and I'm sure there's a solution, actually. The key is a simple command-line utility included with Mac OS X called screencapture. Checking the man page for the command (in the Terminal application, type man screencapture) (you can find Terminal in Applications --> Utilities, in case you haven't used it before) (that's a lot of parens, too. I feel like I'm back programming LISP again) (eek!) there are two key flags you want to utilize: -S: In window capture mode, capture screen, instead of window Probably, you also want to point to the main monitor, in case there's more than one screen hooked up, in which case you'll also want to specify -m. The full command should look like this: screencapture -Smx screenshot.png
This would take a single screenshot and save it in the file "screenshot.png". Now just open up your home directory through Apple's standard file sharing capability and you should be able to refresh the directory occasionally, reopen this file, and you can see what they're doing. Of course, if you want to go a bit, um, overboard, you could turn this into a shell script that will run every "X" seconds, saving a new screenshot in a hidden directory. Like this: #/bin/sh
# Every few minutes take a screenshot, keep the last X around keeparound=10 # how many to keep around. Don't fill your disk! counter=1 screendir="/tmp/.captures" delay=300 # in seconds. 300 = five minutes if [ ! -d $screendir ] ; then mkdir $screendir chmod a+rwx $screendir fi while [ /bin/true ] do screencapture -Smx $screendir/capture-$current.png current=$(( $current + 1 )) if [ $current -gt $keeparound ] ; then current=1 fi sleep $delay done exit 0 I've tested this on my own system and it works great. I saved it as "capture.sh" and simply got it started with sh capture.sh &. Thereafter, every "delay" seconds the script took a screenshot, neatly squirreling away in /tmp/.captures for later analysis. If you're so inclined, you can modify it even further, but this coupled with you accessing the system remotely via either command line, ftp or Apple file sharing, you can easily see as many snapshot of what they're doing as you'd like. Remember, though, if you find anything incriminating you'll need to save it on your local system as everything is routinely overwritten as this script continues to chug along. I should mention that there's an ethical consideration here too. Should you tell your children you are actively monitoring their computer usage? Should you tell them what you're doing and inform them that if they want to use the computer they need to agree to this relatively benign surveillance? This is obviously an even greater issue if you launched this on the computer of a spouse or colleague: then you're moving into 'spyware' and there might well be legal implications. In any case, with your children it's more ethical than legal, but you should still think carefully about whether you want to tell them or not. Anyway, whether you go for the complicated script demonstrated here or just occasionally log in to their system, type "screencapture" and then open it remotely, you can see that there is indeed a solution to your problem on the Mac.
Categorized:
Mac OS X Help
(Article 7310,
Written by Dave Taylor)
Tagged: mac os x, monitoring, screen capture, screenshot, surveillance Previous: How do I enable trackpad tap clicking on my MacBook Pro? Next: How much RAM does my Windows PC have? Subscribe!
Hi Dave how can I tell if someone is doing this to me ? thanks I use Apple Remote Desktop. A little on the pricey side. You can see what is going on at all times on multiple computers. err i just watched a podcast called screencasts online and it had a pretty neat program on there for this that wasn't too pricey check it at: http://www.screencastsonline.com/sco/Shows/files/SCO0091-spyme2.html (ps im not an advertiser for it i just thought that it would help) MoJo JoJo Posted by: Johnny at May 22, 2007 1:25 PMDave I manage to get the screenshot to work but when I tried typing in the more complicated scipt in the Terminal I get error messges.. cleary I am missing something. Do I need to prewrite the script somewhere and paste it? If so I am not sure what all in your posting is required and what is suggestions.. Posted by: memouse at February 27, 2008 2:17 PMWhy bother with this? Why not simply trust your kids? Chances are that if they are looking at pornography, they have questions...questions they clearly can't ask you because you wouldn't think they were hiding something from you, otherwise. Posted by: Michael H at March 8, 2008 12:12 PMYou can try to use this invisible Mac Keylogger called "Perfect Key logger for Mac" - see www.blazingtools.com/mac_keylogger.html It offers good value for the price. Posted by: keylogger's fan at March 28, 2009 1:25 AMcan someone tell me is there some spy program for mac that can be installed remotely (i mean from distance via attachment) need to check on my husband's mac.. usually he leaves is at work, thanks regards Hi, how can I get this script to automatically run every time a certain person logs in? It would have to silently run in the background with no way to detect it. So far, it works great but every time the computer reboots, one must run "sh capture.sh &" in the terminal all over again. Posted by: macspy001 at September 27, 2009 7:39 PMWelll.... I'm a bit uncomfortable with this, but will go this far: you can run a script in a loop grepping the output of "who" to find when someone logs in, then trigger another script... Posted by: Dave Taylor at September 27, 2009 10:18 PMHere's my solution based on your work: #/bin/sh maindir=$HOME"/.hiddendir/" while [ /bin/true ] screendir=$(echo $maindir/$mnth/$day|sed 's/\/\//\//g') if [ ! -d $screendir ] ; then done I used this solution to wrap it into a hidden .app which is suitable as a startup item: Lion users can add scripts directly to their startup items. Posted by: Martin at October 30, 2011 10:00 AMI have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
Recommended
Recent Entries
Search
I Need Help!
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and RSS Feeds Building Web Site Traffic Business and Management CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above Facebook Help Google Plus Help HTML and CSS Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Mac OS X Help Pay Per Click (PPC) Advertising Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help WordPress Help |