MIT License

项目介绍

cuamckuu/nfc-frog 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 365 个 Star、66 次 Fork。

仓库全名
cuamckuu/nfc-frog
开源许可证
MIT License
Star 数
365
Fork 数
66
未关闭 Issue
7

README 摘要

Nfc-frog Kick-ass contactless credit card reader With nfc-frog you can extract data from many contactless EMV credit cards. Also it supports mulitiple reading modes, so you can choose mode which suits you best. Tested with: Visa, MasterCard, MIR (other cards should work too). Installation Project requires libnfc(>= 1.7.1) and Pn532 as NFC reader Usage Nfc-frog supports multiple modes for reading card data. GET…

完整内容见 GitHub 原始 README 或本页 。

常见问题

nfc-frog 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 365 个 Star。

nfc-frog 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 nfc-frog 的源码?

可以直接克隆仓库:git clone https://github.com/cuamckuu/nfc-frog.git,默认分支为 master;安装与运行步骤见仓库 README。

nfc-frog 最近还在维护吗?

仓库最近一次更新为 2023年10月31日,当前有 7 个未关闭 Issue;Star 数为 365,可作为社区活跃度的参考。

关于

Contactless EMV credit card reader

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

C
C++
Makefile

README

Nfc-frog

Kick-ass contactless credit card reader

With nfc-frog you can extract data from many contactless EMV credit cards. Also it supports mulitiple reading modes, so you can choose mode which suits you best.

Tested with: Visa, MasterCard, MIR (other cards should work too).

demo

Installation

git clone https://github.com/cuamckuu/nfc-frog.git
cd nfc-frog
make
sudo ./nfc-frog

Project requires libnfc(>= 1.7.1) and Pn532 as NFC reader

Usage

Nfc-frog supports multiple modes for reading card data.

GET PROCESSING DATA mode

This mode will call EMV command GET PROCESSING DATA and then it will read only files and record from command response.

In other words, it will ‘emulate’ POS terminal reading.

sudo ./nfc-frog GPO

Bruteforce mode (‘fast’ and ‘full’)

Brutforce mode doesn’t call GET PROCESSING OPTIONS to find files, it tries to use READ RECORD on many card files instead.

Both modes will iterate from SFI 1 to SFI 31 and for each existing file:

  • Fast mode will read info from record 1 to record 16.
  • Full mode will read info from record 1 to record 255.
sudo ./nfc-frog fast # Fast brute mode
sudo ./nfc-frog full # Full brute mode

Disable logging

To get card data only, you should disable stderr output.

For example:

# This way
sudo ./nfc-frog fast 2>&-

# Or this way
sudo ./nfc-frog fast 2>/dev/null

Parsing results

You can parse card data after reading by using one of many online EMV decoders. I personally prefer this one

Example with data from my MIR card: Parsed Data Example

Why nfc-frog?

There are bunch of readers for NFC credit cards, but most of them just don’t work or lacks some functionality. If there is no such problems, probably it’s an android lib/app.

The main idea of nfc-frog was to get working tool with better availability for everyone.

  • Should work with still any EMV cards by calling SELECT command for finding card’s applications;
  • Works with raw data, without trying to parse EMV ‘on fly’, so there are no EMV-related errors;
  • Full bruteforce mode won’t skip any card files, even hidden from GET PROCESSING OPTIONS;
  • You can use this tool with cheap pn532 ( about 5$ ), even if you don’t have phone with NFC reader ( which price starts from 80$ ).

评论

暂无评论