Giter Club home page Giter Club logo

guardianproject.github.com's People

Contributors

otr4j-travis-ci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

guardianproject.github.com's Issues

Self-Hosted Prey

mk [email protected] wrote:

I took a look at the XML protocol Prey uses to communicate with the Control Panel server yesterday and created a very simple PHP script to let you duplicate that functionality using your own web server.

I did not write a GUI yet and as of now it gets its configuration from a hard-coded array (though you could pull it from a database with less than 10 lines of code). Uploaded reports also simply get stored in a folder on the server (though you could easily attach everything to an email and send it out using something like Rmail for PHP).

To get the scripts working on your own server, download the two attached files and place them in a folder on your web server. Inside that folder, create a folder called uploads and chmod 777 it. In your web server configuration, alias /devices to /your/folder/devices.php (e.g. for Apache: Alias /devices /var/www/prey-server/devices.php; if you're using mod_rewrite instead of mod_alias or are using a different web server, you may need to edit line 7 in devices.php to point it at the correct environment variable that contains the request URL from which the script can extract the device key).

Then, install Prey in Control Panel mode and edit the config file to point check_url to your own server (e.g. check_url='http://prey.myserver.zz') and set device_key to something that the PHP script can use to identify the client (api_key also needs to be set to something, but I'm not sure where it actually gets used). No other changes should be necessary (auto_connect='n', missing_status_code='404' and post_method='http' should be default).

If anybody wants to extend my scripts, feel free to do so, however I'd appreciate if you could upload your new mdofications to this forum as well. To duplicate Prey's "official" Control Panel, we'd need to pull the device settings from a database, send out the uploaded reports by email and write a web GUI to update the stuff stored in the database. But for a single client, my scripts are probably sufficient and for any other use they should be a good starting point.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.