Merge pull request #63 from nestire/main

fixes #62 imei leak via esim LPA
This commit is contained in:
l0nia 2025-06-24 09:12:18 +02:00 committed by GitHub
commit 866d7a7112
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -107,6 +107,9 @@ if [[ "$old_imei" == "$new_imei" ]]; then
else
mkdir -p /tmp/modem.1-1.2
echo "$new_imei" > /tmp/modem.1-1.2/modem-imei
# prevent imei leak via the LPA
echo "$new_imei" > /root/esim/imei
shred -u /root/esim/log.txt # unclear if the imei/imsi will be loged here, just a precaution
fi
echo "You should now reset the modem or shutdown the device."

View file

@ -54,6 +54,9 @@ else
sleep 5
mkdir -p /tmp/modem.1-1.2
echo "$new_imei" > /tmp/modem.1-1.2/modem-imei
# prevent imei leak via the LPA
echo "$new_imei" > /root/esim/imei
shred -u /root/esim/log.txt # unclear if the imei/imsi will be loged here, just a precaution
fi
logger -p notice -t blue-merle-toggle "Changed IMEI from ${old_imei} to ${new_imei}"