# Install mfoc with Homebrew, apt, Nix, pacman, zypper

Implementation of 'offline nested' attack by Nethemba. Version 0.10.7 via Homebrew; verified 2026-05-14.

## Install

```sh
sudo av install brew:mfoc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mfoc
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mfoc
```

  Evidence: Debian stable package indexes: mfoc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#mfoc
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mf/mfoc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mfoc
```

  Evidence: Arch Linux sync databases: mfoc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install mfoc
```

  Evidence: openSUSE Tumbleweed package metadata: mfoc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:mfoc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mfoc>
- **Version:** 0.10.7
- **Source summary:** Implementation of 'offline nested' attack by Nethemba
- **Homepage:** <https://github.com/nfc-tools/mfoc>
- **Repository:** <https://github.com/nfc-tools/mfoc>
- **Upstream docs:** <https://github.com/nfc-tools/mfoc#readme>
- **License:** GPL-2.0-or-later AND BSD-2-Clause
- **Source archive:** <https://github.com/nfc-tools/mfoc/archive/refs/tags/mfoc-0.10.7.tar.gz>
- **Last updated:** 2026-05-14T17:23:49-04:00
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- mfoc (cli)
- mfoc (alias)

## Dependencies

- libnfc
- libusb-compat

## Build dependencies

- autoconf
- automake
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 0.10.7
- Package-manager updated: 2026-05-14
- Local data: ok
- Upstream repository: https://github.com/nfc-tools/mfoc
- Upstream latest detected: mfoc-0.10.7 (current)
## Project history and usage

MFOC, the Mifare Classic Offline Cracker, is an open-source implementation of Nethemba's offline nested attack against MIFARE Classic cards. The nfc-tools README states that it recovers authentication keys from MIFARE Classic cards when a default or user-supplied key is known. The AUTHORS file names the Nethemba Core Team, with Norbert Szetei as main coder and Pavol Luptak as project leader, minor coder, tester, and bug reporter.

### Project history

The project traces back to Nethemba's 2009 public release of an offline nested attack implementation for Mac OS X and Linux. The nfc-tools changelog records the import of MFOC 0.08 from nethemba.com into the nfc-tools repository on September 13, 2010, followed by maintenance work to track libnfc APIs, add packaging, add a manpage, support newer MIFARE Classic UID cases, and clean up the C code through 2013.

### How it is used

MFOC's practical role is narrower than broad NFC libraries: it is a command-line recovery and audit tool for MIFARE Classic deployments, generally used with libnfc-supported readers and known-key attack workflows. In package managers it commonly appears beside MFCUK and libnfc as part of the NFC/RFID security-research toolkit, with MFCUK covering the DarkSide-oriented path and MFOC covering the offline nested attack path.

### Sources

- <https://formulae.brew.sh/formula/mfoc>
- <https://github.com/nfc-tools/mfoc>
- <https://nfc-tools.github.io/projects/mfoc/>
- <https://raw.githubusercontent.com/nfc-tools/mfoc/master/AUTHORS>
- <https://raw.githubusercontent.com/nfc-tools/mfoc/master/ChangeLog>
- <https://raw.githubusercontent.com/nfc-tools/mfoc/master/README.md>
- <https://www.proxmark.io/www.proxmark.org/forum/viewtopic.php%3Fid%3D381.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mfoc
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - mfoc - 0.10.7+git20180724-2: normalized package name match | Debian stable package indexes: mfoc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MIFARE Classic offline cracker | https://github.com/nfc-tools/mfoc
- Nix - mfoc: normalized package name match | nixpkgs package indexes: pkgs/by-name/mf/mfoc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mfoc - 0.10.7+git20180724-2: normalized package name match | Ubuntu 24.04 LTS package indexes: mfoc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MIFARE Classic offline cracker | https://github.com/nfc-tools/mfoc
- pacman - mfoc - 0.10.7+38+gba072f1-2: normalized package name match | Arch Linux sync databases: mfoc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | MiFare Classic Universal toolKit | http://nfc-tools.org/
- zypper - mfoc - 0.10.7+git38-1.23: normalized package name match | openSUSE Tumbleweed package metadata: mfoc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Mifare Classic Offline Cracker: key recovery tool for MC cards | https://github.com/nfc-tools/mfoc


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [libnfc](https://www.automicvault.com/pkg/brew/libnfc/) - Runtime dependency declared by Homebrew.
- [libusb-compat](https://www.automicvault.com/pkg/brew/libusb-compat/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mfcuk](https://www.automicvault.com/pkg/brew/mfcuk/) - Shares av.db curated category or tags: cli, mifare, mifare-classic, nfc, nfc-rfid.
- [mfterm](https://www.automicvault.com/pkg/brew/mfterm/) - Shares av.db curated category or tags: cli, mifare, mifare-classic, nfc, nfc-rfid.
- [acme.sh](https://www.automicvault.com/pkg/brew/acme-sh/) - Shares av.db curated category or tags: cli, security.
- [aescrypt](https://www.automicvault.com/pkg/brew/aescrypt/) - Shares av.db curated category or tags: cli, security.
- [aespipe](https://www.automicvault.com/pkg/brew/aespipe/) - Shares av.db curated category or tags: cli, security.
- [afflib](https://www.automicvault.com/pkg/brew/afflib/) - Shares av.db curated category or tags: cli, security.
- [afl++](https://www.automicvault.com/pkg/brew/afl/) - Shares av.db curated category or tags: cli, security.
- [age](https://www.automicvault.com/pkg/brew/age/) - Shares av.db curated category or tags: cli, security.
- [libfreefare](https://www.automicvault.com/pkg/brew/libfreefare/) - Local package facts share a topical domain. Shared terms: classic, cli, compat, libnfc, libusb.

## Combined YAML source

View the package source record on GitHub. [combined/mfoc.yml](https://github.com/automic-vault/db/blob/main/combined/mfoc.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
