FaisalUmair / udemy-downloader-gui

A desktop application for downloading Udemy Courses
MIT License
6.12k stars 1.72k forks source link

Where credentials are actually stored? #530

Open TomiGior opened 3 years ago

TomiGior commented 3 years ago

I was doing some research to test some code I've been thinking off.

But I got stuck trying to find the credentials location. I need to know where my credentials get stored at after I logged in for the first time, and if they were to be decrypted, which encryption/obfuscation algorithm is beign used.

I've readed the code (yes, the 2000 lines in total) but couldn't find where this is saved nor how.

Could you help me to find it please?

micalevisk commented 3 years ago

I don't think that your credentials are stored anywhere, just the session cookies are.

In linux they lived in ~/.config/Udeler (I think that this is due to app.getPath(name))

$ ls -l ~/.config/Udeler/
total 160
drwx------ 11 micael micael  4096 mai  2 17:18  ./
drwx------ 52 micael micael  4096 mai  2 17:17  ../
drwx------  3 micael micael  4096 mai  2 17:09  blob_storage/
drwx------  3 micael micael 24576 mai  2 17:10  Cache/
drwx------  4 micael micael  4096 mai  2 16:59 'Code Cache'/
-rw-------  1 micael micael 20480 mai  2 17:10  Cookies
-rw-------  1 micael micael     0 mai  2 17:10  Cookies-journal
drwx------  2 micael micael  4096 mai  2 16:59 'Crash Reports'/
drwx------  2 micael micael  4096 mar 26 20:38  databases/
drwx------  2 micael micael  4096 mai  2 16:59  Dictionaries/
drwx------  2 micael micael  4096 mai  2 17:05  GPUCache/
drwx------  3 micael micael  4096 mai  2 17:05 'Local Storage'/
-rw-------  1 micael micael  4646 mai  2 17:10 'Network Persistent State'
-rw-------  1 micael micael   132 mai  2 17:06  Preferences
-rw-------  1 micael micael 53248 mar 26 20:38  QuotaManager
-rw-------  1 micael micael     0 mar 26 20:38  QuotaManager-journal
drwx------  2 micael micael  4096 mai  2 17:10 'Session Storage'/
-rw-rw-r--  1 micael micael  1197 mai  2 17:10  Settings
-rw-------  1 micael micael  3624 mai  2 17:10  TransportSecurity