Henry Gabryjelski
f2ff5f757d
writeup from discord, plus extra text
...
Created as a strawman response to iceman's
suggestion that this would be useful in the repo.
Feel free to move it elsewhere / edit, as you prefer.
2024-08-23 21:08:13 -07:00
Henry Gabryjelski
f9dbe3fb6e
Update CHANGELOG.md
...
Signed-off-by: Henry Gabryjelski <henrygab@users.noreply.github.com >
2024-05-14 21:34:43 -07:00
Henry Gabryjelski
20711e7037
Add em4x70 tests
2024-05-14 21:06:35 -07:00
Henry Gabryjelski
f58992922d
limit freen color to calculated values
2024-05-14 20:35:27 -07:00
Henry Gabryjelski
2757881945
functions should be static where possible
2024-05-14 20:22:30 -07:00
Henry Gabryjelski
2952d55904
Add lf em 4x70 calc
2024-05-14 20:21:42 -07:00
Henry Gabryjelski
b7fff95b7c
Improve editor folding (some editors use indentation as cue)
2024-05-14 19:16:37 -07:00
Henry Gabryjelski
d27c084819
Internal code cleanup.
...
Reduce ambiguity in function and parameter names.
2024-05-14 19:16:05 -07:00
Henry Gabryjelski
483b192d40
rename parameter for em4x70_receive
...
Avoid generic "length" parameters, as they are often ambiguous.
Prefer `byte_count`, `element_count`, `bit_count` or more explicit names to reduce misunderstandings and thus reduce bugs.
2024-05-13 10:19:00 -07:00
Henry Gabryjelski
0de99805cd
Fix broken test
2024-05-06 09:09:46 -07:00
Henry Gabryjelski
c40f4be3e6
re-enable broken hitag2 test
2024-05-06 07:59:41 -07:00
Henry Gabryjelski
7712acff64
Use actions/setup-python for Ubuntu also
2024-05-05 18:35:38 -07:00
Henry Gabryjelski
9d33646b80
Disable broken hitag2 test so github actions work
2024-05-05 18:27:35 -07:00
Henry Gabryjelski
3d824425d2
Use actions/setup-python for MacOS
2024-05-05 18:23:45 -07:00
Henry Gabryjelski
18cbc7259c
prevent sending corrupt data to em4x70 tags
2024-05-05 16:00:16 -07:00
Henry Gabryjelski
b0b9f4fa42
Add key that tests autorecovery more quickly
...
This autorecovery test key also has three potential matches
for the last phase, thus ensuring authentication test is
required to determine which of those keys was actually used.
2024-05-05 15:57:26 -07:00
Henry Gabryjelski
569d57719d
Fix firmware return value for em4x70 to always be of type PM3_*
2024-05-05 15:54:00 -07:00
Henry Gabryjelski
c7d7680cd6
Decoder must not write more bit than requested
2024-03-13 23:23:31 -07:00
Henry Gabryjelski
cc2bae2f4d
lf em 4x70 writekey --> lf em 4x70 setkey
2024-03-13 09:38:35 -07:00
Henry Gabryjelski
ba83ac065e
lf em 4x70 writepin --> lf em 4x70 setpin
2024-03-13 09:25:43 -07:00
Henry Gabryjelski
7fbc6b2e47
fix formatting error
2024-03-11 18:28:47 -07:00
Henry Gabryjelski
7036e91f2e
Add to changelog
2024-03-11 18:16:59 -07:00
Henry Gabryjelski
0a598b254c
make style changes
2024-03-11 17:28:05 -07: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
Henry Gabryjelski
b4cfeca9fa
Use INFO instead of NORMAL for PrintAndLogEx()
2024-03-03 12:17:02 -08:00
Henry Gabryjelski
12ee192782
disable assertions in PM3 build
2024-03-03 12:17:02 -08:00
Henry Gabryjelski
6c1aa10c91
bugfix: random alt nonce wasn't.
...
also improve output of multiple potential keys (remove extra `\n`)
2024-03-03 12:17:02 -08:00
Henry Gabryjelski
d4942584ec
Add CHANGELOG entry
2024-03-03 12:16:57 -08:00
Henry Gabryjelski
545c152d72
Remove large (128k) lookup table
2024-03-03 12:16:16 -08:00
Henry Gabryjelski
4ebd6d4bff
Add id48lib and second half of key recovery.
2024-03-03 12:16:16 -08:00
Henry Gabryjelski
5b038631ca
Comments change only
2024-03-03 12:16:16 -08:00
Henry Gabryjelski
d3ae908b5f
mark additional function as static
2024-03-03 12:16:16 -08:00
Henry Gabryjelski
940f63776c
allow users to cache distinct Makefile.platform.xxx files
2024-03-02 13:25:01 -08:00
Henry Gabryjelski
2442a9f4f2
update wsl2 instructions for USBIPD v4.0.0
2024-01-28 19:05:05 -08:00
Henry Gabryjelski
1ecb00f6c3
Fix style error in udev rules.
...
As called out by running `udevadm verify`,
the existing rules violate the requirement
that sections are separated by commas,
(not whitespace).
2024-01-28 14:21:28 -08:00
Henry Gabryjelski
627cf6e3d5
Slow clock speed message update
...
Signed-off-by: Henry Gabryjelski <henrygab@users.noreply.github.com >
2023-11-14 01:52:02 -08:00
Henry Gabryjelski
939d3d4a93
Remove incorrect message (my own regression)
2023-10-30 17:26:07 -07:00
Henry Gabryjelski
f2ed7d1299
Fix mf file loading error
...
Code was incorrectly checking if loop variable
`i` was greater than maximum data length,
rather than checking current buffer pointer.
2023-10-30 15:46:37 -07:00
Henry Gabryjelski
78262139ec
more const for lfsampling and lfzx
2023-08-14 23:07:19 -07:00
Henry Gabryjelski
665cf3254b
more const for lfops and some commonutil
2023-08-14 23:02:09 -07:00
Henry Gabryjelski
d78dae5904
more const for legicrf and the disabled LCD code
2023-08-14 22:50:25 -07:00
Henry Gabryjelski
db46e2ce11
more const for iso15693
2023-08-14 22:45:48 -07:00
Henry Gabryjelski
a8d84b2f13
more const for iso14443b
2023-08-14 22:16:11 -07:00
Henry Gabryjelski
efce76db53
more const for iso14443a
2023-08-14 22:07:04 -07:00
Henry Gabryjelski
8af8723528
const for i2c
2023-08-14 21:45:21 -07:00
Henry Gabryjelski
6eae62edec
const for hitagS
2023-08-14 20:34:13 -07:00
Henry Gabryjelski
db8f91d7e1
make logfile more unique (per client run)
2023-08-14 20:01:20 -07:00
Henry Gabryjelski
c858d6fdc7
Minor update to WSL2 instructions
2023-08-14 19:07:35 -07:00
Henry Gabryjelski
0b143e5bcd
Add 5..8 byte versions for LE/BE conversions
2023-08-14 18:57:36 -07:00
Henry Gabryjelski
47ea4d6566
const for hitag2
2023-08-09 00:11:52 -07:00
Henry Gabryjelski
282c0904a5
visual alignment only .. no code change
2023-08-09 00:08:13 -07:00
Henry Gabryjelski
890ea0d321
const for hfops
2023-08-09 00:03:48 -07:00
Henry Gabryjelski
6f38c814a7
Note inconsistency in FPGA frame layout docs.
2023-08-08 23:59:42 -07:00
Henry Gabryjelski
6804e719e5
const for felica
2023-08-08 23:55:20 -07:00
Henry Gabryjelski
63a457c27f
const and static functions for epa
2023-08-08 23:38:26 -07:00
Henry Gabryjelski
0af484fdee
const for em4x70
2023-08-08 23:24:10 -07:00
Henry Gabryjelski
1a8ef489c8
const for em4x50
2023-08-08 23:03:34 -07:00
Henry Gabryjelski
e973aebae6
Workaround SPIFFS lack of const
2023-08-08 22:56:51 -07:00
Henry Gabryjelski
b279df2d46
more const - spiffs
2023-08-08 22:50:34 -07:00
Henry Gabryjelski
31645c56b0
more use of const
2023-08-08 21:09:31 -07:00
Henry Gabryjelski
7801abf7a5
Localize effect of unused macro
2023-08-08 21:06:17 -07:00
Henry Gabryjelski
5bd8058113
More const enabled
2023-08-08 21:03:36 -07:00
Henry Gabryjelski
5e71621c69
const improvement for BigBuf.h
2023-08-08 20:52:21 -07:00
Henry Gabryjelski
0bd7dbb6c9
Add datasheet for the FPGA and a common flash chip
2023-08-04 12:43:18 -07:00
Henry Gabryjelski
ce85fe0099
allow case-insensitive match of WSL strings
2023-02-19 01:44:15 -08:00
Henry Gabryjelski
fe98b3821f
Prevent double-enumeration under WSL2
2023-02-18 23:48:08 -08:00
Henry Gabryjelski
28af1a870d
Prevent buffer overflow in AppendGraph()
2023-02-18 12:50:05 -08:00
Henry Gabryjelski
89ce0acf31
improve const correctness
2023-02-18 12:34:16 -08:00
Henry Gabryjelski
c531bd0f65
make style updates
2023-02-18 12:20:43 -08:00
Henry Gabryjelski
229454963b
standardize flash uniqueID to big-endian
2023-02-18 12:16:50 -08:00
Henry Gabryjelski
b520f1ff5d
check daughterboard connection for SIM issues
...
Signed-off-by: Henry Gabryjelski <henrygab@users.noreply.github.com >
2023-02-18 11:17:06 -08:00
Henry Gabryjelski
48ca513a96
updates from make style
2023-02-17 17:27:07 -08:00
Henry Gabryjelski
6eea476076
Add changelog
2023-02-17 17:19:01 -08:00
Henry Gabryjelski
44676bde72
Bootrom: Enable serial number from flash
...
* Add `.ramfunc` section to bootrom loader script
* exclude spiffs functionality from flashmem.h/flashmem.c
(allows bootrom to use flashmem)
* hide unused tick.h / flashmem.h functions from bootrom
(not technically necessary; see comments)
* bootrom: add source files, include path, and defines when
`PLATFORM_DEFS` defines `WITH_FLASH`
* Define `AS_BOOTROM` to indicate code is building for bootrom
2023-02-17 17:07:13 -08:00
Henry Gabryjelski
5784c8de77
Update USB Serial Number from SPI flash's uniqueID
...
Also allow flash to be separately enabled via PLATFORM_EXTRAS.
NOTE: this does *NOT* enable the serial number
in the bootrom. Still investigating options there.
2023-02-17 17:07:13 -08:00
Henry Gabryjelski
55f85a82c9
Add changelog
2023-02-08 23:01:50 -08:00
Henry Gabryjelski
c6b6f2b6a7
Option for PR 1902
2023-02-07 19:20:42 -08:00
Henry Gabryjelski
99f24b23b8
fix copy/paste error
2023-01-31 10:01:54 -08:00
Henry Gabryjelski
1a214b389c
changelog
2023-01-31 10:01:54 -08:00
Henry Gabryjelski
bfc3a53ea2
Modify Makefile to copy group-specific udev rules
2023-01-31 10:00:36 -08:00
Henry Gabryjelski
032f304bf9
Enable use under WSL2 w/Kali Linux distribution
...
* Assign group ownership and permissions in udev rules
* Add documentation on WSL2 installation and use
2023-01-31 10:00:36 -08:00