Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added Support for MIFARE Plus 2K Cards in SL1 Mode#4316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
LuemmelSec wants to merge2 commits intoflipperdevices:dev
base:dev
Choose a base branch
Loading
fromLuemmelSec:dev

Conversation

@LuemmelSec
Copy link

What's new

Added Support for MIFARE Plus 2K Cards in SL1 Mode
MIFARE Plus 2k cards in SL1 mode - emulating a MIFARE Classic card - would get recognized as MIFARE Classic 1K card and Flipper would stop checking after sector 16. However, 2k cards in SL1 mode offer more sectors, typically 2 additional ones, which Flipper would miss and break the cards and emulation if there is stuff written to these sectors that is needed for it to function.

There is now a detection logic for 2k cards and the additional sectors are also read and cam be emulated.
This is also in reference to:#4053

Verification

Scan a MIFARE Plus 2K card in SL1 mode an see that only 16 sectors are scanned and Flipper detects it as MIFARE Classic 1K card.
Install the new firmware and observer that the 2K card is now correctly recognized and the additional sectors read.

image

Checklist (For Reviewer)

  • [x ] PR has description of feature/bug or link to Confluence/Jira task
  • [x ] Description contains actions to verify feature/bugfix
  • [x ] I've built this code, uploaded it to the device and verified feature/bugfix

fantomazz26 reacted with thumbs up emoji
MIFARE Plus 2k cards in SL1 mode - emulating a MIFARE Classic card - would get recognized as MIFARE Classic 1K card and Flipper would stop checking after sector 16.However, 2k cards in SL1 mode offer more sectors, typically 2 additional ones, which Flipper would miss and break the cards and emulation if there is stuff written to these sectors that is needed for it to function.There is now a detection logic for 2k cards and the additional sectors are also read and cam be emulated.
Copy link

@fantomazz26fantomazz26 left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Vamos a aprovechar 🫠

fantomazz26 reacted with rocket emoji
@LuemmelSec
Copy link
Author

Be careful though. While it 1:1 reads the emulated tag on another Flipper as well as on a PM3 easy, the original reader would not recognize it for some reason. Still trying to find out why that might be.

@mxcdoam
Copy link
Contributor

mxcdoam commentedDec 15, 2025
edited
Loading

Hello, are you sure 2k sl1 cards have 18 sectors? I'm asking because all of mine have 32 sectors. I've tested this change, fz was able to detect 2k sl1, but was able to read 18 sectors only.

@LuemmelSec
Copy link
Author

Yes they potentially can, it's a 2k card.
However, as SL1 is emulating a 1K card, I only found 2k SL1s with 2 additional sectors written to.

@mishamyte
Copy link
Contributor

mishamyte commentedDec 15, 2025
edited
Loading

Can u pls reference datasheet or source of truth, which led you to the assumption there are 18 sectors?

Because in datasheet it's clearly described there are 32 sectors (2 kb) for MFP 2K in SL1.

I validated bunch of tags from different suppliers and real systems (like old transport cards from my city) and all tags have 32 sectors as described in DS.

Mifare-Plus-S.pdf

UPD. I can assume prob ur system for some reason changed pwd for 19+ sectors from factory to custom ones?

mxcdoam reacted with thumbs up emoji

@LuemmelSec
Copy link
Author

My card also has 32 sectors, but written data is only on sectors 16 + 17 as an addition. All others show up as unresponsive / no data in there.
This also plays into the same observation as mentioned in#4053.
I can assure you that there are no passwords on sectors after 17 for my card.
Anyways, I changed the code to read and emulate all 32 sectors now.

mishamyte and mxcdoam reacted with thumbs up emoji

@mishamyte
Copy link
Contributor

@LuemmelSec WDYM by "unresponsive"? Not sure I get u correctly.

If you will callhf mf rdsc -s 20 from PM3, you prob will get the default data (zeroes) and factory keys, correct?

Yeah, I see the change. It has more sense now TBH

@LuemmelSec
Copy link
Author

Nope, that is not correct. In my case it looks like this:
image

@mishamyte
Copy link
Contributor

@LuemmelSec hmm, weird

@mxcdoam
Copy link
Contributor

Nope, that is not correct. In my case it looks like this:

Those sectors might be blocked by AC, or put into sl3 mode (MF Plus EVs can do that sector-wise)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@DrZlo13DrZlo13Awaiting requested review from DrZlo13DrZlo13 is a code owner

@hedgerhedgerAwaiting requested review from hedgerhedger is a code owner

@gsurkovgsurkovAwaiting requested review from gsurkovgsurkov is a code owner

@gornekichgornekichAwaiting requested review from gornekichgornekich is a code owner

@nminaylovnminaylovAwaiting requested review from nminaylovnminaylov is a code owner

1 more reviewer

@fantomazz26fantomazz26fantomazz26 left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@LuemmelSec@mxcdoam@mishamyte@fantomazz26

[8]ページ先頭

©2009-2025 Movatter.jp