Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fate0/prvd
PHP Runtime Vulnerability Detection
https://github.com/fate0/prvd
php7
Last synced: about 1 month ago
JSON representation
PHP Runtime Vulnerability Detection
- Host: GitHub
- URL: https://github.com/fate0/prvd
- Owner: fate0
- License: bsd-3-clause
- Created: 2018-10-16T13:52:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-25T16:27:13.000Z (over 5 years ago)
- Last Synced: 2024-09-28T19:40:55.571Z (about 1 month ago)
- Topics: php7
- Language: PHP
- Homepage:
- Size: 996 KB
- Stars: 482
- Watchers: 10
- Forks: 69
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prvd
[![Build Status](https://travis-ci.org/fate0/prvd.svg?branch=master)](https://travis-ci.org/fate0/prvd)
![GitHub](https://img.shields.io/github/license/fate0/prvd.svg)[中文文档](https://github.com/fate0/prvd/blob/master/README.zh-CN.md)
### Table of Contents
* [Introduction](#introduction)
* [Installation](#installation)
* [Configuration](#configuration)
* [DVWA](#dvwa)
* [How it work](#how-it-work)
* [Ref](#ref)### Introduction
PHP Runtime Vulnerability Detection
![sentry_detail](https://raw.githubusercontent.com/fate0/prvd/master/artwork/sentry_detail.png)
### Installation
1. git clone to a non-web directory, assuming the directory is `/data/prvd`
``` sh
git clone https://github.com/fate0/prvd.git /data/prvd
```2. composer
``` sh
composer install
```3. install xmark extension
* [install xmark](https://github.com/fate0/xmark)
4. edit php.ini
* set `auto_prepend_file` to `/data/prvd/src/Entry.php`
* set `extension` to `xmark.so`
* for the rest of the configuration, please copy the contents of prvd.ini in this project### Configuration
edit `/data/prvd/src/Config.php`
``` php
define("PRVD_FUZZER_DSN", "");
define("PRVD_SENTRY_DSN", "");
define("PRVD_TAINT_ENABLE", true);
define("PRVD_TANZI", "xtanzi");
define("PRVD_LOG_FILE", "/data/prvd/prvd.log");
```Sign up for an account at [https://sentry.io](https://sentry.io) or install sentry server by yourself
### DVWA
You can use the docker to experience prvd
```sh
docker pull fate0/prvd-dvwa
docker run -d -e "PRVD_SENTRY_DSN={YOUR_SENTRY_DSN}" -p 80:80 fate0/prvd-dvwa
```The environment variables that can be set are
* `PRVD_FUZZER_DSN`
* `PRVD_SENTRY_DSN`
* `PRVD_TAINT_ENABLE`
* `PRVD_TANZI`More about `prvd-dvwa` can be seen [here](https://github.com/fate0/prvd/blob/master/dvwa/README.md)
### How it work
* [PHP Runtime Vulnerability Detection](http://blog.fatezero.org/2018/11/11/prvd/)
### Ref
* [xmark](https://github.com/fate0/xmark)