Giter Club home page Giter Club logo

detect-exploits's Introduction

detect-exploits Build Status

A simple bash script to scan for exploits in WordPress and Drupal.

Dependencies

Modern GNU grep and GNU find.

Install

make install

Usage

detect-exploits [OPTION]... DIR
A simple bash script to scan for exploits in WordPress and Drupal.

 Usage:
   detect-exploits /var/www/drupal
     Run all scans on the drupal directory.

   detect-exploits --scan-keywords /var/www/drupal
     Run the keywords scan on the drupal directory.

   detect-exploits --owner=foo --group=bar --web-group=baz /var/www/drupal
     Specify the file ownership fo the permissions scan.

 Options:
  --scan-keywords    Scan for odd keywords within PHP files.
  --scan-uploads     Scan for odd files in the uploads directory
  --scan-filenames   Scan for suspicious filenames
  --scan-duplicates  Scan for duplicate installations
  --scan-permissions Scan file permissions
  --owner            The owner of the system files during a file permissions scan.
                     Defaults to user running the script.
  --group            The group of the system files during a file permissions scan
                     Defaults to user running the script.
  --web-group        The web server group for generated files during a file permissions scan
                     Defaults to www-data, apache, or httpd.
  -f, --force        Skip all user interaction
  -q, --quiet        Quiet (no output)
  -v, --verbose      Output more
  -h, --help         Display this help and exit
      --version      Output version information and exit

Running tests

Install the development dependencies

make dev-install

Run all the tests using:

make test

Or you can cherry pick tests using bats directly

bats test/*.bats

detect-exploits's People

Contributors

oxyc avatar

Stargazers

Huub avatar  avatar Alberto Permuy Leal avatar

Watchers

 avatar Steven Nebo avatar Jean Valverde avatar James Cloos avatar Taro Morimoto avatar Christoffer Björkskog avatar Sebastian Östman avatar  avatar  avatar  avatar  avatar Tommy avatar Marcus Aschan avatar Shayan Abbas avatar Petter West avatar Robert Bokori avatar  avatar Kim Lehtinen avatar  avatar Samuel Granvik avatar Joni Uunila avatar  avatar  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.