Tag Archives: Test

Fortinet webfilter test


# cat getthefilter.sh

#!/bin/bash
#wget http://fortiguard.com/webfilter
#New url..
wget http://fortiguard.com/webfilter/categories
grep wftest categories > raw
IN=`cat raw`
links=$(echo $IN | tr '"' "\n")
for addr in $links
do
if [[ $addr == *"html"* ]];then
echo $addr >> targets
fi
done

targets=`cat targets`
for filtaddr in $targets
do
echo http://fortiguard.com"$filtaddr"
wget -o /dev/null --spider -t 1 http://fortiguard.com"$filtaddr"
done
#rm raw targets webfilter