File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change
1
+ 3.2 2021 Oct 29
2
+ Fixed a compatibilty bug in misc/serializephp.sh
3
+ Updated PHP rules
4
+ Updated Java rules
5
+ Updated fruit rules
6
+ Updated secret rules
7
+ Updated default
8
+ Updated android rules (@r3zk0n)
9
+ Updated dotnet rules
10
+ Changed misc/gitlog.sh to an interactive format
11
+ Added *.map to files that are ignored unless -A is used
12
+ Fixed line endings in some rule files
13
+ Altered some error handling slightly
14
+
1
15
3.1 2021 Jun 21
2
16
Updated secret rules
3
17
Updated dotnet rules
6
20
Added ~/graudit/signatures to database locations
7
21
Updated documentation (@Montycarlo)
8
22
9
-
10
23
3.0 2021 Apr 29
11
24
Fixed broken Java rule causing massive false positives
12
25
Additional PHP fruit rules
Original file line number Diff line number Diff line change 4
4
# Released under the GPL licence
5
5
set -e
6
6
set -o pipefail
7
- VERSION=' 3.1 '
7
+ VERSION=' 3.2 '
8
8
basedir=$( dirname " $0 " )
9
9
BINFILE=$( which grep)
10
10
@@ -16,7 +16,7 @@ vimlines="#"
16
16
color=' always'
17
17
sigdb=' default'
18
18
separator=' ##############################################'
19
- excludefiles=' --exclude=*.bz2 --exclude=*.gz --exclude=*.zip --exclude=*.rar --exclude=*.gif --exclude=*.jpg --exclude=*.png'
19
+ excludefiles=' --exclude=*.bz2 --exclude=*.gz --exclude=*.zip --exclude=*.rar --exclude=*.gif --exclude=*.jpg --exclude=*.png --exclude=*.map '
20
20
21
21
# Save custom colors
22
22
OLD_COLORS=$GREP_COLORS
@@ -43,7 +43,7 @@ banner() {
43
43
\___ /|__| (____ /____/\____ | |__||__|
44
44
/_____/ \/ \/
45
45
grep rough audit - static analysis tool
46
- v3.1 written by @Wireghoul
46
+ v3.2 written by @Wireghoul
47
47
=================================[justanotherhacker.com]==='
48
48
fi
49
49
}
@@ -154,8 +154,7 @@ while getopts "AbBhvilLzZd:c:x:" opt; do
154
154
A)
155
155
excludefiles=" "
156
156
;;
157
- \? )
158
- # echo "Invalid option: -$OPTARG" >&2
157
+ \? ) # unknown option
159
158
usage
160
159
exit 2
161
160
;;
@@ -190,8 +189,9 @@ if [ -z "$1" ]; then
190
189
fi
191
190
192
191
if [ ! -e $database ]; then
193
- echo " database path not found: $database , try running graudit with -l" >&2
194
- usage
192
+ banner
193
+ echo
194
+ echo " database path not found for db: \" $database \" , try running graudit -h" >&2
195
195
exit 2
196
196
fi
197
197
You can’t perform that action at this time.
0 commit comments