INNER CODE UNIT · Python

waf_detect

faiyazahmad07/xss_vibes · Waf.py:7

    def waf_detect(self):
        wafw00f = WAFW00F(self.url)
        result = wafw00f.identwaf()
        if result:
            result = result[0].lower()
        else:
            return None
        #print(result)
        wafs = self.fetch_names('waf_list.txt')
        for waf in wafs:
            if waf in result:
                #print(waf)
                return waf
        return None

    @staticmethod
    def fetch_names(filename):
        with open(filename,'r') as waf_list:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…