nsrllookup is a Web API built with Python and Flask. It exposes a route to lookup a single MD5 hash and returns "known" or "unkown".
Service | main |
---|---|
Quality | |
API | |
SVR | |
This docker service is based on nsrlsvr & nsrllookup-python by rjhansen.
You can use docker-compose.build.yml
to build, test and run your own nsrllookup service.
Build API and run tests
docker-compose -f docker-compose.build.yml up --build api-test &&
docker-compose -f docker-compose.build.yml rm -fsv
Prepare the environment. (do this before running any other services)
docker-compose -f docker-compose.build.yml up svr-prepare &&
docker-compose -f docker-compose.build.yml rm -fsv
Follow the container log.
Run it!
docker-compose -f docker-compose.build.yml up -d api
Prepare the environment. (do this before running any other services)
docker-compose -f docker-compose.prod.yml up svr-prepare &&
docker-compose -f docker-compose.prod.yml rm -fsv
Follow the container log.
Run it!
docker-compose -f docker-compose.prod.yml up -d api
Wait for the services to become available.
The nsrllookup-svr service takes some time to load the NSRL RDS hash set. The API service uses docker-compose-wait to wait for nsrllookup-svr to be fully up and running. It exposes port 5000 once finished.
Send your MD5 hash to http://<hostname>:5000/check/<hash_value>