Giter Site home page Giter Site logo

leakmon's Introduction

leakMonitor

Monitors leaked data. Framework to be built on.

Disclaimer

I take not responsibility for your use of the software. Development is done in my personal capacity and carry no affiliation to my work.

Outline

The app has a script that should run periodically (daily atm) to search for potential credential leaks. At the moment Github and Google searches are included. Don't expect much on the code, it's very basic, especially the PHP (on which I'm very noob). The folder structure is outlined below:

image

> db -- hosts the database
> script -- monitor script is stored here
> web -- web frontend

Setup

To setup the script you must have apache2 installed with PHP for the front end to work, the below assumes this has already been set up. If your leakMonitor page is blank check that you have php-sqlite3 installed.

sudo apt-get install php-sqlite3

Let's get it onto our system

cd ~
git clone XXXXX
cd leakMonitor
python3 -m pip install requests beautifulsoup4 colorama

Set up the script to run daily at 2am

nano /etc/cron.daily/monitor

#!/bin/bash
python3 ~/leakmonitor/script/monitor.py ~/cron.log 2>&1

test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; }

Set up the web frontend, change folders as required

sudo ln -sT ~/leakmonitor/web /var/www/leakmonitor
sudo chgrp www-data ~ ~/leakmonitor/
sudo chgrp www-data ~/leakmonitor/web
chmod 710 ~ ~/leakmonitor/
sudo chmod -R 755 /var/www/

Let's configure the script now, example configuration is given below

{
    "Github":[{
    "enabled": true,
    "gitfilenames":[ 
        "app.config",
        "application.properties",
        "appSettings.config",
        "settings.json",
        "web.config"],
    "gitwords":"password",
    "domains": ".com",
    "gitauth": "ghp_XXXXXXXM5ZhK",
    "gitpages": "3"
    }    
    ],
    "Google":[{
        "enabled": true,
        "sitesinurl":[ 
            "anonfiles.com",
        "throwbin.io"],
        "domains": [
            ".com",
            ".org"],
        "googlekey": "",
        "googleresults": "250",
        "googlepages": "1"
        }    
        ]                                      
}

ToDo

  • Settings editor in front end
  • Multiple domain searches on GitHub
  • Document template for new sites

leakmon's People

Contributors

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