Repository navigation
Setup Overview
finthetechguy edited this page Nov 23, 2026
·
3 revisions
This section takes you from nothing to a working exchange with a 3DS. Expect it to take an hour or so the first time, most of it spent dumping files from your console.
flowchart TD
A[Get a Wi-Fi adapter with<br/>monitor mode and injection] --> D
B[Dump keys and files<br/>from your own 3DS] --> C[Make the key file<br/>with ctrpass keys]
C --> D[Build and install ctrpass]
D --> E{Which user interface?}
E -->|Desktop app| F[Set key file and card<br/>in Preferences]
E -->|Command line| G[Turn on receiving<br/>for a game]
F --> H[Start StreetPass]
G --> I[ctrpass exchange]
H --> J[Messages arrive in the inbox]
I --> J
J --> K[Optional: copy the inbox<br/>to an emulator]
- A computer running Linux.
- A USB or internal Wi-Fi adapter that supports monitor mode for scanning and frame injection for exchanges. The card cannot stay on your home network while StreetPass is running. See Choosing a Wi-Fi adapter.
- Your own Nintendo 3DS/2DS family console with custom firmware, to dump the keys from. The consoles you StreetPass with afterwards do not need custom firmware.
- Rust 1.85 or newer.
-
iwandip(iproute2). - For the desktop app: Python 3.10 or newer, GTK 4, libadwaita 1.7 or newer, PyGObject 3.48 or newer, polkit, and maturin to build the Python module.
| File | Used for | Needed for |
|---|---|---|
aes_keys.txt |
The hardware key for slot 0x2E (link encryption) and slot 0x31 (Mii records). |
Exchanging. Slot 0x31 only for reading or building Miis. |
StreetPass system module code.bin, decrypted |
The StreetPass HMAC key that link keys are derived with. | Exchanging. |
| CEC save image or folder | Each game's message signing key, and any messages already on the console. | Building signed messages, such as Mii Plaza messages. Importing existing messages. |
All keys must come from a console you own. ctrpass does not ship any keys.
- While StreetPass is running, ctrpass takes over the Wi-Fi card. Normal Wi-Fi on that card stops until it finishes.
- ctrpass transmits from a random, locally administered MAC address that it stores with your messages. By default it changes this address and forgets which consoles it has passed every 8 hours, so the same consoles can pass again.
- Messages you receive come from strangers. They are kept as files in the message folder and are only shown, never run.
Next: Choosing a Wi-Fi adapter
How to set up
- Overview and requirements
- Choosing a Wi-Fi adapter
- Building and installing
- Making the key file
- Desktop app
- Command line
- Messages and emulators
- Troubleshooting
Plugins
Protocol
- Overview
- Discovery
- Link setup
- Frames and CCMP
- YY transport
- Exchange flow
- Exchange objects
- CEC messages
- CEC message boxes
- Mii records
- Mii Plaza
- Keys
ctrpass library
Linux