mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
litte rename
This commit is contained in:
parent
58cbe90469
commit
65c11ee0e4
2 changed files with 6 additions and 5 deletions
|
@ -49,7 +49,7 @@ static void fill_buff(uint8_t bit) {
|
||||||
buflen += (LF_CLOCK / 2);
|
buflen += (LF_CLOCK / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ConstructEM410xEmulBuf(uint64_t id) {
|
static void construct_EM410x_emul(uint64_t id) {
|
||||||
|
|
||||||
int i, j;
|
int i, j;
|
||||||
int binary[4] = {0,0,0,0};
|
int binary[4] = {0,0,0,0};
|
||||||
|
@ -96,10 +96,11 @@ void RunMod(void) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
if (data_available()) break;
|
if (data_available()) break;
|
||||||
|
|
||||||
SpinDelay(100);
|
SpinDelay(100);
|
||||||
SpinUp(100);
|
SpinUp(100);
|
||||||
LED_Slot(selected);
|
LED_Slot(selected);
|
||||||
ConstructEM410xEmulBuf(rev_quads(low[selected]));
|
construct_EM410x_emul(rev_quads(low[selected]));
|
||||||
SimulateTagLowFrequency(buflen, 0, true);
|
SimulateTagLowFrequency(buflen, 0, true);
|
||||||
selected = (selected + 1) % slots_count;
|
selected = (selected + 1) % slots_count;
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ static void fill_buff(uint8_t bit) {
|
||||||
buflen += (LF_CLOCK / 2);
|
buflen += (LF_CLOCK / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ConstructEM410xEmulBuf(uint64_t id) {
|
static void construct_EM410x_emul(uint64_t id) {
|
||||||
int i, j;
|
int i, j;
|
||||||
int binary[4] = {0,0,0,0};
|
int binary[4] = {0,0,0,0};
|
||||||
int parity[4] = {0,0,0,0};
|
int parity[4] = {0,0,0,0};
|
||||||
|
@ -226,7 +226,7 @@ static int BruteEMTag(uint64_t originalCard, int slot) {
|
||||||
cardnum = cardnum + direction;
|
cardnum = cardnum + direction;
|
||||||
uint64_t currentCard = PackEmID(originalCard, cardnum);
|
uint64_t currentCard = PackEmID(originalCard, cardnum);
|
||||||
Dbprintf("[=] >> Simulating card id %"PRIx64" <<", currentCard);
|
Dbprintf("[=] >> Simulating card id %"PRIx64" <<", currentCard);
|
||||||
ConstructEM410xEmulBuf(rev_quads(currentCard));
|
construct_EM410x_emul(rev_quads(currentCard));
|
||||||
SimulateTagLowFrequencyEx(buflen, 0, 1, bruteforceSpeed[bruteforceSpeedCurrent] * 10000);
|
SimulateTagLowFrequencyEx(buflen, 0, 1, bruteforceSpeed[bruteforceSpeedCurrent] * 10000);
|
||||||
|
|
||||||
int button_pressed = BUTTON_CLICKED(1000);
|
int button_pressed = BUTTON_CLICKED(1000);
|
||||||
|
@ -271,7 +271,7 @@ static int ExecuteMode(int mode, int slot) {
|
||||||
return LF_RWSB_UNKNOWN_RESULT;
|
return LF_RWSB_UNKNOWN_RESULT;
|
||||||
case LF_RWSB_MODE_SIM:
|
case LF_RWSB_MODE_SIM:
|
||||||
Dbprintf("[=] >> Sim mode started <<");
|
Dbprintf("[=] >> Sim mode started <<");
|
||||||
ConstructEM410xEmulBuf(rev_quads(low[slot]));
|
construct_EM410x_emul(rev_quads(low[slot]));
|
||||||
SimulateTagLowFrequency(buflen, 0, 1);
|
SimulateTagLowFrequency(buflen, 0, 1);
|
||||||
return LF_RWSB_UNKNOWN_RESULT;
|
return LF_RWSB_UNKNOWN_RESULT;
|
||||||
case LF_RWSB_MODE_WRITE:
|
case LF_RWSB_MODE_WRITE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue