fixes #62 imei leak via esim LPA

This commit is contained in:
nestire 2025-04-07 14:48:13 +02:00
parent d3aa7ae988
commit c49f870a0c
No known key found for this signature in database
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}"