Skip to content
bogiton edited this page Jan 15, 2018 · 15 revisions

Chameleon Serial Interface

If the Chameleon is connected via USB it can be set up and controlled with a simple terminal or TeraTerm.

For easier use of the command-line using a terminal software the local-echo functionality should be activated, to be able to see what is typed into the chameleon. When using TeraTerm, this can be achieved by selecting Setup -> Terminal and check "Local Echo".

Chameleon Command Set

The current firmware supports the following commands:



VERSIONMY

^Top

Requests version information of the current firmware.

Syntax: versionmy?
101:OK WITH TEXT
ChameleonMini-new-1.0

CONFIGMY

^Top

Get/Set the configuration of the current slot.
Note: The ChameleonMini has 8 possible slots (1-8)

Returns a list of the available configurations (see Configurations)
Syntax: configmy
101:OK WITH TEXT
NONE,MF_ULTRALIGHT,MF_CLASSIC_1K,MF_CLASSIC_4K

Set the configuration of the current slot as a MIFARE classic 4K emulation.
Syntax: configmy=MF_CLASSIC_4K
101:OK WITH TEXT

Returns the configuration of the current slot.
Syntax: configmy?
101:OK WITH TEXT
MF_CLASSIC_4K

UIDMY

^Top

Returns the UID of a card in the current slot.
Syntax: uidmy?
101:OK WITH TEXT
9E63BC03A

Sets a new UID, passed in hexadecimal notation.
Syntax: uidmy=9E63BC03A
101:OK WITH TEXT

READONLYMY

^Top

Configures the read-only mode to the internal memory. Activates (1) or deactivates (0) the read-only mode (Any writing to the memory is silently ignored.)

Print the possible states.
Syntax: readonlymy
101:OK WITH TEXT
1,0

Returns the current state of the read-only mode.
Syntax: readonlymy?
101:OK WITH TEXT
0

Activate the read-only mode
Syntax: readonlymy=1
100:OK

UPLOADMY

^Top

Waits for an XModem connection in order to upload a new virtualized card into the currently selected slot, with a size up to the current memory size.

Syntax: uploadmy<ENTER>

DOWNLOADMY

^Top

Waits for an XModem connection in order to download a virtualized card with the current memory size.

Syntax: downloadmy<ENTER>

RESETMY

^Top

Reboots the Chameleon, i.e., power down and subsequent power-up. Note: A reset usually requires a new Terminal session.

Syntax: resetmy<ENTER>

UPGRADEMY

^Top

Sets the Chameleon into firmware upgrade mode (DFU). This command can be used instead of holding the BUTTON while power-on to trigger the bootloader.

Syntax: upgrademy<ENTER>

MEMSIZEMY

^Top

Returns the memory size occupied by the current configuration in Byte.

Syntax: memsizemy?
101:OK WITH TEXT
4096

UIDSIZEMY

^Top

Returns the UID size of the currently selected card type in Byte.

Syntax: uidsizemy?
101:OK WITH TEXT
4

BUTTONMY

^Top

Get/Set the action for pressing the button shortly.

Returns a list of the available button actions.
Syntax: buttonmy
101:OK WITH TEXT
NONE,RANDOM_UID,UID_LEFT_INCREMENT,UID_RIGHT_INCREMENT,UID_LEFT_DECREMENT,UID_RIGHT_DECREMENT,SWITCHCARD

Returns the currently set action for pressing the right button shortly. DEFAULT: SWITCHCARD.
Syntax: buttonmy?
101:OK WITH TEXT
SWITCHCARD

Sets the action for pressing the button shortly.
Syntax: buttonmy=random_uid

SETTINGMY

^Top

Get/Set the active slot (number between 1 and 8) for the card/reader emulation (see Settings).

Returns the currently activated slot.
Syntax: settingmy?
101:OK WITH TEXT
NO.1

Sets the active slot to 2
Syntax: settingmy=2
100:OK

CLEARMY

^Top

Clears the content of the current slot.

Syntax: clearmy<ENTER>
100:OK

HELPMY

^Top

Returns a comma-separated list of all commands supported by the current firmware.

Syntax: helpmy
101:OK WITH TEXT
VERSIONMY,CONFIGMY,UIDMY,READONLYMY,UPL....

RSSIMY

^Top

Returns the voltage measured at the antenna of the Chameleon, e.g., to detect the presence of an RF field or compare the field strength of different RFID readers.

Syntax: rssimy<ENTER>
101:OK WITH TEXT
2648 mV

DETECTIONMY

^Top

Performs the MF Classic Key attack to a reader.

Syntax: detectionmy?<ENTER>
100:OK



Props to @AndreasBujok for the layout