Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2018
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. The following steps will reset the user to: admin and the password to: ubnt@1234
  2. User: admin
  3. Pass: ubnt@1234
  4. This was tested with version 5.5.19
  5.  
  6. Get MongoDB
  7. https://www.mongodb.org/dl/win32/
  8. OR 32 bits:
  9. https://www.mongodb.org/dl/win32/i386
  10.  
  11. I used this one:
  12. http://downloads.mongodb.org/win32/mongodb-win32-i386-2.1.2.zip?_ga=2.21740667.1374862506.1502735100...
  13. Unpack it and open a command prompt windows with administrator privileges, switch to the MongoDB’s bin folder
  14.  
  15. Connect to Mongo
  16. mongo --port 27117
  17. Issue Commands
  18. \\\\ To switch to the ace database
  19. use ace
  20. \\\\ This will show you the current content: (Yours will look similar to this)
  21. db.admin.find()
  22. { "_id" : ObjectId("5972094a81ce1f0c4d8af05e"), "last_site_name" : "default", "x_shadow" : "$6$448uNfVk$8R01UFv626/QfEdKjk2ynX7oZWVj3XfHdyFf4nJiqaEmgkhoaV/RT1OkybFUZlP6s3/S4RJwnXSHKVVWCsWh20", "name" : "rootadmin", "time_created" : NumberLong(1500645706), "email" : "email@email.com" }
  23. Copy the string and paste it to a text editor like notepad and make it a single line
  24. replace the value of “x_shadow” with this: (this is the hash for: ubnt@1234 )
  25. "$6$9Ter1EZ9$EUfo05Sa3Bj5hHc63SZd6/cn17MVrHqlEPtz/o1Uwxuv18ZySZu.4n04xUhZB12QExZA9MtkNTKWbQ455TkMG1"
  26. And the value of “name” with this:
  27. “admin”
  28. When you’re done your string should look like this:
  29. { "_id" : ObjectId("5972094a81ce1f0c4d8af05e"), "last_site_name" : "default", "x_shadow" : "$6$9Ter1EZ9$EUfo05Sa3Bj5hHc63SZd6/cn17MVrHqlEPtz/o1Uwxuv18ZySZu.4n04xUhZB12QExZA9MtkNTKWbQ455TkMG1", "name" : "admin", "time_created" : NumberLong(1500645706), "email" : "email@email.com" })
  30.  
  31. Switch back to Mongo db and issue this command with the string you just created
  32. db.admin.save({ "_id" : ObjectId("5972094a81ce1f0c4d8af05e"), "last_site_name" : "default", "x_shadow" : "$6$9Ter1EZ9$EUfo05Sa3Bj5hHc63SZd6/cn17MVrHqlEPtz/o1Uwxuv18ZySZu.4n04xUhZB12QExZA9MtkNTKWbQ455TkMG1", "name" : "admin", "time_created" : NumberLong(1500645706), "email" : "email@email.com" })
  33.  
  34.  
  35. You're done, try to login with
  36. User: admin
  37. Pass: ubnt@1234
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement