RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
4k stars 1.05k forks source link

hf 14a apdufind #1722

Closed atkfromabove closed 2 years ago

atkfromabove commented 2 years ago

Describe the bug When I go to run the apdufind command in the "hf 14a" section I get the following error and the app exits.

[usb] pm3 --> hf 14a apdufind ./pm3: line 246: 17566 Bus error: 10 $CLIENT "$@"

iceman1001 commented 2 years ago

On latest source? compiled and flashed for your particular pm3 device? which os?.. This issue is missing quite much context. Fill in the bug issue template would been helpful

atkfromabove commented 2 years ago

Things to try before submitting bug report read the troubleshooting guide

Compilation problems Try compiling with verbose. make VERBOSE=1 with main makefile or make V=1 with cmake.

flashing problems Have you followed the instructions properly? ie, flashed bootrom seperately first if you are going from Offical repo to Iceman repo.

-

Describe the bug A clear and concise description of what the bug is. [usb] pm3 --> hf 14a apdufind

./pm3: line 246: 17566 Bus error: 10 CLIENT"@"

To Reproduce Steps to reproduce the behavior:

  1. Run pm3 application start
  2. Run hf 14a apdufind
  3. See error

Expected behavior A clear and concise description of what you expected to happen. I expect the apdufind to start going thorugh and checking for any apdu responses

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

(*) Q factor must be measured without tag on the antenna

[+] Displaying LF tuning graph. Divisor 88 (blue) is 134.83 kHz, 95 (red) is 125.00 kHz.



**Additional context**
Add any other context about the problem here.
iceman1001 commented 2 years ago

Bus error, ok, you are on RDV4, on OSX,

Now, I tested with my device, I don't get a crash when running with or w/o card on antenna, on WSL1 / Ubuntu.

Your client is 706 while your firmware seem to be 802, are you using the same client / fw version from same compilation?

atkfromabove commented 2 years ago

Just updated the client to 802 and I get the same issue.

[usb] pm3 --> hw version

[ Proxmark3 RFID instrument ]

[ CLIENT ] Iceman/master/v4.14831-802-g6d950e1e4 2022-07-20 12:42:52 7a8ce3a0b compiled with............. Clang/LLVM Apple LLVM 13.1.6 (clang-1316.0.21.2.5) platform.................. OSX / x86_64 Readline support.......... present QT GUI support............ present native BT support......... absent Python script support..... present Lua SWIG support.......... present Python SWIG support....... present

[ PROXMARK3 ] device.................... RDV4 firmware.................. RDV4 external flash............ present smartcard reader.......... present FPC USART for BT add-on... absent

[ ARM ] bootrom: Iceman/master/v4.14831-802-g6d950e1e4 2022-07-19 13:04:00 7a8ce3a0b os: Iceman/master/v4.14831-802-g6d950e1e4 2022-07-19 13:04:17 7a8ce3a0b compiled with GCC 10.2.1 20201103 (release)

[ FPGA ] LF image 2s30vq100 2022-03-23 17:21:05 HF image 2s30vq100 2022-03-23 17:21:16 HF FeliCa image 2s30vq100 2022-03-23 17:21:27 HF 15 image 2s30vq100 2022-03-23 17:21:38

[ Hardware ] --= uC: AT91SAM7S512 Rev B --= Embedded Processor: ARM7TDMI --= Internal SRAM size: 64K bytes --= Architecture identifier: AT91SAM7Sxx Series --= Embedded flash memory 512K bytes ( 65% used )

[usb] pm3 --> hf 14a apdufind ./pm3: line 246: 11851 Bus error: 10 $CLIENT "$@"

iceman1001 commented 2 years ago

Which card are you trying to run against?

and can you do a gdb output?

atkfromabove commented 2 years ago

I get the error even when not trying to read a card.

I found a 'dbg' option but I do not see 'gdb' anywhere?

atkfromabove commented 2 years ago
Screen Shot 2022-07-20 at 4 48 29 PM
iceman1001 commented 2 years ago

gdb is a linux debugger.

iceman@TAU:~/prox2$ gdb -v
GNU gdb (Ubuntu 10.2-0ubuntu1~20.04~1) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
iceman@TAU:~/prox2$ gdb -h
This is the GNU debugger.  Usage:

    gdb [options] [executable-file [core-file or process-id]]
    gdb [options] --args executable-file [inferior-arguments ...]
atkfromabove commented 2 years ago
Screen Shot 2022-07-21 at 12 14 58 PM
iceman1001 commented 2 years ago

yes and now you need to debug it...

atkfromabove commented 2 years ago

Sorry I am not familiar with debugging. I'll look up info about how to work with gdb.

iceman1001 commented 2 years ago
# start debugger,  adapt to your serial port
gdb --args /client/proxmark3 /dev/ttyS3

then inside type
run

now the pm3 client starts like normal,  
run the  "hf 14a apdufind"

it will break,

type  BT 

paste the output here.
iceman1001 commented 2 years ago

ok, I have verified the client crashes on OSXl. It seems to be cliparser, when handling hex2strings.

iceman1001 commented 2 years ago

Try pulling latest, I believe it fixes it.