proxmark3/doc/md/Installation_Instructions/Mac-OS-X-Homebrew-Installation-Instructions.md
2020-04-16 21:25:30 +02:00

4.4 KiB

Homebrew (Mac OS X), automatic installation

Install Proxmark3 tools

These instructions comes from @Chrisfu, where we got the proxmark3.rb scriptfile from. For 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 RfidResearchGroup/proxmark3

  3. Install Proxmark3:

  • (Optional) export HOMEBREW_PROXMARK3_PLATFORM=xxxxxx to specify platform, default value is PM3RDV4 if none
  • brew install proxmark3 for stable release
  • brew install --HEAD proxmark3 for latest non-stable from GitHub (use this if previous command fails)
  • brew install --with-blueshark proxmark3 for blueshark support, stable release
  • brew install --HEAD --with-blueshark proxmark3 for blueshark support, latest non-stable from GitHub (use this if previous command fails)

For more info, go to https://github.com/RfidResearchGroup/homebrew-proxmark3

Upgrade HomeBrew tap formula

This method is useful for those looking to run bleeding-edge versions of RRG/iceman's client. Keep this in mind when attempting to update your HomeBrew tap formula as this procedure could easily cause a build to break if an update is unstable on macOS.

Tested on macOS Mojave 10.14.4

Note: This assumes you have already installed RRG/iceman's fork from HomeBrew as mentioned above

Force HomeBrew to pull the latest source from github

brew upgrade --fetch-HEAD proxmark3

Flash the BOOTROM & FULLIMAGE

With your Proxmark3 unplugged from your machine, press and hold the button on your Proxmark3 as you plug it into a USB port. You can release the button, two of the four LEDs should stay on. You're in bootloader mode, ready for the next step. In case the two LEDs don't stay on when you're releasing the button, you've an old bootloader, start over and keep the button pressed during the whole flashing procedure.

In principle, the helper script pm3-flash-all should auto-detect your port, so you can just try:

pm3-flash-all

If port detection failed, you'll have to call the flasher manually and specify the correct port:

proxmark3 /dev/tty.usbmodemiceman1 --flash --unlock-bootloader --image /usr/local/share/proxmark3/firmware/bootrom.elf --image /usr/local/share/proxmark3/firmware/fullimage.elf

Depending on the firmware version your Proxmark3 can also appear as /dev/tty.usbmodem881.

Run the client

pm3

or, if the port doesn't get properly detected:

proxmark3 /dev/tty.usbmodemiceman1

Next steps

For the next steps, please read the following pages:

Homebrew (Mac OS X), developer installation

These instructions will show how to setup the environment on OSX to the point where you'll be able to clone and compile the repo by yourself, as on Linux, Windows, etc.

  1. Install homebrew if you haven't yet already done so: http://brew.sh/

  2. Install dependencies:

brew install readline qt5 pkgconfig
brew install RfidResearchGroup/proxmark3/arm-none-eabi-gcc
  1. (optional) Install makefile dependencies:
brew install recode
brew install astyle

Compile and use the project

To use the compiled client, the only difference is that the Proxmark3 port is /dev/tty.usbmodemiceman1, so commands become:

proxmark3 /dev/ttyACM0  =>  proxmark3 /dev/tty.usbmodemiceman1

Now you're ready to follow the compilation instructions.

To flash on OS X, better to enter the bootloader mode manually, else you may experience errors. With your Proxmark3 unplugged from your machine, press and hold the button on your Proxmark3 as you plug it into a USB port. You can release the button, two of the four LEDs should stay on. You're in bootloader mode, ready for the next step. In case the two LEDs don't stay on when you're releasing the button, you've an old bootloader, start over and keep the button pressed during the whole flashing procedure. From there, you can follow the original compilation instructions.