Commit graph

10875 commits

Author SHA1 Message Date
iceman1001 34d8a41021 hw ping - fix output text 2023-10-19 11:08:53 +02:00
iceman1001 1f3cf80898 style 2023-10-18 20:34:35 +02:00
iceman1001 185da09e62 we use calloc 2023-10-18 20:20:55 +02:00
iceman1001 efac735bad added support for HID SAM picopass communications. Nasty array copying but does the trick. Will need refactoring. 2023-10-18 19:59:34 +02:00
Self Not Found 7dbdc7cf10
Add short flag -m for timeout related commands 2023-10-18 18:47:32 +08:00
Jean-Michel Picod dbe0412311 Simplify quote handling 2023-10-18 10:38:33 +02:00
Jean-Michel Picod 3b7cec365a Support double-quoted arguments in CLI
When a quoted command argument is seen, it will take all characters
until the next double-quote (no supported escape sequence here for
simplicity).
All white spaces (space, tab, etc.) are then removed from the argument.

This means that the following command should behave the same:
```
pm3> wiegand encode --fc 101 --cn 1337
pm3> wiegand encode --fc "1 0 1" --cn "1    3    3   7"
```

Or a more useful example, when copy/pasting hex formatted values:
```
pm3> hf iclass calcnewkey --old 1122334455667788 --new 2233445566778899
pm3> hf iclass calcnewkey --old "11 22 33 44 55 66 77 88" --new "22 33 44 55 66 77 88 99"
```
2023-10-18 10:27:12 +02:00
wh201906 5e22ed25bc
Add UDP support on Windows 2023-10-17 22:48:12 +08:00
iceman1001 78e1a84515 added the timeout to preferences, so its stored in the pref file but... there need to be adaptations to the uart_p*/uart_w* files to use the the session value.. 2023-10-17 14:54:44 +02:00
wh201906 d1f916ba25
Reduce the default communication timeout for local IPv6 address 2023-10-17 20:20:21 +08:00
wh201906 d9b5afbb92
Add IPv6 support for TCP (Windows) 2023-10-17 19:40:41 +08:00
wh201906 67d36152cc
Add IPv6 support for UDP (Linux) 2023-10-17 18:40:17 +08:00
wh201906 2e0c24c8f2
Add IPv6 support for TCP (Linux) 2023-10-17 18:32:13 +08:00
wh201906 bd34794d26
Add error handling 2023-10-16 21:12:14 +08:00
wh201906 703a2c968a
Faster uart_receive() in UDP mode
Added some functions for writing data to the ring buffer directly
Increased the size of ring buffer
2023-10-16 20:05:42 +08:00
iceman1001 d738f3171c maur, thanks to Randy! 2023-10-16 10:14:38 +02:00
wh201906 3df58f3a9e
Clean up 2023-10-16 02:09:22 +08:00
wh201906 5775b53078
UDP support on Linux 2023-10-16 01:56:03 +08:00
wh201906 7aef669e59
Add ringbuffer
This is used in the UDP connection
2023-10-16 01:52:27 +08:00
iceman1001 13f9972f39 fix coverity resource leak 2023-10-15 17:49:48 +02:00
iceman1001 ade322a410 style 2023-10-15 17:14:56 +02:00
iceman1001 12fc664870 updated commands and text 2023-10-15 17:11:36 +02:00
iceman1001 8a9c043aa6 fixing "lf hid clone --bin" param to correctly handle sentinel bit 2023-10-15 15:23:14 +02:00
iceman1001 026cd7d53d style 2023-10-15 13:21:16 +02:00
iceman1001 0442e04e05 text 2023-10-15 13:19:33 +02:00
Iceman ac25c9d47a
Merge pull request #2129 from Antiklesys/master
Fixed iclass offline mode commands
2023-10-15 12:39:49 +02:00
Antiklesys 22b85c74d8 Fixed iclass info available in offline mode
Fixed iclass info available in offline mode
2023-10-15 18:27:25 +08:00
iceman1001 a348d58c6d support fct 2023-10-15 11:24:48 +02:00
Antiklesys 90ac7fb67b Fixed iclass offline mode commands
Fixed iclass offline mode commands
2023-10-15 13:59:38 +08:00
iceman1001 fc6feea0d4 experimental UDP support. Doesnt quite work yet 2023-10-14 20:30:13 +02:00
iceman1001 0490dc9d07 use strstr instead of memcmp 2023-10-14 11:00:15 +02:00
Iceman 80ac7972fd
Merge branch 'master' into master
Signed-off-by: Iceman <iceman@iuse.se>
2023-10-14 09:52:55 +02:00
Self Not Found f90434521e
Reduce latency in local TCP connection 2023-10-14 14:16:30 +08:00
iceman1001 6e1cf6c0de added a C sample of grabbing output 2023-10-13 22:51:12 +02:00
Antiklesys 28c4f66c0b Update cmdhficlass.c 2023-10-13 22:53:29 +08:00
Antiklesys 0692af8425 Update cmdhficlass.c
Reverted changes as otherwise the check is ignored.
2023-10-13 22:22:10 +08:00
Antiklesys 7b4af95a40 Update cmdhficlass.c 2023-10-13 22:16:10 +08:00
Antiklesys e4f373dd65 Finished configcard implementation for keyroll cards
Finalized implementation of configcard generation for keyroll when cardhelper is not present.
Results need to be compared with cardhelper output.
2023-10-13 21:54:07 +08:00
Iceman 449eacdee5
Merge pull request #2125 from Antiklesys/master
Ported configcard from nfc-iclass
2023-10-13 11:34:31 +02:00
iceman1001 8a8288ec25 fix the doubletts.. 2023-10-13 08:40:54 +02:00
iceman1001 168b9eea7a Bandai Namco Passport [fka Banapassport] / Sega Aime Card.
BNPs / Aimes endorsed with the Amusement IC Logo use FeliCa and will not work with the below keys.
Dumped on the Flipper Devices Discord Server
2023-10-13 08:23:20 +02:00
Antiklesys ef9b57748a Ported configcard from nfc-iclass
Enabled creation of configcards without cardhelper using nfc-iclass data
2023-10-13 00:29:40 +08:00
iceman1001 0ff41fa652 style 2023-10-12 14:53:26 +02:00
iceman1001 3a1a09ef63 adapt to be online mode only 2023-10-12 09:37:44 +02:00
iceman1001 82294d71f6 making sure apdu logging is turned off after command execution. Still some commands when failing, hasnt been adapted to it. 2023-10-11 12:43:58 +02:00
iceman1001 29712bfde6 text 2023-10-10 19:49:27 +02:00
iceman1001 8625fc3283 maur 2023-10-10 19:47:35 +02:00
iceman1001 7cec258349 minor adjustments to texts 2023-10-09 20:09:22 +02:00
iceman1001 6229021f07 use the ISO7816 defines we already have 2023-10-09 15:24:57 +02:00
iceman1001 7b3e84c0d6 better fix for the PAGEMAP issue 2023-10-09 15:14:53 +02:00
iceman1001 d41f0c394e hf iclass wrbl - the pagemap bit maps isnt the best to handle all four cases. This atleast fixes one issue with them 2023-10-09 15:04:49 +02:00
iceman1001 3d9d8253a6 maur 2023-10-07 12:20:51 +02:00
Adam Jon Foster 3243414c20
Update mfc_default_keys.dic
Added Keys found on old cards plus notes on another key sighting

Signed-off-by: Adam Jon Foster <me@evildaemond.com>
2023-10-05 17:37:29 +08:00
nvx c1c512f325 Changed hf iclass view/decrypt to detect SIO lengths better and show if legacy credentials are encrypted 2023-10-04 18:40:58 +10:00
iceman1001 4f96d3eb46 style 2023-10-03 17:10:39 +02:00
iceman1001 dee03b414c fix some coverity 2023-10-02 21:47:35 +02:00
iceman1001 010668ebb1 clean up 2023-10-02 21:39:15 +02:00
iceman1001 e94a653038 missing return 2023-10-02 21:04:21 +02:00
iceman1001 115e85e5d4 missing defines 2023-10-02 21:01:08 +02:00
iceman1001 89db5d3875 text 2023-10-02 20:59:01 +02:00
iceman1001 fb23d2047f reworked the JSON format for 14a, 14b, 15, cryptorf, lto, NDEF.\nDeprecated EML format. Pm3 client do not save EML files any more.nPm3 client will continue to load EML files. 2023-10-02 20:11:23 +02:00
iceman1001 bb5d61dca7 added some helper functions 2023-10-01 13:05:08 +02:00
iceman1001 7320f0dd16 thanks @gentilkiwi for pointing it out 2023-09-29 21:41:27 +02:00
iceman1001 278a179308 fixed sim fw 2023-09-29 20:50:39 +02:00
iceman1001 59d67b3606 fix newline in output 2023-09-28 08:54:32 +02:00
iceman1001 1234b08132 adapt to new sim module firmware version 2023-09-28 08:46:04 +02:00
iceman1001 f9f42337c3 Sim Module FW4.42 build from GentilKiwis C impl. 2023-09-28 08:35:48 +02:00
iceman1001 44fe3ec38f smart raw --timeout parameter 2023-09-27 22:09:01 +02:00
iceman1001 b0ec0ee60b maur 2023-09-19 16:36:39 +02:00
iceman1001 b6e1344e1c added a custom timeout parameter to the smart raw command 2023-09-16 18:38:53 +02:00
iceman1001 3ff659fd98 fix newline issue 2023-09-16 09:31:42 +02:00
iceman1001 ec0d27685c adapt script to handle SE SAM again 2023-09-16 09:22:45 +02:00
iceman1001 d7f306084a colors for kiwi 2023-09-15 21:48:57 +02:00
iceman1001 ce76e4e351 update ATR list 2023-09-15 21:44:02 +02:00
iceman1001 25ab507137 length var is set in the preamble check... 2023-09-14 05:15:38 +02:00
iceman1001 ddfbd7f549 allow for t55xx detection to search for 0xE039 (Silicon Craft technology) 2023-09-13 21:12:09 +02:00
spandox2 5baba1fd43
Update cmdhfmf.c
Signed-off-by: spandox2 <31641448+spandox2@users.noreply.github.com>
2023-09-11 13:48:09 -04:00
spandox2 7a832e175e
Update cmdhfmf.c
Signed-off-by: spandox2 <31641448+spandox2@users.noreply.github.com>
2023-09-11 13:43:41 -04:00
spandox2 b9efd8ce48
Update cmdhfmf.c
text change

Signed-off-by: spandox2 <31641448+spandox2@users.noreply.github.com>
2023-09-11 13:24:54 -04:00
spandox2 67bfddde57
Update cmdhfmf.c
Changed ERR to HINT

Signed-off-by: spandox2 <31641448+spandox2@users.noreply.github.com>
2023-09-11 13:18:56 -04:00
spandox2 5584410bbc
Update cmdhfmf.c
Problem: "hf mf autopwn" gave no response if no card was detected, leaving user confused.
Solution: Change a DEBUG message to an ERR and give a hint that the card may be poorly positioned.

Signed-off-by: spandox2 <31641448+spandox2@users.noreply.github.com>
2023-09-11 11:56:45 -04:00
spandox2 cf92d8edc0
Update cmdhfmf.c
Changed line 2510 to change DEBUG to ERR

Signed-off-by: spandox2 <31641448+spandox2@users.noreply.github.com>
2023-09-11 11:43:04 -04:00
iceman1001 4632e15dab maur... 2023-09-10 19:51:21 +02:00
Iceman b9bb72ce8e
Merge pull request #2107 from Antiklesys/master
Update hf_mf_ultimatecard.lua
2023-09-10 17:14:52 +02:00
Antiklesys 77258365d4 Update hf_mf_ultimatecard.lua
Fixed bug, should be 13 instead of 12 as there are two 12 otherwise and this is referring to the 128b one instead
2023-09-10 23:03:53 +08:00
Iceman 9a5c262ccf
Merge pull request #2106 from nvx/feature/iclass_epurse_credit
Add `hf iclass creditepurse` command to allow crediting the epurse debit value
2023-09-10 15:20:11 +02:00
nvx 186308cb4a Add hf iclass creditepurse command to allow crediting the epurse debit value. 2023-09-10 23:00:23 +10:00
Antiklesys 2fb281bdc1 Update iclass_default_keys.dic 2023-09-10 19:11:21 +08:00
Antiklesys b57f90b524 Update hf_mf_uidbruteforce.lua
Fixed issue with how the command is run, old version is invalid as it is missing the -t
2023-09-10 19:09:18 +08:00
Antiklesys f29c409275 Merge branch 'master' of https://github.com/Antiklesys/proxmark3 2023-09-10 19:07:38 +08:00
iceman1001 b59fad842b reworked the decimal to hexadecimal converter. It now works. Thanks to @ATK for pointing out it was broken 2023-09-10 10:25:51 +02:00
iceman1001 f9877f79de Revert "Release v4.17140 - Raccoon"
This reverts commit 6ca0ce704a.
2023-09-09 11:00:00 +02:00
iceman1001 6ca0ce704a Release v4.17140 - Raccoon 2023-09-09 11:00:00 +02:00
Philippe Teuwen cf16e71244 Fix cmake, stringop-overflow false positives are not specific to MINGW 2023-09-07 23:44:31 +02:00
Philippe Teuwen 3aeb5c493f fix a few cppcheck warnings 2023-09-07 22:28:37 +02:00
Philippe Teuwen d97f417ee6 Fix clang warnings on increasing alignment requirements 2023-09-07 21:00:07 +02:00
Philippe Teuwen d74e264250 style 2023-09-07 20:13:18 +02:00
iceman1001 9ddbdad8cb added keys from #2019 unknown if they are static 2023-09-06 10:59:21 +02:00
Iceman 3141c6a249
Merge pull request #2102 from ernestask/wip/ernestask/vilniečio-kertelė
dictionaries: Add keys for Vilnius public transit card
2023-09-06 10:53:18 +02:00
Ernestas Kulik cc846216d2 dictionaries: Add keys for Vilnius public transit card 2023-09-06 09:41:34 +03:00