An old script for checking IP for the presence of MongoDB and checking rights, if the database is not closed by rights, then a check is made for the fields of interest.
The script is 2-3 years old, it works in one thread, if necessary I can rewrite it, add multithreading and Elastic, Couch, etc...