GithubHelp home page GithubHelp logo

i066088 / mod_dumpost Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danghvu/mod_dumpost

0.0 0.0 0.0 26 KB

Small and lightweight Apache module to log POST data of a HTTP request

License: GNU General Public License v3.0

C 97.24% Makefile 2.76%

mod_dumpost's Introduction

mod_dumpost

Small apache module to log body content of request (POST / FORM data). Data are written to error log by default. For example:

[Sat Dec 08 09:58:24 2012] [info] [client 1.1.2.2] ------------------------------4bc4ed022729\r\nContent-Disposition: form-data; name="f"; filename="poc.html"\r\nContent-Type: text/html\r\n\r\n
[Sat Dec 08 09:58:43 2012] [info] [client 1.1.1.1] a=100

Note: You can do the same with mod_security, use this when you want a quick and lightweight solution.

Installation:

make
make install

Configuration:

In httpd.conf (optional):

  • DumpPostMaxSize 1024: limit the size of a log entry to 1024 bytes (default value: 1048576 i.e. 1MB)
  • DumpPostHeaderAdd Cookie Content-Type: add HTTP Header to log together with POST (default value: None)
  • DumpPostLogFile: specify a custom file to write the log entry (other than error log)

Requirement:

  • apxs:
    • Ubuntu: sudo apt-get install apache2-threaded-dev, edit Makefile change apxs to apxs2
  • LogLevel of at least Info (not important if using DumpPostLogFile)

mod_dumpost's People

Contributors

danghvu avatar zaccheob 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.