proxmark3/README.md

318 lines
14 KiB
Markdown
Raw Normal View History

The iceman fork
2016-05-05 16:08:33 +08:00
===============
2016-08-05 06:52:54 +08:00
[![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)
2016-04-27 18:56:22 +08:00
2016-09-25 19:06:32 +08:00
##This fork is HIGHLY experimental (or bleeding edge)
##Donate
https://paypal.me/iceman1001/
Feel free to donate. All support is welcome.
##Notice
2016-09-25 19:06:32 +08:00
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.
2016-09-23 20:20:57 +08:00
##Official
The official Proxmark repository is found here: https://github.com/Proxmark/proxmark3
2016-05-05 16:12:13 +08:00
##Coverity Scan Config & Run
Download the Coverity Scan Self-buld and install it.
You will need to configure ARM-NON-EABI- Compiler for it to use:
2016-08-09 01:02:46 +08:00
- Configure
2016-08-09 00:51:34 +08:00
`cov-configure --comptype gcc --compiler /opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc`
2016-08-09 01:02:46 +08:00
- run it (I'm running on Ubuntu)
2016-08-09 00:51:34 +08:00
`cov-build --dir cov-int make all`
2016-08-09 01:02:46 +08:00
- make a tarball
2016-08-09 00:51:34 +08:00
`tar czvf proxmark3.tgz cov-int`
2016-08-09 01:02:46 +08:00
- upload it to coverity.com
##Whats changed?
2016-03-08 23:52:10 +08:00
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.
Among the stuff is
* Jonor's hf 14a raw timing patch
* Piwi's updates. (usually gets into the master)
* Piwi's "topaz" branch
* Piwi's "hardnested" branch
* Holiman's iclass, (usually gets into the master)
* Marshmellow's fixes (usually gets into the master)
* Midnitesnake's Ultralight, Ultralight-c enhancements
* Izsh's lf peak modification / iir-filtering
* Aspers's tips and tricks from inside the PM3-gui-tool, settings.xml and other stuff.
* My own desfire, Ultralight extras, LF T55xx enhancements, bugs fixes (filelength, hf mf commands ), TNP3xxx lua scripts, Awid26, skidata scripts (will come)
* other obscure patches like for the sammy-mode, (offline you know), tagidentifications, defaultkeys.
* Minor textual changes here and there.
* Simulation of Ultralight/Ntag.
2016-03-08 23:52:10 +08:00
* Marshmellow's and my "RevEng" addon for the client. Ref: http://reveng.sourceforge.net/ Now using reveng1.31
2016-08-09 00:51:34 +08:00
* J-Run alternative bruteforce Mifare nested auths.. (you need one other exe to make it work)
* A Bruteforce for T55XX passwords against tag.
* A Bruteforce for AWID 26, starting w a facilitycode then trying all 0xFFFF cardnumbers via simulation. To be used against a AWID Reader.
* A Bruteforce for HID, starting w a facilitycode then trying all 0xFFFF cardnumbers via simulation. To be used against a HID Reader.
* Blaposts Crapto1 v3.3
2016-08-09 00:51:34 +08:00
* Icsom's legic script and legic enhancements
* Aczid's bitsliced bruteforce solver in 'hf mf hardnested'
2016-04-21 18:31:08 +08:00
2016-05-05 16:08:33 +08:00
##Straight from the CHANGELOG
=============================
- Added `hf mf key_brute` - adds J-Runs 2nd phase bruteforce ref: https://github.com/J-Run/mf_key_brute (iceman)
- Added `lf jablotron` - adds demod/clone/sim of Jablotron LF tags. (iceman)
- Added `lf t55xx recoverpw` - adds a new password recovery using bitflips and partial flips if password write went bad. (alexgrin)
- `hf legic` - added improved legic data mapping. (jason)
- `hf mf mifare` - added possibility to target key A|B (douniwan5788)
- Added `analyse lcr` - added a new main command group, to help analysing bytes & bits & nibbles. (iceman)
- Added `lf nedap` - added identification of a NEDAP tag. (iceman)
- `lf viking clone` - fixed a bug. (iceman)
- Added bitsliced bruteforce solver in `hf mf hardnested` (Aczid)
- `hf mf chk` speedup (iceman)
- `hf 14a/mf sim x` attack mode, now uses also moebius version of mfkey32 to try finding the key. (iceman)
- `hf 14a sim` Added emulation of Mifare cards with 10byte UID length. (iceman)
- `hf mf sim` Added emulation of Mifare cards with 10byte UID length. (iceman)
- Added `lf guard clone/sim` (iceman)
- Added `lf pyramd clone/sim` (iceman)
- trying to fix `hf 14b` command to be able to read CALYPSO card. (iceman)
2016-03-08 23:52:10 +08:00
- `hf legic load`, it now loads faster and a casting bug is gone. (iceman)
- Added `hf legic calccrc8` added a method to calculate the legic crc-8 value (iceman)
2016-03-08 23:52:10 +08:00
- `hf legic decode` fixed the output overflow bugs, better printing (iceman)
- Coverity Scan fixes a lot of resource leaks, etc (iceman)
- Added `lf presco *` commands started (iceman)
- Added `lf hid wiegand` added a method to calculate WIEGAND in different formats, (iceman)
2016-03-08 23:52:10 +08:00
- `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)
- `hf mf nested` better printing and added Adam Lauries "try to read Key B if Key A is found" (iceman)
- `hf mf mifare` fixing the zero parity path, which doesn't got called. (iceman)
- Updated the @blapost's Crapto1 implementation to v3.3 (blapost)
- `hf mf c*` updated the calling structure and refactored of the chinese magic commands (iceman, marshmellow)
- Started to add Peter Fillmore's EMV fork into Iceman fork. ref: https://github.com/peterfillmore/proxmark3 (peter fillmore, iceman)
- Added Travis-CI automatic build integration with GitHub fork. (iceman)
- Updated the Reveng 1.30 sourcecode to 1.31 from Reveng project homepage (iceman)
- Updated the Reveng 1.31 sourcecode to 1.40 from Reveng project homepage (iceman)
2016-03-08 23:52:10 +08:00
- Added possibility to write direct to a Legic Prime Tag (MIM256/1024) without using values from the 'BigBuffer' -> 'hf legic writeRaw <addr> <value>' (icsom)
- Added possibility to decrease DCF values at address 0x05 & 0x06 on a Legic Prime Tag
DCF-value will be pulled from the BigBuffer (address 0x05 & 0x06) so you have to
load the data into the BigBuffer before with 'hf legic load <path/to/legic.dump>' & then
write the DCF-Values (both at once) with 'hf legic write 0x05 0x02' (icsom)
- Added script `legic.lua` for display and edit Data of Legic-Prime Tags (icsom)
- Added the experimental HITAG_S support (spenneb)
- Added topaz detection to `hf search` (iceman)
- Fixed the silent mode for 14b to be used inside `hf search` (iceman)
2016-03-08 23:52:10 +08:00
---
Give me a hint, and I'll see if I can't merge in the stuff you have.
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.
##PM3 GUI
I do tend to rename and move stuff around, the official PM3-GUI from Gaucho will not work so well. *sorry*
##Development
This fork now compiles just fine on
- Windows/mingw environment with Qt5.6.1 & GCC 4.8
2016-05-05 16:08:33 +08:00
- Ubuntuu 1404, 1510
- Mac OS X (or before the hardnested BF solver at least)
##Setup and build for UBUNTU
GC made updates to allow this to build easily on Ubuntu 14.04.2 LTS or 15.10
See https://github.com/Proxmark/proxmark3/wiki/Ubuntu%20Linux
2016-08-09 01:02:46 +08:00
- Run
2016-08-09 00:58:05 +08:00
`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`
Follow these instructions
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):
(64-bit) http://sourceforge.net/projects/devkitpro/files/devkitARM/previous/devkitARM_r41-x86_64-linux.tar.bz2/download
(32-bit) http://sourceforge.net/projects/devkitpro/files/devkitARM/previous/devkitARM_r41-i686-linux.tar.bz2/download
2016-08-09 01:00:09 +08:00
- Extract the contents of the .tar.bz2
2016-08-09 00:58:05 +08:00
`tar jxvf devkitARM_r41-<arch>-linux.tar.bz2`
2016-08-09 01:00:09 +08:00
- Create a directory for the arm dev kit
2016-08-09 00:58:05 +08:00
`sudo mkdir -p /opt/devkitpro/`
2016-08-09 01:00:09 +08:00
- Move the ARM developer kit to the newly created directory
2016-08-09 00:58:05 +08:00
`sudo mv devkitARM /opt/devkitpro/`
2016-08-09 01:02:46 +08:00
- Add the appropriate environment variable
2016-08-09 00:58:05 +08:00
`export PATH=${PATH}:/opt/devkitpro/devkitARM/bin/`
2016-08-09 01:00:09 +08:00
- Add the environment variable to your profile
2016-08-09 00:58:05 +08:00
`echo 'PATH=${PATH}:/opt/devkitpro/devkitARM/bin/ ' >> ~/.bashrc`
2016-08-09 01:02:46 +08:00
- Clone iceman fork
2016-08-09 00:58:05 +08:00
`git clone https://github.com/iceman1001/proxmark3.git`
2016-08-09 01:00:09 +08:00
- Get the latest commits
2016-08-09 00:58:05 +08:00
`git pull`
2016-08-09 01:00:09 +08:00
- CLEAN COMPILE
2016-08-09 00:58:05 +08:00
`make clean && make all`
2016-08-09 01:00:09 +08:00
- Flash the BOOTROM
2016-08-09 00:58:05 +08:00
`client/flasher /dev/ttyACM0 -b bootrom/obj/bootrom.elf`
2016-08-09 01:00:09 +08:00
- Flash the FULLIMAGE
2016-08-09 00:58:05 +08:00
`client/flasher /dev/ttyACM0 armsrc/obj/fullimage.elf`
2016-08-09 01:00:53 +08:00
- Change into the client folder
2016-08-09 00:58:05 +08:00
`cd client`
2016-08-09 01:00:09 +08:00
- Run the client
2016-08-09 00:58:05 +08:00
`./proxmark3 /dev/ttyACM0`
##Homebrew (Mac OS X)
These instructions comes from @Chrisfu, where I got the proxmark3.rb scriptfile from.
2016-05-05 16:14:34 +08:00
Further questions about Mac & Homebrew, contact @Chrisfu (https://github.com/chrisfu/)
1. Install homebrew if you haven't yet already done so: http://brew.sh/
2. Tap this repo: `brew tap iceman1001/proxmark3`
3. Install Proxmark3: `brew install proxmark3` for stable release or `brew install --HEAD proxmark3` for latest non-stable from GitHub.
##Docker container
I recently added a docker container on Docker HUB. You find it here: https://hub.docker.com/r/iceman1001/proxmark3/
Follow those instructions to get it up and running. No need for the old proxspace-environment anymore.
2016-05-19 19:07:52 +08:00
[1.6.0] How to start: https://www.youtube.com/watch?v=b5Zta89Cf6Q
[1.6.0] How to connect: https://youtu.be/0ZS2t5C-caI
[1.6.1] How to flash: https://www.youtube.com/watch?v=WXouhuGYEiw
Recommendations:
2016-08-09 00:51:34 +08:00
Use only container tag [1.6.4]
2016-05-19 19:07:52 +08:00
## Building on Windows
### 1. QT Open Source
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
Install to `C:\Qt` and choose the following components to be installed:
- QT - MinGW 32 bit
- Tools - MinGW
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:
2016-10-16 08:03:04 +08:00
`export QTDIR=/c/Qt/5.6/mingw49_32`
`export PATH=$PATH:$QTDIR/bin`
### 2. MSYS
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.
Download MSYS: http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe
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`
### 3. Readline
Download and unpack: https://sourceforge.net/projects/gnuwin32/files/readline/5.0-1/readline-5.0-1-bin.zip/download
`bin/*` to `C:\Qt\5.6\Tools\mingw492_32\bin`
`include/*` to `C:\Qt\5.6\Tools\mingw492_32\include`
`lib/*` to `C:\Qt\5.6\Tools\mingw492_32\lib`
### 4. LibUSB
Download and unpack: https://sourceforge.net/projects/libusb-win32/files/latest/download?source=files
`include/lusb0_usb.h` to `C:\Qt\5.6\Tools\mingw492_32\include`
`lib/gcc/libusb.a` to `C:\Qt\5.6\Tools\mingw492_32\lib`
### 5. DevkitPro
Download and install: https://sourceforge.net/projects/devkitpro/files/latest/download?source=files
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:
`export DEVKITARM=/c/devkitPro/devkitARM`
`export PATH=$PATH:$DEVKITARM/bin`
2016-10-23 06:37:35 +08:00
### 6. Install Strawberry Perl
Download and install: http://strawberry-perl.googlecode.com/files/strawberry-perl-5.10.1.1.msi
### 7. Build and run
Download and install Git for Windows: https://git-scm.com/download/win
- Run minimal system: `C:\Qt\msys\msys.bat`
- Set the environment:
`export DEVKITARM=/c/devkitPro/devkitARM`
`export PATH=$PATH:$DEVKITARM/bin`
2016-10-16 08:03:04 +08:00
`export QTDIR=/c/Qt/5.6/mingw49_32`
`export PATH=$PATH:$QTDIR/bin`
- Clone iceman fork
`git clone https://github.com/iceman1001/proxmark3.git`
- Get the latest commits
`git pull`
- CLEAN COMPILE
`make clean && make all`
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.
- Flash the BOOTROM
`client/flasher.exe comX -b bootrom/obj/bootrom.elf`
- Flash the FULLIMAGE
`client/flasher.exe comX armsrc/obj/fullimage.elf`
- Change into the client folder
`cd client`
- Run the client
`proxmark3.exe comX`
2016-05-05 16:12:13 +08:00
##Buying a proxmark3
The Proxmark 3 device is available for purchase (assembled and tested) from the following locations:
2016-07-29 00:38:20 +08:00
* http://proxmark3.tictail.com/ (For buyers in EU, most likely in Sweden)
* http://www.elechouse.com/ (new and revised hardware package 2015, located in China)
2016-05-05 16:08:33 +08:00
2016-05-05 16:14:34 +08:00
##Enjoy
January 2015, Sweden
iceman at host iuse.se
2016-05-05 16:12:13 +08:00
##Note from Jonathan Westhues
Most of the ultra-low-volume contract assemblers could put
something like this together with a reasonable yield. A run of around
a dozen units is probably cost-effective. The BOM includes (possibly-
outdated) component pricing, and everything is available from Digikey
and the usual distributors.
If you've never assembled a modern circuit board by hand, then this is
not a good place to start. Some of the components (e.g. the crystals)
must not be assembled with a soldering iron, and require hot air.
The schematics are included; the component values given are not
necessarily correct for all situations, but it should be possible to do
nearly anything you would want with appropriate population options.
The printed circuit board artwork is also available, as Gerbers and an
Excellon drill file.
LICENSING:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Jonathan Westhues
user jwesthues, at host cq.cx
May 2007, Cambridge MA