mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-13 01:57:25 -07:00
whitespace
This commit is contained in:
parent
f6940f1d8e
commit
adee34083e
3 changed files with 18 additions and 18 deletions
client
|
@ -529,7 +529,7 @@ const char ice[] =
|
|||
" !!: :!! !!: !!: !!: !!: !!! !!: !!!\n : :: :: : : :: ::: : : : : : :: : \n"
|
||||
_RED_(" . .. .. . . .. ... . . . . . .. . ")
|
||||
"\n...................................................................\n"
|
||||
;
|
||||
;
|
||||
|
||||
// Write a file's segments to Flash
|
||||
int flash_write(flash_file_t *ctx) {
|
||||
|
@ -566,8 +566,8 @@ int flash_write(flash_file_t *ctx) {
|
|||
baddr += block_size;
|
||||
length -= block_size;
|
||||
block++;
|
||||
if ( len < strlen(ice) ) {
|
||||
if (filter_ansi && !isalpha(ice[len]) ) {
|
||||
if (len < strlen(ice)) {
|
||||
if (filter_ansi && !isalpha(ice[len])) {
|
||||
len++;
|
||||
} else {
|
||||
fprintf(stdout, "%c", ice[len++]);
|
||||
|
|
|
@ -546,8 +546,8 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBlockNo,
|
|||
|
||||
float bruteforce_per_second = (float)KEYS_IN_BLOCK / (msclock() - start_time) * 1000.0;
|
||||
|
||||
if ( i + 1 % 10 == 0)
|
||||
PrintAndLogEx(INFO, " %6d/%u keys | %5.1f keys/sec | worst case %6.1f seconds remaining", i, keycnt , bruteforce_per_second, (keycnt-i) / bruteforce_per_second);
|
||||
if (i + 1 % 10 == 0)
|
||||
PrintAndLogEx(INFO, " %6d/%u keys | %5.1f keys/sec | worst case %6.1f seconds remaining", i, keycnt, bruteforce_per_second, (keycnt - i) / bruteforce_per_second);
|
||||
|
||||
}
|
||||
|
||||
|
@ -653,7 +653,7 @@ int mfStaticNested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBl
|
|||
uint32_t maxkeysinblock = IfPm3Flash() ? 1000 : KEYS_IN_BLOCK;
|
||||
uint32_t max_keys_chunk = keycnt > maxkeysinblock ? maxkeysinblock : keycnt;
|
||||
|
||||
uint8_t *mem = calloc( (maxkeysinblock * 6) + 5, sizeof(uint8_t));
|
||||
uint8_t *mem = calloc((maxkeysinblock * 6) + 5, sizeof(uint8_t));
|
||||
if (mem == NULL) {
|
||||
free(statelists[0].head.slhead);
|
||||
return PM3_EMALLOC;
|
||||
|
@ -667,7 +667,7 @@ int mfStaticNested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBl
|
|||
mem[4] = (max_keys_chunk & 0xFF);
|
||||
|
||||
uint8_t destfn[32];
|
||||
strncpy((char*)destfn, "static_nested_000.bin", sizeof(destfn) - 1);
|
||||
strncpy((char *)destfn, "static_nested_000.bin", sizeof(destfn) - 1);
|
||||
|
||||
uint64_t start_time = msclock();
|
||||
for (uint32_t i = 0; i < keycnt; i += max_keys_chunk) {
|
||||
|
@ -691,8 +691,8 @@ int mfStaticNested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBl
|
|||
|
||||
// check a block of generated candidate keys.
|
||||
if (IfPm3Flash()) {
|
||||
// upload to flash.
|
||||
res = flashmem_spiffs_load(destfn, mem, 5 + (chunk * 6) );
|
||||
// upload to flash.
|
||||
res = flashmem_spiffs_load(destfn, mem, 5 + (chunk * 6));
|
||||
if (res != PM3_SUCCESS) {
|
||||
PrintAndLogEx(WARNING, "SPIFFS upload failed");
|
||||
free(mem);
|
||||
|
@ -705,13 +705,13 @@ int mfStaticNested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBl
|
|||
}
|
||||
|
||||
if (res == PM3_SUCCESS) {
|
||||
p_keyblock = NULL;
|
||||
free(statelists[0].head.slhead);
|
||||
free(mem);
|
||||
p_keyblock = NULL;
|
||||
free(statelists[0].head.slhead);
|
||||
free(mem);
|
||||
|
||||
num_to_bytes(key64, 6, resultKey);
|
||||
num_to_bytes(key64, 6, resultKey);
|
||||
|
||||
PrintAndLogEx(SUCCESS, "target block:%3u key type: %c -- found valid key [ " _YELLOW_("%s") "]",
|
||||
PrintAndLogEx(SUCCESS, "target block:%3u key type: %c -- found valid key [ " _YELLOW_("%s") "]",
|
||||
package->block,
|
||||
package->keytype ? 'B' : 'A',
|
||||
sprint_hex_inrow(resultKey, 6)
|
||||
|
@ -723,8 +723,8 @@ int mfStaticNested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBl
|
|||
}
|
||||
|
||||
// if (i%10 == 0) {
|
||||
float bruteforce_per_second = (float)i + max_keys_chunk / (msclock() - start_time) * 1000.0;
|
||||
PrintAndLogEx(INFO, "Chunk %6u/%u keys | %5.1f keys/sec | worst case %6.1f seconds remaining", i, keycnt, bruteforce_per_second, (keycnt-i) / bruteforce_per_second);
|
||||
float bruteforce_per_second = (float)i + max_keys_chunk / (msclock() - start_time) * 1000.0;
|
||||
PrintAndLogEx(INFO, "Chunk %6u/%u keys | %5.1f keys/sec | worst case %6.1f seconds remaining", i, keycnt, bruteforce_per_second, (keycnt - i) / bruteforce_per_second);
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ ProxWidget::ProxWidget(QWidget *parent, ProxGuiQT *master) : QWidget(parent) {
|
|||
setLayout(layout);
|
||||
|
||||
// plot window title
|
||||
QString pt = QString("[*]Plot [ %1 ]").arg((char*)gui_serial_port_name);
|
||||
QString pt = QString("[*]Plot [ %1 ]").arg((char *)gui_serial_port_name);
|
||||
setWindowTitle(pt);
|
||||
|
||||
// shows plot window on the screen.
|
||||
|
@ -210,7 +210,7 @@ ProxWidget::ProxWidget(QWidget *parent, ProxGuiQT *master) : QWidget(parent) {
|
|||
controlWidget->resize(size().width(), 200);
|
||||
|
||||
// Olverlays / slider window title
|
||||
QString ct = QString("[*]Slider [ %1 ]").arg((char*)gui_serial_port_name);
|
||||
QString ct = QString("[*]Slider [ %1 ]").arg((char *)gui_serial_port_name);
|
||||
controlWidget->setWindowTitle(ct);
|
||||
|
||||
controlWidget->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue