Skip to content

Commit

Permalink
Updated interfaces and manpages
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDim02 committed Oct 12, 2021
1 parent 99ceb88 commit 11fb4e3
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 52 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/napp.1
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/napp.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <unistd.h>
#include <ctype.h>

#define VERSION "v1.0"
#define VERSION "v1.1"
#define BUFFER_SIZE 256

static void
Expand All @@ -35,7 +35,7 @@ static void
help(char * exename)
{
printf( "napp - Narthex appender %s\n"
"By Michael C. Dim. <[email protected]>\n\n"
"By Michael Constantine Dimopoulos <[email protected]>\n\n"

"-c specify charset\n"
"-w specify dictionary of words\n"
Expand Down
4 changes: 2 additions & 2 deletions clean/nclean.1
Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 9 additions & 9 deletions clean/nclean.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <ctype.h>
#include <unistd.h>

#define VERSION "v1.0"
#define VERSION "v1.1"
#define BUFFER_SIZE 256

static void
Expand All @@ -36,14 +36,14 @@ static void
help(char *exename)
{
printf( "nclean - Narthex cleaner %s\n"
"By Michael C. Dim. <[email protected]>\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 <[email protected]>\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);
Expand Down
20 changes: 10 additions & 10 deletions com/ncom.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@
#include <unistd.h>
#include <ctype.h>

#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. <[email protected]>\n\n"
"By Michael Constantine Dimopoulos <[email protected]>\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);
}
Expand Down
15 changes: 8 additions & 7 deletions enhance/nhan.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,22 @@
#include <errno.h>
#include <string.h>

#define VERSION "v1.2"
#define VERSION "v1.3"
#define BUFFER_SIZE 256


static void
help(char * exename)
{
printf( "nhance - Narthex enhancer %s\n"
"By Michael C. Dim. <[email protected]>\n\n"
"By Michael Constantine Dimopoulos <[email protected]>\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);
}
Expand Down
2 changes: 1 addition & 1 deletion enhance/nhance.1
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 6 additions & 6 deletions inc/nin.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@
#include <string.h>
#include <ctype.h>

#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. <[email protected]>\n\n"
"By Michael Constantine Dimopoulos <[email protected]>\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);
}
Expand Down
6 changes: 3 additions & 3 deletions leet/nleet.1
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
8 changes: 4 additions & 4 deletions leet/nleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
#include <errno.h>
#include <string.h>

#define VERSION "v1.2"
#define VERSION "v1.3"
#define BUFFER_SIZE 256


static void
help(char * exename)
{
printf( "nleet - Narthex leetfier %s\n"
"By Michael C. Dim. <[email protected]>\n\n"
"By Michael Constantine Dimopoulos <[email protected]>\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);
Expand Down
6 changes: 3 additions & 3 deletions rev/nrev.1
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
10 changes: 6 additions & 4 deletions rev/nrev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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. <[email protected]>\n\n";
printf '%s\n' "-h Print this panel & exit";
printf '%s\n\n' "-v Print current version & exit";
printf "By Michael Constantine Dimopoulos <[email protected]>\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;
Expand Down

0 comments on commit 11fb4e3

Please sign in to comment.