This tool allows you to use Flexxon X-mask and X-mask PRO on Linux systems.
This doesn't require the password. It uses a vulnerability on these cards that allow you to disable the masking protection.
Also, once unlocked, the protection is fully disabled, even if you remove the card. You need to lock it once done to restore the "protection".
make
./flexxon-tool --device /dev/mmcblk0 --unlock
./flexxon-tool --device /dev/mmcblk0 --lock
Note: This only works on X-mask, not the PRO
./flexxon-tool --device /dev/mmcblk0 --password
Part of this code was AI-generated using Copilot. To be more specific, I used AI to convert the encoding algorithm from my Python script to C.