guardianproject / guardianproject.github.com Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://guardianproject.info
Home Page: http://guardianproject.info
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.
Need a FreeSWITCH instance for CSipSimple extensions.
It keeps telling me I can't connect to ip address
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.