Your shopping cart is empty

Script Tool against directory traversal security vulnerability

PHP auto indexer: the tool against directory traversal (observing) security vulnerability. It recursively adds a index.php file in all given directories.
Tool against directory traversal security vulnerability
 
Download
28
 

Description

Short description

The tool against directory traversal (observing) security vulnerability. It recursively adds a index.php file in all given directories.

How to use

Run from a console:

php index.php (--add or --remove) (The directory path for recursively adding or removing the index.php) [The template path for adding the index.php file]

Example #1: adding new index.php files without overwrite existing one.

php index.php --add ../../.. ./templates/redirect-to-previous-directory.php

Example #2: cleaning a directory of old index.php files.

php index.php --remove ../../..

Available templates for index.php

These are templates for popular methods to prevent directory traversal:

  • The template error-404.php is used to show error 404 - a page not found.
  • The template redirect-to-previous-directory.php is used to do the redirect to a previous directory.

Installation

Just download the archive and use the tool by described instruction.

You can also use this tool in your project by adding the dependency directly to your composer.json file:

"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/zapalm/autoIndexer"
  }
],
"require": {
  "php": ">=5.2",
  "zapalm/autoIndexer": "dev-master"
},

How to help the project grow and get updates

  1. Become the patron or support me by Flattr to help me work more for supporting and improving this project.
  2. Contribute to the code (give the star to the project, report an issue).
  3. Write a review in the comments tab.

Data sheet

  • Including documentation: no
  • Version: 1.0.1 (2019-09-23)
  • License: Open source license
  • Product type: Script

There are no comments for this moment.