Add 'Unifi-password-reset.md'

This commit is contained in:
efrick 2023-03-30 12:46:53 -04:00
parent f16c5dbfd7
commit 8fc9fbff36

26
Unifi-password-reset.md Normal file
View File

@ -0,0 +1,26 @@
1) download the MongoDB from [here](http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2.4.14-rc0.zip).
2) Create a folder on the C drive ( passwordrecover )
3) Extract mongo.exe from the bin folder into the newly created C:\passwordrecover folder
4) WINDOWS + R and type cmd ( ENTER )
5) Go to the folder you just created
```shell
cd C:/passwordrecover
```
6) Run the following commands, those commands will prompt you with all the admin account.
```shell
mongo --port 27117
use ace
db.admin.find()
```
7) Now run the next command and replace <UserName> with the admin account.
```shell
db.admin.update( { "name" : "<UserName>" }, { $set : { "x_shadow" : "$6$ybLXKYjTNj9vv$dgGRjoXYFkw33OFZtBsp1flbCpoFQR7ac8O0FrZixHG.sw2AQmA5PuUbQC/e5.Zu.f7pGuF7qBKAfT/JRZFk8/" } } )
```
8) You can now login with your admin account and password password