Commit graph

826 commits

Author SHA1 Message Date
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
marshmellow42
d1cea2a4a0 fix const vs static... 2015-11-22 16:42:13 -05:00
marshmellow42
709665b5d1 lf viking build / lf awid refactor / lfdemod.c debugMode==2
lf viking from other users - just put my spin on it
lf awid refactored code - possible to make it not 26bit specific now
with minor chanages
lfdemod.c now supports extra debug printing if `data setdebug` = 2 when
not on device (on client not arm)
2015-11-22 00:00:32 -05:00
marshmellow42
6fe5c94bda lf demod cleanup nrz clock detect fixes
slight adjustment to lf t55xx sampling code to start at the same spot
more consistently
reduce indala detection false positives
lf t55xx commands heavily tested and seem to be stable and reliable on
most modulations/bitrates (excluding Sequence Terminator configured
cards).
2015-11-18 00:10:11 -05:00
marshmellow42
93507a3375 remove old comment 2015-11-16 18:55:46 -05:00
marshmellow42
db8296025f lf t55xx and some lf demod fixes/adjustments
finally think I like the lf t55xx detect and read cmds.  pretty reliable
now.
2015-11-16 18:49:20 -05:00
Martin Holst Swende
9983a92943 Merge pull request #143 from marshmellow42/master
lfops cleanup, t55xx additions/fixes, PCF7931 input cleanup
2015-11-15 13:22:26 +01:00
marshmellow42
f665067919 add some Q5 functionality - add t55xx wipe cmd
not fully tested yet
2015-11-12 00:27:24 -05:00
marshmellow42
14331320c4 Fix viking demod bug - clean my indala demod code
NOTE lf indalademod is still available as it uses a different technique
to demodulating, which sometimes works better (and sometimes worse).
2015-11-10 11:59:41 -05:00
marshmellow42
415274a7c3 Add Viking demod,
fix compiler warning for int vs uint8_t for em410x sim clock variable
2015-11-09 23:09:26 -05:00
András Veres-Szentkirályi
7cdf6236cb Fixed copypasted hex output to match input
The value `x0` was obviously copypasted but not edited to reflect the real values used in `case` matching.
2015-11-09 21:06:58 +01:00
marshmellow42
daa4fbaeec fix em410xsim help - add clock input to em410xsim 2015-11-07 21:02:30 -05:00
pwpiwi
2487dfeb07 fix: .history was never written 2015-11-06 11:34:43 +01:00