Skip to content

07 2WIRE

Geo edited this page Sep 18, 2025 · 21 revisions

2WIRE Mode

This mode is designed for interacting with smartcards and synchronous serial devices over a simple 2-wire interface, typically used in memory cards.


🧩 Commands

Command Description
sniff Sniff data on IO/CLK with start/stop bits and commands description
config Configure pins and frequency
smartcard Open an interactive shell for smartcard (SLE44XX) operations
[0xAB r:4] Raw instruction syntax for 2WIRE bit patterns [NYI]

💳 Smartcard SLE44XX Shell

The smartcard command provides an interactive environment to explore, manage, and erase SLE44XX cards.

Actions

  • 🔍 Probe – Detects the card type and reads the ATR (Answer To Reset).
  • 🛡️ Security check – Verifies the current PSC (PIN) attempt counter and status.
  • 🔓 Unlock card – Enters the PSC to unlock protected areas.
  • 📝 PSC Set – Changes the PSC code to a new value.
  • 📋 PSC Get – Reads the current PSC (if security settings allow).
  • ✏️ Write – Writes data to a specified memory address.
  • 🗃️ Dump – Reads and displays the entire card memory contents.
  • 🚫 Protect – Permanently write-protect specific memory zones.
  • 🚪 Exit Shell – Leaves the shell and returns to the previous menu.

Supported Models

Model Memory Size Security Features
SLE4442 256 bytes PSC protection, write-protect zones, retry counter
Compatible clones Various Same protocol and features as above

Notes

  • SLE44XX smartcards use the 2-Wire protocol (not I²C, not ISO7816).
  • Probe executes an ATR (Answer to reset) for SLE4442 cards.
  • PSC (Personal Security Code) is usually 3 bytes long.
  • Exceeding the allowed number of incorrect PSC attempts will permanently lock the protected zones.
  • Some SLE44XX clone cards ignore the protection memory, even after setting protection bits, writing to memory may still be possible.
  • Most SLE44XX cards require a 5V power supply to operate reliably
  • SLE44XX pinout:

Smart-Card-Pin-out-3


📌 Example Usage

smartcard   # Operations on smartcard
sniff
config
[0x5A r:1]

▶️ Demo

2wiresmartcard

🔧 Hardware

flash_sim8_front smart-costa-card-500x500

Clone this wiki locally