Skip to content

InitRoot/leakMon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

About

very simple leak monitor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages