X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=cfe_generate_password.git;a=blobdiff_plain;f=cfe_generate_password.c;h=b4ea73ce57853a9209485e2ef7bf5f0f3ac4af03;hp=3778c8b845e810001b75cbf5d7995e96c5ab7818;hb=HEAD;hpb=4e8835b80db75f08d984ad48aed0bf683c8744f9 diff --git a/cfe_generate_password.c b/cfe_generate_password.c index 3778c8b..b4ea73c 100644 --- a/cfe_generate_password.c +++ b/cfe_generate_password.c @@ -1,10 +1,10 @@ static const char *title = \ -"Generate Broadcom CFE seeds and passwords for many popular modem/router devices\n" +"Generate Broadcom CFE seeds and passwords for many popular modem/router devices" ; -static const float VERSION = 1.3f; +static const float VERSION = 1.4f; static const char *copyright = \ -"Copyright 2015 TJ \n" +"Copyright 2015-2016 TJ \n" "Licenced on the terms of the GNU General Public Licence version 3\n" ; @@ -57,9 +57,9 @@ static const char *help = \ "The tool can accept a timestamp as 8 hexadecimal characters (useful for testing the algorithm):\n\n" -" ./cfe_gen_pass -t 0FF020 -s ec:43:f6:46:c0:80 -p\n\n" +" ./cfe_gen_pass -t 56FA8C2B -s ec:43:f6:46:c0:80 -p\n\n" -"MAC address: ec:43:f6:46:c0:80 Timestamp: 0FF020 Seed: 0FF02046c080 Password: 110f65a3\n\n" +" MAC address: ec:43:f6:46:c0:80 Timestamp: 56FA8C2B (2016-03-29 14:07:39) Seed: FA8C2B46c080 Password: 1111bda5\n\n" ; #include @@ -80,7 +80,6 @@ pr_usage(int verbose) { fprintf(stderr, "Usage:\n" - " -v show version\n" " -s 00:01:02:03:04:05 create seed from MAC address\n" " -t [00000000] seconds since 1970-01-01 (defaults to NOW) \n" " -p [SEED] generate password (with optional seed)\n" @@ -206,8 +205,6 @@ main(int argc, char **argv, char **env) case 'h': pr_usage(1); exit(0); - case 'v': - fprintf(stderr, "Version: %0.2f\n", VERSION); } } else if (opt_seed == 1) { MAC_ADDR = argv[arg];