Giter Club home page Giter Club logo

log_parser_web_app's Introduction

Log Parser Web App

Server log parser with python, running on Flask.

The flask app which parses the log and shows information about SQLi, remote file inclusion and web shells attacks. Some Features Including:

  • list of unique IP addresses
  • list of unique IP addresses with country and number of hits
  • list of all activity per IP address (can be filtered by this IP)
  • detect SQLi with found entries
  • detect remote file inclusion with found entries
  • detect web shells with found entries

Docker Setup

To running up this app with docker, you need list of these to be installed on your computer:

App Installation with Docker

Installation process:

  • clone this repo
  • from terminal, change to this project root folder
  • creating docker machine:
docker-machine create -d virtualbox flask-dev
  • check the installed docker machine:
eval "$(docker-machine env flask-dev)"
  • build the app with docker-compose:
docker-compose build
  • running up the app:
docker-compose up -d

(The -d flag is used to run the containers in the background)

  • get the ip of docker-machine:
docker-machine ip flask-dev

Development Guide

  • When you restart the computer you need to make sure that the docker-machine is running up. To check it, use command: docker-machine ls. Check if flask-dev state is running.
  • If it's not running, run the command docker-machine start flask-dev
  • When you make a change on the code, you need to rebuild with command: docker-compose up -d --build.
  • get the ip of docker-machine (see the last two points of installation guide) and visit.

User Guide

Home menu is consisting 3 main menu, List of All unique IP Addresses, List of All Entries and Upload Log File Entry.

On List of All unique IP Addresses menu, there are list of unique client ip address, country of ip address, and number of hits of the ip address. You can check all entry filtered by ip, just click the link below the ip.

On List of All Entries menu, there are activity on raw logs, analyze result of attack type which are sqli (sql injection), rfi(remote file inclusion), and web shell attack. You can filter the entry by clicking on the link or search by ip address on search bar with autocomplete.

On Upload Log File Entry menu, you can uploading log file to make an addition to the database. P.S please don't upload to big file for now (<20mb). I attach log example file on this project root folder for you if you wanna try to upload and see the result, the file is named practice.log.

log_parser_web_app's People

Contributors

alviandk avatar dependabot[bot] avatar

Stargazers

ps941 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.