mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
upd: RevEng v1.5.3
This commit is contained in:
parent
1dd01fd738
commit
513d0aca44
12 changed files with 431 additions and 420 deletions
|
@ -1,9 +1,9 @@
|
|||
/* cli.c
|
||||
* Greg Cook, 19/Feb/2017
|
||||
* Greg Cook, 26/Jul/2018
|
||||
*/
|
||||
|
||||
/* CRC RevEng: arbitrary-precision CRC calculator and algorithm finder
|
||||
* Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
|
||||
* Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
|
||||
* Gregory Cook
|
||||
*
|
||||
* This file is part of CRC RevEng.
|
||||
|
@ -22,7 +22,8 @@
|
|||
* along with CRC RevEng. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* 2017-02-18: -G ignored if R_HAVEP
|
||||
/* 2018-07-26: NOFORCE renamed ALWPCK
|
||||
* 2017-02-18: -G ignored if R_HAVEP
|
||||
* 2017-02-05: added -G
|
||||
* 2016-06-27: -P sets width like -k
|
||||
* 2015-04-03: added -z
|
||||
|
@ -135,7 +136,7 @@ int reveng_main(int argc, char *argv[]) {
|
|||
mode = c;
|
||||
break;
|
||||
case 'F': /* F skip preset model check pass */
|
||||
#ifndef NOFORCE
|
||||
#ifndef ALWPCK
|
||||
uflags |= C_NOPCK;
|
||||
#endif
|
||||
break;
|
||||
|
@ -507,7 +508,6 @@ void
|
|||
uerror(const char *msg) {
|
||||
/* Callback function to report fatal errors */
|
||||
fprintf(stderr, "%s: %s\n", myname, msg);
|
||||
return;
|
||||
//exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
@ -581,9 +581,8 @@ usage(void) {
|
|||
fputs(myname, stderr);
|
||||
fprintf(stderr,
|
||||
"\t-cdDesvhu? [-bBfFGlLMrStVXyz]\n"
|
||||
"\t\t[-a BITS] [-A OBITS] [-i INIT] [-k KPOLY] [-m MODEL]\n"
|
||||
"\t\t[-p POLY] [-P RPOLY] [-q QPOLY] [-w WIDTH] [-x XOROUT]\n"
|
||||
"\t\t[STRING...]\n"
|
||||
"\t\t[-a BITS] [-A OBITS] [-i INIT] [-k KPOLY] [-m MODEL] [-p POLY]\n"
|
||||
"\t\t[-p POLY] [-P RPOLY] [-q QPOLY] [-w WIDTH] [-x XOROUT] [STRING...]\n"
|
||||
"Options:\n"
|
||||
"\t-a BITS\t\tbits per character (1 to %d)\n"
|
||||
"\t-A OBITS\tbits per output character (1 to %d)\n"
|
||||
|
@ -611,7 +610,8 @@ usage(void) {
|
|||
"\t-c calculate CRCs\t\t-d dump algorithm parameters\n"
|
||||
"\t-D list preset algorithms\t-e echo (and reformat) input\n"
|
||||
"\t-s search for algorithm\t\t-v calculate reversed CRCs\n"
|
||||
"\t-g search for alg given hex+crc\t-h | -u | -? show this help\n"
|
||||
"\t-g search for alg given hex+crc\n"
|
||||
"\t-h | -u | -? show this help\n"
|
||||
"Common Use Examples:\n"
|
||||
"\t reveng -g 01020304e3\n"
|
||||
"\t Searches for a known/common crc preset that computes the crc\n"
|
||||
|
@ -625,7 +625,8 @@ usage(void) {
|
|||
"\t Outputs a list of all known/common crc models with their\n"
|
||||
"\t preset values\n"
|
||||
"\n"
|
||||
"Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Gregory Cook\n"
|
||||
"Copyright (C)\n"
|
||||
"2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Gregory Cook\n"
|
||||
"This is free software; see the source for copying conditions. There is NO\n"
|
||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||
"Version "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue