Skip to content

Commit

Permalink
update generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
felixevers committed Nov 11, 2023
1 parent c052e10 commit 1b27cf0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 11 additions & 3 deletions generate.sh
Original file line number Diff line number Diff line change
@@ -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..."
Expand All @@ -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))
Expand All @@ -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
Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion random.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sort -R rockme.txt | head -n 1
ARG1=${1:-1}
sort -R rockme.txt | head -n $ARG1

0 comments on commit 1b27cf0

Please sign in to comment.