diff --git a/client/src/cmdlfem4x50.c b/client/src/cmdlfem4x50.c index 1143939cf..a86650c2b 100644 --- a/client/src/cmdlfem4x50.c +++ b/client/src/cmdlfem4x50.c @@ -19,35 +19,34 @@ static int usage_lf_em4x50_info(void) { PrintAndLogEx(NORMAL, "Read all information of EM4x50. Tag must be on antenna."); PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Usage: lf em 4x50_info [h] [v] [p ]"); + PrintAndLogEx(NORMAL, "Usage: lf em 4x50_info [h] [p ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); - PrintAndLogEx(NORMAL, " p - password (hex, lsb) (optional)"); + PrintAndLogEx(NORMAL, " p - password (hex, lsb)"); PrintAndLogEx(NORMAL, "Examples:"); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_info")); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_info p fa225de1")); - PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_info v p fa225de1")); PrintAndLogEx(NORMAL, ""); return PM3_SUCCESS; } static int usage_lf_em4x50_write(void) { PrintAndLogEx(NORMAL, "Write EM4x50 word. Tag must be on antenna. "); PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Usage: lf em 4x50_write [h] [a
] [w ]"); + PrintAndLogEx(NORMAL, "Usage: lf em 4x50_write [h] b d [p ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); - PrintAndLogEx(NORMAL, " b - memory address to write to (dec)"); + PrintAndLogEx(NORMAL, " b - block address to write to (dec)"); PrintAndLogEx(NORMAL, " d - word to write (hex, lsb)"); - PrintAndLogEx(NORMAL, " p - password (hex, lsb) (optional)"); + PrintAndLogEx(NORMAL, " p - password (hex, lsb)"); PrintAndLogEx(NORMAL, "Examples:"); - PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_write a 3 w deadc0de")); + PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_write b 3 d deadc0de")); PrintAndLogEx(NORMAL, ""); return PM3_SUCCESS; } static int usage_lf_em4x50_write_password(void) { PrintAndLogEx(NORMAL, "Write EM4x50 password. Tag must be on antenna. "); PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Usage: lf em 4x50_write_password [h] [p ] [n ]"); + PrintAndLogEx(NORMAL, "Usage: lf em 4x50_write_password [h] p n ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); PrintAndLogEx(NORMAL, " p - password (hex, lsb)"); @@ -60,14 +59,14 @@ static int usage_lf_em4x50_write_password(void) { static int usage_lf_em4x50_read(void) { PrintAndLogEx(NORMAL, "Read EM4x50 word(s). Tag must be on antenna."); PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Usage: lf em 4x50_read [h] [a
] [p ]"); + PrintAndLogEx(NORMAL, "Usage: lf em 4x50_read [h] b [p ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); - PrintAndLogEx(NORMAL, " b - memory address to read (dec) (optional)"); - PrintAndLogEx(NORMAL, " p - password (hex, lsb) (optional)"); + PrintAndLogEx(NORMAL, " b - block address to read (dec)"); + PrintAndLogEx(NORMAL, " p - password (hex, lsb)"); PrintAndLogEx(NORMAL, "Examples:"); - PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_read")); - PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_read a 2 p 00000000")); + PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_read b 32")); + PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_read b 2 p 00000000")); PrintAndLogEx(NORMAL, ""); return PM3_SUCCESS; } @@ -78,7 +77,7 @@ static int usage_lf_em4x50_dump(void) { PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); PrintAndLogEx(NORMAL, " f - overide filename prefix (optional). Default is based on UID"); - PrintAndLogEx(NORMAL, " p - password (hex, lsb) (optional)"); + PrintAndLogEx(NORMAL, " p - password (hex, lsb)"); PrintAndLogEx(NORMAL, "Examples:"); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_dump")); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_dump p 11223344")); @@ -88,7 +87,7 @@ static int usage_lf_em4x50_dump(void) { static int usage_lf_em4x50_wipe(void) { PrintAndLogEx(NORMAL, "Wipe data from EM4x50 tag. Tag must be on antenna. "); PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Usage: lf em 4x50_wipe [h] [p ]"); + PrintAndLogEx(NORMAL, "Usage: lf em 4x50_wipe [h] p "); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); PrintAndLogEx(NORMAL, " p - password (hex, lsb)"); @@ -147,12 +146,12 @@ static int usage_lf_em4x50_watch(void) { static int usage_lf_em4x50_restore(void) { PrintAndLogEx(NORMAL, "Restore EM4x50 dump to tag. Tag must be on antenna. "); PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Usage: lf em 4x50_restore [h]"); + PrintAndLogEx(NORMAL, "Usage: lf em 4x50_restore [h] [u ] [f ] [p ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); PrintAndLogEx(NORMAL, " u - uid, try to restore from lf-4x50--dump.bin"); - PrintAndLogEx(NORMAL, " f - data filename (optional)"); - PrintAndLogEx(NORMAL, " p - password (hex, lsb) (optional)"); + PrintAndLogEx(NORMAL, " f - data filename "); + PrintAndLogEx(NORMAL, " p - password (hex, lsb)"); PrintAndLogEx(NORMAL, "Examples:"); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_restore h")); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_restore f em4x50dump.bin")); @@ -164,13 +163,15 @@ static int usage_lf_em4x50_restore(void) { static int usage_lf_em4x50_sim(void) { PrintAndLogEx(NORMAL, "Simulate single EM4x50 word. "); PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Usage: lf em 4x50_sim [h]"); + PrintAndLogEx(NORMAL, "Usage: lf em 4x50_sim [h] [u ] [f ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); - PrintAndLogEx(NORMAL, " u - single word to simulate (hex, lsb"); + PrintAndLogEx(NORMAL, " u - single word (e.g. UID) to simulate (hex, lsb"); + PrintAndLogEx(NORMAL, " f - data filename "); PrintAndLogEx(NORMAL, "Examples:"); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_sim h")); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_sim u 12345678")); + PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_sim f em4x50dump.json")); PrintAndLogEx(NORMAL, ""); return PM3_SUCCESS; }