-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspringhound.sh
More file actions
35 lines (24 loc) · 939 Bytes
/
springhound.sh
File metadata and controls
35 lines (24 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
echo "
.__ .__ .___
___________________|__| ____ ____ | |__ ____ __ __ ____ __| _/
/ ___/\____ \_ __ \ |/ \ / ___\| | \ / _ \| | \/ \ / __ |
\___ \ | |_> > | \/ | | \/ /_/ > Y ( <_> ) | / | \/ /_/ |
/____ >| __/|__| |__|___| /\___ /|___| /\____/|____/|___| /\____ |
\/ |__| \//_____/ \/ \/ \/
v1.00 Tomas Beaujean <https://linktr.ee/mebibite>
Usage: ./springhound.sh root_directory
Unpacking and analyzing JAR files...
"
for jarfile in $(find $1 -iname '*.jar')
do
jarfilescan=$(unzip -p $jarfile META-INF/MANIFEST.MF | grep springframework)
if [ -n "$jarfilescan" ]; then
echo "File: $jarfile
"
jarfilecontents=$(unzip -p $jarfile META-INF/MANIFEST.MF)
echo "${jarfilecontents}
---------------
"
fi
done