Foscam VMS not showing device username/password
I changed a username/password to of one of my foscam devices, which I forgot to write down. The password was stored in the 'Foscam VMS' application, how-ever the GUI did not allow me to retrieve it.
Luckily for me the application was written in .NET and was very well debug-able. With tooling like ILSpy and dnSpy, the the database was found to be SQLite with encrypting using Legacy_CryptoAPI, which is deprecated/removed.
Wrote some glue-code (see attached) to remove encryption from the database. The decryption password was stored plain text in code.
Next browsing the database with SQLite Browser and mission accomplished.
Attachments
- MyApp.csproj (1 kB)
- Program.cs (1 kB)
Download as: plain text
