From 22dc41f4ca5234e12ff83ed50842c21819c60f9d Mon Sep 17 00:00:00 2001 From: Michael Micsen Johannessen Wehus Date: Thu, 15 Aug 2024 08:29:45 -0700 Subject: [PATCH] Add issuance level encoding capability to iclass encode command --- CHANGELOG.md | 1 + client/src/cmdhficlass.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c55318a6..beb4f5473 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] +- Added --issue to hf iclass encode command (@micsen) - Added custom CTF Wiegand format from Defcon32 with comments (@micsen) - Added native output grabbing for Python and Lua: less hacky than `output_grabber.py`, should work on ProxSpace as well (@doegox) - Changed `hf mf chk/fchk`: added option `--no-default` to skip loading the usual ~61 hardcoded keys (@doegox) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index 11b3712b4..5d5a30681 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -4595,6 +4595,7 @@ static int CmdHFiClassEncode(const char *Cmd) { arg_str0("w", "wiegand", "", "see " _YELLOW_("`wiegand list`") " for available formats"), arg_lit0(NULL, "shallow", "use shallow (ASK) reader modulation instead of OOK"), arg_lit0("v", NULL, "verbose (print encoded blocks)"), + arg_u64_0(NULL, "issue", "", "issue level"), arg_param_end }; CLIExecWithReturn(ctx, Cmd, argtable, false); @@ -4635,6 +4636,7 @@ static int CmdHFiClassEncode(const char *Cmd) { memset(&card, 0, sizeof(wiegand_card_t)); card.FacilityCode = arg_get_u32_def(ctx, 7, 0); card.CardNumber = arg_get_u32_def(ctx, 8, 0); + card.IssueLevel = arg_get_u32_def(ctx, 12, 0); char format[16] = {0}; int format_len = 0;