Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ POSTCOMPILE = $(MV) -f $(OBJDIR)/$*.Td $(OBJDIR)/$*.d
CORESRCS = uart_posix.c \
uart_win32.c \
util.c \
util_posix.c
util_posix.c \
ui.c \
comms.c

CMDSRCS = crapto1/crapto1.c\
crapto1/crypto1.c\
Expand All @@ -106,7 +108,6 @@ CMDSRCS = crapto1/crapto1.c\
iso14443crc.c \
iso15693tools.c \
graph.c \
ui.c \
cmddata.c \
lfdemod.c \
emv/crypto_polarssl.c\
Expand Down Expand Up @@ -169,8 +170,7 @@ CMDSRCS = crapto1/crapto1.c\
cmdscript.c\
pm3_binlib.c\
pm3_bitlib.c\
protocols.c\
comms.c
protocols.c

cpu_arch = $(shell uname -m)
ifneq ($(findstring 86, $(cpu_arch)), )
Expand Down
5 changes: 3 additions & 2 deletions client/cmddata.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
// Data and Graph commands
//-----------------------------------------------------------------------------

#include "cmddata.h"

#include <stdio.h> // also included in util.h
#include <string.h> // also included in util.h
#include <inttypes.h>
#include <limits.h> // for CmdNorm INT_MIN && INT_MAX
#include "cmddata.h"
#include "util.h"
#include "cmdmain.h"
#include "proxmark3.h"
#include "comms.h"
#include "ui.h" // for show graph controls
#include "graph.h" // for graph data
#include "cmdparser.h"// already included in cmdmain.h
Expand Down
5 changes: 3 additions & 2 deletions client/cmdhf.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@
// High frequency commands
//-----------------------------------------------------------------------------

#include "cmdhf.h"

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "proxmark3.h"
#include "comms.h"
#include "util.h"
#include "ui.h"
#include "iso14443crc.h"
#include "parity.h"
#include "cmdmain.h"
#include "cmdparser.h"
#include "cmdhf.h"
#include "cmdhf14a.h"
#include "cmdhf14b.h"
#include "cmdhf15.h"
Expand Down
2 changes: 1 addition & 1 deletion client/cmdhf14a.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "util.h"
#include "util_posix.h"
#include "iso14443crc.h"
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "cmdparser.h"
#include "common.h"
Expand Down
5 changes: 3 additions & 2 deletions client/cmdhf14b.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@
// High frequency ISO14443B commands
//-----------------------------------------------------------------------------

#include "cmdhf14b.h"

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <stdint.h>
#include "iso14443crc.h"
#include "proxmark3.h"
#include "comms.h"
#include "graph.h"
#include "util.h"
#include "ui.h"
#include "cmdparser.h"
#include "cmdhf14b.h"
#include "cmdmain.h"
#include "cmdhf14a.h"

Expand Down
2 changes: 2 additions & 0 deletions client/cmdhf14b.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef CMDHF14B_H__
#define CMDHF14B_H__

#include <stdbool.h>

int CmdHF14B(const char *Cmd);
int CmdHF14BList(const char *Cmd);
int CmdHF14BInfo(const char *Cmd);
Expand Down
5 changes: 3 additions & 2 deletions client/cmdhf15.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@
// the client. Signal Processing & decoding is done on the pc. This is the slowest
// variant, but offers the possibility to analyze the waveforms directly.

#include "cmdhf15.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>

#include "proxmark3.h"
#include "comms.h"
#include "graph.h"
#include "ui.h"
#include "util.h"
#include "cmdparser.h"
#include "cmdhf15.h"
#include "iso15693tools.h"
#include "cmdmain.h"

Expand Down
2 changes: 2 additions & 0 deletions client/cmdhf15.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef CMDHF15_H__
#define CMDHF15_H__

#include <stdbool.h>

int CmdHF15(const char *Cmd);

int CmdHF15Demod(const char *Cmd);
Expand Down
2 changes: 1 addition & 1 deletion client/cmdhfepa.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <stdio.h>
#include "util.h"
#include "util_posix.h"
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "cmdparser.h"
#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion client/cmdhficlass.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <sys/stat.h>
#include <ctype.h>
#include "iso14443crc.h" // Can also be used for iClass, using 0xE012 as CRC-type
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "cmdparser.h"
#include "cmdhficlass.h"
Expand Down
6 changes: 4 additions & 2 deletions client/cmdhflegic.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
// High frequency Legic commands
//-----------------------------------------------------------------------------

#include "cmdhflegic.h"

#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "cmdparser.h"
#include "cmdhflegic.h"
#include "cmdmain.h"
#include "util.h"

static int CmdHelp(const char *Cmd);

static command_t CommandTable[] =
Expand Down
2 changes: 1 addition & 1 deletion client/cmdhfmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "proxmark3.h"
#include "comms.h"
#include "cmdmain.h"
#include "cmdhfmfhard.h"
#include "parity.h"
Expand Down
1 change: 1 addition & 0 deletions client/cmdhfmfhard.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <locale.h>
#include <math.h>
#include "proxmark3.h"
#include "comms.h"
#include "cmdmain.h"
#include "ui.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion client/cmdhfmfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <stdint.h>
#include <stdio.h>
#include "proxmark3.h"
#include "comms.h"
#include "usb_cmd.h"
#include "cmdmain.h"
#include "ui.h"
Expand Down
5 changes: 3 additions & 2 deletions client/cmdhftopaz.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
// High frequency Topaz (NFC Type 1) commands
//-----------------------------------------------------------------------------

#include "cmdhftopaz.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "cmdmain.h"
#include "cmdparser.h"
#include "cmdhftopaz.h"
#include "cmdhf14a.h"
#include "ui.h"
#include "mifare.h"
#include "proxmark3.h"
#include "comms.h"
#include "iso14443crc.h"
#include "protocols.h"

Expand Down
5 changes: 3 additions & 2 deletions client/cmdhw.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
// Hardware commands
//-----------------------------------------------------------------------------

#include "cmdhw.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "ui.h"
#include "proxmark3.h"
#include "comms.h"
#include "cmdparser.h"
#include "cmdhw.h"
#include "cmdmain.h"
#include "cmddata.h"

Expand Down
5 changes: 3 additions & 2 deletions client/cmdlf.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
// Low frequency commands
//-----------------------------------------------------------------------------

#include "cmdlf.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include "proxmark3.h"
#include "cmdlf.h"
#include "comms.h"
#include "lfdemod.h" // for psk2TOpsk1
#include "util.h" // for parsing cli command utils
#include "ui.h" // for show graph controls
Expand Down
5 changes: 3 additions & 2 deletions client/cmdlfawid.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
// FSK2a, RF/50, 96 bits (complete)
//-----------------------------------------------------------------------------

#include "cmdlfawid.h"

#include <string.h>
#include <stdio.h> // sscanf
#include "proxmark3.h" // Definitions, USB controls, etc
#include "cmdlfawid.h"
#include "comms.h" // Definitions, USB controls, etc
#include "ui.h" // PrintAndLog
#include "cmdparser.h" // CmdsParse, CmdsHelp
#include "lfdemod.h" // parityTest +
Expand Down
6 changes: 4 additions & 2 deletions client/cmdlfcotag.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
//-----------------------------------------------------------------------------
// Low frequency COTAG commands
//-----------------------------------------------------------------------------

#include "cmdlfcotag.h"

#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "cmddata.h"
#include "cmdlfcotag.h"
#include "lfdemod.h"
#include "usb_cmd.h"
#include "cmdmain.h"
Expand Down
5 changes: 3 additions & 2 deletions client/cmdlfem4x.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
// Low frequency EM4x commands
//-----------------------------------------------------------------------------

#include "cmdlfem4x.h"

#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "cmdlfem4x.h"
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "util.h"
#include "graph.h"
Expand Down
2 changes: 1 addition & 1 deletion client/cmdlffdx.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include "proxmark3.h"
#include "comms.h"
#include "ui.h" // for PrintAndLog
#include "util.h"
#include "cmdparser.h"
Expand Down
5 changes: 3 additions & 2 deletions client/cmdlfhid.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
// Low frequency HID commands (known)
//-----------------------------------------------------------------------------

#include "cmdlfhid.h"

#include <stdio.h>
#include <string.h>
#include "cmdlfhid.h"
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "graph.h"
#include "cmdparser.h"
Expand Down
4 changes: 3 additions & 1 deletion client/cmdlfhitag.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
// Low frequency Hitag support
//-----------------------------------------------------------------------------

#include "cmdlfhitag.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "cmdparser.h"
#include "common.h"
Expand Down
5 changes: 3 additions & 2 deletions client/cmdlfindala.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
// PSK1, rf/32, 64 or 224 bits (known)
//-----------------------------------------------------------------------------

#include "cmdlfindala.h"

#include <stdio.h>
#include <string.h>
#include "cmdlfindala.h"
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "graph.h"
#include "cmdparser.h"
Expand Down
5 changes: 3 additions & 2 deletions client/cmdlfio.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
// FSK2a, rf/64, 64 bits (complete)
//-----------------------------------------------------------------------------

#include "cmdlfio.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <limits.h>
#include "cmdlfio.h"
#include "proxmark3.h"
#include "comms.h"
#include "graph.h"
#include "ui.h"
#include "cmdparser.h"
Expand Down
3 changes: 2 additions & 1 deletion client/cmdlfjablotron.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
//-----------------------------------------------------------------------------

#include "cmdlfjablotron.h"

#include <string.h>
#include <inttypes.h>
#include <stdbool.h>
#include "proxmark3.h"
#include "comms.h"
#include "ui.h"
#include "util.h"
#include "graph.h"
Expand Down
Loading