Giter Club home page Giter Club logo

lasagna's Introduction

lasagna

Lazy naxsi rules generator

Installation

Lasagna needs Perl (>=5.24) and the URI perl module to run. Just install the p5-URI package from your favorite package manager and run the make install target. You might need to use gmake when running OpenBSD.

# RHEL/CentOS
yum install perl-URI

# Debian
apt-get install liburi-perl

# OpenBSD
pkg_add p5-URI


# Install lasagna into /usr/local
make install

# Install lasagna into ~/.local
PREFIX=~/.local make install

Usage

To generate a ruleset, lasagna will read a stream from a nginx log file. You can let lasagna to open the stream providing the path to the file in your command-line or just pipe your logs to lasagna's STDIN. By default, lasagna writes rules to STDOUT. But you can redirect the output stream to a file using the -o option.

# Print ruleset generated from error.log
lasagna error.log

# Write rules generated from multiple files to mywebsite.rules 
cat /var/log/nginx/*.error.log | lasagna -o mywebsite.rules

lasagna's People

Stargazers

Ergin ALTINTAŞ avatar

Watchers

James Cloos avatar Ergin ALTINTAŞ 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.