mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
CHG: clearCommandBuffer(); before calling cmdparser.
This commit is contained in:
parent
c6e0a2ebeb
commit
4c36581b96
15 changed files with 52 additions and 52 deletions
|
@ -2411,8 +2411,8 @@ static command_t CommandTable[] =
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdData(const char *Cmd)
|
int CmdData(const char *Cmd){
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -783,14 +783,13 @@ static command_t CommandTable[] =
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdHF(const char *Cmd)
|
int CmdHF(const char *Cmd) {
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd)
|
int CmdHelp(const char *Cmd) {
|
||||||
{
|
CmdsHelp(CommandTable);
|
||||||
CmdsHelp(CommandTable);
|
return 0;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -473,8 +473,8 @@ static command_t CommandTable[] =
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdHW(const char *Cmd)
|
int CmdHW(const char *Cmd) {
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1236,14 +1236,13 @@ static command_t CommandTable[] =
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLF(const char *Cmd)
|
int CmdLF(const char *Cmd) {
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd)
|
int CmdHelp(const char *Cmd) {
|
||||||
{
|
CmdsHelp(CommandTable);
|
||||||
CmdsHelp(CommandTable);
|
return 0;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,6 +255,7 @@ static command_t CommandTable[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFAWID(const char *Cmd) {
|
int CmdLFAWID(const char *Cmd) {
|
||||||
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -611,14 +611,13 @@ static command_t CommandTable[] =
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFEM4X(const char *Cmd)
|
int CmdLFEM4X(const char *Cmd) {
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd)
|
int CmdHelp(const char *Cmd) {
|
||||||
{
|
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -372,6 +372,7 @@ static command_t CommandTable[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFHID(const char *Cmd) {
|
int CmdLFHID(const char *Cmd) {
|
||||||
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -267,14 +267,13 @@ static command_t CommandTable[] = {
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFHitag(const char *Cmd)
|
int CmdLFHitag(const char *Cmd) {
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd)
|
int CmdHelp(const char *Cmd) {
|
||||||
{
|
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,14 +73,13 @@ static command_t CommandTable[] =
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFIO(const char *Cmd)
|
int CmdLFIO(const char *Cmd){
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd)
|
int CmdHelp(const char *Cmd) {
|
||||||
{
|
CmdsHelp(CommandTable);
|
||||||
CmdsHelp(CommandTable);
|
return 0;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,14 +165,13 @@ static command_t CommandTable[] =
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFPCF7931(const char *Cmd)
|
int CmdLFPCF7931(const char *Cmd) {
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd)
|
int CmdHelp(const char *Cmd) {
|
||||||
{
|
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,6 +212,7 @@ static command_t CommandTable[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFPresco(const char *Cmd) {
|
int CmdLFPresco(const char *Cmd) {
|
||||||
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1550,11 +1550,12 @@ static command_t CommandTable[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFT55XX(const char *Cmd) {
|
int CmdLFT55XX(const char *Cmd) {
|
||||||
CmdsParse(CommandTable, Cmd);
|
clearCommandBuffer();
|
||||||
return 0;
|
CmdsParse(CommandTable, Cmd);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -298,11 +298,12 @@ static command_t CommandTable[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFTI(const char *Cmd){
|
int CmdLFTI(const char *Cmd){
|
||||||
CmdsParse(CommandTable, Cmd);
|
clearCommandBuffer();
|
||||||
return 0;
|
CmdsParse(CommandTable, Cmd);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd){
|
int CmdHelp(const char *Cmd){
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,6 +126,7 @@ static command_t CommandTable[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdLFViking(const char *Cmd) {
|
int CmdLFViking(const char *Cmd) {
|
||||||
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,10 +98,10 @@ int CmdList(const char *Cmd)
|
||||||
* @param Cmd
|
* @param Cmd
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int CmdScript(const char *Cmd)
|
int CmdScript(const char *Cmd) {
|
||||||
{
|
clearCommandBuffer();
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Utility to check the ending of a string (used to check file suffix)
|
* Utility to check the ending of a string (used to check file suffix)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue