NFCTOOL(1)
π NFCTOOL(1) π
okay bestie, welcome to the nfctool page, straight outta the General Commands Manual. she's a little NFC toolbox and she's lowkey iconic π
β¨ NAME β¨
nfctool β a NFC toolbox π§°
πΈ SYNOPSIS πΈ
nfctool [OPTIONS...]
π¦ DESCRIPTION π¦
so the nfctool application does a whole bunch of operations on NFC devices, like fr fr:
- list connected devices
- put device in polling mode
- get and set parameters for the local LLC
- send service name lookup request to the remote LLC.
- dump LLCP link traffic
main character energy tbh π
π OPTIONS π
-h,--helpβ prints out nfctool's available options and then dips. that's it, that's the whole vibe.-v,--versionβ prints nfctool's version and exits. short and sweet.-l,--listβ lists the attached NFC devices. it also prints info like remote tags or devices, supported protocols, RF mode, and LLC link parameters. like a full rundown, no crumbs left π-d,--device=NFCDEVβ specify a nfc device (i.e.nfc0). this one is mandatory for every single operation except-l. no cap.-p,--poll[=MODE]β starts a poll on the device you specified with-d. MODE has to be one ofInitiator,Target, orBoth, and it defaults toInitiatorwhen you don't specify it. passing MODE asi,t, orbfor respectively Initiator, Target, or Both is also accepted. so many options, we love that for us β¨-s,--set-param=PARAM=VAL[,PARAM=VAL[,...]]β sets LLC link parameters. PARAM must be at least one of:lto=0..255β Link TimeOut- specify the maximum time interval between the last received LLC PDU from the remote to the local LLC and the first subsequent LLC PDU transmission from the local to the remote LLC. the value is expressed in multiples of 10 milliseconds and is encoded as a 8-bit unsigned integer.
- the LTO parameter must be set before the LLC Link is established. like, before, bestie, not after π
rw=0..15β Receive Window size- specify the maximum number of I PDUs the local LLC will accept before acknowledging them. a RW size of zero means the local LLC will not accept I PDUs on that data link connection. a RW size of one means the local LLC will acknowledge every I PDU before accepting additional I PDUs. it's encoded as a 4-bit unsigned integer.
- the RW parameter can be set after the LLC Link is established. the new value will apply for subsequent connections.
miux=0..2047β Maximum Information Unit Extension- specify the number of octets by which a LLC PDU information field may exceed the default maximum size of 128 octets. in other words, MIU = MIUX + 128. it's encoded as an 11-bit unsigned integer.
- the MIUX parameter can be set after the LLC Link is established. the new value will apply for subsequent connections.
-k,--snl=URNβ sends a Service Name Lookup request for URN (i.e.urn:nfc:sn:snep) to the remote LLC. obviously the LLC link has to be up before the request gets sent, iykyk.- the remote should reply by returning the service access point (SAP) number, or zero if it doesn't support the requested service.
- > Note: if you use this with
-p, nfctool will wait for the LLC link to be up before sending the SNL request. patient queen π
-n,--sniffβ starts LLCP sniffing on the device specified with the-doption.
π SNIFFER SPECIFIC OPTIONS π
the following options only apply with -n. just those ones, bestie, don't get it twisted.
-a,--snapshot-len=SNAPLENβ capture SNAPLEN bytes from each packet. default snapshot length is 1024 bytes.-y,--dump-symmβ dump SYMM packets to stdout. this will generate a LOT of output. like, a LOT π- > Note: the
-yoption concerns console output only. SYMM packets are always dumped to the pcap file when specified by-f(see below). always always.
- > Note: the
-t,--show-timestamp[=MODE]β show packet timestamps. setting MODE asdeltameans the time since the first captured frame.absolutemeans elapsed time since the Epoch,1970-01-01 00:00:00 +0000(UTC). MODE defaults todeltawhen unspecified.-f,--pcap-file=FILENAMEβ specify a filename to save dumped traffic in pcap format. the generated file can be opened with Wireshark (http://www.wireshark.org/) using thewireshark-nfcplug-in available athttp://code.google.com/p/wireshark-nfc/π
π SEE ALSO π
neard(8)neard.conf(5)- Linux NFC project page at https://01.org/linux-nfc/
and that's the whole page, periodt π this was the nfctool manual from February 2013 (the General Commands Manual version) β thanks for reading bestie, go sniff some LLCP traffic for me π¦β¨
π¦ where this page comes from
- fedora 43: neard-tools 0.19-7.fc43 Β· GPL-2.0-only
- fedora 44: neard-tools 0.19-8.fc44 Β· GPL-2.0-only
- nixos 26.05: neard 0.20
- nixpkgs unstable: neard 0.20
- ubuntu stonking: neard-tools 0.20-3 Β· GPL-2.0-only
- Copyright (C) 2013 Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms