Skip to content

Commit 37d014f

Browse files
committed
Bumped version, added signature dir
1 parent 83806f4 commit 37d014f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

graudit

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Released under the GPL licence
55
set -e
66
set -o pipefail
7-
VERSION='3.0'
7+
VERSION='3.1'
88
basedir=$(dirname "$0")
99
BINFILE=$(which grep)
1010

@@ -43,7 +43,7 @@ banner() {
4343
\___ /|__| (____ /____/\____ | |__||__|
4444
/_____/ \/ \/
4545
grep rough audit - static analysis tool
46-
v3.0 written by @Wireghoul
46+
v3.1 written by @Wireghoul
4747
=================================[justanotherhacker.com]==='
4848
fi
4949
}
@@ -96,6 +96,9 @@ listdb () {
9696
if [ -d "$basedir"/misc/ ]; then
9797
ls -1 "$basedir"/misc/*.db 2>/dev/null
9898
fi
99+
if [ -d ~/graudit/signatures/ ]; then
100+
ls -1 ~/graudit/signatures/*.db 2>/dev/null
101+
fi
99102
}
100103

101104
while getopts "AbBhvilLzZd:c:x:" opt; do
@@ -174,6 +177,8 @@ elif [ -f "$basedir/signatures/$sigdb.db" ]; then
174177
database="$basedir/signatures/$sigdb.db"
175178
elif [ -f "$basedir/misc/$sigdb.db" ]; then
176179
database="$basedir/misc/$sigdb.db"
180+
elif [ -f "$HOME/graudit/signatures/$sigdb.db" ]; then
181+
database="$HOME/graudit/signatures/$sigdb.db"
177182
else
178183
database="$sigdb"
179184
fi

0 commit comments

Comments
 (0)