← 返回命令列表

Linux command

mfoc 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Recover keys and dump card contents

mfoc -O [output.mfd]

Try an additional candidate key

mfoc -k [FFFFFFFFFFFF] -O [output.mfd]

Increase sector probe attempts

mfoc -P [50] -O [output.mfd]

Set distance tolerance

mfoc -T [40] -O [output.mfd]

Show help

mfoc -h

说明

mfoc is an open source implementation of the "offline nested" attack originally described by Nethemba. It exploits weaknesses in the Crypto1 cipher of MIFARE Classic cards to recover sector authentication keys, then dumps the full card contents to a file. At least one sector key (default or user-supplied with -k) must already be known; mfoc uses it as a bootstrap to recover the remaining keys via nested authentication. The resulting .mfd dump can be written back to a blank card with tools such as nfc-mfclassic.

参数

-O _FILE_
Dump card contents to FILE (MFD format).
-k _KEY_
Initially try KEY (12 hex digits) in addition to the default keys. May be specified multiple times.
-P _NUM_
Probe each sector up to NUM times. Default is 20.
-T _NUM_
Set half the range for the distance tolerance to NUM. Default is 20 (total range of 40).
-h
Show summary of options.

FAQ

What is the mfoc command used for?

mfoc is an open source implementation of the "offline nested" attack originally described by Nethemba. It exploits weaknesses in the Crypto1 cipher of MIFARE Classic cards to recover sector authentication keys, then dumps the full card contents to a file. At least one sector key (default or user-supplied with -k) must already be known; mfoc uses it as a bootstrap to recover the remaining keys via nested authentication. The resulting .mfd dump can be written back to a blank card with tools such as nfc-mfclassic.

How do I run a basic mfoc example?

Run `mfoc -O [output.mfd]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -O _FILE_ do in mfoc?

Dump card contents to FILE (MFD format).