cid_master

Only for use in educational purposes!!!

Github repository page: https://github.com/JRazor22/cid_master

General

You can use this script to change SD Card cid number!

This script work with Ubuntu 64-bit! To use this script you must have root privileges!

Not every SD Card has a changeable cid number! SD Cards that have changeable cid number are some of Samsung EVO cards!

To be able to read and change the SD Card cid number, you need an SD card reader connected via PCI to your host computer. This is not possible with an external SD Card reader connected via a USB port. Even not all notebooks with build-in SD Card readers can read SD Card cid number, because SD Card reader is not connected via PCI. Before using the script please check your SD Card reader connection.

To use this script you need Python3!! Python3 Install instractions.

What is cid?

Information about an SD card is encoded in its internal card registries. One of these is the Card Identification (CID) Register, a 16 byte code that contains information that uniquely identifies the SD card, including the card serial number (PSN), manufacturer ID number (MID), and manufacture date (MDT). The CID register is set when the card is manufactured and cannot be changed after it is set. (According to SD card specification the information is only to be written once, however if a card does not conform to the specification this information could be changed!)

(source: https://www.cameramemoryspeed.com/sd-memory-card-faq/reading-sd-card-cid-serial-psn-internal-numbers/)

SD Card reader connection:

Discover if your machine can read SD Card cid number, in Ubuntu Terminal type:

lspci

if you see your SD Card reader in output that means that your machine can read cid number!

If you do not see SD Card reader in output type:

lsusb

if you see your SD Card reader in output that means that your machine can not read cid number!

Install:

Install git (optional):

sudo apt-get update
sudo apt-get install git

Copy repository on your host:

git clone https://github.com/JRazor22/cid_master.git
cd cid_master
sudo chmod 777 mmc
sudo apt install python3-pip
sudo pip3 install -r requirements.txt
sudo python3 cid_master.py

Usage:

python3 cid_master.py

Script options:

  1. Clone SD Card CID
  2. Enter Manually SD Card CID
  3. Read SD Card CID