Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2017-05-03 21:18:29

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Proxmark3 setup stuck on upgrading

Folks!

Just picked up the Proxmark3 and doing the SW setup via terminal on MacOS. I started the setup with Windows 10 but stuck on updating the driver via device manager. So I decided to try the terminal on Mac OS X sierra.


github.com/Proxmark/proxmark3/wiki/MacOS

I'm stuck on Step #13!

I confirmed that it is a HID and upgrading to CDC.

I'm using using home brew and restarted the system but still getting an error:

JC-MacBook-Pro:hid-flasher JC$ ./flasher -b ../../bootrom/obj/bootrom.elf
Could not open file '../../bootrom/obj/bootrom.elf': No such file or directory
Error while loading ../../bootrom/obj/bootrom.elf
JC-MacBook-Pro:hid-flasher JC$

I'm trying to learn how to read and duplicate key fobs.

Jayc

Last edited by jayc (2017-05-06 08:09:47)

Offline

#2 2017-05-03 21:49:10

iceman
Administrator
Registered: 2013-04-25
Posts: 9,538
Website

Re: Proxmark3 setup stuck on upgrading

Which pm3 did you buy that had the old HID firmware installed?!?!?  and from where?!?!

Just to make sure,  would you mind posting the details confirming HID..

Offline

#3 2017-05-04 07:34:55

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

Via terminal in MacOS I confirmed HID Proxmark3 by running -->  system_profiler SPUSBDataType

And found the information below:

Proxmark3
Product ID: 0x4b8f
Vendor ID: 0x9ac4

Is that an issue that the seller sold me the old HID firmware?
Thanks!

Last edited by jayc (2017-05-04 07:35:35)

Offline

#4 2017-05-04 08:06:13

iceman
Administrator
Registered: 2013-04-25
Posts: 9,538
Website

Re: Proxmark3 setup stuck on upgrading

Its not an issue per se,  just makes me wonder who on earth sells a device with 3+ year old firmware on it.  Which model did you buy?

Anyway, I guess your main issue is the hidflasher on macos (installed with homebrew) might not compile properly if I remember it correct.

Updating from HID->CDC would most likely cause your device to swap com port.  But your error message shows that it can't find the bootrom.elf.  Look at your pathing.

Offline

#5 2017-05-04 08:11:30

iceman
Administrator
Registered: 2013-04-25
Posts: 9,538
Website

Re: Proxmark3 setup stuck on upgrading

...and your device might not be HID,  a recent commit to PM3 Master,  changed back the pid/vid.   The updated pid/vid matches Wiki page old HID identification.    ref  https://github.com/Proxmark/proxmark3/c … 9ead4171a9

I guess we didn't see this one coming

Offline

#6 2017-05-05 07:57:28

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

MacOS via terminal / brew:

I'm getting these Errors 

JCs-MacBook-Pro:proxmark3 JC$ brew install proxmark3
==> Installing proxmark3 from proxmark/proxmark3
[b]Error[/b]: proxmark3 HEAD-a5eb782 is already installed
To install 2.3.0, first run `brew unlink proxmark3`
JCs-MacBook-Pro:proxmark3 JC$ brew tap nitsky/stm32
JCs-MacBook-Pro:proxmark3 JC$ brew install readline libusb p7zip libusb-compat wget qt5 pkconfig arm-none-eabi-gcc
[b]Error[/b]: No available formula with the name "pkconfig" 
==> Searching for a previously deleted formula...
[b]Error[/b]: No previously deleted formula found.
==> Searching for similarly named formulae...
[b]Error[/b]: No similarly named formulae found.
==> Searching taps...
[b]Error[/b]: No formulae found in taps.
JCs-MacBook-Pro:proxmark3 JC$ brew install --HEAD proxmark3
Warning: proxmark/proxmark3/proxmark3-HEAD-a5eb782 already installed
JCs-MacBook-Pro:proxmark3 JC$ brew tap nitsky/stm32
JCs-MacBook-Pro:proxmark3 JC$ brew install readline libusb p7zip libusb-compat wget qt5 pkgconfig arm-none-eabi-gcc
[b]Error[/b]: Formulae found in multiple taps:
 * nitsky/stm32/arm-none-eabi-gcc
 * proxmark/proxmark3/arm-none-eabi-gcc

Please use the fully-qualified name e.g. nitsky/stm32/arm-none-eabi-gcc to refer the formula.
JCs-MacBook-Pro:proxmark3 JC$

Last edited by jayc (2017-05-06 08:09:13)

Offline

#7 2017-05-05 08:01:48

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

Via Windows 10 I got further. I ended updating the required driver but not sure at this point if I need to Update Proxmark to the new CDC Serial Interface step.

But I ran the runme.bat and opened up the terminal window and proxmark3.exe is not found:

pm3 ~/client$ ./proxmark3.exe
sh: ./proxmark3.exe: No such file or directory


pm3 ~/client$ ls
Makefile       cmdhfmf.h       cmdlfindala.c     cmdlfti.h               graph.c              proxgui.h
README-bitlib  cmdhfmfu.c      cmdlfindala.h     cmdlfviking.c           graph.h              proxguiqt.cpp
aes.c          cmdhfmfu.h      cmdlfio.c         cmdlfviking.h           guidummy.cpp         proxguiqt.h
aes.h          cmdhftopaz.c    cmdlfio.h         cmdlfvisa2000.c         hid-flasher          proxmark3.c
cmdcrc.c       cmdhftopaz.h    cmdlfjablotron.c  cmdlfvisa2000.h         hitag2.ht2           proxmark3.h
cmdcrc.h       cmdhw.c         cmdlfjablotron.h  cmdmain.c               loclass              reveng
cmddata.c      cmdhw.h         cmdlfnexwatch.c   cmdmain.h               lualibs              scripting.c
cmddata.h      cmdlf.c         cmdlfnexwatch.h   cmdparser.c             mfkey.c              scripting.h
cmdhf.c        cmdlf.h         cmdlfnoralsy.c    cmdparser.h             mfkey.h              scripts
cmdhf.h        cmdlfawid.c     cmdlfnoralsy.h    cmdscript.c             mifarehost.c         uart.c
cmdhf14a.c     cmdlfawid.h     cmdlfparadox.c    cmdscript.h             mifarehost.h         uart.h
cmdhf14a.h     cmdlfcotag.c    cmdlfparadox.h    data.c                  obj                  ui
cmdhf14b.c     cmdlfcotag.h    cmdlfpcf7931.c    data.h                  pm3_binlib.c         ui.c
cmdhf14b.h     cmdlfem4x.c     cmdlfpcf7931.h    default_keys.dic        pm3_binlib.h         ui.h
cmdhf15.c      cmdlfem4x.h     cmdlfpresco.c     default_pwd.dic         pm3_bit_limits.h     unbind-proxmark
cmdhf15.h      cmdlffdx.c      cmdlfpresco.h     elf.h                   pm3_bitlib.c         usb_cmd_h2lua.awk
cmdhfepa.c     cmdlffdx.h      cmdlfpyramid.c    eml2UPPER.sh            pm3_bitlib.h         util.c
cmdhfepa.h     cmdlfgproxii.c  cmdlfpyramid.h    eml2lower.sh            pm3_eml2mfd.py       util.h
cmdhficlass.c  cmdlfgproxii.h  cmdlfsecurakey.c  flash.c                 pm3_eml_mfd_test.py  whereami.c
cmdhficlass.h  cmdlfhid.c      cmdlfsecurakey.h  flash.h                 pm3_mfd2eml.py       whereami.h
cmdhflegic.c   cmdlfhid.h      cmdlft55xx.c      flasher.c               polarssl_config.h
cmdhflegic.h   cmdlfhitag.c    cmdlft55xx.h      fpga_compress.c         proxendian.h
cmdhfmf.c      cmdlfhitag.h    cmdlfti.c         gen_pm3mfsim_script.sh  proxgui.cpp
pm3 ~/client$ ls prox*
proxendian.h  proxgui.cpp  proxgui.h  proxguiqt.cpp  proxguiqt.h  proxmark3.c  proxmark3.h

Last edited by jayc (2017-05-06 08:10:19)

Offline

#8 2017-05-05 10:48:09

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Proxmark3 setup stuck on upgrading

You setup is very strange. I wonder where you run the flash batch file. Unsual pathing.

Also have you rebuilt your SW in proxspace or do you use pre-built window version?

Seems like "make clean" but missing the rest, check you have any .obj file or directory?

Offline

#9 2017-05-05 17:17:15

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

I followed the directions from the "I'm new" wiki that was recommended by the admin in the introduction section of the forum. I may be doing the github steps incorrectly? Is there any vid tutorials or other directions I can follow? Help! smile

Offline

#10 2017-05-05 17:46:17

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Proxmark3 setup stuck on upgrading

I don't use Mac.

What do you see when you run step 9
"make clean; make"

pls take screen shot and or pastbin what is you see somewhere I can check?

EDIT:
No better we do different way.

Could you pls go back to the tutorial, doing from step 1, each time you paste bin the report what is happening. So I can learn about setup on a Mac OS too.

Last edited by ntk (2017-05-05 18:23:46)

Offline

#11 2017-05-06 07:21:00

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

Here's the output when performing make clean && make all and still missing ./client/proxmark3.exe.

Windows 10 via Minimalist GNU terminal window:

pm3 ~$ make clean && make all
make -C client  clean
make[1]: Entering directory `/pm3/client'
rm -f proxmark3 flasher fpga_compress  proxmark3.exe  flasher.exe  fpga_compress.exe obj/uart.o obj/util.o obj/crapto1/crapto1.o obj/crapto1/crypto1.o obj/mfkey.o obj/loclass/cipher.o obj/loclass/cipherutils.o obj/loclass/des.o obj/loclass/ikeys.o obj/loclass/elite_crack.o obj/loclass/fileutils.o obj/whereami.o obj/mifarehost.o obj/parity.o obj/crc.o obj/crc16.o obj/crc64.o obj/iso14443crc.o obj/iso15693tools.o obj/data.o obj/graph.o obj/ui.o obj/cmddata.o obj/lfdemod.o obj/cmdhf.o obj/cmdhf14a.o obj/cmdhf14b.o obj/cmdhf15.o obj/cmdhfepa.o obj/cmdhflegic.o obj/cmdhficlass.o obj/cmdhfmf.o obj/cmdhfmfu.o obj/cmdhftopaz.o obj/cmdhw.o obj/cmdlf.o obj/cmdlfawid.o obj/cmdlfcotag.o obj/cmdlfem4x.o obj/cmdlffdx.o obj/cmdlfgproxii.o obj/cmdlfhid.o obj/cmdlfhitag.o obj/cmdlfio.o obj/cmdlfindala.o obj/cmdlfjablotron.o obj/cmdlfnexwatch.o obj/cmdlfnoralsy.o obj/cmdlfparadox.o obj/cmdlfpcf7931.o obj/cmdlfpresco.o obj/cmdlfpyramid.o obj/cmdlfsecurakey.o obj/cmdlft55xx.o obj/cmdlfti.o obj/cmdlfviking.o obj/cmdlfvisa2000.o obj/cmdparser.o obj/cmdmain.o obj/scripting.o obj/cmdscript.o obj/pm3_binlib.o obj/pm3_bitlib.o obj/aes.o obj/protocols.o obj/sha1.o obj/cmdcrc.o obj/reveng/reveng.o obj/reveng/cli.o obj/reveng/bmpbit.o obj/reveng/model.o obj/reveng/poly.o obj/reveng/getopt.o obj/deflate.o obj/adler32.o obj/trees.o obj/zutil.o obj/inflate.o obj/inffast.o obj/inftrees.o obj/proxgui.o obj/proxguiqt.o obj/proxguiqt.moc.o obj/*.o *.moc.cpp ui/ui_overlays.h
cd ../liblua && make clean
make[2]: Entering directory `/pm3/liblua'
rm -f liblua.a lua luac lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o loadlib.o linit.o  lua.o luac.o
make[2]: Leaving directory `/pm3/liblua'
make[1]: Leaving directory `/pm3/client'
make -C bootrom  clean
make[1]: Entering directory `/pm3/bootrom'
make[1]: Leaving directory `/pm3/bootrom'
make[1]: Entering directory `/pm3/bootrom'
rm -rf obj/*.o
rm -rf obj/*.elf
rm -rf obj/*.s19
rm -rf obj/*.map
rm -rf obj/*.d
rm -rf version.c
make[1]: Leaving directory `/pm3/bootrom'
make -C armsrc  clean
make[1]: Entering directory `/pm3/armsrc'
make[1]: Leaving directory `/pm3/armsrc'
make[1]: Entering directory `/pm3/armsrc'
rm -rf obj/*.o
rm -rf obj/*.elf
rm -rf obj/*.s19
rm -rf obj/*.map
rm -rf obj/*.d
rm -rf obj/*.z
rm -rf obj/*.bin
rm -rf version.c
make[1]: Leaving directory `/pm3/armsrc'
make -C recovery  clean
make[1]: Entering directory `/pm3/recovery'
rm -f bootrom.bin fullimage.bin proxmark3_recovery.bin
make[1]: Leaving directory `/pm3/recovery'
make -C tools/mfkey  clean
make[1]: Entering directory `/pm3/tools/mfkey'
rm -f crypto1.o crapto1.o parity.o util.o mfkey.o mfkey32 mfkey64  mfkey32.exe  mfkey64.exe
make[1]: Leaving directory `/pm3/tools/mfkey'
make -C client  all
make[1]: Entering directory `/pm3/client'
/qt/bin/uic ui/overlays.ui > ui/ui_overlays.h
/bin/sh: /qt/bin/uic: No such file or directory
make[1]: *** [ui/ui_overlays.h] Error 127
make[1]: Leaving directory `/pm3/client'
make: *** [client/all] Error 2 

Last edited by jayc (2017-05-06 08:08:37)

Offline

#12 2017-05-06 08:24:10

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

Mac OS Sierra ver 10.12 terminal:

JCs-MacBook-Pro:~ JC$ brew install proxmark3
==> Installing proxmark3 from proxmark/proxmark3
==> Downloading https://github.com/proxmark/proxmark3/archive/v2.3.0.tar.gz
Already downloaded: /Users/JC/Library/Caches/Homebrew/proxmark3-2.3.0.tar.gz
==> make clean
==> make all
Last 15 lines from /Users/JC/Library/Logs/Homebrew/proxmark3/02.make:
                 from /usr/local/Cellar/arm-none-eabi-gcc/20160926/arm-none-eabi/include/stdio.h:61,
                 from ../include/hitagS.h:13,
                 from apps.h:19,
                 from start.c:13:
/usr/local/Cellar/arm-none-eabi-gcc/20160926/arm-none-eabi/include/sys/_stdint.h:48:20: error: conflicting types for 'uint32_t'
 typedef __uint32_t uint32_t ;
                    ^
In file included from ../include/usb_cmd.h:21:0,
                 from ../include/proxmark3.h:17,
                 from start.c:12:
./stdint.h:21:24: note: previous declaration of 'uint32_t' was here
 typedef unsigned int   uint32_t;
                        ^
make[1]: *** [obj/start.o] Error 1
make: *** [armsrc/all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/proxmark/homebrew-proxmark3/issues

Offline

#13 2017-05-06 09:05:03

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Proxmark3 setup stuck on upgrading

I have asked you to repeat the setup from step 1 to see something is not happened as planed. Particularly I have no Mac and never use home brew, so I could see what ppl are getting.

But you post already before i change my mind. No problem, I could already see what I really found what was odd. After I help you please promise to going back update the instruction to help newer, inexperienced members.

At  the first sight, in your post #11 there is a nounce"Error"

 /qt/bin/uic ui/overlays.ui > ui/ui_overlays.h
/bin/sh: /qt/bin/uic: No such file or directory
make[1]: *** [ui/ui_overlays.h] Error 127
make[1]: Leaving directory `/pm3/client'
make: *** [client/all] Error 2

So you have failed in step 9 and not really "I got stuck at step 13".

What that means is the env you have set might work correctly for older SW releases, but has not been upgraded yet to the QT version (I believe in this case it should require V5.6, and no, this is not the latest QT. latest should be QT5.9+) hence the Errs and the command stops on err.

The trick is knowing what you need: All the latest fixes & features with the new tools for graph display or just good enough SW to work with certain material. If you want to be beta tester do the upgrade to your build environment, not a simple task, but you may success; If you want the later, just get the sw back around one or two months you'll see it build fine.

Last edited by ntk (2017-05-06 09:16:24)

Offline

#14 2017-05-06 12:09:57

marshmellow
Contributor
From: US
Registered: 2013-06-10
Posts: 2,302

Re: Proxmark3 setup stuck on upgrading

jayc wrote:

Mac OS Sierra ver 10.12 terminal:

==> make clean
==> make all
Last 15 lines from /Users/JC/Library/Logs/Homebrew/proxmark3/02.make:
                 from /usr/local/Cellar/arm-none-eabi-gcc/20160926/arm-none-eabi/include/stdio.h:61,
                 from ../include/hitagS.h:13,
                 from apps.h:19,
                 from start.c:13:
/usr/local/Cellar/arm-none-eabi-gcc/20160926/arm-none-eabi/include/sys/_stdint.h:48:20: error: conflicting types for 'uint32_t'
 typedef __uint32_t uint32_t ;
                    ^
In file included from ../include/usb_cmd.h:21:0,
                 from ../include/proxmark3.h:17,
                 from start.c:12:
./stdint.h:21:24: note: previous declaration of 'uint32_t' was here
 typedef unsigned int   uint32_t;
                        ^
make[1]: *** [obj/start.o] Error 1
make: *** [armsrc/all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/proxmark/homebrew-proxmark3/issues

See https://github.com/Proxmark/proxmark3/issues/290

Offline

#15 2017-05-06 12:14:50

marshmellow
Contributor
From: US
Registered: 2013-06-10
Posts: 2,302

Re: Proxmark3 setup stuck on upgrading

jayc wrote:

Here's the output when performing make clean && make all and still missing ./client/proxmark3.exe.

Windows 10 via Minimalist GNU terminal window:

pm3 ~$ make clean && make all
make[1]: Leaving directory `/pm3/tools/mfkey'
make -C client  all
make[1]: Entering directory `/pm3/client'
/qt/bin/uic ui/overlays.ui > ui/ui_overlays.h
/bin/sh: /qt/bin/uic: No such file or directory
make[1]: *** [ui/ui_overlays.h] Error 127
make[1]: Leaving directory `/pm3/client'
make: *** [client/all] Error 2 

You are using the old proxspace environment which is missing the uic.exe from qt.  If you download and add qt 4.6.2 version and add uic.exe it will fix this issue.

Or use a newer compile environment (we are working on getting the old proxspace replaced).   One can be found at http://www.proxmark.org/forum/viewtopic.php?id=3975

Offline

#16 2017-05-06 16:39:28

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Proxmark3 setup stuck on upgrading

He is in the third dimension, @Marshmellow, he uses Mac OS &  home brew

Last edited by ntk (2017-05-06 16:40:36)

Offline

#17 2017-05-06 23:27:58

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

Folks thanks for the responses I appreciate it. @ntk I'll make sure to go through the steps for the MacOS, brew, terminal users.

But first of all I'm trying to link back the proxmark3. I tried the

link proxmark3

but I believe that it didn't resolve my linking issue.

Last login: Fri May  5 23:12:24 on ttys000
JCs-MacBook-Pro:~ JC$ brew tap proxmark/proxmark3
Updating Homebrew...
brew install --HEAD ==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
antlr                      graphite2                  pdf2svg
archi-steam-farm           grpc                       ponyc
aws-sdk-cpp                gtksourceview              prest
citus                      gtksourceviewmm            protobuf-swift
cockatrice                 gws                        pygtksourceview
docker                     libusb-compat ✔            rancher-compose
docker-completion          libvirt                    s-search
docker-compose-completion  macvim                     sdl_ttf
gjs                        minio                      vault
goocanvas                  mypy
==> Deleted Formulae
blucat

JCs-MacBook-Pro:~ JC$ brew install --HEAD proxmark3
Warning: proxmark/proxmark3/proxmark3-HEAD-a5eb782 already installed, it's just not linked.
JCs-MacBook-Pro:~ JC$ link proxmark3
usage: ln [-Ffhinsv] source_file [target_file]
       ln [-Ffhinsv] source_file ... target_dir
       link source_file target_file
JCs-MacBook-Pro:~ JC$ brew install --HEAD proxmark3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.

Warning: proxmark/proxmark3/proxmark3-HEAD-a5eb782 already installed, it's just not linked.
JCs-MacBook-Pro:~ JC$ 

Offline

#18 2017-05-07 02:13:28

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Proxmark3 setup stuck on upgrading

pls going back to the beginning, make sure you understand every step what is it doing and that it has been successfully completed before you go further

I have the slight feeling you lack of profound understanding of the process coding, compile to create obj files to linking to generating an executable file or you have more then allowed insecurity in using homebrew's command, when you ask why "link proxmark" failed.

Start from new, that instruction sheet for Mac should work, you just have to start again from zero, and don't use latest SW repo , make sure you understand the meaning/action of every step; or upgrade your env as Marshmellow advised

But, don't be impatient.

Offline

#19 2017-05-07 02:36:56

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

@ntk thanks. Question -- when I start from step #1 for the MacOS instructions. Is there a pre-req to delete the proxmark folder or uninstall to have a fresh drive?

If so, can I simply just delete the folder?

Thanks again for helping me out understanding that I'm a "whitebelt" in processing code.

Offline

#20 2017-05-07 03:17:24

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Proxmark3 setup stuck on upgrading

when you hit problem like this you can google. "homebrew howto uninstall " re-install" "clean home brew environment" there could be a sh --uninstall homebrew

If you are whitebelt I don't have even wear a trouser to put the belt on, honestly I don't know "home brew" from "home fry". I am not joking here, my friend.

"Do you you need a completely re-install, can you just delete a directory,etc.." only good google and your homebrew friends can tell you. You ask me too much

If like in windows OS i would say just delete the proxmark , or Proxspace or MinGW folder, then you start clean, I don't know how Mac OS reacts

Offline

#21 2017-05-11 08:04:05

jayc
Contributor
Registered: 2017-05-03
Posts: 26

Re: Proxmark3 setup stuck on upgrading

MacOS Sierra 10.12, Brew Tap

So I did a brew rm proxmark3 and deleted the proxmark3 folder in my MacOS. Executed the instructions for MacOS from step #1 and noticed a permission denied and error after executing the brew install --HEAD proxmark3. I still can't get the SW environment right to start using the proxmark3.

Here's the i/o from the terminal:


JCs-MacBook-Pro:~ JC$ 
JCs-MacBook-Pro:~ JC$ 
JCs-MacBook-Pro:~ JC$ 
JCs-MacBook-Pro:~ JC$ brew rm proxmark
Error: No such keg: /usr/local/Cellar/proxmark
JCs-MacBook-Pro:~ JC$ brew rm proxmark3
Error: No such keg: /usr/local/Cellar/proxmark3
JCs-MacBook-Pro:~ JC$ brew tap proxmark/proxmark3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
arangodb                   glog                       pwntools
at-spi2-atk                gnome-recipes              serveit
at-spi2-core               gofabric8                  sngrep
aws-sdk-cpp                immortal                   sslscan
awscli                     influxdb                   subversion
azure-cli                  jenkins                    svtplay-dl
babl                       kobalt                     swiftgen
bash-preexec               libetpan                   tcpreplay
consul                     libsoup                    thefuck
consul-template            logtalk                    tippecanoe
convox                     macvim                     twarc
duck                       make                       vault
fabio                      mypy                       vice
fits                       nifi                       xmake
flex                       opencore-amr               yaz
folly                      osc                        youtube-dl
git                        passenger                  zsh-autosuggestions
git-annex                  pgformatter
JCs-MacBook-Pro:~ JC$ brew install --HEAD proxmark3
==> Installing proxmark3 from proxmark/proxmark3
==> Cloning https://github.com/proxmark/proxmark3.git
Updating /Users/JC/Library/Caches/Homebrew/proxmark3--git
==> Checking out branch master
==> make clean
==> make all
Last 15 lines from /Users/JC/Library/Logs/Homebrew/proxmark3/02.make:
2017-05-10 23:08:19 -0700
make
all
/Library/Developer/CommandLineTools/usr/bin/make -C client  all
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtCore' found
ui/overlays.ui > ui/ui_overlays.h
/bin/sh: ui/overlays.ui: Permission denied
make[1]: *** [ui/ui_overlays.h] Error 126
make: *** [client/all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/proxmark/homebrew-proxmark3/issues
Error: You have MacPorts or Fink installed:
  /opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
  sudo mv /opt/local ~/macports
JCs-MacBook-Pro:~ JC$ brew tap nitsky/stm32
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
libhttpseverywhere
JCs-MacBook-Pro:~ JC$ brew install readline libusb p7zip libusb-compat wget qt5 pkgconfig arm-none-eabi-gcc
Error: Formulae found in multiple taps: 
 * nitsky/stm32/arm-none-eabi-gcc
 * proxmark/proxmark3/arm-none-eabi-gcc
Please use the fully-qualified name e.g. nitsky/stm32/arm-none-eabi-gcc to refer the formula.
JCs-MacBook-Pro:~ JC$ export PKG_CONFIG_PATH=/usr/local/Cellar/qt5/5.6.1-1/lib/pkgconfig/
JCs-MacBook-Pro:~ JC$ export QT_PKG_CONFIG_QT5CORE=`find /usr -name Qt5Core.pc 2>/dev/null`
JCs-MacBook-Pro:~ JC$ chmod 666 $QT_PKG_CONFIG_QT5CORE
JCs-MacBook-Pro:~ JC$ echo "moc_location=\${prefix}/bin/moc" >> $QT_PKG_CONFIG_QT5CORE
JCs-MacBook-Pro:~ JC$ chmod 444 $QT_PKG_CONFIG_QT5CORE
JCs-MacBook-Pro:~ JC$ brew link --force readline
Warning: Already linked: /usr/local/Cellar/readline/7.0.3_1
To relink: brew unlink readline && brew link readline
JCs-MacBook-Pro:~ JC$ git clone https://github.com/Proxmark/proxmark3.git
Cloning into 'proxmark3'...
remote: Counting objects: 10829, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 10829 (delta 7), reused 0 (delta 0), pack-reused 10809
Receiving objects: 100% (10829/10829), 14.06 MiB | 2.63 MiB/s, done.
Resolving deltas: 100% (8054/8054), done.
JCs-MacBook-Pro:~ JC$ cd proxmark3
JCs-MacBook-Pro:proxmark3 JC$ ls /dev/cu*
/dev/cu.Bluetooth-Incoming-Port /dev/cu.JPhone-WirelessiAP
JCs-MacBook-Pro:proxmark3 JC$ cd client
JCs-MacBook-Pro:client JC$ ls
Makefile        cmdlfcotag.c        cmdlfti.c       mifarehost.h
README-bitlib       cmdlfcotag.h        cmdlfti.h       obj
aes.c           cmdlfem4x.c     cmdlfviking.c       pm3_binlib.c
aes.h           cmdlfem4x.h     cmdlfviking.h       pm3_binlib.h
cmdcrc.c        cmdlffdx.c      cmdlfvisa2000.c     pm3_bit_limits.h
cmdcrc.h        cmdlffdx.h      cmdlfvisa2000.h     pm3_bitlib.c
cmddata.c       cmdlfgproxii.c      cmdmain.c       pm3_bitlib.h
cmddata.h       cmdlfgproxii.h      cmdmain.h       pm3_eml2mfd.py
cmdhf.c         cmdlfhid.c      cmdparser.c     pm3_eml_mfd_test.py
cmdhf.h         cmdlfhid.h      cmdparser.h     pm3_mfd2eml.py
cmdhf14a.c      cmdlfhitag.c        cmdscript.c     polarssl_config.h
cmdhf14a.h      cmdlfhitag.h        cmdscript.h     proxendian.h
cmdhf14b.c      cmdlfindala.c       data.c          proxgui.cpp
cmdhf14b.h      cmdlfindala.h       data.h          proxgui.h
cmdhf15.c       cmdlfio.c       default_keys.dic    proxguiqt.cpp
cmdhf15.h       cmdlfio.h       default_pwd.dic     proxguiqt.h
cmdhfepa.c      cmdlfjablotron.c    elf.h           proxmark3.c
cmdhfepa.h      cmdlfjablotron.h    eml2UPPER.sh        proxmark3.h
cmdhficlass.c       cmdlfnexwatch.c     eml2lower.sh        reveng
cmdhficlass.h       cmdlfnexwatch.h     flash.c         scripting.c
cmdhflegic.c        cmdlfnoralsy.c      flash.h         scripting.h
cmdhflegic.h        cmdlfnoralsy.h      flasher.c       scripts
cmdhfmf.c       cmdlfparadox.c      fpga_compress.c     uart.c
cmdhfmf.h       cmdlfparadox.h      gen_pm3mfsim_script.sh  uart.h
cmdhfmfu.c      cmdlfpcf7931.c      graph.c         ui
cmdhfmfu.h      cmdlfpcf7931.h      graph.h         ui.c
cmdhftopaz.c        cmdlfpresco.c       guidummy.cpp        ui.h
cmdhftopaz.h        cmdlfpresco.h       hid-flasher     unbind-proxmark
cmdhw.c         cmdlfpyramid.c      hitag2.ht2      usb_cmd_h2lua.awk
cmdhw.h         cmdlfpyramid.h      loclass         util.c
cmdlf.c         cmdlfsecurakey.c    lualibs         util.h
cmdlf.h         cmdlfsecurakey.h    mfkey.c         whereami.c
cmdlfawid.c     cmdlft55xx.c        mfkey.h         whereami.h
cmdlfawid.h     cmdlft55xx.h        mifarehost.c
JCs-MacBook-Pro:client JC$ ./proxmark3 /dev/cu.usbmodemFA131
-bash: ./proxmark3: No such file or directory
JCs-MacBook-Pro:client JC$

Offline

#22 2017-05-11 08:42:39

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Proxmark3 setup stuck on upgrading

the fault
make[1]: *** [ui/ui_overlays.h] Error 126
make: *** [client/all] Error 2

has been identified by Marshmellow too that the homebrew env need to be upgraded for Qt, it is not a straight rule process: upgrade and manual search and copy file/files too. MM42 iceman gator and Piwi are working on the upgrade instruction of environment in Mac OS and homebrew for latest top of the SW tree.

One way round the compatibility issue is run homebrew with iceman latest. You can then run proxmark3 in terminal. inconvenient, but that should give you sufficient stuffs to learn.   

I did recommend to use not the latest MM42 or Main SW because of the new graph tool require the upgraded Qt. Can you not ask or get one release around March. My mobile connection is too slow, I don't share such.

Or just use window pre-compiled from Gator to get sources, I believe he left source codes in there too, only you do not need to run compile again. (NO, I WAS WRONG. No SRC)

One more way is  use iceman fork if you want to compile latest SW. That is built without needing the latest upgrading of Qt in your homebrew

Last edited by ntk (2017-05-11 09:12:45)

Offline

#23 2017-05-11 09:15:34

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Proxmark3 setup stuck on upgrading

You got an old Mac? send to me! I will setup for you to compile SW upto march 2017 version in conventional or homebrew.

Offline

#24 2017-05-11 12:19:13

robot
Contributor
Registered: 2015-10-13
Posts: 13

Re: Proxmark3 setup stuck on upgrading

just has a similar experience setting up pm3 which I hadn't used for a while. I accidentally (ie not reading instructions) borked the bootrom. I restored using a buspirate and openocd.

Setting up the environment was a pain. I use OSX and not windows. I have a little experience with Linux in general.

Homebrew takes a lot of googling to install/delete taps etc. and it still wasnt working.
I couldnt get the docker instance (iceman) to use the USB correctly.

However, I had a kali 2016.2 virtual machine and easily followed the instructions to install the environment on it and it worked first time (with git changed to icemans repo). The bonus is that the graphs work as well!

Last edited by robot (2017-05-11 12:20:01)

Offline

#25 2017-05-11 12:26:15

robot
Contributor
Registered: 2015-10-13
Posts: 13

Re: Proxmark3 setup stuck on upgrading

the other thing to try is to find a precompiled .elf files to upload

Offline

Board footer

Powered by FluxBB