diff options
| -rwxr-xr-x | pass2txt.sh | 19 | ||||
| -rw-r--r-- | sensitive-data-defender.sh | 4 | ||||
| -rw-r--r-- | sshd-secmon.sh | 2 |
3 files changed, 25 insertions, 0 deletions
diff --git a/pass2txt.sh b/pass2txt.sh new file mode 100755 index 0000000..6317feb --- /dev/null +++ b/pass2txt.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +#this script will take the passwords from the "pass" databaes (~/.password) and outputs them into a text file + +passdb=`realpath ~/.password-store/` +outfile="./passwords-in-plaintext.txt" +if [[ $1 ]]; then + outfile="$1" +fi +echo "reading from "${passdb} +echo "and writing to "${outfile} + + +for f in `find ${passdb} | grep \.gpg`; do + echo $f >> ${outfile} + pass `echo $f | sed 's/\.gpg//g'` >> ${outfile} + echo "" >> ${outfile} +done + diff --git a/sensitive-data-defender.sh b/sensitive-data-defender.sh new file mode 100644 index 0000000..b8c1451 --- /dev/null +++ b/sensitive-data-defender.sh @@ -0,0 +1,4 @@ +#!/bin/bash +#watches access to sensitve paths on storage, logs when accessed by non-whitelisted IP. root will be notified upon next login. + + diff --git a/sshd-secmon.sh b/sshd-secmon.sh new file mode 100644 index 0000000..85d142c --- /dev/null +++ b/sshd-secmon.sh @@ -0,0 +1,2 @@ +#!/bin/bash +#SSH security monitor. logs all successful ssh log ins, repeated failed attempts, attempts at root, |
