From c28975bbb6b98cc09a5cbd3a928e26206f28994c Mon Sep 17 00:00:00 2001 From: Felix <13922835+use-to@users.noreply.github.com> Date: Sat, 11 Nov 2023 21:04:05 +0100 Subject: [PATCH] update random script --- generate.sh | 14 +++++++++++--- random.sh | 3 ++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/generate.sh b/generate.sh index 8fdf213..56873c2 100755 --- a/generate.sh +++ b/generate.sh @@ -1,6 +1,6 @@ README="README.md" WORDLIST="rockme.txt" -TMP_WORDLIST="tmp_rockme.txt" +TMP_WORDLIST="tmp_$WORDLIST" WORDLIST_COMPRESSED="rockme.tar.gz" echo "Trim entire wordlist..." @@ -14,7 +14,7 @@ echo "Counting words..." WORD_COUNT=($(wc -l $WORDLIST)) echo "Compressing wordlist..." -tar cfvz $WORDLIST_COMPRESSED $WORDLIST +tar cfvz $WORDLIST_COMPRESSED $WORDLIST > /dev/null echo "Calculating checksums..." MD5=($(md5sum $WORDLIST_COMPRESSED)) @@ -24,11 +24,17 @@ SHA256=($(sha256sum $WORDLIST_COMPRESSED)) echo "Generating README.md" echo "# Buzzwords " > $README -echo "The largest buzzword list collection on the globe. Including words like COWORKING... AND MANY MORE!!!" >> $README + +examples=($(sh random.sh 3)) +echo "The largest buzzword list collection on the globe. Including words like \`${examples[0]}\`, \`${examples[1]}\`, \`${examples[2]}\`, ... AND MANY MORE!!!" >> $README + +echo "" >> $README echo "## Words " >> $README echo "This wordlist contains ${WORD_COUNT} words. IT IS SOOO AMAZING!" >> $README +echo "" >> $README + echo "## Checksums" >> $README echo $WORDLIST_COMPRESSED >> $README echo "| Algorithm | Checksum |" >> $README @@ -37,6 +43,8 @@ echo "| MD5 | $MD5 |" >> $README echo "| SHA1 | $SHA1 |" >> $README echo "| SHA256 | $SHA256 |" >> $README +echo "" >> $README + echo "## Important" >> $README echo "Don't use normal text editors to open this file unless you have about 16 GB of RAM, or you may face RAM Crash." >> $README diff --git a/random.sh b/random.sh index d5fb3d3..21e148a 100755 --- a/random.sh +++ b/random.sh @@ -1 +1,2 @@ -sort -R rockme.txt | head -n 1 +COUNT=${1:-1} +sort -R rockme.txt | head -n $COUNT