82 Commits

Author SHA1 Message Date
kormax
75a49716a9 Update to 'hf.field.timeout_sec' 2026-03-31 17:03:23 +03:00
kormax
b443fc7723 Add 'hf.field.timeout' to prefs 2026-03-31 12:02:23 +03:00
iceman1001
607f1bb26c style 2025-05-24 22:49:46 +02:00
iceman1001
ad292e8810 unify test - step 2 2025-03-25 10:17:42 +01:00
Philippe Teuwen
ad84875afd cppcheck nullPointerOutOfMemory 2025-03-24 23:46:43 +01:00
iceman1001
4c97151ecc style 2025-03-22 15:46:55 +01:00
iceman1001
c8d46a2a7c textual changes, one fix for overflows when sending OLD frames. Now inform and breaks like MIXED/NG does. Improved hf mf autopwn to detect static encrypted nonces and inform user. Last fix is the user abort during check keys steps in autopwn. The device side now detects and cancels if no card is available and on client it also allows to user abort 2025-03-22 13:14:37 +01:00
iceman1001
4d603a4530 unify hint text 2025-03-20 22:55:26 +01:00
iceman1001
b4cc21c68f modified hf 14a apdu to report back when extending time and also added a possibililty to interrupt the extension loop with button press or usb commad. A bunch of minor textual changes 2025-03-20 19:58:13 +01:00
iceman1001
e1fc066f55 style 2024-10-16 09:34:14 +02:00
Iceman
a03cde3db5 Merge branch 'master' into reason
Signed-off-by: Iceman <iceman@iuse.se>
2024-09-30 19:00:22 +03:00
douniwan5788
ef0bae7bc6 refactor: cleanup PacketResponseNG init 2024-09-24 21:06:42 +08:00
douniwan5788
96d462acee add: split PacketResponseNG status to status and reason 2024-09-24 03:10:53 +08:00
iceman1001
ba8a68f37c fixes entering bootload messages to be less scary 2024-09-10 14:29:47 +02:00
iceman1001
3e1bd8f50a the BT serial port setup on Windows didnt work properly. By adding the baud rate in the new termios settings the issue seem to be fixed. Also added some extra flushing calls and some more configuration settings for chars. 2024-06-11 14:32:35 +02:00
iceman1001
4bbfc944f3 fix const params, logic, casting 2024-05-14 14:13:13 +02:00
iceman1001
9b8cf1e323 the waitforResponseTimeoutW fct will lock the client in situations like sniffing and if the device locks up there is no way to exit nice. This fix will look for life signs from the device. if lost, we will break. Allowing for the client to handle it better 2024-04-07 23:50:58 +02:00
iceman1001
4e540053e9 style 2024-04-07 11:38:51 +02:00
iceman1001
700d558432 move hitag2 crypto parts to the common folder in order to be able to use it on the client side. Some textual and minor adaptations across the bord 2024-03-27 09:32:00 +01:00
Martijn Plak
6202da367f coding style 2024-01-24 17:05:37 +01:00
Martijn Plak
1d14bc38c5 Rename CMD_READ_MEM_DOWNLOAD flag.
It got included in pm3_cmd.lua but shouldn't be because it's not a command.
Also, the bitshift in the value upsets some versions of lua.
2024-01-24 16:36:52 +01:00
Martijn Plak
e35385fde1 Adding processor flash memory reading, viewing and writing to file.
Works when the device is running either osimage or bootloader.

- New memory reading command in osimage and bootloader.
- Extended 'hw readmem' command with length parameter, file writing and hex viewer.
- Introduced '--dumpmem' option to proxmark3 executable to support dumping from bootloader.

Simple interactive examples:
  hw readmem -f flashdump
  hw readmem -l 1024
CLI example:
  ./pm3 --dumpmem flashdump.bin

Reading from arbitrary memory ranges can be unlocked using the 'raw' option.
2024-01-22 16:40:05 +01:00
iceman1001
d906f23a0a text 2024-01-05 19:34:42 +01:00
iceman1001
0c4a1066c1 text 2024-01-05 19:27:38 +01:00
iceman1001
238572c337 style 2024-01-01 21:52:05 +01:00
wh201906
b414081e3e Add throttling in reconnecting thread 2024-01-01 16:09:24 +08:00
wh201906
47376c84ea Disable print when reconnect 2024-01-01 15:55:54 +08:00
iceman1001
20eddd8250 added a thread that starts when a device is detected to be offline. It runs until it finds a device and reconnects to it. Signals the READLINE hook event and the prompt is updated to match current status. This removes the need to type "hw connect" on clients that has been compiled with READLINE lib. 2023-12-31 15:25:58 +01:00
iceman1001
a913b2c662 style 2023-12-01 10:59:18 +01:00
wh201906
3ee13c9ba6 Apply suggestions from @henrygab
Check if memory allocation fails
Fix memory leak
Initialize struct in declaration
Add/Fix some notes
Remove unlikely() in favor of readability
Remove a hard-coded magic number
2023-11-15 18:04:52 +08:00
wh201906
835b7a9150 Add support for trigger threshold 2023-11-14 13:12:35 +08:00
wh201906
8fdf04fcfb Receive raw data on the client 2023-11-14 02:17:45 +08:00
wh201906
de7b6f35bc Clean up the code for timeout
Rename UART_TCP_CLIENT_RX_TIMEOUT_MS to UART_NET_CLIENT_RX_TIMEOUT_MS
Add UART_UDP_LOCAL_CLIENT_RX_TIMEOUT_MS for shorter timeout
Check if the target address is local in uart_open()
2023-10-25 23:45:23 +08:00
Philippe Teuwen
b9ae38f888 Add timing to hw ping, reduce sleep to 1ms in WaitForResponse, no impact on CPU 2023-10-20 00:36:46 +02:00
wh201906
d1f916ba25 Reduce the default communication timeout for local IPv6 address 2023-10-17 20:20:21 +08:00
iceman1001
026cd7d53d style 2023-10-15 13:21:16 +02: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
Self Not Found
f90434521e Reduce latency in local TCP connection 2023-10-14 14:16:30 +08:00
iceman1001
24a138eeb1 fix some potential empty responses and too much inline calls 2023-08-03 08:41:11 +02:00
iceman1001
2b3d339714 lto missing inits 2023-08-02 17:46:53 +02:00
iceman1001
4ee7b78a07 always make sure resp is initialized 2023-08-02 17:36:50 +02:00
iceman1001
1a788b1c14 make style 2023-07-24 17:42:27 +02:00
iceman1001
8029e08153 cppchecker, make sure struct is initialized to zero 2023-07-24 00:54:12 +02:00
iceman1001
2d5724f4c3 text 2023-07-22 18:19:02 +02:00
iceman1001
5f8cd5caca make style 2023-07-14 18:34:14 +02:00
iceman1001
698b41eb27 code style 2023-07-12 13:59:47 +02:00
wh201906
a19732bb6e Fix timeout of TCP connections 2023-07-04 16:19:33 +08:00
iceman1001
1d0da726ec the clocks for usart rxtx wasnt enabled. 2023-05-27 21:10:11 +02:00
mwalker33
d8c18e6db8 Prep spiffs for bigger data files
- added spiffs check after flase wipe to force it to update its status
- added spiffs write and append to write in 8192 byte chunks to allow spiffs space to be freed in time.
- fixed spiffs dump to correctly handle issues if it could not allocate bugbuff space.
2022-08-31 18:51:39 +10:00