From 11fb4e30938c1dc0ef7d6fb8374486b0e858f1fb Mon Sep 17 00:00:00 2001 From: Michael Constantine Dimopoulos Date: Tue, 12 Oct 2021 02:25:56 +0000 Subject: [PATCH] Updated interfaces and manpages --- README.md | 1 + app/napp.1 | 2 +- app/napp.c | 4 ++-- clean/nclean.1 | 4 ++-- clean/nclean.c | 18 +++++++++--------- com/ncom.c | 20 ++++++++++---------- enhance/nhan.c | 15 ++++++++------- enhance/nhance.1 | 2 +- inc/nin.c | 12 ++++++------ leet/nleet.1 | 6 +++--- leet/nleet.c | 8 ++++---- rev/nrev.1 | 6 +++--- rev/nrev.sh | 10 ++++++---- 13 files changed, 56 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index fbcf5f6..66213c9 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ https://www.youtube.com/watch?v=U0UmCeLJSkk&t=938s + nrev - A reversing tool, that appends the reserved versions of the lines at the end of the dictionary. + nleet - A leetifier. Replaces characters with Leet equivalents, such as @ instead of a, or 3 instead of e. + nclean - A tool for removing passwords that don't meet your criteria (too short, no special characters etc.) ++ napp - A tool that appends characters or words before or after the lines of the dictionary. + nwiz - A wizard that asks for the infromation and combines the tools together to create a final dictionary. ## Install diff --git a/app/napp.1 b/app/napp.1 index e0a76ab..bd8d16c 100644 --- a/app/napp.1 +++ b/app/napp.1 @@ -1,6 +1,6 @@ .\" Manpage for napp -.TH man 8 "10 Oct 2021" "1.0" "napp manual page" +.TH man 8 "10 Oct 2021" "1.1" "napp manual page" .SH NAME napp \- Narthex appender .SH SYNOPSIS diff --git a/app/napp.c b/app/napp.c index 86d5677..d77ffc5 100644 --- a/app/napp.c +++ b/app/napp.c @@ -20,7 +20,7 @@ #include #include -#define VERSION "v1.0" +#define VERSION "v1.1" #define BUFFER_SIZE 256 static void @@ -35,7 +35,7 @@ static void help(char * exename) { printf( "napp - Narthex appender %s\n" - "By Michael C. Dim. \n\n" + "By Michael Constantine Dimopoulos \n\n" "-c specify charset\n" "-w specify dictionary of words\n" diff --git a/clean/nclean.1 b/clean/nclean.1 index 0c0e77e..e259e84 100644 --- a/clean/nclean.1 +++ b/clean/nclean.1 @@ -1,6 +1,6 @@ -.\" Manpage for ncom +.\" Manpage for nclean -.TH man 8 "10 Oct 2021" "1.0" "nclean manual page" +.TH man 8 "10 Oct 2021" "1.1" "nclean manual page" .SH NAME nclean \- Narthex cleaner .SH SYNOPSIS diff --git a/clean/nclean.c b/clean/nclean.c index bd038b8..4c63123 100644 --- a/clean/nclean.c +++ b/clean/nclean.c @@ -21,7 +21,7 @@ #include #include -#define VERSION "v1.0" +#define VERSION "v1.1" #define BUFFER_SIZE 256 static void @@ -36,14 +36,14 @@ static void help(char *exename) { printf( "nclean - Narthex cleaner %s\n" - "By Michael C. Dim. \n\n" - - "-c Must have capital letters\n" - "-n Must have numbers\n" - "-s Must have symbols\n" - "-l Must have min length specified\n" - "-h Print this panel & exit\n" - "-v Print current version & exit\n\n" + "By Michael Constantine Dimopoulos \n\n" + + "-c must have capital letters\n" + "-n must have numbers\n" + "-s must have symbols\n" + "-l must have min length specified\n" + "-h print this panel & exit\n" + "-v print current version & exit\n\n" "Usage: cat [FILENAME] | %s [-c] [-n] [-s] [-l] 10\n", VERSION, exename); diff --git a/com/ncom.c b/com/ncom.c index 51c8dd5..5b5fe4e 100644 --- a/com/ncom.c +++ b/com/ncom.c @@ -28,24 +28,24 @@ #include #include -#define VERSION "v1.0" +#define VERSION "v1.1" #define BUFFER_SIZE 256 static void help(char * exename) { printf( "ncom - Narthex combinator %s\n" - "By Michael C. Dim. \n\n" + "By Michael Constantine Dimopoulos \n\n" - "-d Use dot separator\n" - "-u Use underscore separator\n" - "-m Use hyphen separator\n" - "-n Exclude numerical bases\n" - "-b Exclude base-appended\n" - "-h Print this panel & exit\n" - "-v Print current version & exit\n\n" + "-d use dot separator\n" + "-u use underscore separator\n" + "-m use hyphen separator\n" + "-n exclude numerical bases\n" + "-b exclude base-appended\n" + "-h print this panel & exit\n" + "-v print current version & exit\n\n" - "Usage: cat [FILENAME] | %s [OPTIONS]\n", + "Usage: cat [FILENAME] | %s [-d] [-u] [-m] [-n] [-b]\n", VERSION, exename); exit(EXIT_SUCCESS); } diff --git a/enhance/nhan.c b/enhance/nhan.c index e1c37a8..200132d 100644 --- a/enhance/nhan.c +++ b/enhance/nhan.c @@ -21,7 +21,7 @@ #include #include -#define VERSION "v1.2" +#define VERSION "v1.3" #define BUFFER_SIZE 256 @@ -29,13 +29,14 @@ static void help(char * exename) { printf( "nhance - Narthex enhancer %s\n" - "By Michael C. Dim. \n\n" + "By Michael Constantine Dimopoulos \n\n" - "-f Append full capitalization\n" - "-h Print this panel & exit\n" - "-v Print current version & exit\n\n" - "Usage: cat [FILENAME] | %s [OPTIONS]\n" - " %s [OPTIONS] [FILENAME]\n", + "-f append full capitalization\n" + "-h print this panel & exit\n" + "-v print current version & exit\n\n" + + "Usage: cat [FILENAME] | %s [-f]\n" + " %s [-f] [FILENAME]\n", VERSION, exename, exename); exit(EXIT_SUCCESS); } diff --git a/enhance/nhance.1 b/enhance/nhance.1 index 0562876..34aa7a3 100644 --- a/enhance/nhance.1 +++ b/enhance/nhance.1 @@ -1,6 +1,6 @@ .\" Manpage for nhance -.TH man 8 "15 Jul 2021" "1.2" "nhance manual page" +.TH man 8 "15 Jul 2021" "1.3" "nhance manual page" .SH NAME ninc \- Narthex enhancer .SH SYNOPSIS diff --git a/inc/nin.c b/inc/nin.c index 228ed60..7b9d777 100644 --- a/inc/nin.c +++ b/inc/nin.c @@ -23,20 +23,20 @@ #include #include -#define VERSION "v1.1" +#define VERSION "v1.2" #define BUFFER_SIZE 256 static void help(char * exename) { printf( "ninc - Narthex incrementor %s\n" - "By Michael C. Dim. \n\n" + "By Michael Constantine Dimopoulos \n\n" - "-n Increment numerical lines as well\n" - "-h Print this panel & exit\n" - "-v Print current version & exit\n\n" + "-n increment numerical lines as well\n" + "-h print this panel & exit\n" + "-v print current version & exit\n\n" - "Usage: cat [FILENAME] | %s [MIN] [MAX] [OPTIONS]\n", + "Usage: cat [FILENAME] | %s [MIN] [MAX] [-n]\n", VERSION, exename); exit(EXIT_SUCCESS); } diff --git a/leet/nleet.1 b/leet/nleet.1 index bc2a5d6..b3cf463 100644 --- a/leet/nleet.1 +++ b/leet/nleet.1 @@ -1,11 +1,11 @@ .\" Manpage for nleet -.TH man 8 "15 Jul 2021" "1.2" "nleet manual page" +.TH man 8 "15 Jul 2021" "1.3" "nleet manual page" .SH NAME nleet \- Narthex leetifier .SH SYNOPSIS -cat dictionary.txt | nhance [OPTIONS] > output.txt -nhance [OPTIONS] dictionary.txt +cat dictionary.txt | nleet > output.txt +nhance dictionary.txt .SH DESCRIPTION nleet reads from standard input or a file and appends to it the lines leetified (hello -> h3ll0). It prints to standard output. diff --git a/leet/nleet.c b/leet/nleet.c index b9f47e2..28274bb 100644 --- a/leet/nleet.c +++ b/leet/nleet.c @@ -24,7 +24,7 @@ #include #include -#define VERSION "v1.2" +#define VERSION "v1.3" #define BUFFER_SIZE 256 @@ -32,10 +32,10 @@ static void help(char * exename) { printf( "nleet - Narthex leetfier %s\n" - "By Michael C. Dim. \n\n" + "By Michael Constantine Dimopoulos \n\n" - "-h Print this panel & exit\n" - "-v Print current version & exit\n\n" + "-h print this panel & exit\n" + "-v print current version & exit\n\n" "Usage: cat [FILENAME] | %s\n" " %s [FILENAME]\n", VERSION, exename, exename); diff --git a/rev/nrev.1 b/rev/nrev.1 index 6ab9426..5161354 100644 --- a/rev/nrev.1 +++ b/rev/nrev.1 @@ -1,11 +1,11 @@ .\" Manpage for nrev -.TH man 8 "15 Jul 2021" "1.0" "nrev manual page" +.TH man 8 "15 Jul 2021" "1.1" "nrev manual page" .SH NAME nrev \- Narthex reverser .SH SYNOPSIS -cat dictionary.txt | nhance [OPTIONS] > output.txt -nhance [OPTIONS] dictionary.txt +cat dictionary.txt | nrev > output.txt +nrev dictionary.txt .SH DESCRIPTION nrev reads from standard input or a file and appends to it the lines reversed. It prints to standard output. diff --git a/rev/nrev.sh b/rev/nrev.sh index ac41f68..a24bc71 100755 --- a/rev/nrev.sh +++ b/rev/nrev.sh @@ -9,15 +9,17 @@ # ary, it will reprint it again but # with each line reversed. -version="1.0" +version="1.1" if [ "$1" = "-v" ]; then echo version; exit; elif [ "$1" = "-h" ]; then printf "nrev - Narthex reverser ${version} \n"; - printf "By Michael C. Dim. \n\n"; - printf '%s\n' "-h Print this panel & exit"; - printf '%s\n\n' "-v Print current version & exit"; + printf "By Michael Constantine Dimopoulos \n\n"; + + printf '%s\n' "-h print this panel & exit"; + printf '%s\n\n' "-v print current version & exit"; + printf "Usage: nrev [FILENAME]\n"; printf " cat [FILENAME] | nrev\n"; exit;