Commit Graph
28 Commits
Author SHA1 Message Date
Uli Heilmeier 12ed4f1fdf Standalone mode hf_legicsim
Add a standalone mode to simulate Legic Prime dumps stored on flash
2022-02-15 17:26:05 +01:00
Uli Heilmeier aa38b5ca61 Adopt CodeQL to proxmark3 2022-02-15 13:34:35 +01:00
Uli Heilmeier e9087175a2 cmdhflegic: Make sure to show help text
Show usage when parameter h is used or none parameter
2020-10-12 11:25:32 +02:00
Uli Heilmeier f9eb1d3d77 Makefile: fix PKG_CONFIG_ENV
renaming PKG_CONFIG_PATH to PKG_CONFIG_ENV was too greedy
2020-04-29 22:52:41 +02:00
Uli Heilmeier 18f875cb84 cmake macOS: use brew installed readline 2020-04-18 16:24:29 +02:00
Uli Heilmeier c888fcdb7e Fix cmake qt: remove REQUIRED 2020-04-18 16:24:29 +02:00
Uli Heilmeier 6562c22029 Fix qt5_found handling 2020-04-18 16:24:29 +02:00
Uli Heilmeier 64e7aa4c46 cmake: fix qt handling for macos
This is like we find qt in the Wireshark project.

Tested it with macOS. Not tested with Linux, Windows etc.
2020-04-18 16:24:29 +02:00
Uli Heilmeier d67af053fc AID Desfire: Add clipper card 2020-04-14 21:27:41 +02:00
Uli Heilmeier dc002d224a cmdhfmfdes: Fix clang tautological-pointer-compare warning
Fixes:  RfidResearchGroup/proxmark3#676
2020-04-13 12:56:36 +02:00
Uli Heilmeier c96af80e44 Merge remote-tracking branch 'upstream/master' into hfmfdes-clang-warn 2020-04-09 14:39:46 +02:00
Uli Heilmeier dcede2f8e3 cmdhfmfdes: fix clang warnings
Make clang happy and fix several
error: expression which evaluates to zero treated as a null pointer constant of type 'uint8_t *' (aka 'unsigned char *')
      [-Werror,-Wnon-literal-null-conversion]
and
cmdhfmfdes.c:732:31: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]

Fixes RfidResearchGroup/proxmark3#659
2020-04-09 13:26:43 +02:00
Uli Heilmeier 43b5ee5918 legic.lua: updated to work again
Fixed/changed things:

* added info that virtual tag is always MIM1024
* changed reading files to read binary files (as written by 'hf legic dump')
* changed extension for writing files (*.bin and *.eml) to be on par with 'hf legic dump'
* CRC was calculated wrong when data was not padded with 0 for one char hex strings
* readTag (rt) can now be called multiple times without using the wrong filename
* tag length was calculated wrong as segment header length field includes the header itself
* bytes are XORed before writing them to a tag
* default name for file contains now the tag id
2020-04-09 10:24:58 +02:00
Uli Heilmeier 75943044a5 hf legic wrbl: fix Out-of-bounds check
Check was off-by-one so that the last byte was not writable.
2020-04-07 19:58:23 +02:00
Uli Heilmeier eac19be414 Legic_clone.lua: Adopt last command changes 2020-04-05 13:16:14 +02:00
Uli Heilmeier 16b14aa0e6 Legic_clone.lua: Refactor to work with current command set
Refactored to work with current command set and MIM256 and MIM1024 tags
2020-04-05 13:07:30 +02:00
Uli Heilmeier 0f6a1cd8c3 Doc: Update trace notes
First draft of some informations regarding trace command.
2020-03-31 17:54:51 +02:00
Uli Heilmeier 0733310300 Makefile: target checks for macOS
recode is missing on macOS by default.
grep on macOS is BSD grep by default.
2020-03-30 11:03:43 +02:00
Uli Heilmeier db02a1f306 HF_Legic: remove global variable and cleanup
As requested by @iceman1001:
* removed global variable
* updated according to make style
* added entry in CHANGELOG.md
2020-03-30 10:22:45 +02:00
Uli HeilmeierandStefanie Hofmann 8c8a86cb83 Standalone mode: Adding Legic Prime read/sim run
This commit adds a standalone mode for Legic Prime.
It reads and simulates a Legic tag.
Tested with MIM1024 tags.
MIM256 and MIM512 should work to. We just read the data and for simulating
we pretend to be a MIM1024 card.

Co-authored-by: Stefanie Hofmann <>
2020-03-27 14:08:45 +01:00
Uli Heilmeier 24be423551 Readme: Fix links 2019-08-30 21:02:48 +02:00
Uli Heilmeier a4010900ea Doc: Add notes about trace to Wireshark export
Adding some notes how to bring trace output into Wireshark.
2019-08-18 20:06:15 +02:00
Uli Heilmeier 0b1479b43c BT Manual: Update device info for macOS 2019-07-07 21:33:00 +02:00
Uli Heilmeier 345f936054 Doc: Update macOS install instruction
Reviewed install instructions for macOS and updated where necessary.
2019-05-10 22:39:54 +02:00
Uli Heilmeier a1c24c6c7d Cmdtrace: Show trace ouput in hexdump format
Adding option 'x' to show trace output for 14a in hexdump format.
This output can be imported into Wireshark using the 'Import from Hex Dump' option.
Encapsulation type should be set to 'ISO 14443' and Max Frame Length to 256.

Format defined at https://www.kaiser.cx/pcap-iso14443.html
2019-05-10 16:03:39 +02:00
Uli Heilmeier 0119e13ff3 client/comms.c: fix buffer overflow
Don't copy more bytes into pm3_capabilities as its size.

Fix: RfidResearchGroup/proxmark3#189
2019-05-10 14:50:09 +02:00
Uli Heilmeier 94b782ee10 client/Makefile: use brew libreadline on macOS
Make sure we use libreadline from brew and not the default macOS shipped one.
Otherwise compilation fails for undefined rl_event_hook
2019-05-10 12:24:38 +02:00
Uli Heilmeier 52179146b6 cmdparser: fix copy& paste typo 2019-05-01 21:31:34 +02:00