This commit is contained in:
iceman1001
2023-12-06 22:16:53 +01:00
parent 88e84f57bc
commit fdc1c9d864
27 changed files with 44 additions and 36 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ void RunMod(void) {
} else if (state == STATE_EMUL) {
uint16_t flags = FLAG_7B_UID_IN_DATA;
Dbprintf("Starting simulation, press pm3-button to stop and go back to search state.");
Dbprintf("Starting simulation, press " _GREEN_("pm3 button") " to stop and go back to search state.");
SimulateIso14443aTag(7, flags, card.uid, 0);
// Go back to search state if user presses pm3-button
+1 -1
View File
@@ -91,7 +91,7 @@ void RunMod(void) {
continue;
}
Dbprintf("Starting simulation, press pm3-button to stop and go back to search state.");
Dbprintf("Starting simulation, press " _GREEN_("pm3 button") " to stop and go back to search state.");
if (card.sak == 0x08 && card.atqa[0] == 0x04 && card.atqa[1] == 0) {
DbpString("Mifare Classic 1k");
SimulateIso14443aTag(1, flags, card.uid, 0);
+1 -1
View File
@@ -74,7 +74,7 @@ void RunMod(void) {
}
} else if (state == STATE_EMUL) {
Iso15693InitTag();
Dbprintf("Starting simulation, press pm3-button to stop and go back to search state.");
Dbprintf("Starting simulation, press " _GREEN_("pm3 button") " to stop and go back to search state.");
// default block size is 4
SimTagIso15693(card.uid, 4);
+1 -1
View File
@@ -15,7 +15,7 @@ local reader15693 = require('read15')
-- @return if successful: an table containing card info
-- @return if unsuccessful : nil, error
local function waitForTag()
print("Waiting for card... press Enter to quit")
print("Waiting for card... press <Enter> to quit")
local readers = {reader14443A, reader14443B, reader15693}
local i = 0;
while not core.kbd_enter_pressed() do
+1 -1
View File
@@ -124,7 +124,7 @@ end
-- @return if successful: an table containing card info
-- @return if unsuccessful : nil, error
local function waitFor14443a()
print('Waiting for card... press Enter to quit')
print('Waiting for card... press <Enter> to quit')
while not core.kbd_enter_pressed() do
res, err = read14443a()
if res then return res end
+1 -1
View File
@@ -133,7 +133,7 @@ end
-- @return if successful: an table containing card info
-- @return if unsuccessful : nil, error
local function waitFor15693()
print('Waiting for card... press Enter to quit')
print('Waiting for card... press <Enter> to quit')
while not core.kbd_enter_pressed() do
res, err = read15693()
if res then return res end
+5
View File
@@ -969,6 +969,11 @@ static int CmdAnalyseFreq(const char *Cmd) {
PrintAndLogEx(INFO, " 134 kHz has %f m, rf range %f m", len_134, rf_range_134);
PrintAndLogEx(INFO, " 13.56 mHz has %f m, rf range %f m", len_1356, rf_range_1356);
PrintAndLogEx(INFO, "Antenna lengths");
PrintAndLogEx(INFO, " 125 kHz 1/2 = %f m, 1/4 = %f m", (len_125 / 2), (len_125 / 4) );
PrintAndLogEx(INFO, " 134 kHz 1/2 = %f m, 1/4 = %f m", (len_134 / 2), (len_134 / 4) );
PrintAndLogEx(INFO, " 13.56 mHz 1/2 = %f m, 1/4 = %f m", (len_1356 / 2), (len_1356 / 4));
if (F == 0 && C == 0 && L == 0)
return PM3_SUCCESS;
+3 -2
View File
@@ -216,7 +216,7 @@ int CmdHFTune(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "hf tune",
"Continuously measure HF antenna tuning.\n"
"Press button or <Enter> to interrupt.",
"Press pm3 button or <Enter> to interrupt.",
"hf tune\n"
"hf tune --mix"
);
@@ -249,7 +249,8 @@ int CmdHFTune(const char *Cmd) {
if (is_value)
style = STYLE_VALUE;
PrintAndLogEx(INFO, "Measuring HF antenna, click " _GREEN_("pm3 button") " or press " _GREEN_("Enter") " to exit");
PrintAndLogEx(INFO, "Measuring HF antenna");
PrintAndLogEx(INFO, "click " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to exit");
PacketResponseNG resp;
clearCommandBuffer();
+1 -1
View File
@@ -837,7 +837,7 @@ int CmdHF14ASim(const char *Cmd) {
sector_t *k_sector = NULL;
size_t k_sectors_cnt = MIFARE_4K_MAXSECTOR;
PrintAndLogEx(INFO, "Press pm3-button to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " to abort simulation");
bool keypress = kbd_enter_pressed();
while (keypress == false) {
+1 -1
View File
@@ -239,7 +239,7 @@ static int CmdHF14BSim(const char *Cmd) {
}
PrintAndLogEx(INFO, "Simulate with PUPI : " _GREEN_("%s"), sprint_hex_inrow(pupi, sizeof(pupi)));
PrintAndLogEx(INFO, "Press pm3-button to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " to abort simulation");
clearCommandBuffer();
SendCommandNG(CMD_HF_ISO14443B_SIMULATE, pupi, sizeof(pupi));
return PM3_SUCCESS;
+2 -2
View File
@@ -1024,7 +1024,7 @@ static int CmdHF15Reader(const char *Cmd) {
CLIParserFree(ctx);
if (cm) {
PrintAndLogEx(INFO, "press " _GREEN_("`Enter`") " to exit");
PrintAndLogEx(INFO, "press " _GREEN_("<Enter>") " to exit");
}
readHF15Uid(cm, true);
return PM3_SUCCESS;
@@ -1321,7 +1321,7 @@ static int CmdHF15FindAfi(const char *Cmd) {
CLIExecWithReturn(ctx, Cmd, argtable, true);
CLIParserFree(ctx);
PrintAndLogEx(INFO, "click " _GREEN_("pm3 button") " or press " _GREEN_("Enter") " to exit");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to exit");
clearCommandBuffer();
PacketResponseNG resp;
SendCommandMIX(CMD_HF_ISO15693_FINDAFI, strtol(Cmd, NULL, 0), 0, 0, NULL, 0);
+3 -3
View File
@@ -1783,7 +1783,7 @@ static int CmdHFFelicaSniff(const char *Cmd) {
PrintAndLogEx(INFO, "Sniff Felica, getting first %" PRIu32 " frames, skipping after %" PRIu32 " triggers", payload.samples, payload.triggers);
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " or pm3-button to abort sniffing");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to abort sniffing");
clearCommandBuffer();
SendCommandNG(CMD_HF_FELICA_SNIFF, (uint8_t *)&payload, sizeof(payload));
PacketResponseNG resp;
@@ -1830,7 +1830,7 @@ static int CmdHFFelicaSimLite(const char *Cmd) {
CLIParserFree(ctx);
PrintAndLogEx(NORMAL, "");
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " or pm3-button to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to abort simulation");
clearCommandBuffer();
SendCommandNG(CMD_HF_FELICALITE_SIMULATE, payload.uid, sizeof(payload));
@@ -2035,7 +2035,7 @@ static int CmdHFFelicaDumpLite(const char *Cmd) {
SendCommandNG(CMD_HF_FELICALITE_DUMP, NULL, 0);
PacketResponseNG resp;
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " or pm3-button to abort dumping");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to abort dumping");
uint8_t timeout = 0;
while (WaitForResponseTimeout(CMD_ACK, &resp, 2000) == false) {
+1 -1
View File
@@ -575,7 +575,7 @@ static int CmdHF14AJookiSim(const char *Cmd) {
PrintAndLogEx(NORMAL, "");
PrintAndLogEx(SUCCESS, "Starting simulating");
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " or pm3-button to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to abort simulation");
for (;;) {
if (kbd_enter_pressed()) {
SendCommandNG(CMD_BREAK_LOOP, NULL, 0);
+1 -1
View File
@@ -556,7 +556,7 @@ static int CmdLegicSim(const char *Cmd) {
SendCommandNG(CMD_HF_LEGIC_SIMULATE, (uint8_t *)&payload, sizeof(payload));
PacketResponseNG resp;
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " or pm3-button to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to abort simulation");
for (;;) {
if (kbd_enter_pressed()) {
SendCommandNG(CMD_BREAK_LOOP, NULL, 0);
+2 -2
View File
@@ -3872,7 +3872,7 @@ static int CmdHF14AMfSim(const char *Cmd) {
PacketResponseNG resp;
if (flags & FLAG_INTERACTIVE) {
PrintAndLogEx(INFO, "Press pm3-button or send another cmd to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or send another cmd to abort simulation");
sector_t *k_sector = NULL;
@@ -3896,7 +3896,7 @@ static int CmdHF14AMfSim(const char *Cmd) {
showSectorTable(k_sector, k_sectors_cnt);
} else {
PrintAndLogEx(INFO, "Press pm3-button to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " to abort simulation");
}
return PM3_SUCCESS;
}
+1 -1
View File
@@ -182,7 +182,7 @@ int CmdHfThinFilmSim(const char *Cmd) {
clearCommandBuffer();
SendCommandNG(CMD_HF_THINFILM_SIMULATE, (uint8_t *)&data, data_len);
PacketResponseNG resp;
PrintAndLogEx(SUCCESS, "press pm3-button to abort simulation");
PrintAndLogEx(SUCCESS, "press " _GREEN_("pm3 button") " to abort simulation");
int ret;
while (!(ret = kbd_enter_pressed())) {
+1 -1
View File
@@ -465,7 +465,7 @@ static int CmdVASReader(const char *Cmd) {
PrintAndLogEx(INFO, "Requesting pass type id... " _GREEN_("%s"), sprint_ascii((uint8_t *) pid, pidlen));
if (continuous) {
PrintAndLogEx(INFO, "Press " _GREEN_("Enter") " to exit");
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " to exit");
}
uint8_t pidhash[32] = {0};
+3 -2
View File
@@ -74,7 +74,7 @@ static int CmdHelp(const char *Cmd);
// if key event, send break loop cmd to Pm3
int lfsim_wait_check(uint32_t cmd) {
PrintAndLogEx(NORMAL, "");
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " or pm3-button to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to abort simulation");
for (;;) {
if (kbd_enter_pressed()) {
@@ -159,7 +159,8 @@ static int CmdLFTune(const char *Cmd) {
if (is_value)
style = STYLE_VALUE;
PrintAndLogEx(INFO, "Measuring LF antenna at " _YELLOW_("%.2f") " kHz, click " _GREEN_("pm3 button") " or press " _GREEN_("Enter") " to exit", LF_DIV2FREQ(divisor));
PrintAndLogEx(INFO, "Measuring LF antenna at " _YELLOW_("%.2f") " kHz", LF_DIV2FREQ(divisor));
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to exit");
uint8_t params[] = {1, 0};
params[1] = divisor;
+2 -2
View File
@@ -132,7 +132,7 @@ static int CmdAWIDWatch(const char *Cmd) {
CLIParserFree(ctx);
PrintAndLogEx(SUCCESS, "Watching for AWID cards - place tag on antenna");
PrintAndLogEx(INFO, "Press pm3-button to stop reading cards");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " to stop reading cards");
clearCommandBuffer();
SendCommandNG(CMD_LF_AWID_WATCH, NULL, 0);
return lfsim_wait_check(CMD_LF_AWID_WATCH);
@@ -524,7 +524,7 @@ static int CmdAWIDBrute(const char *Cmd) {
}
PrintAndLogEx(SUCCESS, "Bruteforceing AWID %d reader", fmtlen);
PrintAndLogEx(SUCCESS, "Press pm3-button to abort simulation or press Enter");
PrintAndLogEx(SUCCESS, "Press " _GREEN_("pm3 button") " to abort simulation or press " _GREEN_("<Enter>"));
uint16_t up = cn;
uint16_t down = cn;
+1 -1
View File
@@ -1231,7 +1231,7 @@ int CmdEM4x50Sim(const char *Cmd) {
clearCommandBuffer();
SendCommandNG(CMD_LF_EM4X50_SIM, (uint8_t *)&password, sizeof(password));
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " or pm3-button to abort simulation");
PrintAndLogEx(INFO, "Press " _GREEN_("pm3 button") " or press " _GREEN_("<Enter>") " to abort simulation");
PacketResponseNG resp;
// init to ZERO

Some files were not shown because too many files have changed in this diff Show More