Quote:
Originally Posted by Kindleschokolade
Edit / Update:
Is there a way to save this manually connected wifi network so the kindle will always connect to it?
I found wifid.conf and wifilocker.db in /var/local/system/ but these files are not too helpful it seems.
|
After decompiling `wifid`, I recovered the encryption scheme used for `wifid.conf`.
AES-CFB-128 with the reverse device_serial_number. (you can find at Settings - Device Option - Device Info)
Here is the python code:
```
# pip install pycryptodome
from Crypto.Cipher import AES
# cat /proc/usid
dsn = "G0016T0292530AGM"
key = dsn[::-1].encode() # reverse
iv = key
# /var/local/system/wifid.conf
with open("wifid.conf", "rb") as f:
data = f.read()
ciphertext = data[7:] # skip "AES+128"
cipher = AES.new(key, AES.MODE_CFB, iv=iv, segment_size=128)
plaintext = cipher.decrypt(ciphertext)
print(plaintext.decode("utf-8", errors="replace"))
```