Giter Site home page Giter Site logo

hardik05 / hacking-detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from comonsoft/hacking-detector

0.0 0.0 0.0 12 KB

Fast and powerful PHP script, used in preference with a cron job, to detect files or directories which have been added or modified since the previous execution of the script. Sends an email report with all changes. Great PHP script for detecting hacking, unauthorized files modification, web access violation. No database and no file storage, standalone PHP script.

License: GNU Lesser General Public License v3.0

PHP 100.00%

hacking-detector's Introduction

hacking-detector

Fast and powerful PHP script, used in preference by a cron job, to detect files or directories which have been added or modified since the previous execution of the script. Sends an email report with all changes. Useful PHP script for detecting hacking, unauthorized files modification, web access violation. No database and no file storage, standalone PHP script.

Requirements

PHP 5.3

Supported report languages

FRench ENglish

Installation

Change constructor parameters according to your configuration and just upload the file check4change.php in the directory of your choice in your web server.

Security recommandation

We recommend you to create a folder outside the root of your website. This will make access to the script to potential hackers more difficult.

Usage with cron

Simply run the script directly without parameters. Note that some environments require to specify PHP on the command line.

php -f /my/path/check4change.php
php-cli -f /my/path/check4change.php
/usr/bin/php5 -f /my/path/check4change.php

Configure

To configure the script according to your host, email, interval and report language, just change parameters to the following constructor and method.

$scan = new scanDirectory( dirname(__DIR__), 'FR');
$scan->MailReport( '[email protected]', '[email protected]', 'Alert modified: www.yoursite.com');

###Samples Scan from parent directory every 10 minutes

$scan = new scanDirectory( dirname(__DIR__), 'EN', 600);

Scan specific path every 5 minutes

$scan = new scanDirectory( '/home/www/mydir', 'FR', 300);

Scan specific path every 5 minutes and exclude directories

$scan = new scanDirectory( '/home/www/mydir', 'EN', 300, array('cache','temp'));

hacking-detector's People

Contributors

comonsoft avatar

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.