-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWPScanScript.sh
More file actions
25 lines (17 loc) · 1.16 KB
/
WPScanScript.sh
File metadata and controls
25 lines (17 loc) · 1.16 KB
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
#!/bin/bash
wpscan --update
echo "Scanning - First site with WPScan"
wpscan --url site1.com --ignore-main-redirect -o /home/USER/Documents/site1.txt
echo "Completed Scan on First site"
echo "Time: $(date -Iseconds). WPScan." > /home/USER/Documents/sum.txt | awk '{print $0,"\n"}'
echo "Adding details to summary document - First site"
echo "First site" >> /home/USER/Documents/sum.txt | awk '{print $0,"\n"}'
echo "------------" >> /home/USER/Documents/sum.txt | awk '{print $0,"\n"}'
grep "URL:" /home/USER/Documents/site1.txt >> /home/USER/Documents/sum.txt | awk '{print $0,"\n"}'
echo "------------" >> /home/USER/Documents/sum.txt | awk '{print $0,"\n"}'
grep "WordPress version" /home/USER/Documents/site1.txt >> /home/USER/Documents/sum.txt | awk '{print $0,"\n"}'
echo "------------" >> /home/USER/Documents/sum.txt | awk '{print $0,"\n"}'
grep -i -B 4 "The version is out of date" /home/USER/Documents/site1.txt >> /home/USER/Documents/sum.txt | awk '{print $0,"\n"}'
echo "detials added to the summary document sum.txt"
echo "Scan complete your files are save here /home/USER/Documents/"
echo "NOTE - Make sure you have changes the USER section /home/USER/Documents/"