projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHG: Added the urls to the new Wiki on github inside the flasher.c usuage text.
[proxmark3-svn]
/
client
/
cmdlft55xx.c
diff --git
a/client/cmdlft55xx.c
b/client/cmdlft55xx.c
index b26973e613c79034566d8db77ca4d4fbdf04c32c..7684bcc721fdb5adda1606d937bbb90d772c20b3 100644
(file)
--- a/
client/cmdlft55xx.c
+++ b/
client/cmdlft55xx.c
@@
-1377,6
+1377,7
@@
int CmdT55xxBruteForce(const char *Cmd) {
char buf[9];
\r
char filename[FILE_PATH_SIZE]={0};
\r
int keycnt = 0;
\r
char buf[9];
\r
char filename[FILE_PATH_SIZE]={0};
\r
int keycnt = 0;
\r
+ int c;
\r
uint8_t stKeyBlock = 20;
\r
uint8_t *keyBlock = NULL, *p = NULL;
\r
keyBlock = calloc(stKeyBlock, 6);
\r
uint8_t stKeyBlock = 20;
\r
uint8_t *keyBlock = NULL, *p = NULL;
\r
keyBlock = calloc(stKeyBlock, 6);
\r
@@
-1451,7
+1452,8
@@
int CmdT55xxBruteForce(const char *Cmd) {
for (uint16_t c = 0; c < keycnt; ++c ) {
\r
\r
if (ukbhit()) {
\r
for (uint16_t c = 0; c < keycnt; ++c ) {
\r
\r
if (ukbhit()) {
\r
- getchar();
\r
+ c = getchar();
\r
+ (void)c;
\r
printf("\naborted via keyboard!\n");
\r
free(keyBlock);
\r
return 0;
\r
printf("\naborted via keyboard!\n");
\r
free(keyBlock);
\r
return 0;
\r
@@
-1501,7
+1503,8
@@
int CmdT55xxBruteForce(const char *Cmd) {
printf(".");
\r
fflush(stdout);
\r
if (ukbhit()) {
\r
printf(".");
\r
fflush(stdout);
\r
if (ukbhit()) {
\r
- getchar();
\r
+ c = getchar();
\r
+ (void)c;
\r
printf("\naborted via keyboard!\n");
\r
free(keyBlock);
\r
return 0;
\r
printf("\naborted via keyboard!\n");
\r
free(keyBlock);
\r
return 0;
\r
Impressum
,
Datenschutz