SH scanner
This commit is contained in:
37
scan.sh
Normal file
37
scan.sh
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
|
||||||
|
#!bin/sh
|
||||||
|
#
|
||||||
|
# .SH Malware Scanner
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
version = "0.1"
|
||||||
|
|
||||||
|
user = "$1"
|
||||||
|
|
||||||
|
phishing = "patterns/phishing.txt"
|
||||||
|
base64 = "patterns/base64.txt"
|
||||||
|
mailing = "patterns/mailing.txt"
|
||||||
|
polymorphic = "patterns/polymorphic.txt"
|
||||||
|
|
||||||
|
# Scanning for Phishing
|
||||||
|
for i in $(cat $phishing)
|
||||||
|
do
|
||||||
|
grep -Rl -e $i /home/$user/public_html
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# Scanning for base64
|
||||||
|
for i in $(cat $base64)
|
||||||
|
do
|
||||||
|
grep -Rl -e $i /home/$user/public_html
|
||||||
|
done
|
||||||
|
|
||||||
|
# Scanning for Mailing Scripts
|
||||||
|
for i in $(cat $mailing)
|
||||||
|
do
|
||||||
|
grep -Rl -e $i /home/$user/public_html
|
||||||
|
done
|
||||||
|
|
||||||
Reference in New Issue
Block a user