(self)
Print every result
Print every result
Print every result
def printResults(self):
        """
        Print every result
        """
        if len(self.results) == 0:
            print "\n[+] " + colored.yellow("RESULT:") + " No XSS Found :("
        else:
            print "\n[+] " + colored.green("RESULT:") + " Found XSS Injection points in " + colored.green("%s" % len(self.results)) + " targets"

            for r in self.results:
                r.printResult()

        # Print javascript analysis
        if self.getOption("dom") and len(self.javascript) == 0:
            print "\n[+] " + colored.yellow("RESULT:") + " No DOM XSS Found :("
            if len(self.wl_javascript) != 0:
                for wlj in self.wl_javascript:
                    print " |- Found a whitelisted javascript: %s" % wlj["description"]
        elif self.getOption("dom"):
            print "\n[+] " + colored.green("RESULT:") + " Found possible dom xss in " + colored.green("%s" % len(self.javascript)) + " javascripts"
            if len(self.wl_javascript) != 0:
                for wlj in self.wl_javascript:
                    print " |- Found a whitelisted javascript: %s" % wlj["description"]
            for js in self.javascript:
                js.printResult()
def printResults ( self ) : if len ( self . results ) == 0 : print "\n[+] " + colored . yellow ( "RESULT:" ) + " No XSS Found :(" else : print "\n[+] " + colored . green ( "RESULT:" ) + " Found XSS Injection points in " + colored . green ( "%s" % len ( self . results ) ) + " targets" for r in self . results : r . printResult ( ) # Print javascript analysis if self . getOption ( "dom" ) and len ( self . javascript ) == 0 : print "\n[+] " + colored . yellow ( "RESULT:" ) + " No DOM XSS Found :(" if len ( self . wl_javascript ) != 0 : for wlj in self . wl_javascript : print " |- Found a whitelisted javascript: %s" % wlj [ "description" ] elif self . getOption ( "dom" ) : print "\n[+] " + colored . green ( "RESULT:" ) + " Found possible dom xss in " + colored . green ( "%s" % len ( self . javascript ) ) + " javascripts" if len ( self . wl_javascript ) != 0 : for wlj in self . wl_javascript : print " |- Found a whitelisted javascript: %s" % wlj [ "description" ] for js in self . javascript : js . printResult ( )