Skip to content

Instantly share code, notes, and snippets.

@jatrost
Last active August 29, 2015 14:06
Show Gist options
  • Save jatrost/3b6cbdd1ae09d841e79f to your computer and use it in GitHub Desktop.
Save jatrost/3b6cbdd1ae09d841e79f to your computer and use it in GitHub Desktop.
# mongo
MongoDB shell version: 2.6.2
connecting to: test
> use hpfeeds
switched to db hpfeeds

> db.auth_key.find({"identifier": "mnemosyne"})
{ "_id" : ObjectId("XXXXXXXXXXXXXXXXX"), "identifier" : "mnemosyne", "subscribe" : [ "conpot.events", "thug.events", "beeswarm.hive", "dionaea.capture", "dionaea.connections", "thug.files", "beeswarn.feeder", "cuckoo.analysis", "kippo.sessions", "glastopf.events", "glastopf.files", "mwbinary.dionaea.sensorunique", "snort.alerts" ], "secret" : "YYYYYYYYYYYYYYYYYYYYYYYY", "publish" : [] }

> db.auth_key.update({"identifier": "mnemosyne"}, {"$push": {"subscribe": "wordpot.events"} })
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })

> db.auth_key.find({"identifier": "mnemosyne"})
{ "_id" : ObjectId("XXXXXXXXXXXXXXXXX"), "identifier" : "mnemosyne", "subscribe" : [ "conpot.events", "thug.events", "beeswarm.hive", "dionaea.capture", "dionaea.connections", "thug.files", "beeswarn.feeder", "cuckoo.analysis", "kippo.sessions", "glastopf.events", "glastopf.files", "mwbinary.dionaea.sensorunique", "snort.alerts", "wordpot.events" ], "secret" : "YYYYYYYYYYYYYYYYYYYYYYYY", "publish" : [] }

Also update the geolocation daemon for honeymap.

> db.auth_key.update({"identifier": "geoloc"}, {"$push":{ "subscribe": "wordpot.events" }})
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment