Repository navigation
Setup Command Line
These examples use wlan1 as the adapter and <keys> as the key file. Replace both with your own.
| What | Option | Variable | Default |
|---|---|---|---|
| Key file | --keys |
CTRPASS_KEYS |
none for most commands; ~/.config/ctrpass/keys for ctrpass keys
|
| Message store | --store |
CTRPASS_STORE |
$XDG_DATA_HOME/ctrpass, usually ~/.local/share/ctrpass
|
| Game plugins | CTRPASS_PLUGINS |
$XDG_DATA_HOME/ctrpass/titles, usually ~/.local/share/ctrpass/titles
|
Radio commands run with sudo, and under sudo the default store would be root's. Pass --store to keep one store for every command. The examples use /var/lib/ctrpass.
sudo ctrpass scan -i wlan1Each console heard is printed as one JSON line with its MAC address, channel, signal and the CEC title IDs of the games it has StreetPass set up for. If nothing appears, see Troubleshooting.
ctrpass only exchanges for games in its store. Turn on receiving for each game you want. This example uses StreetPass Mii Plaza, title 00020800.
sudo ctrpass --store /var/lib/ctrpass store receive 00020800 onstore list shows every game in the store and its messages:
sudo ctrpass --store /var/lib/ctrpass store listsudo ctrpass --store /var/lib/ctrpass --keys <keys> exchange -i wlan1This runs until you press Ctrl+C, then prints how many passes and exchanges it made. Received messages go into the store's inbox.
| Option | Default | Meaning |
|---|---|---|
--role lead|wait|alternate |
lead |
Search for consoles, wait to be found, or switch every pass. |
--channels |
1,6,11 |
Channels to look for consoles on, in order. |
--window |
60 |
Seconds each pass waits for a console. |
--passes |
until stopped | Stop after this many passes. |
--radio-mode auto|active|mixed |
auto |
See [[radio modes |
--rotate-every |
8 |
Hours between changing the MAC and clearing passed consoles. 0 for never. |
--force |
off | Take the interface even if it is connected or managed by another program. |
To let a console you already passed pass again straight away:
sudo ctrpass --store /var/lib/ctrpass store rotate| Command | What it does |
|---|---|
ctrpass info FILE |
Print a message, envelope or exchange object as JSON. Checks signatures when keys are given. |
ctrpass decode CAPTURE.pcap |
Print the StreetPass frames in a packet capture as JSON, decrypting links when keys are given. |
ctrpass title list / show / build
|
Read and build messages for any game with a plugin, such as Mii Plaza. |
ctrpass plugins list / check FILE
|
List game plugins and plugin errors, or try a plugin file. See Plugins. |
ctrpass store add / remove / identity
|
Manage messages and the identity the store presents. |
ctrpass import FROM |
Copy messages and signing keys in from a CEC save image, CEC folder or message file. |
ctrpass export [DEST] |
Copy the inbox to an emulator's StreetPass folder. |
ctrpass keys |
Fill the key file from your console's dumps. |
ctrpass serve -i IFACE |
Radio helper for the desktop app. Not meant to be run by hand. |
ctrpass --help lists every command. ctrpass <command> --help shows its options.
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