Commit graph

838 commits

Author SHA1 Message Date
marshmellow42
6923d3f14f Add @iceman1001 s presco and pyramid functions +
plus comment some includes.
fix indala error checking bugs
cmddata.h previously relied on several headers being included prior to
cmddata.h, now self contained.
2016-03-05 23:45:28 -05:00
marshmellow42
31e8a4f21b fix uint8 vs uint32 and use sprint_hex
thanks @iceman1001 for the suggestion.
2016-02-29 18:17:51 -05:00
marshmellow42
88e85bde41 refactor gProxII demod... add 0 spacer to ...
... parity functions (remove, add)
make MAX_GRAPH_TRACE_LEN match with client side
2016-02-29 17:05:02 -05:00
marshmellow42
72c5877a74 some minor lf fixes from @iceman1001 2016-02-21 17:05:53 -05:00
marshmellow42
b66ff08113 fix clock detection when ST used
ST = sequence terminator
fixes t55xx auto detection of tags with ST used.
2016-02-20 16:53:59 -05:00
marshmellow42
01d7272d5b Merge remote-tracking branch 'upstream/master' 2016-02-20 10:10:10 -05:00
marshmellow42
35cfcfc7a1 fix detection of lf t55x7 if xtd bits set but...
...not used
2016-02-19 15:54:32 -05:00
marshmellow42
8e90cd4174 fix wrong type in print bug 2016-02-19 15:11:44 -05:00
William Robinet
63744b5681 Typos 2016-02-17 15:44:18 +01:00
marshmellow42
d1869c3336 Add LF ASK Sequence Terminator detection...
...and demodulate data beginning after the first ST
also add some type casts in print calls.
2016-02-16 12:49:30 -05:00
marshmellow42
38b3509542 use memcpy instead of re-assign pointer 2016-02-16 09:38:37 -05:00
marshmellow42
9e4cee22b7 clear char array with each call 2016-02-15 22:36:51 -05:00
marshmellow42
0c50084a2b fix char* pointer not assigned
fix
2016-02-15 22:31:21 -05:00
marshmellow42
a0cc89b479 use different fsk field clock detection routine ...
... to prevent double call to getFromGraphBuf()...
also adjust %hu to u and as there is a possible problem with %hu in
printf.
2016-02-15 21:39:34 -05:00
Martin Holst Swende
b31ef4f510 Merge pull request #162 from marshmellow42/CoverityFixes
Coverity fixes - mainly from @iceman1001 s fork
2016-02-15 18:43:25 +01:00
Martin Holst Swende
b5cefff12c Merge pull request #160 from marshmellow42/master
lf viking and standalone bug fixes
2016-02-15 18:39:42 +01:00
marshmellow42
7c5e0ebe7a undo adjustments to cmdhf14a.c and cmdhfmf.c
as these will be adjusted with the magic command adjustments
2016-02-14 18:37:09 -05:00
marshmellow42
d0168f2f49 clear array before assigning 2016-02-14 18:08:14 -05:00
marshmellow42
776f7e6160 put back viking clone bug fix
forgot i added this on a different computer recently - forgot to merge
it in...
2016-02-14 17:00:20 -05:00
marshmellow42
38d618baa9 remove redundant llx prix64 defines
remove unused commented out #includes
coverity indicates compressed_fpga_stream.opaque needs to be initialized
to Z_NULL
fgetc returns int
define llu
2016-02-14 14:43:19 -05:00
marshmellow42
d23411ef61 resource leak and malloc(x) cannot be negative
thanks iceman1001
2016-02-14 13:41:25 -05:00
marshmellow42
735136e6a3 lf t55 bruteforce lots of resource leaks...
plus strlen(Cmd) can never be less than 0
iceman1001 fixes...
2016-02-14 13:37:05 -05:00
marshmellow42
8ea5706047 additional memory leaks, overflow and unchecked ...
return values fixed

thanks to iceman1001
2016-02-14 13:24:03 -05:00
marshmellow42
568377946c FIX: Coverity, Out-of-bounds. In the loop, variable i, can...
...be as much as 1051, overflowing the databuf with size 1024.
2016-02-14 12:36:55 -05:00
marshmellow42
165e0775b1 fix possible null if no file found
also initialize filename variable so not null

found by iceman1001
2016-02-14 12:33:07 -05:00
marshmellow42
b0c68b72d3 fix keyNbr entry error checking
coverity scan by iceman1001 found.
2016-02-14 12:26:03 -05:00
marshmellow42
eb5b63b4a6 FIX, Coverity, Argument can't be negative. CID# 212322, ftell(f) can …
…be negative. Not allowed in malloc...
from iceman1001
2016-02-14 12:13:22 -05:00
marshmellow42
7a616c0d70 FIX, Coverity, Argument can't be negative. CID# 212322, ftell(f) can …
…be negative. Not allowed in malloc...
from @iceman1001
2016-02-14 12:06:29 -05:00
marshmellow42
3d4982ddbf FIX: Coverity, unintended sign extention, CID #121363, (numbits << 16…
…) becomes int, then uint64_t. But the signness might set all upper bits
to 1 in the process.
from @iceman1001 .
2016-02-14 11:42:34 -05:00
marshmellow42
fd9172d5c2 @iceman1001 s coverity fixes
resource leak in hf mf sniff
possible overflow in hf 14a raw - add check to fix
2016-02-14 11:26:00 -05:00
marshmellow42
33c795d0bd add check to fread call 2016-02-14 11:07:16 -05:00
William Robinet
b8140ab108 Fix typos 2016-02-11 23:03:15 +01:00
marshmellow42
0c1cb4aef0 fix lf viking clone mask bug
should be a 32 bit mask not a 16 bit mask
also added client feedback.
2016-02-09 13:40:01 -05:00
marshmellow42
9fc602c835 fix print clock as decimal instead of uint8_t 2016-01-28 00:27:53 -05:00
marshmellow42
c4c3af7c16 some @iceman1001 s coverty scan fixes
great work!
2016-01-08 18:26:56 -05:00
marshmellow42
3975d477e1 comment out unused includes and defines
prep for permanent removal.
2016-01-07 21:54:32 -05:00
marshmellow42
5490c2d6d2 add broken_bad and @iceman1001 s q5 trace and ...
wipe adjustments
2016-01-05 21:21:06 -05:00
marshmellow42
254687260c Merge remote-tracking branch 'upstream/master' 2015-12-21 23:56:55 -05:00
Adam Laurie
bc37cfb3eb add support for raw block 3/4 iclass keys 2015-12-19 16:37:32 +00:00
marshmellow42
af5384bc90 additional Q5 lf t55xx fixes 2015-12-14 17:36:08 -05:00
marshmellow42
6ca1477c74 fix occasional strange printed clock value with...
...fskdemod
Fix Q5 tag detection in lf t55xx detect
Fix param_get8 reversed parameters
2015-12-14 16:51:11 -05:00
Martin Holst Swende
2c7928874b Merge pull request #149 from marshmellow42/T55xx_tests
Add lf viking, lf demod/clock detection improvements
2015-12-10 10:44:44 +01:00
marshmellow42
534678c3e9 Fix incorrect memset parameters in lf t55xx wipe
thanks @iceman1001 for the catch

add added a restore graphbuffer after lf t55xx psk demodulation
2015-12-09 22:44:01 -05:00
marshmellow42
7bc6fac3ce fix sprint_bin bug i made :( 2015-12-09 20:40:12 -05:00
marshmellow42
ace26dbdfd Fix printdemodbuffer length tests + add length...
parameter
increase askdemod MaxBits
fix util.c sprint_bin_break and increase buffer size (had memory
overflow possible before)
2015-12-07 21:18:30 -05:00
marshmellow42
51923aca85 minor help text changes 2015-12-04 12:09:26 -05:00
marshmellow42
6e083f0412 include default password dictionary for lf t55xx...
...bruteforce
2015-12-03 16:44:06 -05:00
marshmellow42
506672c48b icemans lf fixes & adjustments + lf t55xx bruteforce
Fix small fskdemod clock bug
2015-12-02 17:27:12 -05:00
marshmellow42
fe876493f8 include cmdlfviking.c in makefile and cmdlf
fix minor typos
2015-11-26 21:05:46 -05:00
marshmellow42
ab5ffe3bef iceman's finished t55xx detect parameter adjustments 2015-11-26 20:30:58 -05:00