Giter VIP home page Giter VIP logo

defacement-monitor's Introduction

Definitions

  • Primary server:
    Server containing website data and md5sums and script p
  • website data:
    anything stored at /var/www/html
  • backup server:
    Server containing script s
  • md5sums:
    Contains md5sums of all files in website data
  • t:
    monitor interval

Steps

  1. Start execution of p first.
  2. p sees no md5sums, ∴ generates one. (p is capable of generating md5sums)
  3. Start execution of s
  4. s connects to p
  5. s sees no md5sums with itself, ∴ requests one.
  6. md5sums transferred ps
  7. Wait for t units of time.
  8. p resends md5sums to s
    • if new file received and all sums (except sums marked for change) in both files (old and new) match:
      ALL OK.
      Replace old md5sums with new.
    • else:

    Unauthorized change detected:

    • if unauthorized change detected:
      send emails, raise errors, evacuate city.
    • else:
      Go to step 7

defacement-monitor's People

Contributors

gunjanpb avatar

Stargazers

 avatar

Watchers

 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.