[quote]lixy wrote:
Why would anyone buy that piece of software? If you know the guy is going online at some point, then you could ssh to it which gives you total control over your machine.
If all you need is an IP and a pic of the guy (assuming it has a built-in cam), you could get away with a basic script to do just that.
It’d go something like this:
[i]#!/bin/bash
Turn on camera
sudo echo 1 > /proc/acpi/asus/camera
Waiting for camera to settle up
until [ -a /dev/video0 ] ; do
sleep 1
done
Start mjpg-streamer in the backgroun
LD_LIBRARY_PATH=/usr/lib/mjpg-streamer/plugins mjpg_streamer -b -i “input_uvc.so -r QVGA -f 5 -y” -o “output_http.so -w /usr/lib/mjpg-streamer/www/”
Make 5 snapshots
for (( i = 0; i <= 5; i++ ))
do
sleep 1
wget -q -O eph-date +%F-%H-%M-%S-%N-snapshot.jpg http://localhost:8080/?action=snapshot
done
Get external IP
wget -q -O eph-date +%F-%H-%M-%S-%N-whatismyip.html http://www.whatismyip.com
Zip it all up
zip -P mysecretpassword zip-eph-date +%F-%H-%M-%S-%N.zip eph-.
Load the file to some ftp
UPASSWD=“myuser”
USER=“mypass”
ftp -i -v -n 55.555.555.555 < # server IP eg
user $USER $UPASSWD
binary
send /zip-eph-xx.zip /whosthethief.zip[/i]
Hide the file in your startup directory and you’re all set.
How bloody hard is that? Well, unless you use some restrictive crappy OS…in which case, you might as well pay for the gimmick.[/quote]
I don’t have your scripting skills, but that’s a unix script that won’t run in windows which I think is your point.
I use Putty quite a bit for SSH stuff, not all of us can be comand line cowboys, but you might have a hard time chasing down the machine if they are behind a decent NAT device which is actually somewhat likely nowadays.
What’s funny is on a Linux box they would probably start it up, not be able to get in and wind up sitting there befuddled long enough for the script to run and you could just check the FTP server every so often and see if anything’s there.
I do recognize the commands to load the driver, start the camera and the motion jpg codec stream to what looks like a local web service of some kind.
Then we take the snaps at intervals I don’t recognize. Run wget as a local service on port 8080 (spiffy) which appears to be used to move the files to the ftp server after they’re compressed in a protected zip file.
Use the ip address previously obtained from wget for whatsmyip.com contained in an html file which may not be right because if it could be trusted to be correct in the file it’s probably static and you could just be put it in the script.
Login to the ftp server and upload the file.
Something in this ballpark somewhere. If not be gentle with me.
I had to take a shot, but I have a feeling this isn’t a strictly functioning bug free script or you are one scary dude if you threw it together off the top of your head.