Skip to content

Instantly share code, notes, and snippets.

@marcelsauer4711
Last active March 31, 2022 09:42
Show Gist options
  • Save marcelsauer4711/0aec24107fcefa2b6d2e63fbf2907a3c to your computer and use it in GitHub Desktop.
Save marcelsauer4711/0aec24107fcefa2b6d2e63fbf2907a3c to your computer and use it in GitHub Desktop.
# search in jar/war files beginning from the current directory recursively
# prints out all matches where "spring" classes are detected
for file in `find ./ -type f \( -iname \*.war -o -iname \*.jar \)`; do echo "######## searching in $file for spring stuff ######"; jar tvf $file | grep "spring" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment