70 Commits
Author SHA1 Message Date
Philippe Teuwen d6f74b342e Make sure RAMFUNC is not inlined, else it won't be in RAM.
Some static RAMFUNC got inlined which means they weren't relocated in RAM.
By forcing noinline on RAMFUNC, the following functions move to RAM:

F .data 00000034 optimizedSniff
F .data 00000148 skipSniff
F .data 000002c8 ManchesterDecoding_Thinfilm

But ManchesterDecoding_Thinfilm worked fine without being in RAM,
so we remove its RAMFUNC attribute and it works as previously,
and avoid eating some RAM bytes.

In summary, impacted command is only:

hf sniff
2026-02-11 14:19:05 +01:00
Aaron Tulino (Aaronjamt) 2197d9fc9f Fix ROTR conflict 2025-12-21 03:49:45 -07:00
douniwan5788 d13e7b0b64 Refactor the concatbits function to support both MSB and LSB first src 2025-03-15 15:21:58 +08:00
iceman1001 c8849af5e0 This is the major changes made to the HITAG2 commands. Its heavly based on RFIDLers implementation and its been converted to work with Proxmark3. Special thanks to @kevsecurity for his amazing implementations of the Gone in 360 Seconds paper by Roel, Flavio & Balasch. Thanks to @adamlaurie for his RFIDler project. It wouldnt been doable without it. 2024-04-22 16:20:24 +02:00
Henry Gabryjelski 160d61682b Add lf em 4x70 autorecover
Also:
* common.h: Increase safety of some of the macros.
  Parenthesizing the macro parameters ... a best practice.
* firmware: partially-tracked source of "extra bits" messages.
  Add a TODO comment for further study.
* Improve reliability of `lf em 4x70 writekey`
  Authenticate w/new key after it is written.
  Particularly important for glass modules,
  or other tags with weaker coupling.
2024-03-11 17:14:03 -07:00
wh201906 ab9f49f86e Some minor fixes
Use longer timeout in WaitForRawDataTimeout() to handle CMD_WTX
Fix a wrong type
Apply changes to other similar part
Remove unused instructions
2023-11-14 10:46:45 +08:00
wh201906 b4cc7c02cd Real-time LF sampling mode on armsrc 2023-11-14 01:43:20 +08:00
iceman1001 6cbebb29dc mingw seems to doesnt like backslashes 2023-01-08 21:56:38 +01:00
iceman1001 d6af860136 adapt path separator to handle WIN32 backslash. 2022-12-31 22:30:07 +01:00
IcemanandGitHub 1c6abece54 Merge branch 'master' into sha 2022-02-25 11:42:20 +01:00
iceman1001 7310834b69 added a compact tlv decoder for ATR historical bytes in 14a info 2022-02-19 00:15:34 +01:00
Philippe Teuwen bbf49ab560 Add a fingerprint of the ARM OS source files to detect when a client expects another ARM image 2022-02-17 01:43:39 +01:00
Philippe Teuwen 30aa7aa7d1 Adapting license headers, WIP 2022-01-08 00:40:52 +01:00
Philippe Teuwen 5b54385347 rename globals 2021-08-21 23:08:26 +02:00
Philippe Teuwen 8280fc3c07 rename global version_information and its struct type 2021-08-21 20:11:22 +02:00
iceman1001 88d9942d3f fix little endian vs big endian in the macros 2021-06-22 07:49:17 +02:00
iceman1001 16783000f0 rework some defines 2021-05-16 23:03:13 +02:00
Philippe Teuwen e5c5629cf2 Some tunings of otptear:
- make tearoff_delay_us and tearoff_enabled globals
- use tearoff_hook and remove Dbprintf in critical tearoff timing
- move initial write from MifareU_Otp_Tearoff to CmdHF14AMfuOtpTearoff and make it optional (old behavior was writing initial 00000000 when -d was not provided)
- tearoff: compare with initial write, not with previous tearoff outcome
- rephrase some messages
- track all begin and end of erase and write phases, with quite complex logic to cover multiple cases (starting in middle of erased phase, starting with write 0, ...) and report them
- check against initial write error
- repeat same timing (up to 10x) in case of write/read errors then quit
- typos
2021-03-07 23:48:55 +01:00
Philippe Teuwen 90775638b1 Revert "fix: osx doesn't like target directive"
This reverts commit 690db96a7d.
2020-06-08 11:07:45 +02:00
iceman1001 690db96a7d fix: osx doesn't like target directive 2020-06-07 22:05:54 +02:00
iceman1001 a9d89c7d06 fix: RAMFUNC 2020-06-07 19:46:41 +02:00
iceman1001 00ece05e79 added python3 scripts has their own folder 2020-05-26 11:30:37 +02:00
Philippe Teuwen a6f76444de Put logfiles in subdir 2020-05-24 01:20:43 +02:00
Philippe Teuwen f54f8103ac fix pathsep in subdirs 2020-05-24 01:03:23 +02:00
Philippe Teuwen ef586c2a41 version info also for client, still cmake to do 2020-05-20 21:11:45 +02:00