Commit graph

354 commits

Author SHA1 Message Date
iceman1001
dec92755b6 cppchecker 2020-06-02 13:04:23 +02:00
iceman1001
8ecc1f64f8 fix: adapt return check 2020-05-29 10:22:56 +02:00
iceman1001
9417122714 fix unused_result 2020-05-27 20:40:03 +02:00
iceman1001
2ae85dea4e fix memleak 2020-05-27 20:33:25 +02:00
iceman1001
6370551dd5 unreadvariable 2020-05-27 20:29:53 +02:00
Philippe Teuwen
6e5de1090a pm3_tests: cosmetic 2020-05-23 23:59:10 +02:00
Philippe Teuwen
4df2727ab7 ht2crack5: faster test 2020-05-23 23:47:33 +02:00
Philippe Teuwen
077b156b2f add ht2crack5 test 2020-05-23 17:07:14 +02:00
Philippe Teuwen
6d33c0b784 Bring hitag2crack tools in main Makefiles 2020-05-23 13:33:32 +02:00
Philippe Teuwen
278db15f5a Move tests to tools/pm3_tests.sh and add "make check" to call it 2020-05-22 18:35:27 +02:00
Philippe Teuwen
0a2eb6783c chmod perl scripts 2020-05-22 12:41:19 +02:00
iceman1001
d40251ff0b Revert "Release v4.9237 - Ice Coffee "
This reverts commit 833bc4d9a3.
2020-05-21 21:55:15 +02:00
iceman1001
833bc4d9a3 Release v4.9237 - Ice Coffee 2020-05-21 21:55:15 +02:00
iceman1001
a19ba257af fix: #746 - ProxSpace 64b seem to report both _WIN32 and _WIN64 2020-05-21 21:45:54 +02:00
Philippe Teuwen
bf5c054414 Revert "Release v4.9230 - Ice Coffee "
This reverts commit db2e97c860.
2020-05-21 12:51:35 +02:00
Philippe Teuwen
db2e97c860 Release v4.9230 - Ice Coffee 2020-05-21 12:51:35 +02:00
Philippe Teuwen
4382f8c9be mkversion: add --undecided 2020-05-21 11:50:03 +02:00
iceman1001
3e389c6e07 Revert "Release v4.9224 - Ice Coffee "
This reverts commit 9cec93fd54.
2020-05-21 09:25:32 +02:00
iceman1001
9cec93fd54 Release v4.9224 - Ice Coffee 2020-05-21 09:25:32 +02:00
iceman1001
521a76d3c2 Revert "Release v4.9222 - Ice Coffee "
This reverts commit a5aeadc339.
2020-05-21 09:24:38 +02:00
iceman1001
a5aeadc339 Release v4.9222 - Ice Coffee 2020-05-21 09:23:32 +02:00
Philippe Teuwen
e2a20631c7 remove section version_information for client 2020-05-20 21:11:45 +02:00
Philippe Teuwen
ef586c2a41 version info also for client, still cmake to do 2020-05-20 21:11:45 +02:00
iceman1001
3dd55e2c04 simpler define 2020-05-19 20:53:52 +02:00
Iceman
6a87bdd44e
Merge pull request #739 from grspy/master
Fix 32-bit time_t compilation error on WIN64
2020-05-19 20:47:49 +02:00
grspy
8509d233d2 Fix 32-bit time_t compilation error on WIN64 2020-05-19 20:49:25 +03:00
Philippe Teuwen
cb8d589fc4 armsrc: clarify static vars vs global vars, part 3 2020-05-19 18:12:40 +02:00
Philippe Teuwen
5984e1c03e makefiles: allow to skip pthread (for termux) 2020-05-15 17:40:59 +02:00
Philippe Teuwen
a739d33398 Add mf_nonce_brute from https://github.com/iceman1001/mf_nonce_brute and merge to pm3 Makefile 2020-05-15 13:07:27 +02:00
iceman1001
af47a3fd34 chg: copied from pm3 repo 2020-05-13 20:16:29 +02:00
Philippe Teuwen
b3f84bf7b3 make style 2020-04-29 19:41:45 +02:00
iceman1001
1b16b95565 cppchecker fix 2020-04-28 22:39:04 +02:00
iceman1001
4a282b32c2 cppchecker fix 2020-04-28 13:29:19 +02:00
iceman1001
b03f9402c1 cppchecker fix 2020-04-28 13:29:16 +02:00
iceman1001
2280442492 chg: adjust number of threads according to cpu 2020-04-28 11:02:19 +02:00
Philippe Teuwen
a7c286cc9a hitag2crack compile flags 2020-04-26 22:41:41 +02:00
Philippe Teuwen
b01d1f0aa2 Avoid printing size_t in ht2crack5 for Mingw 2020-04-26 22:36:02 +02:00
Philippe Teuwen
f7f33f2732 Revert "Makefile: move mingw defines to Makefile.host"
This reverts commit 0665b3f40a.
2020-04-26 22:30:41 +02:00
Philippe Teuwen
0665b3f40a Makefile: move mingw defines to Makefile.host 2020-04-26 17:36:15 +02:00
iceman1001
dd5679a53a cppchecker fixes 2020-04-26 13:49:06 +02:00
Philippe Teuwen
fbe4e20326 remove c99 and c++11 restrictions 2020-04-24 16:43:21 +02:00
Philippe Teuwen
0181d5c8f0 ht2 cleaning tools 2020-04-04 15:09:57 +02:00
Philippe Teuwen
b513300ea4 ht2 common files 2020-04-04 14:32:03 +02:00
Philippe Teuwen
8ab297ae6a add new ht2 tools, thanks to anonymous donator 2020-04-04 14:03:21 +02:00
Philippe Teuwen
5277a95364 clean a bit ht2 helpers 2020-04-04 14:02:21 +02:00
Philippe Teuwen
837a53a75b revamp a bit ht2 readmes & makefiles 2020-04-04 14:02:21 +02:00
iceman1001
a24c7334cf cppchecker - invalidprintf 2020-03-24 13:20:50 +01:00
iceman1001
2f85bced17 cppchecker func name 2020-03-13 15:04:07 +01:00
iceman1001
c46119d755 cppchecker - format print 2020-03-13 15:03:11 +01:00
iceman1001
21e6cff4ba format printf 2020-03-13 14:42:04 +01:00
iceman1001
022eacecdc format 2020-03-13 14:37:49 +01:00
iceman1001
a9aaa3040e cppchecker - format print 2020-03-13 14:34:18 +01:00
iceman1001
53ecdaf78f cppcheck func name 2020-03-13 14:14:30 +01:00
iceman1001
c3024fe9f2 cppcheck shadow 2020-03-13 14:14:19 +01:00
iceman1001
c7d2ccb8bd cppchecker function name 2020-03-13 13:52:08 +01:00
iceman1001
6f1ed5a9bf cppchecker shadow var 2020-03-13 13:51:54 +01:00
iceman1001
8a3f2d03ac style 2020-03-09 16:54:42 +01:00
iceman1001
c73517b64d style 2020-03-09 16:44:07 +01:00
iceman1001
b485461fba style 2020-03-09 16:43:14 +01:00
Philippe Teuwen
3319556695
Merge pull request #565 from sigwinch28/convert-python2-to-python3
convert python2 mfd2eml and eml2mfd scripts to python3
2020-02-21 16:51:45 +01:00
Philippe Teuwen
ba6f58cc05 findbits converted to python3 + tests 2020-02-21 16:45:00 +01:00
Joe Harrison
f28404581d convert python2 mfd2eml and eml2mfd scripts to python3 2020-02-21 15:36:48 +00:00
Philippe Teuwen
aa6fc60a22 xorcheck script converted in python3 + test 2020-02-21 16:29:52 +01:00
Philippe Teuwen
5527cb2428 pm3_mfdread.py script python3 and warn for bitstring module 2020-02-21 16:17:56 +01:00
Philippe Teuwen
2177211b7a btaddon scripts: warn for pyserial 2020-02-21 16:06:40 +01:00
Iceman
c0a30405e8
Merge pull request #561 from sigwinch28/use-env-for-shebangs
Use /usr/bin/env in shebangs
2020-02-21 15:24:50 +01:00
Joe Harrison
788e8b7ecc Remove potentially undefined exit behaviour from analyzesize tool
Python2.7 doc for `sys` module states that "Most systems require [the
exit code] to be in the range 0-127, and produce undefined results
otherwise".

Currently, modern Linux-based systems will exit with code 255, while
msys2-based systems such as Proxspace will exit with code 127.

Instead, explicitly exit with non-zero exit code of 1.
2020-02-21 13:50:09 +00:00
Joe Harrison
5e88faa2cf use env in shebangs in pm3-flash-fullimage and rest of tools 2020-02-19 16:13:17 +00:00
Joe Harrison
7d157606ee Use /usr/bin/env in shebangs
Stop assuming that bash is in /bin, and that perl and python are in
/usr/bin, etc.
Instead, use env command to find these commands in the path.
2020-02-18 00:00:24 +00:00
iceman1001
bc3f0c4da8 fix: #555 fpga_compress missing tarbin directive 2020-02-12 09:52:23 +01:00
iceman1001
317b4c32e5 hitag2crack stuff from RFidlar repo 2020-01-16 11:11:14 +01:00
iceman1001
31daa9e302 added hitag2crack 2020-01-16 10:43:13 +01:00
osboxes.org
b205833df4 style 2019-12-31 22:30:59 +01:00
Samy Kamkar
5f7fe45f58 Support multiple files, sanitize input, detect sox 2019-12-23 15:43:49 -08:00
iceman1001
9e41221be1 chmod 2019-12-23 22:53:10 +01:00
iceman1001
1472922c9e Add: two perl scripts from https://github.com/samyk/samytools/. Thanks @samyk! \n pm3_cs8.pl converts pm3 files to wave. \npm3_amii_bin2eml.pl convert / decrypts amiiboo dumps to eml format used when simulating. 2019-12-23 22:52:50 +01:00
merlokk
45926261db style 2019-12-06 17:12:29 +02:00
iceman1001
bb5c4d6162 Add python script to wipe S70 7b Gen2 magic tags. Thanks @vulnersCom 2019-12-03 14:50:48 +01:00
iceman1001
46ba161ba2 ADD file 2019-12-03 14:47:34 +01:00
Philippe Teuwen
5ef4d6dbbb fpga_compress: no previous prototype warning 2019-10-26 18:32:38 +02:00
Philippe Teuwen
c6220dc7be fpga_compress: unused parameter warning 2019-10-26 18:32:17 +02:00
Philippe Teuwen
c613a758b2 mfkey64: fix sscanf uint8_t clang warning 2019-10-26 18:07:09 +02:00
Philippe Teuwen
2173cadf23 openocd scripts: allow to call them from another dir 2019-10-15 13:06:46 +02:00
Philippe Teuwen
a5001de76c less magic trick in fpga_compress for coverity 2019-10-05 19:10:40 +02:00
Philippe Teuwen
dc16509539 Simple script to convert pm3 traces to something audible, thanks @rfidiot for the idea 2019-09-25 15:02:40 +02:00
Adam
00344adfd3
subtle change for clarity
Both interface-raspberrypi.cfg and interface-raspberrypi2.cfg gave conflicting instructions for the dd return value. This should clear that up.
2019-09-21 13:25:28 -05: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
Philippe Teuwen
5dc63fa239 Add sim011.asm 2019-09-05 09:29:45 +02:00
Philippe Teuwen
27a0402a3d HID flasher: add libusb for Fedora in readme 2019-09-01 20:13:33 +02:00
Philippe Teuwen
bd4cce1270 remove global libusb requirement, add note to compile HID flasher 2019-09-01 20:02:55 +02:00
Philippe Teuwen
e80fe2588b "which" not always available... 2019-09-01 19:30:51 +02:00
Philippe Teuwen
7e579f9fca rename SIMxxx.BIN in lowercase 2019-08-30 22:13:51 +02:00
Philippe Teuwen
f6a4f9cbe3 move client scripts to tools 2019-08-30 22:11:02 +02:00
Philippe Teuwen
4fdb5a2f4b make install: half way 2019-08-30 21:55:13 +02:00
Philippe Teuwen
e47969aa95 migrate simmodule/readme.txt content to 2_Configuration-and-Verification.md 2019-08-29 23:43:48 +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
iceman1001
0d986ab212 Delete unused hash files 2019-08-29 21:57:01 +02:00
Philippe Teuwen
e6f2644c1b remove srecswap.pl, never seen modern jtag requiring it 2019-08-29 18:53:54 +02:00
Philippe Teuwen
16a7cfd7b2 make style (excepted cmdhficlass...) 2019-08-26 22:28:39 +02:00
Philippe Teuwen
47c6452e94 typo 2019-08-26 12:50:10 +02:00
Philippe Teuwen
1e97acdf5e remove old arm toolchain installation script 2019-08-21 21:39:21 +02:00
Iceman
3cf64f9f23 fix: some mkdir stuff.. 2019-08-21 16:49:32 +02:00
Philippe Teuwen
6ebae499aa rework fpga_compress & isolate zlib: use Makefile.host 2019-08-19 21:50:16 +03:00
Philippe Teuwen
43ffed1a26 rework nonce2key Makefile, use common crapto1, use Makefile.host 2019-08-19 21:50:16 +03:00
Philippe Teuwen
aebfe0af19 rework mfkey Makefile and move util_posix to common, use Makefile.host 2019-08-19 21:50:16 +03:00
Philippe Teuwen
5d699610c9 rework hid-flasher Makefile 2019-08-19 21:50:16 +03:00
root
7fc5fe6dd5 chg: unifed the dateformat 2019-08-18 17:43:54 +02:00
Philippe Teuwen
0ab23426d6 OSX workaround to get universal pm3 homebrew formula still working 2019-08-11 22:52:11 +02:00
Philippe Teuwen
47bcee05ad Missing platform in fpga_compress Makefile 2019-08-11 22:30:04 +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
Philippe Teuwen
c0eb19acb1 remove tabs 2019-07-24 00:52:24 +02:00
Philippe Teuwen
8e6258936c make style 2019-07-19 13:18:35 +02:00
Philippe Teuwen
41731ea084 analyzesize: create db on first use 2019-07-18 23:42:58 +02:00
slurdge
01e6db5c2e Add a simple tool to analyze elf files 2019-07-18 22:26:01 +02:00
Philippe Teuwen
fd5c30f555 jtag tools: add config for RaspberryPi 2019-07-10 22:51:42 +02:00
Philippe Teuwen
1ae85d20d7 jtag tools: add config for FTDI C232HM-DDHSL-0 2019-07-10 22:37:30 +02:00
Philippe Teuwen
4bd15d900b jtag tools: some factorisation 2019-07-10 22:35:29 +02:00
Philippe Teuwen
732bc766f9 Reduce some var scopes 2019-06-07 18:41:39 +02:00
Philippe Teuwen
742fe16830 Makefile verbose mode: make V=1 as for CMake 2019-06-02 16:04:35 +02:00
Philippe Teuwen
8c0cd4cfa2 Cleaner makefile execution, use 'make Q=' if you want to see full lines 2019-06-02 00:25:25 +02:00
Philippe Teuwen
86ee0658cf rework rx timings in python scripts 2019-05-23 00:05:45 +02:00
Philippe Teuwen
325825d4a8 hc06 scripts 2019-05-21 00:40:11 +02:00
Philippe Teuwen
5801cfa4a8 Add JTAG support for Shikra, thanks @NinjaStyle82 2019-05-01 01:32:17 +02:00
Philippe Teuwen
2eb4cd9162 jtag comments 2019-05-01 01:31:29 +02:00
Philippe Teuwen
2c5c5fb3d7 sort out jtag config files 2019-05-01 01:24:46 +02:00
iceman1001
05ddd39cae textual, to reflect which repo. 2019-04-28 17:06:07 +02:00
Philippe Teuwen
ae5b6fa169 rework shell scripts for easy client or flasher 2019-04-27 11:25:07 +02:00
Philippe Teuwen
a555799a7c Stop poking Internet when compiling 2019-04-27 10:41:10 +02:00
Philippe Teuwen
42a03fc9f1 Add openocd config files for JLink 2019-04-25 02:00:23 +02:00
iceman1001
e30dbf3ecd style 2019-04-16 15:22:39 +02:00
iceman1001
87a74e98b8 style 2019-04-16 15:19:53 +02:00
Philippe Teuwen
366c1ec901 style 2019-04-06 00:07:48 +02:00
Philippe Teuwen
9cec581f1c Makefile: remove WINBINS/WINEXES, ProxSpace doesn't use them 2019-03-29 09:49:42 +01:00
Philippe Teuwen
db4aa08b78 make style 2019-03-28 14:19:41 +01:00
Philippe Teuwen
b3b5d29452 nonce2key makefile: fix race condition when using make -jN and add header dependency 2019-03-27 22:48:46 +01:00
Gtpy
283e4e707c
Update mfkey64.c
missing include 65a45fe
2019-03-18 15:56:39 +01:00
iceman1001
65a45fe187 chg: mfkeys: adapting old refactoring (@piwi) 2019-03-17 13:57:28 +01:00
Philippe Teuwen
fd3d4925a2 mfkey: fix file modes 2019-03-17 00:03:22 +01:00
Philippe Teuwen
1b2601a48a Add missing EOF LF 2019-03-12 00:12:26 +01:00
iceman1001
2c10dc25a7 FIX: simmodule firmware update. v3.11 2019-03-11 17:52:48 +01:00
Philippe Teuwen
2f12e57408 Makefiles: remove spurious spaces/tabs 2019-03-10 11:35:03 +01:00
Philippe Teuwen
961d929f4d changing {} style to match majority of previous style 2019-03-10 11:20:22 +01:00
Philippe Teuwen
0373696662 make style 2019-03-10 00:00:59 +01:00
Philippe Teuwen
bcb33ca5ef tools scripts: fix mix of spaces & tabs 2019-03-09 10:52:45 +01:00
Philippe Teuwen
e559a4a5af tools: fix mix of spaces & tabs 2019-03-09 10:46:59 +01:00
Philippe Teuwen
60f292b18e remove spurious spaces & tabs at end of lines 2019-03-09 08:59:13 +01:00
Philippe Teuwen
edc19f202a Convert the few files with still Windows carriage returns 2019-03-09 08:49:41 +01:00
iceman1001
f943348a7b FIX: detection of presence of git on system. ie downloaded a zip file with everything or precompiled distro may not have git installed. On ubuntu/mingw 'env -S' doesn't exist. 2019-02-18 10:18:55 +01:00
iceman1001
d6063d6776 textual 2019-02-17 16:07:31 +01:00