Commit graph

1910 commits

Author SHA1 Message Date
iceman1001
4c08477ef7 chg: 'lf indala clone' - refactored , uses NG 2019-09-16 11:33:05 +02:00
Iceman
775394ae58
Update appmain.c
yet again some my unreleased stuff snuck in..
2019-09-16 10:21:18 +02:00
Philippe Teuwen
960d8c4db3 add helper fct manchesterEncodeUint32 2019-09-15 02:09:40 +02:00
Philippe Teuwen
359399b2e6 fix hid sim long id length 2019-09-15 02:01:53 +02:00
Philippe Teuwen
59e66ce5fd lf hid sim: add support for long ID 2019-09-15 02:00:42 +02:00
Philippe Teuwen
61098c7716 lf hid sim: use generic FSK sim 2019-09-14 22:44:15 +02:00
iceman1001
2bec009778 chg: 'lf viking clone' - now uses NG 2019-09-14 19:58:17 +02:00
Ludovic Rousseau
f961c1c551 Fix typos
Thanks to Debian lintian for the reports:
I: proxmark3: spelling-error-in-binary usr/share/proxmark3/firmware/fullimage.elf dont don't
I: proxmark3: spelling-error-in-binary usr/share/proxmark3/firmware/fullimage.elf succesful successful
I: proxmark3: spelling-error-in-binary usr/share/proxmark3/firmware/fullimage.elf Uknown Unknown
I: proxmark3: spelling-error-in-binary usr/share/proxmark3/firmware/fullimage.elf requestes requests
I: proxmark3: spelling-error-in-binary usr/share/proxmark3/firmware/fullimage.elf unkown unknown
I: proxmark3: spelling-error-in-binary usr/share/proxmark3/firmware/fullimage.elf ambigous ambiguous
2019-09-14 17:53:24 +02:00
Ludovic Rousseau
a1852eaa4b Fix typos
Thanks to Debian lintian for the reports:
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 formated formatted
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 succesfully successfully
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 Skiped Skipped
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 standart standard
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 supress suppress
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 successfull successful
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 Succeded Succeeded
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 Overriden Overridden
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 aquire acquire
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 occured occurred
I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 delimeter delimiter
2019-09-14 17:44:58 +02:00
iceman1001
f5bff0d4e5 style 2019-09-13 16:27:25 +02:00
iceman1001
49cd525cf1 style 2019-09-13 16:26:17 +02:00
iceman1001
ffa3e2a0f8 style 2019-09-13 16:25:33 +02:00
iceman1001
1c4c21513b chg samyrun, all leds flash 5times when exiting standalone mode 2019-09-13 14:12:12 +02:00
iceman1001
871445212e chg 'lf proxebrute standalone' - simplified it. No need for clone, or multiple slots, LED A = read / record, flashing LED A 12 times, failed reader and next click try again, LED C == proxbrute, all leds flash when exiting standalone mode 2019-09-13 14:10:08 +02:00
Philippe Teuwen
3dc4774f20 simplify fcAll 2019-09-13 10:35:17 +02:00
iceman1001
3a776ecf3a chg samyrun - dual leds flash after state changes 2019-09-13 10:17:58 +02:00
iceman1001
cb23de9694 chg: feedback after successful operation. led flashes twice. and whitespace removed 2019-09-13 10:04:59 +02:00
iceman1001
a4421dfc37 fix wrong spelling 2019-09-13 07:38:07 +02:00
Philippe Teuwen
59ea79b583 CmdFSKsimTAG: swap fcH/fcL back, fix lf io/awid/pyramid sim 2019-09-13 00:39:19 +02:00
Philippe Teuwen
64d2e43592 CmdFSKsimTAG: avoid padding with very short cycles, this confused lf io sim 2019-09-13 00:39:19 +02:00
iceman1001
3821a03a40 chg: 'lf t55xx wipe p' - now takes a password for wipe
chg: 'lf t55xx wakeup' - uses NG
2019-09-12 21:20:40 +02:00
Philippe Teuwen
da68369e02 fix issue #397 2019-09-12 19:50:34 +02:00
iceman1001
74cd1bee35 minor 2019-09-12 17:39:12 +02:00
iceman1001
75f4a6123c textual 2019-09-12 17:38:13 +02:00
iceman1001
4eab354f44 chg: 'lf samyrun' standalone - rework of LED messages.
A = bank A reading
B = bank B reading
A,C = bank A simulating
A,D = bank A cloning
B,C = bank B simulating
B,D = bank B cloning

One button press to go between steps.   Maybe practice with the proxmark3 device connected with usb-cable to see the new steps.
2019-09-12 17:37:36 +02:00
iceman1001
d3b2f1f6d0 fix leds. dbg msg 2019-09-12 10:39:10 +02:00
iceman1001
3587aeff2a fix: LED is used as a flag, 1,2,4,8 not 1,2,3,4.. 2019-09-12 09:58:05 +02:00
iceman1001
1ad66c917f fixin... 2019-09-11 22:51:13 +02:00
iceman1001
236175a688 fix 'hf iclass chk' - timings and fixing the parity / kc / kd ... 2019-09-11 21:14:46 +02:00
iceman1001
f4ff22a5bc revert back timeout values 2019-09-11 20:40:59 +02:00
iceman1001
6090a66f34 ... 2019-09-11 16:37:10 +02:00
iceman1001
ab0d81d01a ..adapt parity to cmds, prolong button loop test 2019-09-11 16:24:16 +02:00
iceman1001
105665ed0a chg: iclass.. cleaning out test/unused code.\n 'hf iclass sim' - Try LUT table 2019-09-11 15:18:40 +02:00
iceman1001
ff66ea896b ssp clock delta 2019-09-11 15:16:20 +02:00
iceman1001
df2c294cac chg - cleaning out testcode... 2019-09-11 15:15:13 +02:00
Iceman
341703d9a7 chg: 'hf iclass sim' - better iClass protocol implementation 2019-09-11 13:09:08 +02:00
iceman1001
9a2a0116e4 fix: 'hf iclass clone' - last block write fails, see (https://github.com/RfidResearchGroup/proxmark3/issues/183)
chg: 'hf iclass clone' - now tries ten times,  behavies better, obey verbose nicer, drop field constant. Uses NG.
chg: 'hf iclass dump' - now tries ten times,
in general nice outputs..
2019-09-08 23:19:06 +02:00
iceman1001
d8217a13d9 chg: 'hf iclass rdbl'
'hf iclass wrbl'  - both commands now tries tens times. Both honor verbose param,  both has gotten some love with regards to timing on device side,  and they also turn off the field more consistent.
2019-09-08 21:21:30 +02:00
iceman1001
305c54f3cf chg: 'hf iclass rdbl' - now retries 10 ten times and uses NG 2019-09-08 17:37:14 +02:00
Philippe Teuwen
9cf2cd7ca9 remove leading/tailing "/" from installation RELPATHs 2019-09-05 23:20:46 +02:00
Philippe Teuwen
6949a780fc Add possibility to make install more firmware variants 2019-08-31 00:26:35 +02:00
Philippe Teuwen
4fdb5a2f4b make install: half way 2019-08-30 21:55:13 +02:00
Philippe Teuwen
b5f5b9276f make install skeleton 2019-08-30 21:44:40 +02:00
Philippe Teuwen
2022df1068 make style 2019-08-30 10:45:52 +02:00
Philippe Teuwen
8987e956ac POSIX sh version of mkversion
Most targeted platforms have "sh" and don't need Perl as requirement.
Still Perl script is present as fallback.
2019-08-29 23:23:53 +02:00
Iceman
3408d75ac9
Update Makefile.hal
fix https://github.com/RfidResearchGroup/proxmark3/issues/375
2019-08-29 21:25:06 +02:00
iceman1001
03867018f1 chg: iclass fixes. better timings, to get 280us vs 330us (default) time before card response. 2019-08-28 21:29:08 +02:00
iceman1001
501182ca06 chg: ecload NG, fchk use ecfill trick 2019-08-28 21:23:31 +02:00
iceman1001
28d703d6df chg: eload NG 2019-08-28 21:21:52 +02:00
Philippe Teuwen
a64aa99b74 remove tabs 2019-08-27 21:19:44 +02:00
Philippe Teuwen
d88b76beda partial make style 2019-08-27 17:28:08 +02:00
iceman1001
48d3802d35 chg: optimization of iclass mac calculations on deviceside (@pwpiwi) see https://github.com/Proxmark/proxmark3/pull/861
chg: some textual
2019-08-27 10:51:52 +02:00
Philippe Teuwen
16a7cfd7b2 make style (excepted cmdhficlass...) 2019-08-26 22:28:39 +02:00
Iceman
fea5d88278 add: detect unfused / write once magic tags, from https://github.com/nfc-tools/libnfc/pull/554 2019-08-20 14:53:52 +02:00
sguerrini97
a6e5f9922f PCF7931: Print found single/consecutive block(s), fixes to block 1 check and some comments
Printing blocks makes it easier to manually reorder blocks when block 0 and 1 are not transmitted
2019-08-19 17:10:25 +02:00
iceman1001
6f9ec6dd24 FIX: 'spiffs : fixes the device going rouge with bad memory reading' Thanks @megabug 2019-08-19 15:18:17 +02:00
Philippe Teuwen
3771c150f0 make style 2019-08-13 17:42:03 +02:00
Philippe Teuwen
763c94334b add missing includes and fix mf1ksim usage in hf_colin standalone mode 2019-08-13 17:39:48 +02:00
Philippe Teuwen
0ace6bffb8 missing includes for spiffs 2019-08-13 17:39:48 +02:00
cjbrigato
961f98c125 SPIFFS : FIXES FS corruption against high numbero f current losses, high number of files manipulation. FIXES LOG_BLOCK erasing handlers. FIXES Garbage Collector. Overall, SPIFFS should now be WAY MORE resilient to any form of misbehavior. In case of corrupted filesystem (should still be readable !), spamming 'mem spiffs check' from the client will ensure at least 2 new free 4k blocks each tile (if number of LOG_PAGE available is enough) and in the same pass will move/reorganize the LOG_PAGES of contextual blocks. Yiha 2019-08-13 17:39:48 +02:00
iceman1001
5acc77bc95 chg: mem spiffs info - text output 2019-08-12 16:33:27 -04:00
Philippe Teuwen
47b60d84de make style 2019-08-11 23:53:45 +02:00
Philippe Teuwen
80b4e81130 Fix fpga_compress race condition and isolate it in tools 2019-08-11 21:42:01 +02:00
Philippe Teuwen
d19754567d summer restructuring:
* .h include only the strict minimum for their own parsing
  * this forces all files to include explicitment their needs and not count on far streched dependencies
  * this helps Makefile to rebuild only the minimum
  * according to this rule, most standalone .h are now gone
  * big app.h is gone
  * remove seldom __cplusplus, if c++ happens, everything will have to be done properly anyway
* all unrequired include were removed
* split common/ into common/ (client+arm) and common_arm/ (os+bootloader)
  * bring zlib to common/
  * bring stuff not really/not yet used in common back to armsrc/ or client/
  * bring liblua into client/
  * bring uart into client/
  * move some portions of code around (dbprint, protocols,...)
* rename unused files into *_disabled.[ch] to make it explicit
* rename soft Uarts between 14a, 14b and iclass, so a standalone could use several without clash
* remove PrintAndLogDevice
* move deprecated-hid-flasher from client to tools
* Makefiles
  * treat deps in armsrc/ as in client/
  * client: stop on warning (-Werror), same as for armsrc/

Tested on:

* all standalone modes
* Linux
2019-08-11 21:42:01 +02:00
Iceman
b7d412d27b Merge branch 'master' of https://github.com/RfidResearchGroup/proxmark3 2019-08-10 21:04:25 +02:00
Iceman
a78b8a406c fix: hf iclass sim 3 - reading now works... 2019-08-10 18:33:06 +02:00
Philippe Teuwen
c58937b5f5 client: clean deps while cleaning objects 2019-08-09 12:12:22 +02:00
Philippe Teuwen
bc28eb04e4 Revert 00350db and add waiting time extension request mechanism, see issue #265 2019-08-07 13:04:34 +02:00
Philippe Teuwen
9b44590f8d make style 2019-08-07 13:04:26 +02:00
Philippe Teuwen
12d38bb6ac fix standalones after Mifare1ksim changes 2019-08-07 11:57:26 +02:00
Philippe Teuwen
12a0540d91 mf sim: add option to pass explicitly atqa/sak and reject explicitly unknown vals for option t 2019-08-07 01:32:37 +02:00
Philippe Teuwen
4615354864 mf sim: respect DBG_NONE and explicit ATQA/SAK usage 2019-08-07 00:47:32 +02:00
Philippe Teuwen
80941ed9e1 Remove comments 2019-08-07 00:02:00 +02:00
Philippe Teuwen
9f8e63a7c8 print errors only if dbg level allows errors 2019-08-06 23:19:59 +02:00
Philippe Teuwen
650dd5855f ok it seems PMW CNTR is not reset as promised in the datasheet, let's fix this for now... 2019-08-06 23:10:02 +02:00
Philippe Teuwen
0f9880b18f cleaning 2019-08-06 13:52:03 +02:00
Philippe Teuwen
1354aec556 typos 2019-08-06 13:51:10 +02:00
Philippe Teuwen
c74028fa10 show slow clock in hw status 2019-08-06 13:42:17 +02:00
Philippe Teuwen
8b3159c83d Use more defines when using main clock or master clock 2019-08-06 13:40:08 +02:00
Philippe Teuwen
2cbe43f269 clarifications and minor changes in slow clock related operations:
* SpinDelay and SpinDelayUs: now rounding applies instead of truncating
* Document maximum duration of SpinDelay/SpinDelayUs/BUTTON_CLICK/BUTTON_HELD
* Add argument check against max duration in SpinDelay/BUTTON_CLICK/BUTTON_HELD
* Document why these functions don't need to take wrapping into acount as in GetTickCountDelta
* Use >= in the spinning loops
* Clarify StartTickCount calibration operations and use masks AT91C_CKGR_MAINRDY and AT91C_RTTC_RTPRES
2019-08-06 13:09:48 +02:00
iceman1001
25748b0746 style 2019-08-05 12:01:11 -04:00
Philippe Teuwen
225d406d21 cppcheck fix: Checking if unsigned variable 'len_to_read' is less than zero. 2019-08-05 00:12:35 +02:00
Philippe Teuwen
45c27573b3 ARM Makefile: softer dependency on fpga_compress 2019-08-04 21:33:57 +02:00
iceman1001
2cc24c8714 chg: 'hf iclass' generically, check button press fewer times to not interupt time critical parts too much 2019-08-04 18:31:52 +02:00
iceman1001
7cb696c5bc chg: 'hf iclass sim 3' - now supports READ4 cmd. 2019-08-04 18:16:16 +02:00
iceman1001
a90e5e1858 chg: legic cmds uses return macros.
chg: hf search started to use macros
2019-08-03 23:36:55 +02:00
Philippe Teuwen
60bfc37f35 remove more dummy cmds 2019-08-03 22:52:32 +02:00
Philippe Teuwen
61538bd635 thinfilm simulation when on battery 2019-08-03 22:37:01 +02:00
Philippe Teuwen
3dae748314 thinfilm is ok with thumb 2019-08-03 22:28:58 +02:00
Philippe Teuwen
25f358955b make hf search robust to various HF configurations 2019-08-03 22:14:12 +02:00
Philippe Teuwen
4a3fb3ccf1 split nfcbarcode from iso14443a 2019-08-03 22:14:12 +02:00
Philippe Teuwen
517f0886ba make style 2019-08-03 20:20:08 +02:00
Iceman
f08649ac0e
Merge pull request #304 from ViRb3/format-and-docs
Format and docs
2019-08-03 19:53:49 +02:00
Philippe Teuwen
a0a232a985 rename few CMD_* to get some less diversity 2019-08-03 19:48:02 +02:00
Victor
5913ee670a Add auth comments 2019-08-03 18:36:47 +01:00
Victor
835a8a3b03 Add state comments 2019-08-03 18:36:47 +01:00
Victor
4bd03bb920 Fix more comment alignment 2019-08-03 18:36:47 +01:00
Victor
868469db0d Fix comment alignment 2019-08-03 18:36:47 +01:00
Iceman
87e300588b
Merge pull request #303 from ViRb3/fix-pass-write
Fix password write offset by 1
2019-08-03 19:34:10 +02:00
Victor
714280fad2 Fix password write offset by 1 2019-08-03 17:57:39 +01:00