Reverse Engineering Notes.md - fixes

This commit is contained in:
Oscar Krause 2022-12-20 05:39:17 +01:00
parent 5ee417825d
commit 1bdb4cf0a5

View File

@ -54,6 +54,10 @@ Command:
- `/etc/dls/config/decryptor/decryptor` - `/etc/dls/config/decryptor/decryptor`
```shell
docker exec -it <container-id> /etc/dls/config/decryptor/decryptor > /tmp/private-key.pem
```
``` ```
-----BEGIN RSA PRIVATE KEY----- -----BEGIN RSA PRIVATE KEY-----
... ...
@ -75,8 +79,9 @@ base64-content...
**Decrypt database password** **Decrypt database password**
``` ```
cat /etc/dls/config/dls_db_password.bin | base64 -d > /etc/dls/config/dls_db_password.bin.raw cd /var/lib/docker/volumes/configurations/_data
openssl rsautl -decrypt -inkey /tmp/private-key.pem -in /etc/dls/config/dls_db_password.bin.raw cat dls_db_password.bin | base64 -d > dls_db_password.bin.raw
openssl rsautl -decrypt -inkey /tmp/private-key.pem -in dls_db_password.bin.raw
``` ```
# Database # Database