github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tomas / prey

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 62
    • 24
  • Source
  • Commits
  • Network (24)
  • Issues (6)
  • Downloads (5)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (8)
    • current_status
    • fixes
    • launchd
    • location
    • master ✓
    • switch_http_status_activation
    • web_service
    • windows_service
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Prey is a simple yet powerful application for tracking stolen computers. — Read more

  cancel

http://preyproject.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Really updated README 
tomas (author)
Tue Feb 09 12:51:28 -0800 2010
commit  9961306a0f4ec2234e3904541a64efc18231ffeb
tree    1c5ad9d285ecf4b627234d92481686df34b73389
parent  5f94354f61a75153bd0d9f62990b3d5a6e0ed104
prey /
name age
history
message
file CHANGELOG Tue May 05 23:37:33 -0700 2009 Separated Mac & Linux functions. Fixed Mac wifi... [Tomas Pollak]
file LICENSE Tue Jun 23 01:12:27 -0700 2009 Finished initial modularation, Report and Alert... [Tomas Pollak]
file README Tue Feb 09 12:51:28 -0800 2010 Really updated README [tomas]
file TODO Tue Oct 20 15:47:40 -0700 2009 Added version call from prey.sh [tomas]
file config Thu Oct 15 12:30:46 -0700 2009 Added missing # in config file [tomas]
file configure.py Sun Oct 11 23:58:17 -0700 2009 EXTREMELY IMPORTANT!! DEFAULT ACTIVATION CODE I... [tomas]
directory distribution/ Fri Dec 18 11:56:07 -0800 2009 Added Win patch.exe binary [tomas]
directory lang/ Mon Oct 12 00:23:17 -0700 2009 Added email notice so that standalone users are... [tomas]
directory lib/ Wed Aug 19 13:37:27 -0700 2009 Removed Wifi config stuff since we're not gonna... [Tomas Pollak]
directory pixmaps/ Sun Oct 11 19:55:33 -0700 2009 Updated Prey pixmap for Prey configurator [tomas]
directory platform/ Mon Dec 28 11:21:58 -0800 2009 Correct check for capture_video param [tomas]
file prey.sh Fri Dec 18 11:26:35 -0800 2009 Added 401 and 403 as possible HTTP responses fr... [tomas]
file version Fri Oct 09 11:47:47 -0700 2009 Added separate version file. We're now in 0.3.3... [tomas]
README
##############################################
# Prey - Track down your stolen laptop
# http://preyproject.com
# A project by Tomas Pollak
##############################################

Prey is a lightweight application for tracking your stolen laptop.

It runs in Windows and *NIX systems as well (Mac, Linux). It is licensed
by the GPLv3 which means you can do just about anything with it.

##############################################
1. How it works
##############################################

The script runs at a specified interval in your machine, and checks
for a specified URL on the web. If the URL does not exist it means the
computer/laptop has been stolen, and thus goes through the information
gathering routine and sends all that info through to a previously defined
email address. You can also not define a URL and in that case the program
will send the data every time it runs, although it is *not* recommended.

Since 0.3.3, you can use a web control panel (control.preyproject.com)
to manage your computer's state, as well as toggling different modules for
triggering certain behaviours remotely. In this case you don't have to
worry about the URL thing since it takes care of that for you. You only
need to register and insert the API and Device keys in the Prey
configuration.

##############################################
2. Installation
##############################################

 -- Windows, Mac & Ubuntu Linux users

Download the package/installer and run it.

Once all files are in place you’ll need to configure Prey, where you’ll
be able to choose between both operation modes. In case you want to use
Prey along with the control panel (recommended), you’ll have to register
and add your device to obtain your API and Device keys. Prey needs them
both so make sure you add them correctly.

If you want to use Prey in an independent way, you’ll have to set up your
mail server (SMTP) settings. Sometimes email sending doesn’t work at once,
so please try using a different target mailbox just in case — in fact
that’s how the problem generally gets fixed.

 -- Linux users (not Debian/Ubuntu)

Once you’ve downloaded the package, unzip it and move all the contents to a
folder of your choice (we use /usr/share/prey). Then you need to open up the
config file and change your settings according to your configuration. If
you’re using the Control Panel, then you only need to insert your API and
Device keys; otherwise you need to set up your SMTP server settings.

Finally, you need to add a crontab entry for root. You can do this by typing
the following in a terminal:

$ (sudo crontab -l | grep -v prey; echo "*/20 * * * * /usr/share/prey.sh > /dev/null") | sudo crontab -

Note: You should use the full URL in Prey's setup, such as
http://preyproject.com (not just preyproject.com).

##############################################
3. Requisites for Linux
##############################################

Mac comes with everything needed to run Prey. However Linux users should make
sure they have the following installed: (note the installer does this
automatically!)

  o curl / wget
  o scrot or imagemagick (for screenshot capture)
  o streamer (for webcam capture) --> in Fedora the xawtv package includes it
  o Perl libs IO::Socket::SSL and NET::SSLeay

##############################################
4. Usage
##############################################

The idea is that when your laptop gets stolen -- hopefully never, that is --
you should immediately activate Prey, by declaring the device as missing
in the Control Panel, or by deleting the URL you specified in Prey's
configuration. This depends on the operation mode (post method) you set up
when installing Prey.

Prey expects a status code 404 to run. If it receives a status 200 it will
simply shut down and wait for the next interval to check the URL.

##############################################
5. Acknowledgements
##############################################

Prey is a collaborative project which has kept alive thanks to the help of
diverse contributors, specially these amazing people:

  o Diego Torres - http://warorface.com
  o Juan Carlos Mardones - http://juanmardones.com
  o Newstart/MKHCB
  o Rodrigo Linfati - http://linfati.cl
  o Michael Smith
  o Pablo Poo

Prey also works thanks to Brandon Zehm's excellent command-line SMTP client
and Axel Bauer's iSightCapture program for capturing pictures on the
Mac. And of course, a bunch of other powerful open source utilities.

Command line SMTP client: http://caspian.dotconf.net/menu/Software/SendEmail
iSightCapture: http://www.intergalactic.de/pages/iSight.html

--
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server