Sniff
Every other way of getting a credential starts by lighting up the field.
DETECT energizes the card. COLLECT energizes the card. Both are fine when the badge is in your hand in a stairwell. Neither is fine standing at a door you have no business standing at, holding a device that is radiating 125 kHz into a reader that is counting what it sees.
Sniffing is the one surface that stays dark. The Proxmark powers nothing. The reader does the work, the card answers the reader, and the Proxmark sits in the field and records what passed. The badge never leaves its owner’s hand.
That buys you two things. It works on a credential you are never allowed to touch, and it leaves the reader’s own logs looking like an ordinary presentation, because that is what it was.
It costs you certainty. An active read either returns a card number or it does not. A sniff returns a slice of air, and whether the credential is in that slice depends on your timing and on where the coil was sitting.
- The card type, which sets the band and names the file.
- Trigger, the level the coil has to cross to start.
- Capture Window, how much air one capture holds.
- START SNIFF arms it. Nothing has been transmitted.
- It waits here. Bring the Proxmark and card to the reader.
- The exact command, so there is no guessing.
- STOP ends the wait, and on low frequency it works.
- CAPTURED, so a window came back.
- Amplitude, against the noise floor of 8.
- The filename is prefilled and the extension is added.
- Nothing is written to storage until you press this.
- What the client made of the whole capture.
- Ambiguous, so the runner up is within 3 dB.
- Flat, then the field arrives, then the exchange.
- Bit clock, drawn over the trace when you pick one.
- The demodulators, each one a deliberate choice.
What a sniff actually gives you
Section titled “What a sniff actually gives you”A capture on its own is a column of numbers. The thing you are after is at the end of a short chain, and the chain is worth knowing before you start, because three of its four links can fail quietly.
- A window of samples comes back from the device.
- You cut it down to the part where the exchange happened.
- A demodulator turns that into bits.
- Something recognizes the bits as a credential format.
- The trimmed capture behind the sheet, now reading FSK.
- FSK2, so the trim put it on the right demodulator.
- The DemodBuffer. This is the card, as bits.
- 181 bits over six rows.
Those bits are the honest output of the surface. ATLAS stops there and does not name a credential on the SNIFF tab.
To get the last link you take the file to a Proxmark client and ask it. On a capture from this same bench the client answered:
proxmark3 [=] Checking for known tags...[+] [H10301 ] HID H10301 26-bit FC: 13 CN: 30614 parity ( ok )[+] [ind26 ] Indala 26-bit FC: 215 CN: 1942 parity ( ok )[=] found 2 matching 26-bit formats[=] Trying with a preamble bit...[+] [ind27 ] Indala 27-bit FC: 4203 CN: 12076[+] [indasc27] Indala ASC 27-bit FC: 5518 CN: 1359[+] [Tecom27 ] Tecom 27-bit FC: 1456 CN: 47572[=] found 3 matching 27-bit formats[=] raw: 0000000000000020041aef2c[+] Valid HID Prox ID found! That is a real card recorded through a real reader, and it is also the best illustration of why this takes more than one button. Five formats matched the same stream. Only one of them is the card. The line that settles it is Valid HID Prox ID found! together with parity ( ok ), and the raw value is what you carry forward.
Where you start
Section titled “Where you start”The tab is three stacked cards, CARD TYPE, SNIFFING CONTROLS and TRACE DATA RESULTS, and the second and third each carry a state chip in the corner of their header. Every control is drawn from the first frame and disabled rather than hidden, so the chip is where you look to find out why something is dark.
Arriving at the tab, nothing is chosen and START SNIFF is dark. What the SNIFFING CONTROLS chip reads depends on the device before it depends on the card type, because the device is tested first.
| SNIFFING CONTROLS chip | What it means |
|---|---|
| SNIFFING | A capture is armed or running. Every control on the page is locked and STOP is the only live button. |
| NO DEVICE | No Proxmark is connected. This wins over a missing card type, so it is what you see on a fresh handset even with a type already chosen. A No Proxmark device connected banner sits above the cards at the same time. |
| NO CARD TYPE | A Proxmark is connected and no type is chosen. |
| READY | A Proxmark is connected and a type is chosen. START SNIFF is live. |
START SNIFF needs all three of those conditions at once, a connected device, a chosen type, and no capture already running.
| TRACE DATA RESULTS chip | What it means |
|---|---|
| NO CAPTURE | Nothing in the buffer. Also what it reads while a capture is running, because the previous window is dropped at the moment you arm. |
| CAPTURED | A window came back and has not been decoded. CLEAR is live, and SAVE DATA and VIEW RESULTS are live as long as the Proxmark is still connected, because both of them go back to the device. |
| VIEWED | VIEW RESULTS has been run against this window, so the decode output is on the page below the readings. |
While a capture is waiting, SNIFFING CONTROLS replaces the arm button with a spinner reading WAITING FOR PRESENT and a STOP button beneath it.
- Nothing chosen yet, so the chip reads NO CARD TYPE.
- Every control is drawn from the start, disabled not hidden.
- START SNIFF stays dark until a type is chosen.
Choosing the card type
Section titled “Choosing the card type”The dropdown carries 35 types under two headings. The heading rows are labels and cannot be selected.
- The heading is a label and cannot be chosen.
- Nine high frequency types, each with its own command.
- The low frequency heading, where twenty six more begin.
| Type | Command |
|---|---|
| iCLASS | hf iclass sniff |
| MIFARE | hf 14a sniff |
| MIFARE DESFire | hf 14a sniff |
| EMV | hf 14a sniff |
| SEOS | hf 14a sniff |
| Topaz | hf topaz sniff |
| ISO14443-B | hf 14b sniff |
| ISO15693 | hf 15 sniff |
| FeliCa | hf felica sniff |
- LF Generic, the one to pick when you do not know.
- HID Prox, named so the saved file carries the word.
- Twenty six rows, and one command behind all of them.
| LF Generic | HID Prox | AWID | Indala |
| EM4100 | Net2 (Paxton) | Pyramid/Farpointe | IO Prox |
| Gallagher | Securakey | PAC/Stanley | Nedap |
| NexWatch | G-Prox-II | Paradox | Viking |
| Keri | Motorola Flexpass | COTAG | Idteck |
| Jablotron | Noralsy | Presco | Visa2000 |
| FDX-B Animal Tag | Destron FDX-A |
Card Trigger and Reader Trigger only exist for three card types
Section titled “Card Trigger and Reader Trigger only exist for three card types”Two toggles, both on by default, and both wired for three card types only, MIFARE, MIFARE DESFire and EMV. For everything else the section carries a 14443-A ONLY chip and both switches are dead.
SEOS is the trap in that sentence. It reaches hf 14a sniff, the same command as the other three, so the flags do reach the device, but the chip is on and the switches are frozen. What goes out is whatever the switches were last left at under a type that could set them. Both start on, so a handset that has only ever sniffed SEOS sends hf 14a sniff -c -r -i. Turn Card Trigger off under MIFARE, then switch to SEOS, and the off state carries over and stays, because the reset to on fires only for the three supported types. The switches will read off and refuse to move.
If you need a SEOS capture on a known trigger state, select MIFARE first, set both switches the way you want them, then switch to SEOS and arm.
The reverse is also true. Choose a high frequency type and Trigger and Capture Window each pick up an LF ONLY chip and stop responding.
- MIFARE, so the band chip reads 13.56 MHz.
- Both toggles live, which happens for three types only.
- Capture Window now carries LF ONLY and does nothing.
| Toggle | Flag | What it does |
|---|---|---|
| Card Trigger | -c | Starts the capture when a card answers |
| Reader Trigger | -r | Starts the capture when a reader polls |
With both on the command reads hf 14a sniff -c -r -i. The -i is always present and is not optional. Without it the command returns immediately and captures nothing.
Trigger is what makes an armed sniff wait
Section titled “Trigger is what makes an armed sniff wait”The Proxmark is not powering the field, so its coil reads near zero away from a reader and the voltage climbs as you bring it in. The trigger is the level that climb has to cross before sampling starts, which is what lets you arm the capture first and walk up second.
- Ten, a lighter touch for a weak or distant reader.
- Twenty is the default, and it is the one that works.
- Forty, for a strong field you are standing close to.
| Value | When to use it |
|---|---|
| 0 no wait | Sampling starts on the first sample. Use it only when the coil is already parked in the field and you want whatever is there right now. |
| 10 | A light touch for a weak or distant reader. |
| 20 default | The working value. Starts on approach and ignores the noise floor. |
| 40 | A strong field close up, when 20 fires before you are in position. |
The threshold is a deadband around mid scale, so it is symmetric and it fires once. Its range is 0 to 128.
Capture Window is how much air one capture holds
Section titled “Capture Window is how much air one capture holds”The low frequency sampler takes one sample per carrier cycle, so at 125 kHz a sample is 8 microseconds and the sample count is the duration.
- Fifteen thousand samples, an eighth of a second.
- Thirty thousand is the default, a quarter of a second.
- A hundred and twenty thousand, just under a second.
| Value | Duration |
|---|---|
| 15000 | 0.12 s |
| 30000 default | 0.24 s |
| 60000 | 0.48 s |
| 120000 | 0.96 s |
For scale, an HID Prox frame is 96 bits at RF/50, which is 4800 samples or 38.4 milliseconds.
What the numbers on the results card mean
Section titled “What the numbers on the results card mean”On a low frequency capture the results card reads six values off the client’s own measurement of the samples, not off a decode.
| Reading | What it is |
|---|---|
| SAMPLES | How many samples came back |
| AMPLITUDE | High minus mean, shown against the noise floor of 8 |
| NOISE | Yes when amplitude is under 8 |
| HIGH | The largest sample |
| LOW | The smallest sample |
| MEAN | The average |
Against a live reader, so you have something to compare against:
| Situation | Amplitude | Noise |
|---|---|---|
| No field anywhere near the coil | 3 | Yes |
| Reader idling, no card | 115 | No |
| Reader with a card held on it | 115 | No |
Reading the trace
Section titled “Reading the trace”OPEN WAVEFORM puts the capture on a plot. It opens fitted to the whole capture, which matters, because a credential usually sits in a fraction of the window and a view of the first few milliseconds looks empty.
Tapping places the red marker and a long press places the blue one. The two readings that appear are the span between them.
- DT, the time between the two markers.
- Dots, that same distance counted in samples.
- The span those two markers enclose.
- TRIM cuts the capture down to it.
| Control | What it does |
|---|---|
| Tap the plot | Places the red marker |
| Long press the plot | Places the blue marker |
| Drag sideways | Pans |
| Pinch | Zooms |
| Zoom In, Zoom Out, Reset View | The same, from the header |
| The zoom slider | The main zoom control, in the bottom block between a small and a large magnifier. Its low end is the fit-to-capture zoom, so it cannot zoom out past the whole window, and its top end is 32x |
| Zoom | The live multiplier the slider is sitting at, written to one decimal place with an x after it |
| DT | Time between the two markers, in milliseconds |
| Dots | The same distance in samples |
| Bit clock | Draws a line every N field clocks, Off, 32, 40, 50, 64 or 128 |
| TRIM | Cuts the capture down to the marked span |
Two reference lines sit either side of zero at plus and minus 20. A capture whose signal does not break them has nothing in it worth demodulating.
Trim before you demodulate, because it changes the answer
Section titled “Trim before you demodulate, because it changes the answer”The extremes of a capture are the field arriving and collapsing, and they dominate every measurement taken across the whole window. Trimming is not tidying. It is what lets the demodulator see the signal at all.
Here is the same capture, measured three times.
- Every action reports into this same sheet.
- One match found, and the client is sure of it.
- PSK1 at RF/16, and an HID Prox card is neither.
An HID Prox card is FSK2 at RF/50. Across the untrimmed window the client reports PSK1 at RF/16, because the loudest thing in the capture is the field switching on.
- The same sheet, after AUTO DEMODULATE.
- Ranked the bank, and none of it produced bits.
- Three attempts, three times nothing.
- Samples now reads 9205 of 30000.
- FSK slash raw, where it read ASK slash manchester.
- The exchange, with the dead air cut away.
| Before trim | After trim | |
|---|---|---|
| Samples | 30000 | 9205 |
| Mod | ASK / manchester | FSK / raw |
| Clock | 100.24 | 99.78 |
| SNR | -14.1 dB | -6.8 dB |
| Margin | 0.1 dB | 1.3 dB |
| AUTO DEMODULATE | No bits | Bits |
Same samples, different window, different answer. The trimmed capture is the one that demodulated.
Seeing the bits in the signal
Section titled “Seeing the bits in the signal”The Bit clock dropdown draws a vertical line every N field clocks, which is how you check a candidate clock against the trace by eye rather than by taking the demodulator’s word.
- A line every 50 field clocks, drawn over the trace.
- 50 for HID and AWID, 64 for EM and Indala.
- The demodulators sit below it.
Across a whole capture that grid is too dense to read. Zoom in and pan to the exchange and the modulation becomes visible directly.
- Zoomed to 3.5x and panned into the exchange.
- Fast cycles and slow cycles. That alternation is the data.
- The axis now reads in hundredths of a millisecond.
This is what frequency shift keying looks like before anything decodes it. The carrier never stops, it just changes rate, and the two rates are the two symbols. For this card they are FC/8 and FC/10, which is what the client calls FSK2 at RF/50.
The five demodulator actions
Section titled “The five demodulator actions”Five buttons, each one explicit. Nothing here runs on its own, and none of them name a credential.
| Action | Command | What it answers |
|---|---|---|
| AUTO DEMODULATE | data autodemod | Ranks every hypothesis and reports the best, with its margin |
| DETECT CLOCK | data detectclock | The bit clock, in field clocks |
| MODULATION | data modulation | The scheme, bit clock and approximate baud rate |
| ASK DEMOD | data rawdemod --ar, --am or --ab | Bits, if the signal is amplitude keyed |
| FSK DEMOD | data rawdemod --fs | Bits, if the signal is frequency keyed |
- Amplify boosts the signal before ASK demodulation.
- Analyze only decides and reports, demodulating nothing.
- Show demodulator output includes the bits it produced.
Leave Show demodulator output off and a successful run tells you the decision and the bit count but not the bits. Turn it on and the bits come back in the same sheet, which is the figure at the top of this page.
- Three clock fields, each autodetecting when left empty.
- Invert output, the only switch here.
- The examples name the common field clock pairs.
| Field | Default | Hint |
|---|---|---|
| Clock (RF/N, empty = autodetect) | Empty | e.g. 32, 50, 64 |
| High field clock (empty = autodetect) | Empty | e.g. 8, 10 |
| Low field clock (empty = autodetect) | Empty | e.g. 5, 8 |
| Invert output | Off |
The Examples block names three, and the middle one is the card this page has been following.
proxmark3 FSK1 RF/64: Clock=64, Hi=8, Lo=5FSK2 RF/50: Clock=50, Hi=10, Lo=8FSK2a RF/50: Clock=50, Hi=10, Lo=8, Invert
- Encoding, which is Raw, Manchester or Biphase.
- Invert output, for a stream that reads upside down.
- Check sequence terminator, off unless the format has one.
| Field | Default |
|---|---|
| Encoding | Raw, with Manchester and Biphase the other two |
| Clock (RF/N, empty = autodetect) | Empty, hint e.g. 32, 64 |
| Invert output | Off |
| Amplify | Off |
| Check sequence terminator | Off |
| Max errors (default: 100) | 100 |
| Max samples (default: 32768) | 32768 |
Both dialogs offer CANCEL and RUN.
- Every action reports into the same sheet.
- The command that ran, so you can repeat it by hand.
- One number. The bit clock, in field clocks.
Every sheet carries COPY ALL and CLOSE, and a zoom control for the text.
The sampling configuration behind LF SETTINGS
Section titled “The sampling configuration behind LF SETTINGS”LF SETTINGS opens the device’s own low frequency sampling form. These values live on the Proxmark rather than in the app, and the page says so at the top, because they are lost on a power cycle.
- These live on the Proxmark and go on a power cycle.
- 125 kHz or 134 kHz, which simply writes the divisor.
- Trigger Threshold, which the Trigger dropdown writes.
- APPLY writes every field, never only the one you changed.
| Control | Default | Notes |
|---|---|---|
| 125 kHz | Selected | Sets divisor 95 |
| 134 kHz | Sets divisor 88, which reads 134.83 kHz | |
| Divisor | 95 | The frequency, directly |
| Bits per Sample | 8 | Resolution. Anything lower compresses on the device and the loss is permanent |
| Decimation | 1 | Saves 1 sample in N, trading resolution for duration |
| Averaging | On | Averages samples when decimating, so it only acts when decimation is above 1 |
| Trigger Threshold | 0 | The same level the Trigger dropdown sets, 0 to 128 |
| Samples to Skip | 0 | Discards samples after the trigger fires, to move the window past the start |
| RESET DEFAULTS | Sends lf config -r | |
| APPLY | Sends the whole configuration in one line |
APPLY always writes every field together, for example lf config --divisor 95 -b 8 --dec 1 -a 1 -t 20 -s 0. A partial write would silently change averaging, so the form never sends one.
In the figure above the threshold reads 20 rather than its default of 0, because arming a sniff from the SNIFF tab writes this field. The two controls are the same setting seen from two places.
Keeping the capture and getting it off the phone
Section titled “Keeping the capture and getting it off the phone”Nothing is written to storage until you say so. The filename is prefilled when a capture completes and the extension is added for you, .pm3 on low frequency and .trace on high frequency.
The button is labeled SAVE DATA on a low frequency type and SAVE TRACE on everything else.
| Button | What it does |
|---|---|
| SAVE DATA | Writes the file |
| VIEW RESULTS | Runs the decode attempt against what is in the buffer |
| OPEN WAVEFORM | Opens the saved file on the plot, with no Proxmark needed |
| CLEAR | Drops the capture and returns the card to NO CAPTURE |
Saved captures live under TRACES in the File Manager.
- TRACES filters the list down to captures.
- Three windows from one session, which is normal.
- The one this page followed, at 70.6 KB.
- OPTIONS is where getting it off the phone lives.
- OPEN IN WAVEFORM analyzes it here instead.
- COPY PATH puts the file path on the clipboard.
OPTIONS is the one that matters when the analysis is going to happen somewhere else.
- Save to Downloads, then pull it off over a cable.
- Share via App hands it to the Android share sheet.
- Copy to Clipboard gives you the path to paste.
| Entry | What it does |
|---|---|
| Save to Downloads | Copies the file to the Downloads folder |
| Share via App | Hands the file to the Android share sheet |
| Rename | Changes the file name |
| Tag to Project | Assigns it to a project |
| Copy to Clipboard | Copies the file path |
| Delete | Removes the file permanently |
Save to Downloads puts it somewhere a cable can reach it.
adb adb pull /sdcard/Download/hidProx_1792518704_012.pm3 . Finishing the job on a computer
Section titled “Finishing the job on a computer”A .pm3 file is the client’s own sample format, so the desktop Proxmark client reads it directly. It does not need the hardware attached, because loading a file and demodulating it are offline operations.
proxmark3[offline] pm3 --> data load -f hidProx_1792518704_012.pm3[+] loaded 30000 samples From there the same actions exist as commands, and two more that the phone does not offer.
| Command | What it does |
|---|---|
data load -f <file> | Loads a capture into the graph buffer |
data plot | Draws it in a window |
data detectclock | The bit clock |
data modulation | The scheme, clock and baud rate |
data autodemod | Ranks the hypotheses and demodulates the winner |
data rawdemod --fs | FSK, by hand |
lf search -1 | Identifies the bits already in the buffer, without energizing |
The -1 on lf search is what keeps the desktop honest. It tells the client to use the buffer it already has rather than going to the hardware for a fresh read, so nothing transmits.
Trimming the same capture again on the computer, the desktop client reaches the same conclusion the phone did and puts a name to the modulation:
data modulation [offline] pm3 --> data modulation[+] Found [1] possible matches for modulation.[=] --[1]---------------[=] Modulation........ FSK2[=] Bit clock......... RF/50[=] Approx baudrate... 2500 baud[+] Field Clocks...... FC/10, FC/8[offline] pm3 --> data autodemod[+] decision...... FSK / raw at clock 99.48[=] resampled..... clock 99.48 -> 99, buffer 11500 -> 11444 samples[+] demodulated... 90 bits into the DemodBuffer[+] quality....... no demod errors in 90 bits FSK2, RF/50, field clocks FC/10 and FC/8. That is the middle line in the FSK DEMOD dialog’s own examples, and it is an HID Prox card described from first principles by a device that was never told what it was looking at.
Expect to repeat it
Section titled “Expect to repeat it”This is the part no interface can fix, so it is better to know the shape of it before you are standing at a door.
Fifteen armed sniffs were taken against one reader and one HID Prox card in a single bench session, each one a separate presentation. The results:
| Outcome | Count |
|---|---|
| Correct credential, parity ok | 1 |
Valid HID Prox ID found! with parity fail | 1 |
| Indala only, which was a false positive | 9 |
| No known tag found | 4 |
One capture in fifteen carried the card. Nine looked like something and were nothing. The client warns about this itself, printing Note: False Positives ARE possible above every search.
What makes the difference is reading each capture rather than collecting them. A window where the trace never breaks the plus and minus 20 lines was never going to decode, and knowing that in the moment is what tells you to move the Proxmark and go again instead of walking away with fifteen files and no credential.