-
Notifications
You must be signed in to change notification settings - Fork 0
/
scanner.sh
executable file
·42 lines (37 loc) · 948 Bytes
/
scanner.sh
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
36
37
38
39
40
41
42
#!/bin/bash
DATESTAMP=(`date -u +%F-%H:%M`)
if [ "$SCANTYPE" = "sslscan" ]
then
sslscan \
--show-certificate \
--targets=/mount/mpd-scanner/targets.txt \
--xml=/mount/mpd-scanner/output/$SCANTYPE-$DATESTAMP.xml
fi
if [ "$SCANTYPE" = "portscan" ]
then
nmap -v -Pn -r -R -sT -sV -O -A -p 1-48000 \
-iL /mount/mpd-scanner/targets.txt \
-oX /mount/mpd-scanner/output/$SCANTYPE-$DATESTAMP.xml
fi
if [ "$SCANTYPE" = "quickscan" ]
then
nmap -v -Pn -r -R -sT -sV -O -A \
-iL /mount/mpd-scanner/targets.txt \
-oX /mount/mpd-scanner/output/$SCANTYPE-$DATESTAMP.xml
fi
if [ "$SCANTYPE" = "hardcore" ]
then
nmap -v -Pn -r -R -sT -sV -O -A -p 1-48000 \
-iL /mount/mpd-scanner/targets.txt \
-oX /mount/mpd-scanner/output/$SCANTYPE-$DATESTAMP.xml \
--script http-methods,\
http-php-version,\
ms-sql-info,\
mysql-info,\
oracle-tns-version,\
rpcinfo,\
smb2-capabilities,\
ssl-cert,\
ssl-enum-ciphers
fi
exit