Commit graph

1862 commits

Author SHA1 Message Date
iceman1001 089f91dc9d FIX: GCC 4.8 complains the pointer is set before its used in a call to free(). Doesn't complain on Mingw, only Ubuntu.15.10 2016-01-13 13:15:34 +01:00
iceman1001 40a532d97d FIX: Coverity, strlen(Cmd) can never be lesser than zero.. *douh* 2016-01-13 12:58:10 +01:00
iceman1001 b891758968 FIX: Coverity, resource leaks 'nd more.. in "lf t55xx bruteforce" nasty piece of code... 2016-01-13 12:50:18 +01:00
iceman1001 4b8ee00f0d FIX: forgot to change a modified call from @pwpivi 's last update. 2016-01-13 12:49:21 +01:00
iceman1001 0d5ee8e245 ADD: @pwpiwi 's latest changes to 'hf mf hardnested' 2016-01-13 09:31:13 +01:00
iceman1001 d16b33feb5 REM: Removed lot of obselete code from before. 2016-01-13 00:24:37 +01:00
iceman1001 3a532acfe1 ADD: "lf hid bruteforce" for a simple bruteforce attact against a HID reader. *work in progress* 2016-01-13 00:16:11 +01:00
iceman1001 d04b71c168 FIX: tcgetattr for Linux in Ukbhit(), should return -1 if fail. 2016-01-13 00:14:08 +01:00
iceman1001 f37fe8cb10 FIX: Coverity, Unchecked return value, CID #121288, lets do the same check that is everywhere is this call is used. 2016-01-13 00:08:23 +01:00
iceman1001 3f3fdce685 FIX: Coverity, CID# 121351, #121371, #121372, old code that is not used any more, I should remove this. 2016-01-13 00:07:14 +01:00
iceman1001 978920b9fc FIX: textual changes 2016-01-13 00:05:55 +01:00
iceman1001 6178e80e4a FIX: Coverity, resource leak, CID #121357, Mat needs to be free 2016-01-12 23:56:15 +01:00
iceman1001 33db73516d FIX: Coverity, logical vs bitwise operator, remove the extra '&' for it to become bitwise. 2016-01-12 23:42:42 +01:00
iceman1001 95d96ea38a FIX: Coverity, Unintended sign extension, data[7] would have become int, then uint64_t. Should work better now with adding typecasting. 2016-01-12 23:40:57 +01:00
iceman1001 3906036e11 FIX: Coverity, Resource leak, CID #121361, filehandle f needs to be free 2016-01-12 23:38:47 +01:00
iceman1001 e683ecb6a5 FIX: Coverity, Resource leak, CID# 121360, keyBlock needs to be free 2016-01-12 23:37:33 +01:00
iceman1001 60daed79db FIX: Coverity, out-of-bounds write, CID#121340, CID#121341, CID#121342, CID#121343, wrong size in check, sprintf always adds a null terminator, so if filepath would have been 996 chars long, this might had happend... but no more. 2016-01-12 23:35:06 +01:00
iceman1001 f1db8c2207 CHG: Syntax suger 2016-01-12 23:29:05 +01:00
iceman1001 e72d1fbba2 FIX: Coverity, CID#121314, Explicit null dereferenced, in really odd occasions buf would be NULL, and sending NULL to memcpy dereferences it. Not sure about this fix. 2016-01-12 23:27:42 +01:00
iceman1001 395ec4e99c FIX: Coverity, CID# 121337, Out-of-bounds. In the loop, variable i, can be as much as 1051, overflowing the databuf with size 1024. 2016-01-12 23:16:20 +01:00
iceman1001 5cba446201 FIX: Coverity, uninitialized scalar variable, filename array could be NULL.. 2016-01-12 23:10:38 +01:00
iceman1001 628d1cb085 FIX: Coverity, CID #121346, resouce leak, close filehandle. 2016-01-12 23:06:53 +01:00
iceman1001 f7c30d806c FIX: Coverity, out-of-bounds, CID#121330, CID#121331, CID#121332, CID#121333,
keyNbr has to be smaller then ICLASS_KEYS_MAX (since the Iclass_Key_Table array is initialised with it).
2016-01-12 23:05:10 +01:00
iceman1001 3c40616979 FIX: Coverity, Dereference null return, CID #212329, filehandle could be NULL 2016-01-12 22:57:23 +01:00
iceman1001 8b15860ed1 FIX, Coverity, Unsigned compared against 0. CID #212326, keyNBr will never be negative. 2016-01-12 22:53:13 +01:00
iceman1001 ddb748a973 FIX, Coverity, Argument can't be negative, CID #212324, ftell(f) can be negative, not allowed in malloc. 2016-01-12 22:49:29 +01:00
iceman1001 4bb17c6633 FIX: Coverity , Argument can't be negative, CID #121323, ftell(f) can be negative, not allowed in malloc.
FIX: forgot to close the filehandle :(
2016-01-12 22:47:48 +01:00
iceman1001 9c4e28a445 FIX, Coverity, Argument can't be negative. CID# 212322, ftell(f) can be negative. Not allowed in malloc... 2016-01-12 22:43:28 +01:00
iceman1001 7144c99b07 CHG: syntax suger 2016-01-12 22:42:31 +01:00
iceman1001 e994394a40 FIX: Coverity, Identical code for different branches, CID #121315, added a message and different return value. 2016-01-12 22:37:35 +01:00
iceman1001 4c685ac887 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. 2016-01-12 22:33:54 +01:00
iceman1001 28415b5d90 FIX: Coverity, unchecked return value, CID #121292,..
basicallty the flush queue commmand is replaced with clearCommandBuffer();.
2016-01-12 22:30:22 +01:00
iceman1001 1d42f25fcd FIX: Coverity, out-of-bounds write, CID# 121336, s_index should take factor in consideration when looping. Not sure about this one.
FIX: another thing struck me, the g_index wasn't increased, meaning the "un-decimation" always worked on the same first byte of GraphBuffer.
2016-01-12 22:15:49 +01:00
iceman edff4a417d ADD: created some build scripts for the CoverityScans 2016-01-12 10:39:23 +01:00
iceman1001 6799b19374 Merge branch 'master' of https://github.com/iceman1001/proxmark3 2016-01-09 17:20:58 +01:00
iceman1001 fc893f8e33 FIX: minor fixes to the HID wiegand generation command. Still not complete 2016-01-09 17:20:06 +01:00
iceman1001 5cc88edfaf CHG: syntax suger 2016-01-09 17:19:09 +01:00
iceman1001 dd79e03a1a ADD: a new pwdgen algo Nicknamed C, (Huge props to @Bettse for everything) also added to the "hf mfu info" command. However, that will not work given the system's lockbits.. :( Maybe I'll add a function to test all imp pwdgens given a UID without making a authentication call to tag.
ADD:   BSWAP_32 macro, for changing endianness.
2016-01-09 17:17:36 +01:00
iceman1001 88a2610af5 ADD: Travis now builds automatically. 2016-01-09 17:13:54 +01:00
Iceman c46b5bc438 Update README.txt 2016-01-08 22:40:02 +01:00
iceman1001 302073363e fix: gcc-arm-none-eabi still not working... 2016-01-08 22:30:36 +01:00
iceman1001 d8784d5e8b ADD: added gcc-arm-none-eabi compiler to travie script 2016-01-08 22:27:09 +01:00
iceman1001 6c67617922 CHG: added the make command 2016-01-08 22:18:15 +01:00
iceman1001 daa93f2a5f ADD: added integration with Travis CI, 2016-01-08 22:14:22 +01:00
iceman1001 dd0434a6ed FIX: @marshmellow42 's cleanup of includes. 2016-01-08 15:29:06 +01:00
iceman1001 7f6ccd3926 FIX: coverty scan defects.
- bigbuf.c  is comparision correct (iLen versus numofparity)
- cmdhfepa.c  resourceleak, add a call to free
- cipherutils.c  resourceleak, added calls to free
2016-01-08 15:28:24 +01:00
iceman1001 fcb1cdba15 REM: code cleanup. 2016-01-08 14:31:27 +01:00
iceman1001 c46ea881a4 FIX: coverty scan, resourceleak in "hf mf sniff", added call to 'free' befor return.
FIX: coverty scan, overflow in "hf 14a raw",  added an extra len check against USB_CMD_DATA_SIZE
2016-01-08 14:30:56 +01:00
iceman1001 f4fbfb83e2 ADD: @go_tus 's code to generate wiegand codes from FacilityCode/SiteCode and Cardnumber. Almost there, formatlength supported is 26,34,35,37,38,40,44,75,84, when its finised. 2016-01-08 14:28:13 +01:00
iceman1001 614da335f6 Syntax suger, making the code easier to read (for me at least) 2016-01-08 14:26:35 +01:00