Proxmark developers community

Research, development and trades concerning the powerful Proxmark3 device!

You are not logged in.

#51 2011-08-24 21:23:49

InterestedInNfc
Member
Registered: 2011-08-24
Posts: 1

Re: Mifare read/write via crypto1

Does anyone know of where I can get sample code to read and write data to
a Mifare Classic tag **without** using an NXP reader ? I am using public keys, but
I need sample code that shows how to authenticate, read/writre encrypt and decrypt
(including parity bit handling) on a regular 14443 PCD with no PN53x. I can control
the parity bit on each byte sent, and ignore received parity.

I downloaded the Crypto1 library, but that does not explain usage.

TIA.

Offline

#52 2011-08-24 22:06:10

0xFFFF
Moderator
From: Vic - Australia
Registered: 2011-05-31
Posts: 282

Re: Mifare read/write via crypto1

The PM3 will read/write cards. Have you had a look at the project?
Or is something like the HID 5321 more like what you're looking for? http://www.hidglobal.com/driverDownload … rod_id=171 (Have a look at the APIs and diagnostic tool)

Offline

#53 2011-10-16 08:51:18

o0o0o0o
Contributor
From: Germany
Registered: 2011-10-06
Posts: 64

Re: Mifare read/write via crypto1

1.download proxspace and unzip it into any folder DONE
2. install trtoizesvn DONE
3. reboot PC ) DONE
4. ProxSpace\pm3 - right button in windows explorer - <SVN Update> DONE
5.  ProxSpace\runme.bat - make sute that there is your path to proxspace    set MYPATH=C:\XXXXXXXXX\ProxSpace DONE
6. run runme.bat WON'T START

When I try to lunch runme.bat it just crashes...
What I can do ?

Offline

#54 2011-10-16 14:35:23

moebius
Moderator
Registered: 2011-03-10
Posts: 191

Re: Mifare read/write via crypto1

o0o0o0o wrote:

1.download proxspace and unzip it into any folder DONE
2. install trtoizesvn DONE
3. reboot PC ) DONE
4. ProxSpace\pm3 - right button in windows explorer - <SVN Update> DONE
5.  ProxSpace\runme.bat - make sute that there is your path to proxspace    set MYPATH=C:\XXXXXXXXX\ProxSpace DONE
6. run runme.bat WON'T START

When I try to lunch runme.bat it just crashes...
What I can do ?

Look inside the .bat file. Check the Paths and file locations.

Offline

#55 2011-10-17 01:39:32

o0o0o0o
Contributor
From: Germany
Registered: 2011-10-06
Posts: 64

Re: Mifare read/write via crypto1

di-CU38.jpg
Looks fine ?

Last edited by o0o0o0o (2011-10-17 01:40:38)

Offline

#56 2011-10-18 01:37:31

moebius
Moderator
Registered: 2011-03-10
Posts: 191

Re: Mifare read/write via crypto1

Apparently yes... Do you have cygwin installed?

Offline

#57 2011-10-18 11:01:23

o0o0o0o
Contributor
From: Germany
Registered: 2011-10-06
Posts: 64

Re: Mifare read/write via crypto1

Yes I do.

I can run D/ProxSpace/msys/msys.bat  though.

I'm using windows 7 64-bit

Offline

#58 2011-10-18 11:50:41

0xFFFF
Moderator
From: Vic - Australia
Registered: 2011-05-31
Posts: 282

Re: Mifare read/write via crypto1

If your double-clicking the batch file to run it, try running it from the command prompt to see if you're getting any errors.

Can you explain:

o0o0o0o wrote:

When I try to lunch runme.bat it just crashes...

Offline

#59 2011-10-18 12:35:31

o0o0o0o
Contributor
From: Germany
Registered: 2011-10-06
Posts: 64

Re: Mifare read/write via crypto1

It says :
The specified path can not be found...
'msys' is not recognize as an internal or external command. an executable application or a command file

Last edited by o0o0o0o (2012-04-06 08:30:47)

Offline

#60 2011-10-18 22:43:00

0xFFFF
Moderator
From: Vic - Australia
Registered: 2011-05-31
Posts: 282

Re: Mifare read/write via crypto1

The only line of the batch file that has any reference to msys is the last line.
Notice that the slash is back to front? The last line should be: msys\msys.bat

Offline

#61 2011-11-19 11:23:57

amin_8826
Member
Registered: 2011-09-17
Posts: 4

Re: Mifare read/write via crypto1

hi i recently got a pm3 . i have a problem as i put antenna near reader ,the reader is encountered problem reading card my reader is RWL50 .should i change the reader or this also works?

Offline

#62 2012-01-28 14:35:36

o0o0o0o
Contributor
From: Germany
Registered: 2011-10-06
Posts: 64

Re: Mifare read/write via crypto1

Thank you 0xFFFF. It worked.

However, after following the flashing procedure bootroom.elf > fpgaimage.elf > osimage.elf rw version gives :

Connected units:
        1. SN: ChangeMe [bus-0/\\.\libusb0-0001--0x9ac4-0x4b8f]
proxmark3> hw version
#db# Prox/RFID mark3 RFID instrument
#db# bootrom: Version information not available
#db# os: Version information not available
#db# FPGA image built on 2009/12/ 8 at  8: 3:54
proxmark3>

Last edited by o0o0o0o (2012-01-28 14:35:53)

Offline

#63 2012-01-29 00:48:51

0xFFFF
Moderator
From: Vic - Australia
Registered: 2011-05-31
Posts: 282

Re: Mifare read/write via crypto1

Hmmm. Never had that one before.
What revision did you check out?
Are you doing everything as administrator?
Did you see any errors while compiling or during the f/w upgrade of the Proxmark?

Offline

#64 2012-01-29 05:16:34

aminbakhtvar62
Member
Registered: 2011-02-23
Posts: 24

Re: Mifare read/write via crypto1

0xFFFF wrote:

Hmmm. Never had that one before.
What revision did you check out?
Are you doing everything as administrator?
Did you see any errors while compiling or during the f/w upgrade of the Proxmark?

i have the same version result.
i even flashed he bootrom with jtag and segger jlink and then flashed fpga and os but nothing changed.

Last edited by aminbakhtvar62 (2012-01-29 05:18:41)

Offline

#65 2012-01-29 13:07:29

0xFFFF
Moderator
From: Vic - Australia
Registered: 2011-05-31
Posts: 282

Re: Mifare read/write via crypto1

Nothing changes. I still have the same questions...
What revision did you check out?
Are you doing everything as administrator?
Did you see any errors while compiling or during the f/w upgrade of the Proxmark? I'm assuming there is nothing wrong with the compilation process and the f/w upgrade of the Proxmark based on what aminbakhtvar62 stated in his/her previous post.

Can I confirm what operating system you are using aminbakhtvar62?

So far all I've done is check out the last commit and compiled / upgraded on Ubuntu 10.04 and Windows 7 Ultimate x64. I experienced an issue with building under Windows which I fixed in build 524 where the return (0x0D) was not trimmed from the build number in version.c. The problem however would've (should've?) prevented you from building the project anyway.

Offline

#66 2012-01-29 17:39:39

vivat
Contributor
Registered: 2010-10-26
Posts: 316

Re: Mifare read/write via crypto1

#db# bootrom: Version information not available
#db# os: Version information not available

This usually happens when you are coding&patching your firmware's source(that is different from SVN). See ../tools/mkversion.pl script.
Or you can override your version number by editing version.c file.

Offline

#67 2012-01-29 20:52:35

0xFFFF
Moderator
From: Vic - Australia
Registered: 2011-05-31
Posts: 282

Re: Mifare read/write via crypto1

Don't forget that version.c is re-built every time the project is built...

From Makefile.common:

# version.c should be remade on every compilation
.PHONY: version.c
version.c: default_version.c
	perl ../tools/mkversion.pl .. > $@ || $(COPY) $^ $@

Offline

#68 2012-01-30 07:27:53

aminbakhtvar62
Member
Registered: 2011-02-23
Posts: 24

Re: Mifare read/write via crypto1

0xFFFF wrote:

Nothing changes. I still have the same questions...
What revision did you check out?
Are you doing everything as administrator?
Did you see any errors while compiling or during the f/w upgrade of the Proxmark? I'm assuming there is nothing wrong with the compilation process and the f/w upgrade of the Proxmark based on what aminbakhtvar62 stated in his/her previous post.

Can I confirm what operating system you are using aminbakhtvar62?

So far all I've done is check out the last commit and compiled / upgraded on Ubuntu 10.04 and Windows 7 Ultimate x64. I experienced an issue with building under Windows which I fixed in build 524 where the return (0x0D) was not trimmed from the build number in version.c. The problem however would've (should've?) prevented you from building the project anyway.

hi 0xFFFF
I use windows XP SP3 .I also tried to connect PM3 to PC via VM virtual machine and OS ubuntu 11.10 but i  couldnt stop win xp to connect first to usb.so ubuntu replied "the device is busy ... and not being able to connect to the specified device. i temporarily gave up on that, till i get the time to install ubuntu as an OS.  (not with virtual machines like vmware or virtual machine)
Best Regards

Offline

#69 2012-01-31 19:05:23

ANARCHY
Member
Registered: 2012-01-31
Posts: 2

Re: Mifare read/write via crypto1

merlok wrote:

You should upgrage it to last version.

upgrade here: http://proxmark3.com/dl/PM3-UserGuide-v7.pdf

Before upgrading you have to compile sources.

build enviroment here:
http://code.google.com/p/proxmark3/down … z&can=2&q=
tortoiseSVN:
http://tortoisesvn.net/downloads.html

so.....

1.download proxspace and unzip it into any folder
2. install trtoizesvn
3. reboot PC )
4. ProxSpace\pm3 - right button in windows explorer - <SVN Update>
5.  ProxSpace\runme.bat - make sute that there is your path to proxspace    set MYPATH=C:\XXXXXXXXX\ProxSpace
6. run runme.bat
7. from there:
make clean
make all
8. with help of binaries from ProxSpace\pm3\client
and firmware files from ProxSpace\pm3\armsrc\obj
upgrade firmware

9. use it and have fun )

I try this one with my new proxmark 3 r486 but it is not working for me. The original client do not have hf 14a mifare comand. how can I use this?

Offline

#70 2012-02-11 06:03:09

o0o0o0o
Contributor
From: Germany
Registered: 2011-10-06
Posts: 64

Re: Mifare read/write via crypto1

I having some errors while compiling...
However /proxmark3.exe starts. Most of the commands are working hf mf mifare...
But hf mf dump1k gives "Could not find file keys.bin" (I tried on Windows 7 64x and XP SP3 32x)

Here is the output of make clean && make all

Owner@COMPUTER-0435 ~
$ make clean && make all
make -C bootrom clean
make[1]: Entering directory `/home/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 `/home/pm3/bootrom'
make -C armsrc clean
make[1]: Entering directory `/home/pm3/armsrc'
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 `/home/pm3/armsrc'
make -C client clean
make[1]: Entering directory `/home/pm3/client'
rm -f cli cli.exe flasher flasher.exe proxmark3 proxmark3.exe snooper snooper.ex
e obj/nonce2key/crapto1.o obj/nonce2key/crypto1.o obj/nonce2key/nonce2key.o obj/
mifarehost.o obj/crc16.o obj/iso14443crc.o obj/iso15693tools.o obj/data.o obj/gr
aph.o obj/ui.o obj/util.o obj/cmddata.o obj/cmdhf.o obj/cmdhf14a.o obj/cmdhf14b.
o obj/cmdhf15.o obj/cmdhflegic.o obj/cmdhficlass.o obj/cmdhfmf.o obj/cmdhw.o obj
/cmdlf.o obj/cmdlfem4x.o obj/cmdlfhid.o obj/cmdlfti.o obj/cmdparser.o obj/cmdmai
n.o obj/*.o *.o *.moc.cpp
make[1]: Leaving directory `/home/pm3/client'
make -C bootrom all
make[1]: Entering directory `/home/pm3/bootrom'
make[1]: Leaving directory `/home/pm3/bootrom'
make[1]: Entering directory `/home/pm3/bootrom'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c vers
ion.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I.
-mthumb -mthumb-interwork -o obj/version.o version.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I.
-mthumb-interwork -o obj/ram-reset.o ram-reset.s
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I.
-mthumb-interwork -o obj/flash-reset.o flash-reset.s
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I.
-mthumb-interwork -o obj/usb.o ../common/usb.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I.
-mthumb-interwork -o obj/bootrom.o bootrom.c
arm-eabi-gcc -nostartfiles -nodefaultlibs -Wl,-gc-sections -n -Wl,-T,ldscript-fl
ash,-Map,obj/bootrom.map -o obj/bootrom.elf obj/version.o obj/ram-reset.o obj/fl
ash-reset.o obj/usb.o obj/bootrom.o -lgcc
arm-eabi-objcopy -Osrec --srec-forceS3 --strip-debug --no-change-warnings --chan
ge-addresses -0x100000 --change-start 0 --change-section-address .bss+0 --change
-section-address .data+0 --change-section-address .commonarea+0 obj/bootrom.elf
obj/bootrom.s19
make[1]: Leaving directory `/home/pm3/bootrom'
make -C armsrc all
make[1]: Entering directory `/home/pm3/armsrc'
make[1]: Leaving directory `/home/pm3/armsrc'
make[1]: Entering directory `/home/pm3/armsrc'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c vers
ion.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/version.o version.c
arm-eabi-objcopy -O elf32-littlearm -I binary -B arm --redefine-sym _binary____f
pga_fpga_bit_start=_binary_fpga_bit_start --redefine-sym _binary____fpga_fpga_bi
t_end=_binary_fpga_bit_end --prefix-sections=fpga_bit  ../fpga/fpga.bit obj/fpga
.o
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/start.o start.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/iso15693.o iso15693.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/iso15693tools.o ../common/iso15693
tools.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/lfops.o lfops.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/hitag2.o hitag2.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/appmain.o appmain.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/printf.o printf.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/util.o util.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/string.o string.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb -mthumb-interwork -o obj/usb.o ../common/usb.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/fpgaloader.o fpgaloader.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/legicrf.o legicrf.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/iso14443crc.o ../common/iso14443crc.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/crc16.o ../common/crc16.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/iso14443a.o iso14443a.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/mifareutil.o mifareutil.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/mifarecmd.o mifarecmd.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/iso14443.o iso14443.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/crapto1.o crapto1.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/crypto1.o crypto1.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/legic_prng.o ../common/legic_prng.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/iclass.o iclass.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -O2
-DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH
_LEGICRF -I. -mthumb-interwork -o obj/crc.o ../common/crc.c
arm-eabi-gcc -nostartfiles -nodefaultlibs -Wl,-gc-sections -n -Wl,-T,ldscript,-M
ap,obj/fullimage.map -o obj/fullimage.elf obj/version.o obj/fpga.o obj/start.o o
bj/iso15693.o obj/iso15693tools.o obj/lfops.o obj/hitag2.o obj/appmain.o obj/pri
ntf.o obj/util.o obj/string.o obj/usb.o obj/fpgaloader.o obj/legicrf.o obj/iso14
443crc.o obj/crc16.o obj/iso14443a.o obj/mifareutil.o obj/mifarecmd.o obj/iso144
43.o obj/crapto1.o obj/crypto1.o obj/legic_prng.o obj/iclass.o obj/crc.o -lgcc
arm-eabi-objcopy -F elf32-littlearm --remove-section .fpgaimage obj/fullimage.el
f obj/osimage.elf
BFD: obj/fullimage.elf: warning: Empty loadable segment detected, is this intent
ional ?

arm-eabi-objcopy -Osrec --srec-forceS3 --strip-debug --no-change-warnings --chan
ge-addresses -0x100000 --change-start 0 --change-section-address .bss+0 --change
-section-address .data+0 --change-section-address .commonarea+0 obj/osimage.elf
obj/osimage.s19
arm-eabi-objcopy -F elf32-littlearm --only-section .fpgaimage obj/fullimage.elf
obj/fpgaimage.elf
BFD: obj/fullimage.elf: warning: Empty loadable segment detected, is this intent
ional ?

BFD: obj/fullimage.elf: warning: Empty loadable segment detected, is this intent
ional ?

BFD: obj/fullimage.elf: warning: Empty loadable segment detected, is this intent
ional ?

arm-eabi-objcopy -Osrec --srec-forceS3 --strip-debug --no-change-warnings --chan
ge-addresses -0x100000 --change-start 0 --change-section-address .bss+0 --change
-section-address .data+0 --change-section-address .commonarea+0 obj/fpgaimage.el
f obj/fpgaimage.s19
make[1]: Leaving directory `/home/pm3/armsrc'
make -C client all
make[1]: Entering directory `/home/pm3/client'
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/proxmark3.o proxmark3.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/nonce2key/crapto1.o nonce2key/crapto1.c

gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/nonce2key/crypto1.o nonce2key/crypto1.c

gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/nonce2key/nonce2key.o nonce2key/nonce2k
ey.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/mifarehost.o mifarehost.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/crc16.o ../common/crc16.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/iso14443crc.o ../common/iso14443crc.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/iso15693tools.o ../common/iso15693tools
.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/data.o data.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/graph.o graph.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/ui.o ui.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/util.o util.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmddata.o cmddata.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdhf.o cmdhf.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdhf14a.o cmdhf14a.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdhf14b.o cmdhf14b.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdhf15.o cmdhf15.c
cmdhf15.c: In function 'getTagInfo':
cmdhf15.c:114: warning: unused variable 't'
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdhflegic.o cmdhflegic.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdhficlass.o cmdhficlass.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdhfmf.o cmdhfmf.c
cmdhfmf.c: In function 'CmdHF14AMfDump1k':
cmdhfmf.c:269: warning: unused variable 'data'
cmdhfmf.c:268: warning: unused variable 'isOK'
cmdhfmf.c:263: warning: unused variable 'c'
cmdhfmf.c:262: warning: unused variable 'keyType'
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdhw.o cmdhw.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdlf.o cmdlf.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdlfem4x.o cmdlfem4x.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdlfhid.o cmdlfhid.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdlfti.o cmdlfti.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdparser.o cmdparser.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cmdmain.o cmdmain.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/proxusb.o proxusb.c
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui -c -o obj/proxgui.o p
roxgui.cpp
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui -c -o obj/proxguiqt.o
 proxguiqt.cpp
moc -oproxguiqt.moc.cpp proxguiqt.h
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui -c -o obj/proxguiqt.m
oc.o proxguiqt.moc.cpp
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui obj/proxmark3.o obj/n
once2key/crapto1.o obj/nonce2key/crypto1.o obj/nonce2key/nonce2key.o obj/mifareh
ost.o obj/crc16.o obj/iso14443crc.o obj/iso15693tools.o obj/data.o obj/graph.o o
bj/ui.o obj/util.o obj/cmddata.o obj/cmdhf.o obj/cmdhf14a.o obj/cmdhf14b.o obj/c
mdhf15.o obj/cmdhflegic.o obj/cmdhficlass.o obj/cmdhfmf.o obj/cmdhw.o obj/cmdlf.
o obj/cmdlfem4x.o obj/cmdlfhid.o obj/cmdlfti.o obj/cmdparser.o obj/cmdmain.o obj
/proxusb.o obj/proxgui.o obj/proxguiqt.o obj/proxguiqt.moc.o -L/opt/local/lib -L
/usr/local/lib -lusb -lreadline -lpthread -L/qt/lib -lQtCore4 -lQtGui4 -o proxma
rk3
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/snooper.o snooper.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/guidummy.o guidummy.c
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui obj/snooper.o obj/non
ce2key/crapto1.o obj/nonce2key/crypto1.o obj/nonce2key/nonce2key.o obj/mifarehos
t.o obj/crc16.o obj/iso14443crc.o obj/iso15693tools.o obj/data.o obj/graph.o obj
/ui.o obj/util.o obj/cmddata.o obj/cmdhf.o obj/cmdhf14a.o obj/cmdhf14b.o obj/cmd
hf15.o obj/cmdhflegic.o obj/cmdhficlass.o obj/cmdhfmf.o obj/cmdhw.o obj/cmdlf.o
obj/cmdlfem4x.o obj/cmdlfhid.o obj/cmdlfti.o obj/cmdparser.o obj/cmdmain.o obj/p
roxusb.o obj/guidummy.o -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpth
read -o snooper
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/cli.o cli.c
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui obj/cli.o obj/nonce2k
ey/crapto1.o obj/nonce2key/crypto1.o obj/nonce2key/nonce2key.o obj/mifarehost.o
obj/crc16.o obj/iso14443crc.o obj/iso15693tools.o obj/data.o obj/graph.o obj/ui.
o obj/util.o obj/cmddata.o obj/cmdhf.o obj/cmdhf14a.o obj/cmdhf14b.o obj/cmdhf15
.o obj/cmdhflegic.o obj/cmdhficlass.o obj/cmdhfmf.o obj/cmdhw.o obj/cmdlf.o obj/
cmdlfem4x.o obj/cmdlfhid.o obj/cmdlfti.o obj/cmdparser.o obj/cmdmain.o obj/proxu
sb.o obj/guidummy.o -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
 -o cli
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/flash.o flash.c
gcc -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unus
ed-function  -g -O3 -DHAVE_GUI -c -o obj/flasher.o flasher.c
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui obj/flash.o obj/flash
er.o obj/proxusb.o -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
-o flasher
make[1]: Leaving directory `/home/pm3/client'

Owner@COMPUTER-0435 ~
$

Offline

#71 2012-02-22 19:13:11

YoungJules
Member
Registered: 2012-01-29
Posts: 41

Re: Mifare read/write via crypto1

I having some errors while compiling...

I don't see any errors there, if there are errors the compilation process should terminate.  You have a few compiler warnings, but I get them too so I'm hoping/presuming that's quite normal. smile

The command

hf mf dump1k

tells you it can't find keys.bin because it can't find a file called keys.bin.  You either need to manually create a keys.bin file or run the nested command first.

The keys.bin file is a simple binary dump of the A and B keys for each sector on a Mifare card, so for a Mifare 1k card it should be 192 bytes long.  That's 6 bytes per key, 2 keys per sector, 16 sectors...

Kind regards,
YoungJules

Offline

#72 2012-02-29 03:15:27

o0o0o0o
Contributor
From: Germany
Registered: 2011-10-06
Posts: 64

Re: Mifare read/write via crypto1

Thanks YoungJules ! It's working well now smile

Offline

Board footer

Powered by FluxBB