Last active
August 29, 2015 14:03
-
-
Save mcrisc/fbdbeecbcb08d67d6291 to your computer and use it in GitHub Desktop.
Simple script for scanning pen drives for common security threats from Windows world
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ $# -lt 1 ]; then | |
| echo "usage: $0 <directory>" | |
| exit 1 | |
| fi | |
| TARGET_DIR=$1 | |
| echo "Running clamscan..." | |
| clamscan -rv --bell --exclude='\.(JPG|jpg|MPG|mpg)' $TARGET_DIR | |
| echo "done." | |
| echo | |
| echo "Searching for *.{ini,inf,bat,cmd}... " | |
| find $TARGET_DIR -iname "*.ini" -or -iname "*.inf" -or -iname "*.bat" -or -iname "*.cmd" | |
| echo "done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment