Utility for updating phishing URLs database from Phishtank
This program has 2 functions:
- Initialize database with prepared data from Phishtank
- Run as deamon and regularly query online Phishtank database and update our
Setup the project
- Run
docker-compose up -d
to start a database. - Run
npm install
command to install all dependencies. - Prepare database
npm run migrate
Initialising the database
If this is first run of a program, we can initialize database as following:
pino-pretty
is for formatting logging messages
$ node src/index.js -i -p CSV_DIRECTORY | pino-pretty
Fetching phishtank
You have to register on Phishtank to obtain API key and then store it into environmental
variable PHISHTANK_API_KEY
. Then you can run:
$ node src/index.js -q | pino-pretty
For more info consult help:
$ node src/index.js -h