]>
Commit | Line | Data |
---|---|---|
02b6f355 | 1 | The iceman fork |
c00fc47d | 2 | =============== |
7edde707 | 3 | [![Build Status](https://travis-ci.org/iceman1001/proxmark3.svg?branch=master)](https://travis-ci.org/iceman1001/proxmark3) [![Coverity Status](https://scan.coverity.com/projects/5117/badge.svg)](https://scan.coverity.com/projects/proxmark3_iceman_fork) [![Latest release] (https://img.shields.io/github/release/iceman1001/proxmark3.svg)] (https://github.com/iceman1001/proxmark3/releases/latest) |
883c82b5 | 4 | |
dac58254 | 5 | ##This fork is HIGHLY experimental (or bleeding edge) |
02b6f355 | 6 | |
8e4021fd I |
7 | ##Donate |
8 | https://paypal.me/iceman1001/ | |
9 | Feel free to donate. All support is welcome. | |
10 | ||
703ac289 | 11 | ##Notice |
dac58254 | 12 | There is so much in this fork, with all fixes and additions its basically the most enhanced fork to this day for the Proxmark3 device. Which makes it so awesum to play with. Do please play with it. Get excited and experiment. As a side note with all coverity scan fixes this client is much more stable than PM3 Master even if I tend to break it sometimes. I'll try to make a release when this fork becomes stable between my experiments. |
c0bab227 | 13 | |
d79411bf | 14 | ##Official |
02b6f355 | 15 | The official Proxmark repository is found here: https://github.com/Proxmark/proxmark3 |
16 | ||
8b89fcae | 17 | ##Coverity Scan Config & Run |
b112787d | 18 | Download the Coverity Scan Self-buld and install it. |
19 | You will need to configure ARM-NON-EABI- Compiler for it to use: | |
20 | ||
7c030a91 | 21 | - Configure |
f3c2458a | 22 | `cov-configure --comptype gcc --compiler /opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc` |
b112787d | 23 | |
7c030a91 | 24 | - run it (I'm running on Ubuntu) |
f3c2458a | 25 | `cov-build --dir cov-int make all` |
b112787d | 26 | |
7c030a91 | 27 | - make a tarball |
f3c2458a | 28 | `tar czvf proxmark3.tgz cov-int` |
b112787d | 29 | |
7c030a91 | 30 | - upload it to coverity.com |
b112787d | 31 | |
703ac289 | 32 | ##Whats changed? |
6063655a | 33 | Whats so special with this fork? I have scraped the web for different enhancements to the PM3 source code and not all of them ever found their way to the master branch. |
02b6f355 | 34 | Among the stuff is |
35 | ||
36 | * Jonor's hf 14a raw timing patch | |
37 | * Piwi's updates. (usually gets into the master) | |
38 | * Piwi's "topaz" branch | |
39 | * Piwi's "hardnested" branch | |
40 | * Holiman's iclass, (usually gets into the master) | |
41 | * Marshmellow's fixes (usually gets into the master) | |
42 | * Midnitesnake's Ultralight, Ultralight-c enhancements | |
43 | * Izsh's lf peak modification / iir-filtering | |
44 | * Aspers's tips and tricks from inside the PM3-gui-tool, settings.xml and other stuff. | |
45 | * My own desfire, Ultralight extras, LF T55xx enhancements, bugs fixes (filelength, hf mf commands ), TNP3xxx lua scripts, Awid26, skidata scripts (will come) | |
46 | * other obscure patches like for the sammy-mode, (offline you know), tagidentifications, defaultkeys. | |
47 | * Minor textual changes here and there. | |
48 | * Simulation of Ultralight/Ntag. | |
6063655a | 49 | * Marshmellow's and my "RevEng" addon for the client. Ref: http://reveng.sourceforge.net/ Now using reveng1.31 |
f3c2458a | 50 | * J-Run alternative bruteforce Mifare nested auths.. (you need one other exe to make it work) |
02b6f355 | 51 | * A Bruteforce for T55XX passwords against tag. |
52 | * A Bruteforce for AWID 26, starting w a facilitycode then trying all 0xFFFF cardnumbers via simulation. To be used against a AWID Reader. | |
c0bab227 | 53 | * A Bruteforce for HID, starting w a facilitycode then trying all 0xFFFF cardnumbers via simulation. To be used against a HID Reader. |
b112787d | 54 | * Blaposts Crapto1 v3.3 |
f3c2458a | 55 | * Icsom's legic script and legic enhancements |
56 | * Aczid's bitsliced bruteforce solver in 'hf mf hardnested' | |
fdefe5cb | 57 | |
c00fc47d I |
58 | ##Straight from the CHANGELOG |
59 | ============================= | |
185d675b | 60 | - Added `hf mf key_brute` - adds J-Runs 2nd phase bruteforce ref: https://github.com/J-Run/mf_key_brute (iceman) |
61 | - Added `lf jablotron` - adds demod/clone/sim of Jablotron LF tags. (iceman) | |
62 | - Added `lf t55xx recoverpw` - adds a new password recovery using bitflips and partial flips if password write went bad. (alexgrin) | |
63 | - `hf legic` - added improved legic data mapping. (jason) | |
64 | - `hf mf mifare` - added possibility to target key A|B (douniwan5788) | |
65 | - Added `analyse lcr` - added a new main command group, to help analysing bytes & bits & nibbles. (iceman) | |
66 | - Added `lf nedap` - added identification of a NEDAP tag. (iceman) | |
67 | - `lf viking clone` - fixed a bug. (iceman) | |
68 | - Added bitsliced bruteforce solver in `hf mf hardnested` (Aczid) | |
69 | - `hf mf chk` speedup (iceman) | |
70 | - `hf 14a/mf sim x` attack mode, now uses also moebius version of mfkey32 to try finding the key. (iceman) | |
71 | - `hf 14a sim` Added emulation of Mifare cards with 10byte UID length. (iceman) | |
72 | - `hf mf sim` Added emulation of Mifare cards with 10byte UID length. (iceman) | |
73 | - Added `lf guard clone/sim` (iceman) | |
74 | - Added `lf pyramd clone/sim` (iceman) | |
75 | - trying to fix `hf 14b` command to be able to read CALYPSO card. (iceman) | |
6063655a | 76 | - `hf legic load`, it now loads faster and a casting bug is gone. (iceman) |
185d675b | 77 | - Added `hf legic calccrc8` added a method to calculate the legic crc-8 value (iceman) |
6063655a | 78 | - `hf legic decode` fixed the output overflow bugs, better printing (iceman) |
79 | - Coverity Scan fixes a lot of resource leaks, etc (iceman) | |
185d675b | 80 | - Added `lf presco *` commands started (iceman) |
81 | - Added `lf hid wiegand` added a method to calculate WIEGAND in different formats, (iceman) | |
6063655a | 82 | - `hf mf chkkeys` better printing, same table output as nested, faster execution and added Adam Lauries "try to read Key B if Key A is found" (iceman) |
83 | - `hf mf nested` better printing and added Adam Lauries "try to read Key B if Key A is found" (iceman) | |
84 | - `hf mf mifare` fixing the zero parity path, which doesn't got called. (iceman) | |
85 | - Updated the @blapost's Crapto1 implementation to v3.3 (blapost) | |
86 | - `hf mf c*` updated the calling structure and refactored of the chinese magic commands (iceman, marshmellow) | |
87 | - Started to add Peter Fillmore's EMV fork into Iceman fork. ref: https://github.com/peterfillmore/proxmark3 (peter fillmore, iceman) | |
88 | - Added Travis-CI automatic build integration with GitHub fork. (iceman) | |
185d675b | 89 | - Updated the Reveng 1.30 sourcecode to 1.31 from Reveng project homepage (iceman) |
90 | - Updated the Reveng 1.31 sourcecode to 1.40 from Reveng project homepage (iceman) | |
6063655a | 91 | |
92 | - Added possibility to write direct to a Legic Prime Tag (MIM256/1024) without using values from the 'BigBuffer' -> 'hf legic writeRaw <addr> <value>' (icsom) | |
93 | - Added possibility to decrease DCF values at address 0x05 & 0x06 on a Legic Prime Tag | |
94 | DCF-value will be pulled from the BigBuffer (address 0x05 & 0x06) so you have to | |
95 | load the data into the BigBuffer before with 'hf legic load <path/to/legic.dump>' & then | |
96 | write the DCF-Values (both at once) with 'hf legic write 0x05 0x02' (icsom) | |
97 | - Added script `legic.lua` for display and edit Data of Legic-Prime Tags (icsom) | |
98 | - Added the experimental HITAG_S support (spenneb) | |
99 | - Added topaz detection to `hf search` (iceman) | |
185d675b | 100 | - Fixed the silent mode for 14b to be used inside `hf search` (iceman) |
6063655a | 101 | |
102 | --- | |
02b6f355 | 103 | Give me a hint, and I'll see if I can't merge in the stuff you have. |
104 | ||
105 | I don't actually know how to make small pull-request to github :( and that is the number one reason for me not pushing a lot of things back to the PM3 master. | |
106 | ||
703ac289 | 107 | ##PM3 GUI |
02b6f355 | 108 | I do tend to rename and move stuff around, the official PM3-GUI from Gaucho will not work so well. *sorry* |
109 | ||
703ac289 | 110 | ##Development |
c0bab227 | 111 | This fork now compiles just fine on |
9b8fb1da | 112 | - Windows/mingw environment with Qt5.6.1 & GCC 4.8 |
c00fc47d I |
113 | - Ubuntuu 1404, 1510 |
114 | - Mac OS X (or before the hardnested BF solver at least) | |
c0bab227 | 115 | |
703ac289 | 116 | ##Setup and build for UBUNTU |
c0bab227 | 117 | GC made updates to allow this to build easily on Ubuntu 14.04.2 LTS or 15.10 |
118 | See https://github.com/Proxmark/proxmark3/wiki/Ubuntu%20Linux | |
02b6f355 | 119 | |
7c030a91 | 120 | - Run |
76fc7219 | 121 | `sudo apt-get install p7zip git build-essential libreadline5 libreadline-dev libusb-0.1-4 libusb-dev libqt4-dev perl pkg-config wget libncurses5-dev` |
185d675b | 122 | |
c0bab227 | 123 | Follow these instructions |
28d47dc9 | 124 | Get devkitARM release 41 from SourceForge (choose either the 64/32 bit depending on your architecture, it is assumed you know how to check and recognize your architecture): |
02b6f355 | 125 | |
126 | (64-bit) http://sourceforge.net/projects/devkitpro/files/devkitARM/previous/devkitARM_r41-x86_64-linux.tar.bz2/download | |
127 | (32-bit) http://sourceforge.net/projects/devkitpro/files/devkitARM/previous/devkitARM_r41-i686-linux.tar.bz2/download | |
c0bab227 | 128 | |
d233b629 | 129 | - Extract the contents of the .tar.bz2 |
76fc7219 | 130 | `tar jxvf devkitARM_r41-<arch>-linux.tar.bz2` |
c0bab227 | 131 | |
d233b629 | 132 | - Create a directory for the arm dev kit |
76fc7219 | 133 | `sudo mkdir -p /opt/devkitpro/` |
c0bab227 | 134 | |
d233b629 | 135 | - Move the ARM developer kit to the newly created directory |
76fc7219 | 136 | `sudo mv devkitARM /opt/devkitpro/` |
c0bab227 | 137 | |
7c030a91 | 138 | - Add the appropriate environment variable |
76fc7219 | 139 | `export PATH=${PATH}:/opt/devkitpro/devkitARM/bin/` |
c0bab227 | 140 | |
d233b629 | 141 | - Add the environment variable to your profile |
76fc7219 | 142 | `echo 'PATH=${PATH}:/opt/devkitpro/devkitARM/bin/ ' >> ~/.bashrc` |
c0bab227 | 143 | |
7c030a91 | 144 | - Clone iceman fork |
76fc7219 | 145 | `git clone https://github.com/iceman1001/proxmark3.git` |
02b6f355 | 146 | |
d233b629 | 147 | - Get the latest commits |
76fc7219 | 148 | `git pull` |
c0bab227 | 149 | |
d233b629 | 150 | - CLEAN COMPILE |
76fc7219 | 151 | `make clean && make all` |
02b6f355 | 152 | |
d233b629 | 153 | - Flash the BOOTROM |
76fc7219 | 154 | `client/flasher /dev/ttyACM0 -b bootrom/obj/bootrom.elf` |
c0bab227 | 155 | |
d233b629 | 156 | - Flash the FULLIMAGE |
76fc7219 | 157 | `client/flasher /dev/ttyACM0 armsrc/obj/fullimage.elf` |
02b6f355 | 158 | |
9fe46b69 | 159 | - Change into the client folder |
76fc7219 | 160 | `cd client` |
02b6f355 | 161 | |
d233b629 | 162 | - Run the client |
76fc7219 | 163 | `./proxmark3 /dev/ttyACM0` |
c0bab227 | 164 | |
703ac289 | 165 | ##Homebrew (Mac OS X) |
dc1c9ae4 | 166 | These instructions comes from @Chrisfu, where I got the proxmark3.rb scriptfile from. |
4003623b | 167 | Further questions about Mac & Homebrew, contact @Chrisfu (https://github.com/chrisfu/) |
02b6f355 | 168 | |
dc1c9ae4 I |
169 | 1. Install homebrew if you haven't yet already done so: http://brew.sh/ |
170 | ||
171 | 2. Tap this repo: `brew tap iceman1001/proxmark3` | |
172 | ||
173 | 3. Install Proxmark3: `brew install proxmark3` for stable release or `brew install --HEAD proxmark3` for latest non-stable from GitHub. | |
174 | ||
703ac289 I |
175 | ##Docker container |
176 | I recently added a docker container on Docker HUB. You find it here: https://hub.docker.com/r/iceman1001/proxmark3/ | |
177 | Follow those instructions to get it up and running. No need for the old proxspace-environment anymore. | |
dc1c9ae4 | 178 | |
ba2e685d I |
179 | [1.6.0] How to start: https://www.youtube.com/watch?v=b5Zta89Cf6Q |
180 | [1.6.0] How to connect: https://youtu.be/0ZS2t5C-caI | |
181 | [1.6.1] How to flash: https://www.youtube.com/watch?v=WXouhuGYEiw | |
182 | ||
183 | Recommendations: | |
f3c2458a | 184 | Use only container tag [1.6.4] |
ba2e685d | 185 | |
dc1c9ae4 | 186 | |
9b8fb1da O |
187 | ## Building on Windows |
188 | ### 1. QT Open Source | |
189 | Download QT 5.6.1: http://download.qt.io/archive/qt/5.6/5.6.1-1/qt-opensource-windows-x86-mingw492-5.6.1-1.exe | |
190 | Install to `C:\Qt` and choose the following components to be installed: | |
191 | - QT - MinGW 32 bit | |
192 | - Tools - MinGW | |
193 | ||
194 | In your shell from MSYS (see below), make sure you set QTDIR to your QT installation and add its bin to your path as well: | |
195 | `export QTDIR=/c/Qt/5.6/mingw49_32` | |
196 | `export PATH=$PATH:$QTDIR/bin` | |
197 | ||
198 | ### 2. MSYS | |
199 | MSYS is a collection of GNU utilities such as bash, make, gawk and grep to allow building of applications and programs which depend on traditionally UNIX tools to be present. It is intended to supplement MinGW and the deficiencies of the cmd shell. | |
200 | ||
201 | Download MSYS: http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe | |
202 | ||
203 | Follow the installation procedure, you may want to install MSYS to `C:\Qt\msys` and when asked where is your MinGW installation and for its path answer the following: `c:/Qt/Tools/mingw492_32` | |
204 | ||
205 | ### 3. Readline | |
206 | Download and unpack: https://sourceforge.net/projects/gnuwin32/files/readline/5.0-1/readline-5.0-1-bin.zip/download | |
207 | ||
208 | `bin/*` to `C:\Qt\5.6\Tools\mingw49_32\bin` | |
209 | `include/*` to `C:\Qt\5.6\Tools\mingw49_32\include` | |
210 | `lib/*` to `C:\Qt\5.6\Tools\mingw49_32\lib` | |
211 | ||
212 | ### 4. LibUSB | |
213 | Download and unpack: https://sourceforge.net/projects/libusb-win32/files/latest/download?source=files | |
214 | ||
215 | `include/lusb0_usb.h` to `C:\Qt\5.6\Tools\mingw49_32\include` | |
216 | `lib/gcc/libusb.a` to `C:\Qt\5.6\Tools\mingw49_32\lib` | |
217 | ||
218 | ### 5. DevkitPro | |
219 | Download and install: https://sourceforge.net/projects/devkitpro/files/latest/download?source=files | |
220 | ||
221 | You only need devkitARM, nothing more (no extra lib or anything else) to compile the firmware (ARM) side. Assuming you installed it to `C:\devkitpro`, make sure you set the `DEVKITARM` environment variable to `/c/devkitPro/devkitARM` and add its bin to your PATH: | |
222 | `export DEVKITARM=/c/devkitPro/devkitARM` | |
223 | `export PATH=$PATH:$DEVKITARM/bin` | |
224 | ||
225 | ### 6. Build and run | |
226 | Download and install Git for Windows: https://git-scm.com/download/win | |
227 | ||
228 | - Run minimal system: `C:\Qt\msys\msys.bat` | |
229 | ||
230 | - Set the environment: | |
231 | `export DEVKITARM=/c/devkitPro/devkitARM` | |
232 | `export PATH=$PATH:$DEVKITARM/bin` | |
233 | `export QTDIR=/c/Qt/5.6/mingw49_32` | |
234 | `export PATH=$PATH:$QTDIR/bin` | |
235 | ||
236 | - Clone iceman fork | |
237 | `git clone https://github.com/iceman1001/proxmark3.git` | |
238 | ||
239 | - Get the latest commits | |
240 | `git pull` | |
241 | ||
242 | - CLEAN COMPILE | |
243 | `make clean && make all` | |
244 | ||
245 | Assuming you have Proxmark3 Windows drivers installed you can run the Proxmark software where "X" is the com port number assigned to proxmark3 under Windows. | |
246 | ||
247 | - Flash the BOOTROM | |
248 | `client/flasher.exe comX -b bootrom/obj/bootrom.elf` | |
249 | ||
250 | - Flash the FULLIMAGE | |
251 | `client/flasher.exe comX armsrc/obj/fullimage.elf` | |
252 | ||
253 | - Change into the client folder | |
254 | `cd client` | |
255 | ||
256 | - Run the client | |
257 | `proxmark3.exe comX` | |
258 | ||
8b89fcae | 259 | ##Buying a proxmark3 |
c0bab227 | 260 | The Proxmark 3 device is available for purchase (assembled and tested) from the following locations: |
261 | ||
b82c2f85 I |
262 | * http://proxmark3.tictail.com/ (For buyers in EU, most likely in Sweden) |
263 | ||
264 | * http://www.elechouse.com/ (new and revised hardware package 2015, located in China) | |
02b6f355 | 265 | |
c00fc47d | 266 | |
4003623b I |
267 | ##Enjoy |
268 | ||
269 | January 2015, Sweden | |
270 | iceman at host iuse.se | |
271 | ||
272 | ||
273 | ||
274 | ||
8b89fcae | 275 | ##Note from Jonathan Westhues |
02b6f355 | 276 | Most of the ultra-low-volume contract assemblers could put |
277 | something like this together with a reasonable yield. A run of around | |
278 | a dozen units is probably cost-effective. The BOM includes (possibly- | |
279 | outdated) component pricing, and everything is available from Digikey | |
280 | and the usual distributors. | |
281 | ||
282 | If you've never assembled a modern circuit board by hand, then this is | |
283 | not a good place to start. Some of the components (e.g. the crystals) | |
284 | must not be assembled with a soldering iron, and require hot air. | |
285 | ||
286 | The schematics are included; the component values given are not | |
287 | necessarily correct for all situations, but it should be possible to do | |
288 | nearly anything you would want with appropriate population options. | |
289 | ||
290 | The printed circuit board artwork is also available, as Gerbers and an | |
291 | Excellon drill file. | |
292 | ||
293 | ||
294 | LICENSING: | |
295 | ||
296 | This program is free software; you can redistribute it and/or modify | |
297 | it under the terms of the GNU General Public License as published by | |
298 | the Free Software Foundation; either version 2 of the License, or | |
299 | (at your option) any later version. | |
300 | ||
301 | This program is distributed in the hope that it will be useful, | |
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
304 | GNU General Public License for more details. | |
305 | ||
306 | You should have received a copy of the GNU General Public License | |
307 | along with this program; if not, write to the Free Software | |
308 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
309 | ||
310 | ||
311 | Jonathan Westhues | |
312 | user jwesthues, at host cq.cx | |
313 | ||
314 | May 2007, Cambridge MA |