]> git.zerfleddert.de Git - proxmark3-svn/log
proxmark3-svn
3 years agoFix some printf/scanf format strings 938/head
pwpiwi [Mon, 11 May 2020 12:46:22 +0000 (14:46 +0200)]
Fix some printf/scanf format strings

4 years agoMerge pull request #926 from pwpiwi/fix_iso15693_fpga
pwpiwi [Sat, 11 Apr 2020 06:56:14 +0000 (08:56 +0200)]
Merge pull request #926 from pwpiwi/fix_iso15693_fpga

* make fpga_version_info.c phony and delete it on 'make clean'
* wait for transfer to complete before returning from FpgaSendCommand()
* log correct tag times in iclass simulation
* shorten pulse from TC1 to TC0 in StartCountSspClk()
* shorten ssp_frame pulse in fpga/hi_reader.v
* some reformatting and whitespace fixes
* NOISE_THRESHOLD /= 2 (starting with c41dd5f it became a relative threshold)
* remove superfluous reader initialization

4 years agoupdate CI/.travis.yml (#929)
pwpiwi [Thu, 9 Apr 2020 07:19:25 +0000 (09:19 +0200)]
update CI/.travis.yml (#929)

* drop checks for MacOS 10.11 and 10.12
* add checks for Ubuntu 16.04 and 18.04
* add libnewlib-arm-none-eabi as prerequisite on Ubuntu

4 years agocompatibility fix: get_clocktime() is not always available
pwpiwi [Tue, 7 Apr 2020 07:04:47 +0000 (09:04 +0200)]
compatibility fix: get_clocktime() is not always available

4 years agofixing iso15693 926/head
pwpiwi [Fri, 3 Apr 2020 15:41:11 +0000 (17:41 +0200)]
fixing iso15693
* NOISE_THRESHOLD /= 2 (starting with c41dd5f it became a relative threshold)
* remove superfluous reader initialization

4 years agoMerge branch 'master' into fix_iso15693_fpga
pwpiwi [Tue, 31 Mar 2020 06:55:35 +0000 (08:55 +0200)]
Merge branch 'master' into fix_iso15693_fpga

4 years agofixing some fpga and iclass issues
pwpiwi [Fri, 6 Mar 2020 16:14:35 +0000 (17:14 +0100)]
fixing some fpga and iclass issues
* make fpga_version_info.c phony and delete it on 'make clean'
* wait for transfer to complete before returning from FpgaSendCommand()
* log correct tag times in iclass simulation
* shorten pulse from TC1 to TC0 in StartCountSspClk()
* shorten ssp_frame pulse in fpga/hi_reader.v
* some reformatting and whitespace fixes

4 years agofix 'hf mf perso' result feedback (#920)
pwpiwi [Mon, 16 Mar 2020 12:33:19 +0000 (13:33 +0100)]
fix 'hf mf perso' result feedback (#920)

4 years agoadd a specific check function for static nonces (used in 'hf mf nested') (#911)
pwpiwi [Mon, 16 Mar 2020 12:32:00 +0000 (13:32 +0100)]
add a specific check function for static nonces (used in 'hf mf nested') (#911)

* add a specific check function for static nonces in 'hf mf nested'
* uses a fixed nr_enc and does all the crypto operations on client
* for all possible keys calculate par_enc and ar_enc and send them to device
* CHANGELOG update

4 years agoMerge pull request #913 from 0x2b3bfa0/patch-1
pwpiwi [Thu, 13 Feb 2020 07:37:17 +0000 (08:37 +0100)]
Merge pull request #913 from 0x2b3bfa0/patch-1

Fix #912: ukbhit() false positive

4 years agoFix #912 913/head
Helio Machado [Sun, 9 Feb 2020 17:04:46 +0000 (18:04 +0100)]
Fix #912

4 years agoMerge pull request #910 from pwpiwi/small_USB_response
pwpiwi [Thu, 6 Feb 2020 20:49:15 +0000 (21:49 +0100)]
Merge pull request #910 from pwpiwi/small_USB_response

Improve USB communications

4 years agofix WaitForResponse (without timeout) 910/head
pwpiwi [Thu, 6 Feb 2020 06:59:18 +0000 (07:59 +0100)]
fix WaitForResponse (without timeout)

4 years agoreenable intermediate "Waiting for a response from the proxmark..." message
pwpiwi [Tue, 4 Feb 2020 07:21:17 +0000 (08:21 +0100)]
reenable intermediate "Waiting for a response from the proxmark..." message

4 years agoreplace msleep() by thread signalling in comms.c
pwpiwi [Mon, 27 Jan 2020 19:55:40 +0000 (14:55 -0500)]
replace msleep() by thread signalling in comms.c

4 years agouart_posix.c rework
pwpiwi [Mon, 27 Jan 2020 18:28:34 +0000 (13:28 -0500)]
uart_posix.c rework
* added some LED handling in appmain.c (helped with debugging)
* finally replaced the infamous device unlink by msleep(1000)
* fixed some format strings in comms.c (with -DCOMMS_DEBUG)
* made uart_receive() and uart_send() behave as described in header
* some formating

4 years agocleaning up uart_posix.c
pwpiwi [Fri, 24 Jan 2020 08:24:39 +0000 (03:24 -0500)]
cleaning up uart_posix.c
* whitespace fixes
* sorting out #includes

4 years agoAdd missing includes
pwpiwi [Thu, 23 Jan 2020 22:02:33 +0000 (17:02 -0500)]
Add missing includes

4 years agoAlways enable fast response mode (was enabled for flasher only)
pwpiwi [Thu, 23 Jan 2020 21:07:17 +0000 (22:07 +0100)]
Always enable fast response mode (was enabled for flasher only)
* ensure that CMD_ACK is used exclusively for the very last response of each PM3 operation. All Dbprintf() must be before.
* always switch off field before exiting
* append null packet for USB transfers % 64 bytes
* reformatting and whitespace fixes

4 years agomodify USB communications
pwpiwi [Sun, 12 Jan 2020 16:29:07 +0000 (17:29 +0100)]
modify USB communications
* use different data types for commands and responses
* use variable length responses
* maintain client/flasher compatibility with old format (e.g. when using old bootloader)
* maintain bootloader compatibility with old format (e.g. when using old or RRG flasher.exe)
* fix length of version string in appmain.c

4 years agousb communication (device side) refactoring
pwpiwi [Sat, 11 Jan 2020 21:10:40 +0000 (22:10 +0100)]
usb communication (device side) refactoring
* merge cmd.c into usb_cdc.c
* move back usb_cdc.[ch] to common/
* declare low level functions usb_read() and usb_write() and more functions as static
* use cmd_receive() in bootrom.c and appmain.c
* remove unused memory wasting csrTab[100] in usb_cdc.c
* replace more byte_t by uint8_t
* more whitespace fixes

4 years agousb communication (device side) housekeeping
pwpiwi [Sat, 11 Jan 2020 16:11:19 +0000 (17:11 +0100)]
usb communication (device side) housekeeping
* move cmd.[ch] and usb_cdc.[ch] to armsrc
* sorting out #includes
* replace byte_t by uint8_t
* some reformatting
* whitespace fixes
* (no functional changes)

4 years agoMerge pull request #909 from pwpiwi/fix_button_break
pwpiwi [Wed, 15 Jan 2020 17:31:56 +0000 (18:31 +0100)]
Merge pull request #909 from pwpiwi/fix_button_break

Fix "Sending bytes to proxmark failed" with BUTTON_PRESS()

4 years agofix "Sending bytes to proxmark failed" after BUTTON_PRESS() 909/head
pwpiwi [Fri, 10 Jan 2020 07:33:50 +0000 (08:33 +0100)]
fix "Sending bytes to proxmark failed" after BUTTON_PRESS()

4 years agoappmain.c cleanup
pwpiwi [Fri, 10 Jan 2020 07:21:07 +0000 (08:21 +0100)]
appmain.c cleanup
* reformatting
* whitespace fixes
* replace byte_t by uint8_t

4 years agospeedup 'hf mf chk' (#901)
pwpiwi [Thu, 9 Jan 2020 14:42:31 +0000 (15:42 +0100)]
speedup 'hf mf chk' (#901)

* add separate timeout for tag response to nr_ar
* measure response time and use it for response timeout
* don't drop field between keyblocks
* some reformatting
* some whitespace fixes
* fishing for microseconds in TransmitFor14443a()
* allow arbitrary number of keys in MifareChkKeys()
* and move progress printing to MifareChkKeys()

Co-authored-by: uzlonewolf <github_com@hacker-nin.com>
4 years agofix hf search (#908)
pwpiwi [Tue, 7 Jan 2020 21:33:55 +0000 (22:33 +0100)]
fix hf search (#908)

* fix memory access violation in HF14B_Other_Reader()

4 years agofix gcc8 compiler warnings on string overflows (#905)
pwpiwi [Fri, 3 Jan 2020 06:17:21 +0000 (07:17 +0100)]
fix gcc8 compiler warnings on string overflows (#905)

4 years agofix 'hf iclass writebl' and 'hf iclass clone' (#896)
pwpiwi [Sat, 28 Dec 2019 16:03:20 +0000 (17:03 +0100)]
fix 'hf iclass writebl' and 'hf iclass clone' (#896)

* check for correct responses after block updates
* reduce number of tries from 10 to 3
* Allow to override warning on attempt to clone blocks < 5
* add same warning and override option to 'hf iclass writebl'
* some reformatting and minor refactoring
* Drop field after dump and clone functions
* If dumping AA1 with Credit Key, authenticate as Debit Key
* Initialize reader when beginning to clone

4 years ago"hf mf ekeyprn d" doesn't works properly (#904)
Phil [Sat, 28 Dec 2019 13:04:46 +0000 (14:04 +0100)]
"hf mf ekeyprn d" doesn't works properly (#904)

FIX: command "hf mf ekeyprn  d" doesn't use the correct offset to locate the A key in data[] array and record the 2 last bytes followed by 4 0x00 instead of the 6 good bytes (All the A keys are corrupted in file dumpkeys.bin). B keys are not affected.

4 years agoNested loop fix for static nonces
uzlonewolf [Mon, 23 Dec 2019 15:08:23 +0000 (07:08 -0800)]
Nested loop fix for static nonces

* add detection of static tag nonces
* add tag nonce to error message
* modify mfCheckKeys() to pass button press events upstream
* don't abort nested when a static nonce is encountered
* modify nested to try multiple keys in a single operation
* Print keys remaining only every 10 seconds, and add estimated worst-case time

4 years agofix 'hf 15 csetuid' (#890)
pwpiwi [Fri, 20 Dec 2019 07:25:14 +0000 (08:25 +0100)]
fix 'hf 15 csetuid' (#890)

* fix 'hf 15 csetuid'
* check for error codes, prevent client crash
* some include file refactoring
* some whitespace fixes
* allow longer timeout for write commands
* add function to send EOF only
* modify 'hf list 15' to display "<EOF>"
* add tracing of Reader commands
* if REQ_OPTION is set on write commands, send separate EOF to request tag response
* use #defines instead of hex constants
* switch off field after UID update
* return last tag response (if there is any)
* iso15693: decode WRITE_MULTI_BLOCK in 'hf list 15'

4 years agofix 'hf iclass chk' (#894)
pwpiwi [Mon, 9 Dec 2019 07:27:42 +0000 (08:27 +0100)]
fix 'hf iclass chk' (#894)

* Check for Credidt Keys as well
* reduce authentication tries from 6 to 3
* correct text in 'hf iclass clone' for 'l' parameter
* some reformatting and whitespace fixes

4 years agoBugfix: Output typing on print of HID card formats (#895)
grauerfuchs [Fri, 6 Dec 2019 15:06:24 +0000 (10:06 -0500)]
Bugfix: Output typing on print of HID card formats (#895)

* Bugfix: Output typing on print of HID card formats

The 'PrintAndLog' calls were using signed types and sometimes too few bits in width for formatting/outputting the data as was revealed in the forums. This commit will correct the printf-formatted output typing on display of the fields.

* Update hidcardformats.c

Updated to use macros as requested by @pwpiwi

4 years agofix 'hf iclass replay' (#888)
pwpiwi [Wed, 4 Dec 2019 17:34:53 +0000 (18:34 +0100)]
fix 'hf iclass replay' (#888)

* implement option -n for authentication with replayed NR/MAC pairs in 'dump' and 'readbl'
* delete 'hf iclass replay'

4 years agoHitag fixes (#887)
pwpiwi [Mon, 25 Nov 2019 07:38:23 +0000 (08:38 +0100)]
Hitag fixes (#887)

* don't display error message during 'lf search' when no Hitag tag is present
* remove superfluous options in 'lf hitag read'
* fix setting of default threshold when selecting FPGA_CMD_SET_EDGE_DETECT_THRESHOLD major mode
* some refactoring

4 years agoMerge pull request #884 from pwpiwi/fix_iclass_snoop
pwpiwi [Tue, 19 Nov 2019 17:11:26 +0000 (18:11 +0100)]
Merge pull request #884 from pwpiwi/fix_iclass_snoop

* determine and write meaningful times into trace
* code deduplication: use ISO15693 snoop function
* speed up SnoopIso15693(), reduce DMA buffer size
* add jamming option '-j' to 'hf iclass snoop'
* fix issue #882
* whitespace fixes
* make room for one more bit for FPGA minor mode
* new mode FPGA_HF_READER_MODE_SEND_JAM
* implement jamming in Handle15693SampleFromReader

4 years agoimplement 'hf iclass snoop -j' 884/head
pwpiwi [Wed, 13 Nov 2019 15:42:29 +0000 (16:42 +0100)]
implement 'hf iclass snoop -j'
* fix long option --jam
* make room for one more bit for FPGA minor mode
* new mode FPGA_HF_READER_MODE_SEND_JAM
* implement jamming in Handle15693SampleFromReader

4 years agofix 'hf iclass snoop'
pwpiwi [Fri, 8 Nov 2019 13:27:09 +0000 (14:27 +0100)]
fix 'hf iclass snoop'
* code deduplication: use ISO15693 snoop function
* speed up SnoopIso15693(), reduce DMA buffer size
* add jamming option '-j' to 'hf iclass snoop'
* fix issue #882
* whitespace fixes

4 years agofix 'hf iclass snoop'
pwpiwi [Fri, 8 Nov 2019 06:47:14 +0000 (07:47 +0100)]
fix 'hf iclass snoop'
* 'hf 15 snoop': determine and write meaningful times into trace

4 years agomod 'hf list' (#881)
pwpiwi [Wed, 13 Nov 2019 17:00:51 +0000 (18:00 +0100)]
mod 'hf list' (#881)

* switch to argtable command line parsing (i.e. options must now be preceded by '-')
* add option '-r' to display relative times
* add option '-u' to display times in microseconds
* fix: graceful exit if trace is requested from offline PM3

4 years agofix 'hf iclass' (#879)
pwpiwi [Wed, 13 Nov 2019 17:00:33 +0000 (18:00 +0100)]
fix 'hf iclass' (#879)

* add loooong timeout for UPDATE command
* add flags FLAG_ICLASS_READER_INIT and FLAG_ICLASS_READER_CLEARTRACE
* don't overwrite trace buffer during 'hf iclass dump'
* fix long waiting time when start_time==0 in TransmitTo15693Tag()
* remove some additional debug prints
* refactoring: move helper functions from protocols.c to cmdhficlass.c
* add 'h' and '1' options to 'hf iclass reader' (from RRG repository)
* use correct key when only CreditKey is given in 'hf iclass dump'
* separate select_and_auth
* DropField() on errors
* dump last block in 'hf iclass dump'
* display correct memory size (number of blocks) in 'hf iclass reader' and dump
* more whitespace fixes

4 years agofix 'hf 14b sriwrite' (#880)
pwpiwi [Tue, 5 Nov 2019 10:43:03 +0000 (11:43 +0100)]
fix 'hf 14b sriwrite' (#880)

4 years agoMerge pull request #876 from pwpiwi/fix_iclass_reader
pwpiwi [Wed, 30 Oct 2019 17:55:13 +0000 (18:55 +0100)]
Merge pull request #876 from pwpiwi/fix_iclass_reader

fix 'hf iclass reader'
* code deduplication. Use functions from iso15693.c
* speedup CodeIso15693AsReader()
* invert reader command coding. 0 now means 'unmodulated' ( = field on)
* decode SOF only as a valid tag response in Handle15693SamplesFromTag()
* complete decoding of EOF in Handle15693SamplesFromTag()
* determine and write correct times to trace
* FPGA-change: generate shorter frame signal to allow proper sync in StartCountSspClk()
* modify StartCountSspClk() for 16bit SSC transfers
* whitespace in util.c
* add specific LogTrace_ISO15693() with scaled down duration. Modify cmdhflist.c accordingly.
* allow 'hf 15 raw' with single byte commands
* check for buffer overflow, card timeout and single SOF in 'hf 15 raw'
* decode and handle SOF only responses in Handle14443bSamplesDemod()
* allow 1 byte commands with 'hf 14b raw'
* don't do READCHECK when not trying to authenticate
* standard LED handling
* remove unused FLAG_ICLASS_READER_ONLY_ONCE and FLAG_ICLASS_READER_ONE_TRY
* sanity check for negative times in TransmitTo15693Tag()
* increase reader timeout for 'hf 15' functions to be enough for slot 7 answers to ACTALL
* add 'hf iclass permute' inspired by RRG repository
* whitespace in cmdhficlass.c

4 years agofix 'hf iclass reader' and 'hf iclass readblk' 876/head
pwpiwi [Sun, 27 Oct 2019 15:51:27 +0000 (16:51 +0100)]
fix 'hf iclass reader' and 'hf iclass readblk'
* don't do READCHECK when not trying to authenticate
* standard LED handling
* remove unused FLAG_ICLASS_READER_ONLY_ONCE and FLAG_ICLASS_READER_ONE_TRY
* sanity check for negative times in TransmitTo15693Tag()
* increase reader timeout for 'hf 15' functions to be enough for slot 7 answers to ACTALL
* add 'hf iclass permute' inspired by RRG repository
* whitespace fixes

4 years agoiso14443b: trying to approach iClass
pwpiwi [Wed, 23 Oct 2019 07:09:13 +0000 (09:09 +0200)]
iso14443b: trying to approach iClass
* decode and handle SOF only responses in Handle14443bSamplesDemod()
* allow 1 byte commands with 'hf 14b raw'

4 years ago'hf 14b' formatting
pwpiwi [Tue, 22 Oct 2019 19:02:02 +0000 (21:02 +0200)]
'hf 14b' formatting
* renaming a few functions
* whitespace
* moving a bit towards RRG repo

4 years agofix 'hf iclass reader'
pwpiwi [Wed, 16 Oct 2019 07:36:37 +0000 (09:36 +0200)]
fix 'hf iclass reader'
* code deduplication. Use functions from iso15693.c
* speedup CodeIso15693AsReader()
* invert reader command coding. 0 now means 'unmodulated' ( = field on)
* decode SOF only as a valid tag response in Handle15693SamplesFromTag()
* complete decoding of EOF in Handle15693SamplesFromTag()
* determine and write correct times to trace
* FPGA-change: generate shorter frame signal to allow proper sync in StartCountSspClk()
* modify StartCountSspClk() for 16bit SSC transfers
* whitespace in util.c
* add specific LogTrace_ISO15693() with scaled down duration. Modify cmdhflist.c accordingly.
* allow 'hf 15 raw' with single byte commands
* check for buffer overflow, card timeout and single SOF in 'hf 15 raw'

4 years agoMerge pull request #862 from pwpiwi/fix_iclass_sim
pwpiwi [Mon, 21 Oct 2019 19:25:44 +0000 (21:25 +0200)]
Merge pull request #862 from pwpiwi/fix_iclass_sim

fix hf iclass sim:
* sim 2: add responses to read(1) (Config) and read(5) (AIA)
* sim 2/3: don't restrict CC to 00 bytes only
* sim 3: add responding to read block commands
* sim 2/3: add responding to READ_CHECK_KC
* fix sizes of pre-encoded tag answers
* sim 2: change default card challenge
* remove commented code
* use #defines instead of numerical constants for simulation modes
* some reformatting and whitespace fixes
* fix debug print on unhandled commands
* deduplicate: use sim functions from iso15693.c
* fix times in tracelog and 'hf list iclass' (sim only)
* don't check parity in 'hf list iclass'
* fix timing in TransmitTo15693Reader()
* add simulation of block 3 and 4 (Kd and Kc) reads
* add simulation of READ4 (4 blocks read)
* FPGA change (hi_simulate.v): avoid spp_clk phase changes
* chg to reader command decoder in iso15693.c (require no modulation before SOF)
* add 'has_been_low_for' logic to hi_simulate.v (same as in other FPGA modes, default to "no modulation")
* add simulation of chip status (IDLE, ACTIVE, SELECTED, HALTED)
* check ACSN on SELECT
* add simulation of RESELECT
* always check length of reader commands
* fix printing of NR, MAC in sim 2 mode
* fix response length to CHECK command
* implement UPDATE and CHECK[Kc]
* add simulation of multiple pages (PAGESEL by @sherhannn9)
* maintain cipher states per page
* update cipher state after UPDATE commands (@sherhannn9)
* add simulation of personalization mode
* respond with SOF on HALT
* display "\<SOF\>" instead of "0f" in 'hf list iclass'
* standard LED handling
* speedup CodeIso15693AsTag()
* TransmitTo15693Tag(): don't send unmodulated start of SOF
* reduce modulation depth in hi_simulate.v

4 years agoMerge pull request #873 from quantum-x/patch-2
Iceman [Tue, 8 Oct 2019 12:47:17 +0000 (14:47 +0200)]
Merge pull request #873 from quantum-x/patch-2

Update README.md

4 years agoUpdate README.md 873/head
quantum-x [Tue, 8 Oct 2019 12:40:11 +0000 (14:40 +0200)]
Update README.md

Updated as per PR discussion thead

4 years agoUpdate README.md
quantum-x [Tue, 8 Oct 2019 11:24:25 +0000 (13:24 +0200)]
Update README.md

Updated reference to Lab401 as an EU reseller, not a HK reseller.

4 years agoMerge branch 'master' into fix_iclass_sim 862/head
pwpiwi [Tue, 8 Oct 2019 09:54:22 +0000 (11:54 +0200)]
Merge branch 'master' into fix_iclass_sim

4 years agofix iclass reader functions
pwpiwi [Tue, 8 Oct 2019 09:48:49 +0000 (11:48 +0200)]
fix iclass reader functions

* remove unused CMD_ICLASS_READCHECK
* fix wrong command coding in CodeIClassCommand()
* switch field off at end of commands to avoid RDV4 overheating

4 years agofix 'hf iclass sim'
pwpiwi [Sat, 5 Oct 2019 15:57:16 +0000 (17:57 +0200)]
fix 'hf iclass sim'
* fix tag response timing. iClass differs from ISO15693 in this respect.
* speedup CodeIso15693AsTag()
* TransmitTo15693Tag(): don't send unmodulated start of SOF
* reduce modulation depth in hi_simulate.v
* calculate CRC for configuration block when simulating
* Show real response time instead of planned response time in 'hf list iclass'

4 years agofix 'hf iclass sim'
pwpiwi [Tue, 1 Oct 2019 19:03:18 +0000 (21:03 +0200)]
fix 'hf iclass sim'
* add simulation of multiple pages (PAGESEL by @sherhannn9)
* maintain cipher states per page
* update cipher state after UPDATE commands (@sherhannn9)
* add simulation of personalization mode
* respond with SOF on HALT
* display "<SOF>" instead of "0f" in 'hf list iclass'
* standard LED handling

4 years agofix 'hf iclass eload' (thanks to @sherhannn79)
pwpiwi [Mon, 30 Sep 2019 06:29:20 +0000 (07:29 +0100)]
fix 'hf iclass eload' (thanks to @sherhannn79)

4 years agofix 'hf iclass sim':
pwpiwi [Wed, 25 Sep 2019 16:40:05 +0000 (18:40 +0200)]
fix 'hf iclass sim':
* implement CHECK[Kc] based on @sherhannn79
* implement UPDATE based on @sherhannn79

4 years agofix 'hf iclass sim':
pwpiwi [Wed, 25 Sep 2019 12:24:36 +0000 (14:24 +0200)]
fix 'hf iclass sim':
* ignore standard iso15693 INVENTORY commands silently
* make iso15693 command decoder more strict (prevent decoding rubbish)
* re-enable sim 3

4 years agoMerge branch 'master' into fix_iclass_sim
pwpiwi [Tue, 24 Sep 2019 17:34:05 +0000 (19:34 +0200)]
Merge branch 'master' into fix_iclass_sim

4 years agofix 'hf iclass sim':
pwpiwi [Sat, 21 Sep 2019 09:58:51 +0000 (11:58 +0200)]
fix 'hf iclass sim':
* chg to reader command decoder in iso15693.c (require no modulation before SOF)
* add 'has_been_low_for' logic to hi_simulate.v (same as in other FPGA modes, default to "no modulation")
* add simulation of chip status (IDLE, ACTIVE, SELECTED, HALTED)
* check ACSN on SELECT
* add simulation of RESELECT
* always check length of reader commands
* fix printing of NR, MAC in sim 2 mode
* fix response length to CHECK command

4 years agofix compile issue with gcc 9.1.0 (issue #868)
pwpiwi [Sat, 21 Sep 2019 12:56:01 +0000 (13:56 +0100)]
fix compile issue with gcc 9.1.0 (issue #868)

4 years ago'hf iclass loclass': fix error handling (#865)
pwpiwi [Thu, 12 Sep 2019 07:21:10 +0000 (09:21 +0200)]
'hf iclass loclass': fix error handling (#865)

* fix handling of "BEING_CRACKED" flag
* don't try to calculate KCus when some bytes couldn't be brute forced
* whitespace fixes

4 years agofix 'hf iclass sim':
pwpiwi [Tue, 10 Sep 2019 16:18:54 +0000 (18:18 +0200)]
fix 'hf iclass sim':
* add simulation of block 3 and 4 reads
* add simulation of READ4 (4 blocks read)
* fixing TransmitTo15693Reader()  (again)
* FPGA change (hi_simulate.v): avoid spp_clk phase changes
* some whitespace fixes

4 years agofix 'hf iclass sim'
pwpiwi [Mon, 2 Sep 2019 09:10:45 +0000 (11:10 +0200)]
fix 'hf iclass sim'
* fix debug print on unhandled commands
* deduplicate: use sim functions from iso15693.c
* fix times in tracelog and 'hf list iclass' (sim only)
* don't check parity in 'hf list iclass'
* fix timing in TransmitTo15693Reader()

4 years agofix hf iclass sim
pwpiwi [Wed, 28 Aug 2019 09:57:53 +0000 (11:57 +0200)]
fix hf iclass sim
* sim 2: add responses to read(1) (Config) and read(5) (AIA)
* sim 2/3: don't restrict CC to 00 bytes only
* sim 3: add responding to read block commands
* sim 2/3: add responding to READ_CHECK_KC
* fix sizes of pre-encoded tag answers
* change default card challenge
* remove commented code
* use #defines instead of numerical constants for simulation modes
* some reformatting

4 years agoMerge pull request #861 from pwpiwi/iclass_MAC_speedup
pwpiwi [Fri, 30 Aug 2019 15:14:26 +0000 (17:14 +0200)]
Merge pull request #861 from pwpiwi/iclass_MAC_speedup

iClass MAC calculation speedup (optimized_cipher.c)

4 years agoadd iclass.h 861/head
pwpiwi [Sun, 25 Aug 2019 12:03:11 +0000 (14:03 +0200)]
add iclass.h

4 years agoMerge branch 'master' into iclass_MAC_speedup
pwpiwi [Sat, 24 Aug 2019 16:27:01 +0000 (18:27 +0200)]
Merge branch 'master' into iclass_MAC_speedup

4 years agoiclass.c: speeding up MAC calculation
pwpiwi [Sat, 24 Aug 2019 13:07:56 +0000 (15:07 +0200)]
iclass.c: speeding up MAC calculation

4 years ago'lf hitag writer': add Hitag2 password auth
pwpiwi [Thu, 22 Aug 2019 05:54:55 +0000 (07:54 +0200)]
'lf hitag writer': add Hitag2 password auth

* (PRs 233, 303, 304 by @ViRb3 on https://github.com/RfidResearchGroup/proxmark3)
* replace byte_t by uint8_t
* note that Hitag1 commands are not yet available
* whitespace fixes
* #define Hitag2 commands
* whitespace
* add EOF wait time
* add powerup wait time

4 years agoadd: 'hf mf personalize' (personalize UID on Mifare Classic EV1 7byte UID cards)
pwpiwi [Thu, 22 Aug 2019 05:53:17 +0000 (07:53 +0200)]
add: 'hf mf personalize' (personalize UID on Mifare Classic EV1 7byte UID cards)

* add/use some #defines
* whitespace fixes
* #include refactoring
* add line to CHANGELOG.md

4 years agoPCF7931: Print found single/consecutive block(s), fixes to block 1 check
Samuele [Thu, 22 Aug 2019 05:51:46 +0000 (07:51 +0200)]
PCF7931: Print found single/consecutive block(s), fixes to block 1 check

4 years agocleaning up iclass.c and optimized_cipher.c
pwpiwi [Wed, 21 Aug 2019 20:10:24 +0000 (22:10 +0200)]
cleaning up iclass.c and optimized_cipher.c
* add iclass.h
* reformatting
* whitespace fixes
* (no functional changes)

4 years agochg 'hf mf chk':
pwpiwi [Sat, 10 Aug 2019 21:30:47 +0000 (23:30 +0200)]
chg 'hf mf chk':

* don't repeatedly clear trace while running (PR 243 by @mceloff from https://github.com/RfidResearchGroup/proxmark3)
* standard LED handling
* better check for key file syntax
* get rid of "res" column when printing the result. Show unknown keys more prominent as "     ?     "

4 years ago'hf 14a apdu' improvement
pwpiwi [Thu, 1 Aug 2019 15:01:56 +0000 (11:01 -0400)]
'hf 14a apdu' improvement

(PR 249 by @merlokk on https://github.com/RfidResearchGroup/proxmark3)
* add option to print APDU (if it can be decoded)
* add option to cconstruct extended and normal size APDUs

4 years agofix emv search behavior
pwpiwi [Thu, 1 Aug 2019 14:58:22 +0000 (10:58 -0400)]
fix emv search behavior

(taken from PRs 261 and 262 by @merlokk on https://github.com/RfidResearchGroup/proxmark3)
+ whitespace fixes

4 years agofix 'hf mf sim': access conditions to write Key B were not decoded correctly
pwpiwi [Thu, 1 Aug 2019 14:55:47 +0000 (10:55 -0400)]
fix 'hf mf sim': access conditions to write Key B were not decoded correctly

(from PR 279 https://github.com/RfidResearchGroup/proxmark3)

4 years agoImplement Originality Signature Check in 'hf mfu info'
pwpiwi [Thu, 1 Aug 2019 14:53:26 +0000 (10:53 -0400)]
Implement Originality Signature Check in 'hf mfu info'

* add support for elliptic curve 'secp128r1' to mbedtls library
* change ecdsa_signature_verify() to allow different curves, signature lengths, and skipping hash
* add another public key for Mifare Ultralight EV1

4 years agoFix Issue #843 - hf mf chk - t Doesnt save to emulator memory
mwalker33 [Tue, 23 Jul 2019 18:47:29 +0000 (04:47 +1000)]
Fix Issue #843 - hf mf chk - t Doesnt save to emulator memory

4 years agoAdd 'hf 15 csetuid' command to set UID on ISO15693 Magic tags (#842)
t0m4 [Sun, 14 Jul 2019 10:31:33 +0000 (12:31 +0200)]
Add 'hf 15 csetuid' command to set UID on ISO15693 Magic tags (#842)

4 years agoupdate em4x05 timing (#846)
marshmellow42 [Thu, 11 Jul 2019 18:31:51 +0000 (14:31 -0400)]
update em4x05 timing (#846)

See @mwalker33 issue #838

4 years agoMerge pull request #837 from mwalker33/master
marshmellow42 [Thu, 11 Jul 2019 17:17:36 +0000 (13:17 -0400)]
Merge pull request #837 from mwalker33/master

lf t55xx downlink modes support added

4 years agowhitespace cleaning 837/head
jmorsch [Thu, 11 Jul 2019 17:01:36 +0000 (13:01 -0400)]
whitespace cleaning

4 years agoUpdate lfops.c
mwalker33 [Sat, 6 Jul 2019 19:00:08 +0000 (05:00 +1000)]
Update lfops.c

boundary length check

4 years agoUpdate lfops.c
mwalker33 [Sat, 6 Jul 2019 05:20:25 +0000 (15:20 +1000)]
Update lfops.c

Fixed lf t55 reset

4 years agoCode tidy
mwalker33 [Wed, 3 Jul 2019 09:58:49 +0000 (19:58 +1000)]
Code tidy

removed commented code

4 years agoUpdate lfops.c
mwalker33 [Thu, 27 Jun 2019 06:57:28 +0000 (16:57 +1000)]
Update lfops.c

moved wakeup and reset to call T55xx_SendCMD.  Small code improvements

4 years agoCode improved for less memory
mwalker33 [Wed, 26 Jun 2019 01:34:31 +0000 (11:34 +1000)]
Code improved for less memory

4 years agoUpdate CHANGELOG.md
pwpiwi [Tue, 25 Jun 2019 16:37:25 +0000 (18:37 +0200)]
Update CHANGELOG.md

4 years agoUpdate CHANGELOG.md
mwalker33 [Tue, 25 Jun 2019 10:52:29 +0000 (20:52 +1000)]
Update CHANGELOG.md

4 years agoResolved Conflicts
mwalker33 [Tue, 25 Jun 2019 10:46:10 +0000 (20:46 +1000)]
Resolved Conflicts

4 years agoUpdate lfops.c
mwalker33 [Tue, 25 Jun 2019 09:28:06 +0000 (19:28 +1000)]
Update lfops.c

4 years agoMerge branch 'master' into master
mwalker33 [Tue, 25 Jun 2019 09:01:13 +0000 (19:01 +1000)]
Merge branch 'master' into master

4 years agoUpdate lfops.c
mwalker33 [Tue, 25 Jun 2019 08:56:32 +0000 (18:56 +1000)]
Update lfops.c

4 years agoUpdate CHANGELOG.md
pwpiwi [Mon, 24 Jun 2019 06:42:57 +0000 (08:42 +0200)]
Update CHANGELOG.md

4 years agoUpdate CHANGELOG.md
mwalker33 [Sun, 23 Jun 2019 12:23:08 +0000 (22:23 +1000)]
Update CHANGELOG.md

Change Log Update

4 years agoadd lf em 4x05protect plus lf config s option (#833)
marshmellow42 [Sun, 23 Jun 2019 11:43:56 +0000 (07:43 -0400)]
add lf em 4x05protect plus lf config s option (#833)

* add "samples to skip" for lf config (mainly for lf snoop)
* add lf em 4x05protect command to write protection on em4x05 chips
* fix spacing
* and remove old comment git added back in..
* update changelog
* fix flags - only need 1 bit

4 years agoT55xx Downlink - Updates
mwalker33 [Sat, 22 Jun 2019 05:26:56 +0000 (15:26 +1000)]
T55xx Downlink - Updates

Improved code.

4 years agoCleanup Code
mwalker33 [Tue, 18 Jun 2019 11:17:12 +0000 (21:17 +1000)]
Cleanup Code

Update downlink option from e to r
fixed long leading reference
added downling option to original bruteforce

Impressum, Datenschutz