Oleg Moiseenko [Tue, 18 Sep 2018 15:29:59 +0000 (18:29 +0300)]
Merge branch 'master' into emv_argtable
Oleg Moiseenko [Tue, 18 Sep 2018 05:15:34 +0000 (08:15 +0300)]
Added loading EMV transaction parameters from json file (#659)
* added default params file
* added jansson
* added test function.
* added tlv tree to function
* add params from json works
* added to `hf emv exec`: load params from json and some refactoring
* added `scan` command
Michael Farrell [Mon, 17 Sep 2018 06:35:45 +0000 (16:35 +1000)]
Remove unused functions le32toh, le24toh, hextobinstring, binarraytobinstring, print_hex, print_hex_break, sprint_hex_ascii, sprint_ascii, SwapEndian64ex (#667)
* Remove unused method le32toh.
* Delete unused function le24toh
* Remove unused functions hextobinstring, binarraytobinstring
* Remove unused functions print_hex, print_hex_break
* Delete unused functions sprint_hex_ascii, sprint_ascii
* Remove unused function SwapEndian64ex
AntiCat [Mon, 17 Sep 2018 05:56:53 +0000 (07:56 +0200)]
Update changelog and fix build error (#674)
* Update CHANGELOG.md
uhei [Mon, 17 Sep 2018 05:55:51 +0000 (07:55 +0200)]
fpgaloader: fix function accordingly to #669 (#673)
FpgaSetupSscDma uses uint16_t and not int with #669
pwpiwi [Sat, 15 Sep 2018 22:53:28 +0000 (00:53 +0200)]
rework iso14443b device functions including FPGA I/Q signal transfer (#669)
* rework iso14443b device functions
* hf_read_rx_xcorr.v: transfer i/q pair in one 16bit frame
* hi_read_tx.v: invert ssp_dout. When nothing is transferred (ssp_dout=0), this results in no modulation (carrier on)
* adjust arm sources accordingly
* iso14443b.c: switch off carrier after hf 14b sri512read and hf 14b srix4kread
* iso14443b.c: fix DMA circular buffer handling
merlokk [Thu, 13 Sep 2018 17:03:10 +0000 (20:03 +0300)]
added changelog
merlokk [Thu, 13 Sep 2018 16:58:26 +0000 (19:58 +0300)]
small fixes in helps
merlokk [Thu, 13 Sep 2018 16:53:14 +0000 (19:53 +0300)]
add terminal decision to `genac` and small fixes
merlokk [Thu, 13 Sep 2018 15:44:20 +0000 (18:44 +0300)]
added CDA transaction to `hf emv genac`
merlokk [Thu, 13 Sep 2018 15:38:03 +0000 (18:38 +0300)]
added `intauth` and `genac` commands. works.
merlokk [Wed, 12 Sep 2018 17:22:24 +0000 (20:22 +0300)]
small fix
merlokk [Wed, 12 Sep 2018 17:20:27 +0000 (20:20 +0300)]
`hf emv challenge` works
merlokk [Wed, 12 Sep 2018 17:08:16 +0000 (20:08 +0300)]
`hf emv readrec` works and some changes in help
merlokk [Wed, 12 Sep 2018 16:51:20 +0000 (19:51 +0300)]
`hf emv gpo` works
merlokk [Tue, 11 Sep 2018 14:02:22 +0000 (17:02 +0300)]
added new functions to `hf emv`
merlokk [Tue, 11 Sep 2018 13:11:58 +0000 (16:11 +0300)]
`hf emv pse` and sketch for the other commands
merlokk [Tue, 11 Sep 2018 11:58:15 +0000 (14:58 +0300)]
delete old help
merlokk [Tue, 11 Sep 2018 11:56:33 +0000 (14:56 +0300)]
`hf emv select` some refactoring
merlokk [Tue, 11 Sep 2018 11:49:50 +0000 (14:49 +0300)]
`hf emv select`
merlokk [Tue, 11 Sep 2018 09:21:29 +0000 (12:21 +0300)]
move `hf emv search` to argtable
wllm-rbnt [Mon, 10 Sep 2018 16:19:31 +0000 (18:19 +0200)]
Allow clean Legic simulation exit without button press (#668)
AntiCat [Sun, 9 Sep 2018 14:40:20 +0000 (16:40 +0200)]
Legic Tag Simulator (#666)
* FPGA Hi-Simulate: Formatted code
* FPGA Hi-Simulate: Fixed documantation
* FPGA Hi-Simulate: Freed up 4 LUTs
* FPGA Hi-Simulate: Added 212kHz SSP-Clock option
* Legic: Moved card simulator into separate file & cleaned interface.
Reader and card simulation have almost no common code. Moreover the sim
uses an SSP Clock at 212kHz for all timings to prevent any drifting from
the PRNG. This clock speed is not available in reader simulation mode (SSP
runs at up to 3.4MHz, and changes speed between TX and RX). For these
reasons having the code in separate files makes it significantly cleaner.
* Legic: Implemented RX and TX for card simulation
* Legic: Implemented setup phase for card simulation
* Legic: Implemented read command for card simulation
* Legic: Implemented write command for card simulation
Oleg Moiseenko [Thu, 6 Sep 2018 05:48:54 +0000 (08:48 +0300)]
implement argtable in hf 14a apdu (#490)
* added `hf 14a reader` to source and added functionality to exec empty commands
* added `hf 14a raw`
* added samples to command's help
* added some help
* added changelog
* update to new argtable3 --- https://github.com/argtable/argtable3
* changed included getopt to `https://github.com/freebsd/freebsd/blob/master/include/getopt.h` (getopt from freebsd with simplified BSD license)
Oleg Moiseenko [Thu, 6 Sep 2018 05:38:38 +0000 (08:38 +0300)]
update travis config (#662)
marshmellow42 [Wed, 22 Aug 2018 15:21:50 +0000 (11:21 -0400)]
Merge pull request #649 from grauerfuchs/master
client: lf hid - parity completed, native long-tag support in pack/unpack/clone
marshmellow42 [Tue, 21 Aug 2018 03:08:49 +0000 (23:08 -0400)]
Add Smartcard functions (RDV4.0) (#646)
* allow common makefile options-defines
* remove non-existing file references
* Uncomment lcd option (still) not enabled by default
use Makefile_Enabled_Options.common
to enable lcd if desired.
* Add Smartcard Functions
* add smartcard to menu + make get atr work
sc is now functioning as far as my limited knowledge takes me
* sc cleanup - add init to all sc commands...
because cmds won't work until the first init happens. (multiple inits
don't appear to affect it negatively)
* default options to exclude Smartcard
for main repo
* update changelog
AntiCat [Tue, 21 Aug 2018 03:08:06 +0000 (05:08 +0200)]
Legic: fixed write (#655)
Due to an oversight the bytes to be written were fetched
from the wrong location. This is fixed now.
AntiCat [Mon, 20 Aug 2018 20:29:34 +0000 (22:29 +0200)]
Legic: rewrite reader to use xcorrelation and precise timing (#654)
* Legic: rewrite reader to use xcorrelation and precise timing
- Even tough Legic tags transmit just AM, receiving using
xcorrelation results in a significantly better signal
quality.
- Switching from bit bang to a hardware based ssc frees
up CPU time for other tasks e.g. prng and demodulation
- Having all times based on a fixed ts, results in perfect
rwd-tag synchronization without magic +/- calculations.
* hi_read_tx: remove jerry-riged hysteresis based receiver
- This feature got obsolete by a x-correlation based receiver.
* Legic: adjusted sampling to new ssp clock speed
- Sampling is 4 times faster and pipeline daly reduced to 1/4.
The new code samples each bit earyler to account for the
shorter pipeline. That introduced bit errors by leeking the
next bit into the current one.
* Legic: average 8 samples for better noise rejection.
* Update CHANGELOG.md
grauerfuchs [Sun, 19 Aug 2018 15:14:52 +0000 (11:14 -0400)]
Adding native support for HID long-format
Removal of "l" flag for long writes; not needed anymore.
Added HID Corporate 1000 48-bit format to known formats list
Simulation not yet updated; need to modify ARM commands to support it
Completed parity support on all included HID formats
pwpiwi [Wed, 15 Aug 2018 12:03:20 +0000 (14:03 +0200)]
ISO15693 device side improvements (#652)
* ISO15693 device side improvements
* increase accuracy by doubling the sample frequency (hi_read_rx_xcorr.v)
* adjust armsrc/iso15693.c and client/cmdhf15.c accordingly
* use more accurate approximation for sqrt(ci^2 + cq^2)
* improve EOF detection (was often mistaken for Logic0, resulting in "error, uneven octet! (extra bits!)")
* hi_read_r_xcorr.v: avoid overflows during accumulation and truncation
* explicitely cast unsigned ADC samples to signed
Oleg Moiseenko [Tue, 14 Aug 2018 08:15:51 +0000 (11:15 +0300)]
some cards need to have Le=0x00, some need to not have... (#651)
AntiCat [Tue, 14 Aug 2018 07:24:02 +0000 (09:24 +0200)]
fix: 32bit tick timer based on TC0 and TC1 (#653)
TC1 counts the number of TC0 overflows (carry bits).
In random conditions TC1 would return or stay at zero,
instead of counting up. This due to the behavior of the
reset signal.
SAM7S Series Datasheet, 33.5.6 Trigger:
Regardless of the trigger used, it will be taken into account
at the following active edge of the selected clock. This means
that the counter value can be read differently from zero just
after a trigger, especially when a low frequency signal is
selected as the clock.
The new code first prepares TC1 and asserts TC1 trigger and
then prepares TC0 and asserts TC0 trigger. The TC0 start-up
will reset TC1.
Fl0-0 [Tue, 7 Aug 2018 07:23:11 +0000 (09:23 +0200)]
Bootrom version fix + .gitignore (#645)
* Fix bootrom Makefile
* Add armsrc/fpga_version_info.c to .gitignore
marshmellow42 [Mon, 6 Aug 2018 11:39:39 +0000 (07:39 -0400)]
fix option comments to be more clear
marshmellow42 [Mon, 6 Aug 2018 11:27:37 +0000 (07:27 -0400)]
Separate WITH_LF and WITH_LF_StandAlone
pwpiwi [Sun, 5 Aug 2018 16:15:03 +0000 (18:15 +0200)]
mod hw version: (#631)
* create fpga version info at compile time (by additional functionality in fpgacompress)
* remove hw version caching (prepare USB reconnect)
* fix calculation of available compressed bytes in fpga_loader.c
marshmellow42 [Sun, 5 Aug 2018 16:13:44 +0000 (12:13 -0400)]
allow common makefile options-defines (#635)
marshmellow42 [Sat, 4 Aug 2018 11:43:27 +0000 (07:43 -0400)]
Merge pull request #638 from grauerfuchs/master
fix truncation issue on "lf t55 config d"
grauerfuchs [Sat, 4 Aug 2018 10:26:36 +0000 (06:26 -0400)]
fix truncation issue on "lf t55 config" modulation
Fix for issue #637
Michael Farrell [Mon, 30 Jul 2018 17:33:06 +0000 (03:33 +1000)]
Adds `lf hid pack` and `lf hid unpack` offline commands. (#614)
* These are used to pack and unpack the bit length, facility code and card number from "short" HID Prox IDs.
* This also simplifies some repeated code that is used to parse hex digits in lfhid, and adds basic client-side validation to the `lf hid clone` and `lf hid sim` commands, for when an ID that is too long is entered.
* Implements parity checks/calculation for 26-bit H10301 cards.
* Adds links to useful resources for HID Prox cards.
* Adds an explicit warning about the lack of parities on non-26-bit cards.
* Changes all the examples to use 26-bit IDs that have a parity bit set.
pwpiwi [Thu, 26 Jul 2018 15:18:10 +0000 (17:18 +0200)]
save 2.3K flash-memory by avoiding a single floating point operation (#630)
Fl0-0 [Thu, 26 Jul 2018 15:17:11 +0000 (17:17 +0200)]
Fix Gcc 8 warnings (#632)
pwpiwi [Thu, 19 Jul 2018 16:01:18 +0000 (18:01 +0200)]
fix: array index out of range in mfkeys.log (thanks to @TomHarkness)
Michael Farrell [Mon, 9 Jul 2018 07:49:03 +0000 (15:49 +0800)]
Allow disabling unlink() with -DNO_UNLINK. (#625)
stuiterveer [Wed, 20 Jun 2018 04:34:00 +0000 (06:34 +0200)]
Ignore DS_Store (#620)
Prevent further commits containing DS_Store files
pwpiwi [Wed, 13 Jun 2018 06:13:20 +0000 (08:13 +0200)]
Code cleanup (#616)
* coverity fixes (including a real bug in cmdhftopaz.c)
* Typo fix
* replace TRUE/FALSE by stdbool true/false
Michael Farrell [Mon, 4 Jun 2018 11:54:41 +0000 (21:54 +1000)]
Fixes a double-free issue in CloseProxmark: (#617)
- CloseProxmark now clears global state.
- CloseProxmark now checks for a non-null serial_port before calling uart_close, to avoid unintentional double-free'ing serial_port.
- main now calls CloseProxmark once.
pwpiwi [Sun, 3 Jun 2018 12:25:20 +0000 (14:25 +0200)]
USB comms: part 4 towards @micolous PR #463
* make uart_communication(), storeCommand() and getCommand() static in comms.c
* move receiver thread creation and respective mutexes to comms.c
* add mutex and signal for tx buffer
* use comms.c for flasher as well
* remove comm functions from client/proxmark3.h
* this completes isolating all USB communication related functions in comms.c
* don't assume a port to be defined by a name. Change parameter in OpenProxmark() to void*
* comms.c: set sp and serial_port_name to NULL when offline
Fl0-0 [Tue, 29 May 2018 16:05:32 +0000 (18:05 +0200)]
Delete .DS_Store (#613)
Mac hidden file accidentally merged in PR #593.
Dominic Celiano [Mon, 28 May 2018 19:32:48 +0000 (20:32 +0100)]
Added mifarePlus.lua script for communication with Mifare Plus. (#593)
Personalize MifarePlus EV1 cards
marshmellow42 [Tue, 15 May 2018 06:19:49 +0000 (02:19 -0400)]
fix gui (plot) bugs (#604)
G keypress event would cause a crash if no data
Q keypress didn't work.
Thanks to @iceman1001 for identifying and providing the fixes.
pwpiwi [Fri, 11 May 2018 03:24:02 +0000 (05:24 +0200)]
fix HitagS simulation erors (issue #605) (#606)
pwpiwi [Tue, 8 May 2018 05:54:49 +0000 (07:54 +0200)]
rework of GetFromBigBuf() (#597)
* this should fix crashes reported in issue #497
* don't allow receiver thread to write directly into arbitrary main thread's memory
* instead use cmdBuffer[] for CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K as well
* add timeout and warning options to GetFromBigBuf(), same as in WaitForResponseTimeoutW()
* move GetFromBigBuf() from data.c to comms.c
* remove data.c and data.h
Iceman [Sat, 5 May 2018 04:59:39 +0000 (06:59 +0200)]
Merge pull request #600 from marshmellow42/master
more graceful exit to lf search if no signal found
marshmellow42 [Sat, 5 May 2018 03:54:01 +0000 (23:54 -0400)]
more graceful exit to lf search if no signal found
pwpiwi [Fri, 4 May 2018 06:25:08 +0000 (08:25 +0200)]
Update CHANGELOG.md
pwpiwi [Fri, 4 May 2018 06:19:37 +0000 (08:19 +0200)]
Change driver file proxmark3.inf to support both old and new Vendor/Product IDs
(see http://www.proxmark.org/forum/viewtopic.php?pid=32072#p32072)
marshmellow42 [Thu, 3 May 2018 17:36:51 +0000 (13:36 -0400)]
fix bug if -DWITH_ISO14443a_StandAlone is removed from makefile (#598)
pwpiwi [Sat, 28 Apr 2018 08:09:16 +0000 (10:09 +0200)]
USB comms: part 3 towards @micolous PR#463
* change variable 'sp' from global to static
* move code to open and close USB port to comms.c (OpenProxmark() and CloseProxmark())
* change scope of USBCommandReceived() to static
* (flasher still unchanged)
pwpiwi [Tue, 24 Apr 2018 06:27:29 +0000 (08:27 +0200)]
USB comms: part 2 towards @micolous PR#463 (#595)
* change variable 'offline' from global to static
* change variable 'FlushAfterWrite' from global to static
* remove unused global variable 'current_command'
* WaitForResponseTimeoutW(CMD_UNKNOWN, ...) waits for any command
* #include "printf.h" or <stdio.h> in iso15693tools.c to define sprintf()
* and some minor changes/comments
Tom Harkness [Tue, 3 Apr 2018 06:14:51 +0000 (16:14 +1000)]
Fix for swapped parity when using lf_bulk_program.lua (#591)
pwpiwi [Sat, 31 Mar 2018 07:52:43 +0000 (09:52 +0200)]
USB comm: prepare for @micolous change (PR#463) (#587)
* move communication related code from proxmark3.c and cmdmain.c to new file comms.c
* replace byte_t by uint8_t in uart_posix.c and uart_win32.c
* move OpenProxmark() and CloseProxmark() from flasher.c to flash.c
* move print_lock mutex including initializer to ui.c
* minor changes in printing help texts
* no changes in comms functionality yet
pwpiwi [Fri, 30 Mar 2018 15:55:41 +0000 (17:55 +0200)]
add: save and load options in hf list (#577)
AnthraX1 [Fri, 30 Mar 2018 15:54:45 +0000 (02:54 +1100)]
Fix empty key list bug in mfkeys.lua (#579)
When input key list size is greater than 85, table.concat() returns empty because the last parameter is the end offset not the increment value.
pwpiwi [Wed, 28 Mar 2018 12:58:46 +0000 (14:58 +0200)]
Merge pull request #589 from Proxmark/revert-588-indala-preamble-fix
Revert "Fix offset Indala UID display"
marshmellow42 [Wed, 28 Mar 2018 12:50:08 +0000 (08:50 -0400)]
Revert "Fix offset Indala UID display"
Iceman [Wed, 28 Mar 2018 11:10:33 +0000 (13:10 +0200)]
Merge pull request #588 from megabug/indala-preamble-fix
Fix offset Indala UID display
Matthew Daley [Wed, 28 Mar 2018 10:37:07 +0000 (23:37 +1300)]
Fix offset Indala UID display
Commit
1dae9811f22b7f2cea340cee6945cb349046129d extended the amount of
fixed bits searched for when decoding 64-bit Indala. These additional
bits come from the end of one UID, and therefore need to be skipped past
when actually retrieving the UID.
James Chambers [Fri, 23 Mar 2018 19:26:30 +0000 (15:26 -0400)]
mfu read block: retry block with bad CRC (#584)
* mfu read block: retry block with bad CRC, command timeout, or unknown response.
Michael Farrell [Wed, 21 Mar 2018 15:05:03 +0000 (02:05 +1100)]
OSX: Multiple libedit/readline fixes (#585)
* OSX: Multiple libedit/readline fixes.
W8M2Hg9lLmWqXSGC [Mon, 26 Feb 2018 06:25:21 +0000 (17:25 +1100)]
Merge pull request #580 from Proxmark/iceman1001-patch-1
Update README.md
Iceman [Mon, 26 Feb 2018 06:16:08 +0000 (07:16 +0100)]
Update README.md
Added hackerwarehouse
Iceman [Thu, 22 Feb 2018 13:08:33 +0000 (14:08 +0100)]
Merge pull request #578 from Tom5ive/master
fix for swapped parity bits
Tom Harkness [Thu, 22 Feb 2018 12:38:53 +0000 (23:38 +1100)]
fix for swapped parity bits
Iceman [Sat, 17 Feb 2018 11:39:19 +0000 (12:39 +0100)]
Merge pull request #565 from Proxcloud/usb_android
Allow non-root access on Android devices
Iceman [Wed, 14 Feb 2018 22:36:41 +0000 (23:36 +0100)]
Merge pull request #572 from merlokk/hflistms_fix
`hf list mf` fix key length in printf
merlokk [Wed, 14 Feb 2018 22:20:00 +0000 (00:20 +0200)]
small fix
merlokk [Wed, 14 Feb 2018 22:18:02 +0000 (00:18 +0200)]
small fix `hf list mf`
Iceman [Wed, 14 Feb 2018 21:06:29 +0000 (22:06 +0100)]
Merge pull request #571 from merlokk/hf_list_mf
added command `hf list mf`
Iceman [Wed, 14 Feb 2018 21:06:00 +0000 (22:06 +0100)]
Merge pull request #570 from marshmellow42/master
improve lf cmdread
marshmellow42 [Wed, 14 Feb 2018 20:41:39 +0000 (15:41 -0500)]
update changelog
+fix a comment typo
+ move clear bigbuf after fpgadownloadandgo...
merlokk [Wed, 14 Feb 2018 10:36:22 +0000 (12:36 +0200)]
small fix and added line to changelog.
merlokk [Tue, 13 Feb 2018 15:14:51 +0000 (17:14 +0200)]
move annotate* functions
merlokk [Tue, 13 Feb 2018 15:07:49 +0000 (17:07 +0200)]
added hardnested sketch. final cleaning.
merlokk [Tue, 13 Feb 2018 13:12:41 +0000 (15:12 +0200)]
nested works
merlokk [Tue, 13 Feb 2018 10:35:33 +0000 (12:35 +0200)]
code cleaning
merlokk [Tue, 13 Feb 2018 10:33:15 +0000 (12:33 +0200)]
check parity works
merlokk [Mon, 12 Feb 2018 16:53:12 +0000 (18:53 +0200)]
added parity check of deciphered command
Oleg Moiseenko [Sat, 10 Feb 2018 22:45:12 +0000 (00:45 +0200)]
small fix
Oleg Moiseenko [Sat, 10 Feb 2018 22:44:24 +0000 (00:44 +0200)]
added cipherstream recovery
Oleg Moiseenko [Sat, 10 Feb 2018 22:40:24 +0000 (00:40 +0200)]
move ks to authdata
marshmellow42 [Sat, 10 Feb 2018 22:30:32 +0000 (17:30 -0500)]
reconfigure lf cmdread ...
to use lf config settings instead of it's own settings. (now allows
full options of lf config...)
also it will now run `data samples` when the command completes making it
not necessary to run manually...
note: adjusted client wait message as it was confusing.
Oleg Moiseenko [Sat, 10 Feb 2018 22:28:23 +0000 (00:28 +0200)]
added some cone in nested. not tested.
Oleg Moiseenko [Sat, 10 Feb 2018 21:28:15 +0000 (23:28 +0200)]
added destroy
Oleg Moiseenko [Sat, 10 Feb 2018 21:25:28 +0000 (23:25 +0200)]
mock of key checking
Oleg Moiseenko [Sat, 10 Feb 2018 21:06:01 +0000 (23:06 +0200)]
added mock of key check
Oleg Moiseenko [Sat, 10 Feb 2018 20:33:32 +0000 (22:33 +0200)]
hf list mf 1st auth works
Oleg Moiseenko [Sat, 10 Feb 2018 20:10:38 +0000 (22:10 +0200)]
small fix util.c
Oleg Moiseenko [Sat, 10 Feb 2018 18:41:56 +0000 (20:41 +0200)]
fix appearance