示例#1
0
文件: rc4.py 项目: kotnik/scanner
    def check(self, url, host_info):
        host_info[self.description()] = None
        if host_info["ssl checked"].get():
            return None
        else:
            output = check_call([
                "openssl", "s_client", "-connect", "{}:443".format(url),
                "-cipher", "RC4",
            ])
            if "alert handshake failure" in output:
                host_info[self.description()] = False
                return False

            host_info[self.description()] = True
            return True
示例#2
0
    def check(self, url, host_info):
        host_info[self.description()] = None
        if host_info["ssl checked"].get():
            return None
        else:
            output = check_call([
                "openssl",
                "s_client",
                "-connect",
                "{}:443".format(url),
                "-fallback_scsv",
                "-no_tls1_2",
            ])
            if "alert inappropriate fallback" in output:
                host_info[self.description()] = True
                return True

            host_info[self.description()] = False
            return False