-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpost-nikto.sh
13 lines (11 loc) · 989 Bytes
/
post-nikto.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
################################
# Post Nikto Stuff #
# This should be run after the #
# nikto screens are completed #
################################
#Checking Nikto Results for Cookies without HTTPOnly flag set
echo "Checking Nikto Results for Cookies without HTTPOnly flag set"
for i in $(ls ./init-recon/nikto/*-nikto.txt); do cat $i | fgrep -q "httponly flag" && echo -n $i | cut -d '/' -f 3 | sed 's/-/:/g' | sed 's/.txt//g' >> cookie_httponly.txt && cat $i | grep "httponly flag" | awk -F " " '{ print " "$4}' >> cookie_httponly.txt; done
#Checking Nikto Results for Cookies without Secure flag set
echo "Checking Nikto Results for Cookies without Secure flag set"
for i in $(ls ./init-recon/nikto/*-nikto.txt); do cat $i | fgrep -q "without the secure flag" && echo -n $i | cut -d '/' -f 3 | sed 's/-/:/g' | sed 's/.txt//g' >> cookie_secure.txt && cat $i | grep "without the secure flag" | awk -F " " '{ print " "$5}' >> cookie_secure.txt; done