Combine lists of IPs from different sources into a single, minfied list.
{
"password": "supersecretpassword", // The password used for configuring the tool through the web interface
"add": [
// URLs of IP lists to add to the combined list
"https://raw.githubusercontent.com/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst",
"https://rules.emergingthreats.net/blockrules/compromised-ips.txt"
],
"remove": [] // URLs of IP lists to exclude from the combined list
}
Show this list of routes
Add or remove addlists and removelists from urls
Get the full list of IPs in plaintext
Get the time (in seconds) that it takes to generate the list
Potato Masher can be run just like any other flask app.
One simple way to run it is with Gunicorn. Install gunicorn with sudo apt install gunicorn
, and run gunicorn -w 4 app:app
in the project directory, replacing 4 with the number of worker processes to use.
flask
netaddr
requests