# 使用 Homebrew, apt, Nix, pacman, zypper 安装 mfoc

查看 mfoc 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mfoc
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mfoc
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: mfoc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:mfoc
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mfoc>
- **版本:** 0.10.7
- **来源摘要:** Implementation of 'offline nested' attack by Nethemba
- **主页:** <https://github.com/nfc-tools/mfoc>
- **仓库:** <https://github.com/nfc-tools/mfoc>
- **许可证:** GPL-2.0-or-later AND BSD-2-Clause
- **源码归档:** <https://github.com/nfc-tools/mfoc/archive/refs/tags/mfoc-0.10.7.tar.gz>
- **最后更新:** 2026-05-14T17:23:49-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mfoc (cli)
- mfoc (别名)

## 依赖

- libnfc
- libusb-compat

## 构建依赖

- autoconf
- automake
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.10.7
- 管理器更新时间: 2026-05-14
- 本地数据: OK
- 上游仓库: https://github.com/nfc-tools/mfoc
- 检测到的最新版本: mfoc-0.10.7 (当前)
## 项目历史与用法

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.

### 项目历史

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.

### 使用方式

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.

### 来源

- <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>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **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

## 其他软件包管理器记录

- 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.25: normalized package name match | openSUSE Tumbleweed package metadata: mfoc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Mifare Classic Offline Cracker: key recovery tool for MC cards | https://github.com/nfc-tools/mfoc


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [libusb-compat](https://pkg.so/zh-hans/brew/libusb-compat/) - Runtime dependency declared by Homebrew.
- [libnfc](https://pkg.so/zh-hans/brew/libnfc/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [mfcuk](https://pkg.so/zh-hans/brew/mfcuk/) - Shares pkgdb curated category or tags: cli, mifare, mifare-classic, nfc, nfc-rfid.
- [mfterm](https://pkg.so/zh-hans/brew/mfterm/) - Shares pkgdb curated category or tags: cli, mifare, mifare-classic, nfc, nfc-rfid.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Shares pkgdb curated category or tags: cli, security.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security.
- [p11-kit](https://pkg.so/zh-hans/brew/p11-kit/) - Shares pkgdb curated category or tags: cli, security.
- [gnupg](https://pkg.so/zh-hans/brew/gnupg/) - Shares pkgdb curated category or tags: cli, security.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Shares pkgdb curated category or tags: cli, security.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: cli, security.
- [libfreefare](https://pkg.so/zh-hans/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/mxcl/pkgdb/blob/main/combined/mfoc.yml)


## 来源

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