Skip to content

Commit

Permalink
rename and move dict files
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Aug 22, 2019
1 parent 915c200 commit 23044c0
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ tools/jtag_openocd/openocd_configuration
ppls patches/*
*- Copy.*

client/lualibs/mf_default_keys.lua
client/lualibs/mfc_default_keys.lua
client/lualibs/pm3_cmd.lua
# recompiled
fpga_version_info.c
Expand Down
7 changes: 4 additions & 3 deletions client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ platform = $(shell uname)
ROOT_DIR:=$(dir $(realpath $(lastword $(MAKEFILE_LIST))))

VPATH = ../common uart
vpath %.dic dictionaries
OBJDIR = obj

LDLIBS ?= -L/usr/local/lib
Expand Down Expand Up @@ -290,7 +291,7 @@ ifeq "$(SUPPORTS_AVX512)" "True"
endif

BINS = proxmark3 flasher
CLEAN = $(BINS) *.moc.cpp ui/ui_overlays.h lualibs/pm3_cmd.lua lualibs/mf_default_keys.lua
CLEAN = $(BINS) *.moc.cpp ui/ui_overlays.h lualibs/pm3_cmd.lua lualibs/mfc_default_keys.lua

# need to assign dependancies to build these first...
all: $(BINS)
Expand All @@ -299,7 +300,7 @@ all-static: LDLIBS:=-static $(LDLIBS)
all-static: $(BINS)

proxmark3: LDLIBS+=$(LUALIB) $(JANSSONLIB) $(MBEDTLSLIB) $(CBORLIB) $(ZLIB) $(REVENGLIB) $(QTLDLIBS)
proxmark3: $(OBJDIR)/proxmark3.o $(COREOBJS) $(CMDOBJS) $(OBJCOBJS) $(QTGUIOBJS) $(MULTIARCHOBJS) $(LUALIB) $(JANSSONLIB) $(CBORLIB) $(REVENGLIB) $(MBEDTLSLIB) $(ZLIB) lualibs/pm3_cmd.lua lualibs/mf_default_keys.lua
proxmark3: $(OBJDIR)/proxmark3.o $(COREOBJS) $(CMDOBJS) $(OBJCOBJS) $(QTGUIOBJS) $(MULTIARCHOBJS) $(LUALIB) $(JANSSONLIB) $(CBORLIB) $(REVENGLIB) $(MBEDTLSLIB) $(ZLIB) lualibs/pm3_cmd.lua lualibs/mfc_default_keys.lua
$(info [=] LD $@)
$(Q)$(LD) $(LDFLAGS) $(OBJDIR)/proxmark3.o $(COREOBJS) $(CMDOBJS) $(OBJCOBJS) $(QTGUIOBJS) $(MULTIARCHOBJS) $(LDLIBS) -o $@

Expand All @@ -321,7 +322,7 @@ lualibs/pm3_cmd.lua: ../include/pm3_cmd.h
$(info [=] GEN $@)
$(Q)awk -f pm3_cmd_h2lua.awk $^ > $@

lualibs/mf_default_keys.lua : default_keys.dic
lualibs/mfc_default_keys.lua : mfc_default_keys.dic
$(info [=] GEN $@)
$(Q)awk -f default_keys_dic2lua.awk $^ > $@

Expand Down
6 changes: 3 additions & 3 deletions client/cmdflashmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ static int usage_flashmem_load(void) {
PrintAndLogEx(NORMAL, "Examples:");
PrintAndLogEx(NORMAL, " mem load f myfile"); // upload file myfile at default offset 0
PrintAndLogEx(NORMAL, " mem load f myfile o 1024"); // upload file myfile at offset 1024
PrintAndLogEx(NORMAL, " mem load f default_keys m");
PrintAndLogEx(NORMAL, " mem load f default_pwd t");
PrintAndLogEx(NORMAL, " mem load f default_iclass_keys i");
PrintAndLogEx(NORMAL, " mem load f dictionaries/mfc_default_keys m");
PrintAndLogEx(NORMAL, " mem load f dictionaries/t55xx_default_pwds t");
PrintAndLogEx(NORMAL, " mem load f dictionaries/iclass_default_keys i");
return PM3_SUCCESS;
}
static int usage_flashmem_dump(void) {
Expand Down
8 changes: 4 additions & 4 deletions client/cmdhficlass.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ static int usage_hf_iclass_chk(void) {
PrintAndLogEx(NORMAL, " e elite");
PrintAndLogEx(NORMAL, " c credit key (if not use, default is debit)");
PrintAndLogEx(NORMAL, "Examples:");
PrintAndLogEx(NORMAL, " hf iclass chk f default_iclass_keys.dic");
PrintAndLogEx(NORMAL, " hf iclass chk f default_iclass_keys.dic e");
PrintAndLogEx(NORMAL, " hf iclass chk f dictionaries/iclass_default_keys.dic");
PrintAndLogEx(NORMAL, " hf iclass chk f dictionaries/iclass_default_keys.dic e");
return 0;
}
static int usage_hf_iclass_lookup(void) {
Expand All @@ -260,8 +260,8 @@ static int usage_hf_iclass_lookup(void) {
PrintAndLogEx(NORMAL, " r raw");
PrintAndLogEx(NORMAL, " e elite");
PrintAndLogEx(NORMAL, "Examples:");
PrintAndLogEx(NORMAL, " hf iclass lookup u 9655a400f8ff12e0 p f0ffffffffffffff m 0000000089cb984b f default_iclass_keys.dic");
PrintAndLogEx(NORMAL, " hf iclass lookup u 9655a400f8ff12e0 p f0ffffffffffffff m 0000000089cb984b f default_iclass_keys.dic e");
PrintAndLogEx(NORMAL, " hf iclass lookup u 9655a400f8ff12e0 p f0ffffffffffffff m 0000000089cb984b f dictionaries/iclass_default_keys.dic");
PrintAndLogEx(NORMAL, " hf iclass lookup u 9655a400f8ff12e0 p f0ffffffffffffff m 0000000089cb984b f dictionaries/iclass_default_keys.dic e");
return 0;
}
static int usage_hf_iclass_permutekey(void) {
Expand Down
2 changes: 1 addition & 1 deletion client/cmdlft55xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static int usage_t55xx_chk() {
PrintAndLogEx(NORMAL, "");
PrintAndLogEx(NORMAL, "Examples:");
PrintAndLogEx(NORMAL, " lf t55xx chk m");
PrintAndLogEx(NORMAL, " lf t55xx chk i default_pwd.dic");
PrintAndLogEx(NORMAL, " lf t55xx chk i dictionaries/t55xx_default_pwds.dic");
PrintAndLogEx(NORMAL, "");
return PM3_SUCCESS;
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ a0478cc39091,
#
d2ece8b9395e, //lib
#
# more Keys from mf_default_keys.lua
# more Keys from mfc_default_keys.lua
000000000001,
000000000002,
00000000000a,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions client/luascripts/mfkeys.lua → client/luascripts/mfckeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Copyright (C) 2013 m h swende <martin at swende.se>
--]]
local cmds = require('commands')
local keylist = require('mf_default_keys')
local keylist = require('mfc_default_keys')
local lib14a = require('read14a')
local getopt = require('getopt')
local utils = require('utils')
Expand All @@ -19,9 +19,9 @@ author = "Holiman"
version = 'v1.0.1'
desc = ("This script implements Mifare check keys.\
It utilises a large list of default keys (currently %d keys).\
If you want to add more, just put them inside /lualibs/mf_default_keys.lua\n"):format(#keylist)
If you want to add more, just put them inside /lualibs/mfc_default_keys.lua\n"):format(#keylist)
example = [[
1. script run mfkeys
1. script run mfckeys
]]
usage = [[
Arguments:
Expand Down Expand Up @@ -54,7 +54,7 @@ end
-- waits for answer from pm3 device
local function checkCommand(response)
if not response then
print("Timeout while waiting for response. Increase TIMEOUT in mfkeys.lua to wait longer")
print("Timeout while waiting for response. Increase TIMEOUT in mfckeys.lua to wait longer")
return nil, "Timeout while waiting for device to respond"
end

Expand Down Expand Up @@ -230,7 +230,7 @@ local function perform_check(numsectors)

local end_time = os.time()
print('')
print('[+] mfkeys - Checkkey execution time: '..os.difftime(end_time, start_time)..' sec')
print('[+] mfckeys - Checkkey execution time: '..os.difftime(end_time, start_time)..' sec')

core.fast_push_mode(false)

Expand Down
2 changes: 1 addition & 1 deletion client/scripting.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static int l_clearCommandBuffer(lua_State *L) {
}

/**
* Enable / Disable fast push mode for lua scripts like mfkeys
* Enable / Disable fast push mode for lua scripts like mfckeys
* The following params expected:
*
*@brief l_fast_push_mode
Expand Down
14 changes: 7 additions & 7 deletions doc/cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ p : EPURSE
m : macs
e : elite
pm3 --> hf iclass lookup u 010a0ffff7ff12e0 p feffffffffffffff m 66348979153c41b9 f default_iclass_keys.dic e
pm3 --> hf iclass lookup u 010a0ffff7ff12e0 p feffffffffffffff m 66348979153c41b9 f dictionaries/iclass_default_keys.dic e
```

## Mifare
Expand All @@ -181,7 +181,7 @@ Options
card memory : 0 - MINI(320 bytes), 1 - 1K, 2 - 2K, 4 - 4K
d : write keys to binary file
pm3 --> hf mf chk *1 ? d default_keys.dic
pm3 --> hf mf chk *1 ? d dictionaries/mfc_default_keys.dic
```

Check for default keys from local memory
Expand Down Expand Up @@ -254,7 +254,7 @@ pm3 --> hf mf sim u 353c2aa6

Simulate Mifare Sequence
```
pm3 --> hf mf chk *1 ? d default_keys.dic
pm3 --> hf mf chk *1 ? d dictionaries/mfc_default_keys.dic
pm3 --> hf mf dump 1
pm3 --> script run dumptoemul -i dumpdata.bin
pm3 --> hf mf eload 353C2AA6
Expand All @@ -263,7 +263,7 @@ pm3 --> hf mf sim u 353c2aa6

Clone Mifare 1K Sequence
```
pm3 --> hf mf chk *1 ? d default_keys.dic
pm3 --> hf mf chk *1 ? d dictionaries/mfc_default_keys.dic
pm3 --> hf mf dump
pm3 --> hf mf restore 1 u 4A6CE843 k hf-mf-A29558E4-key.bin f hf-mf-A29558E4-data.bin
```
Expand Down Expand Up @@ -512,9 +512,9 @@ m : upload 6 bytes keys (mifare key dictionary)
i : upload 8 bytes keys (iClass key dictionary)
t : upload 4 bytes keys (pwd dictionary)
pm3 --> mem load f default_keys m
pm3 --> mem load f default_pwd t
pm3 --> mem load f default_iclass_keys i
pm3 --> mem load f dictionaries/mfc_default_keys m
pm3 --> mem load f dictionaries/t55xx_default_pwds t
pm3 --> mem load f dictionaries/iclass_default_keys i
```

## Sim Module
Expand Down
6 changes: 3 additions & 3 deletions doc/md/Use_of_Proxmark/2_Configuration-and-Verification.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
### First things on your RDV40
You will need to run these commands to make sure your rdv4 is prepared
```
pm3 --> mem load f default_keys m
pm3 --> mem load f default_pwd t
pm3 --> mem load f default_iclass_keys i
pm3 --> mem load f dictionaries/mfc_default_keys m
pm3 --> mem load f dictionaries/t55xx_default_pwds t
pm3 --> mem load f dictionaries/iclass_default_keys i
pm3 --> lf t55xx deviceconfig a 29 b 17 c 15 d 47 e 15 p
pm3 --> lf t55xx deviceconfig r 1 a 31 b 20 c 18 d 50 e 15 p
pm3 --> lf t55xx deviceconfig r 2 a 31 b 20 c 18 d 40 e 15 p
Expand Down

0 comments on commit 23044c0

Please sign in to comment.