Sign inSign up

zsxsoft/mmp-server

By zsxsoft

•Updated over 6 years ago
Archived

mmp-server

Image
0

989

zsxsoft/mmp-server repository overview

⁠mmp-server

NOT STABLE!! Now it's just a framework for me, not yet deployed.

⁠What's mmp-server

mmp, means "MMP is a Monitor for PHP". As its name, it will monitor all the behavior of PHP code, includes File I/O, http/https requests, mysql queries. It can also take screenshots of pages.

⁠Installation

⁠By moby / Docker

The Dockerfile is based on ubuntu:16.04.

  1. Install moby(Docker)
  2. docker build . --build-arg="location=china" (If used location=china, it will uses mirrors in China.)
  3. sudo docker run --privileged -it -v /data/www/zblog-test/www/:/data/www/local/www --expose=3000 --env "DEBUG=*" CONTAINER_ID
⁠Manual install in Ubuntu 16.04

See Dockerfile and copy commands to bash...

Recommend Docker(Moby). See: #Installation

⁠Functions

  1. Log all file I/O of PHP.
  2. Decrypt https and log all http/https requests of PHP.
  3. Log all mysql queries.
  4. Log all network requests by browser.
  5. Log all JavaScript errors.
  6. Take screenshots with different resolution in browser.
  7. Parse Mysql slow log.

⁠HTTP Interfaces

Default port is 3000. Must have mmp-token=thisiskoadefaultverifytoken in HTTP Header.

⁠GET /get/{network|mysql|systemcall|slowlog}

Get network requests / mysql queries / system calls by PHP.

Slowlog is able only called exit.

⁠GET /get/{networklog|consolelog}

Get network requests / console data by browser.

⁠GET /get/screenshot?format=binary

Get a zip includes all screenshots.

⁠GET /exit

The first calls will stop all processes and parse slowlog, and you can GET /get/slowlog to get slowlog. And if all modules were all called, the second calls will terminate the program.

Tag summary

Content type

Image

Digest

Size

625.5 MB

Last updated

over 6 years ago

docker pull zsxsoft/mmp-server