Ejemplo n.º 1
0
                manly_input_result = get_one_result(line.strip(), "https")
                portScan_result_list.extend(manly_input_result)

            raw_lines = params.get("httpscan").get("flagurl")
            if raw_lines == [] or raw_lines is None:
                flagurl = []
            else:
                flagurl = params.get("httpscan").get("flagurl")

            logger.info(
                "----------------- HttpCheck Start ----------------------")
            t3 = time.time()

            from httpcheck.httpCheck import http_interface

            http_interface(portScan_result_list, timeout, pool, flagurl)
            t4 = time.time()
            logger.info("HttpCheck finish,time use : {}s".format(t4 - t3))
            logger.info(
                "----------------- HttpCheck Finish ---------------------")

    # 暴力破解
    if params.get("bruteforce"):
        bruteforce = params.get("bruteforce").get("run")
        if bruteforce is True:

            defaultdict = params.get("bruteforce").get("defaultdict")

            if params.get("bruteforce").get("users") == [] or params.get(
                    "bruteforce").get("users") is None:
                users = []
Ejemplo n.º 2
0
            pass

        filename = "https.txt"
        filepath = os.path.join(work_path, filename)
        try:
            with open(filepath, "rb") as f:
                file_lines = f.readlines()
                for line in file_lines:
                    manly_input_result = get_one_result(line.strip(), "https")
                    portScan_result_list.extend(manly_input_result)
        except Exception as E:
            pass

        logger.info("----------------- HttpCheck Start ----------------------")
        t3 = time.time()
        http_interface(portScan_result_list, timeout, pool, http_scan_urls)
        t4 = time.time()
        logger.info("HttpCheck finish,time use : {}s".format(t4 - t3))
        logger.info("----------------- HttpCheck Finish ---------------------")

    # 暴力破解
    # 暴力破解
    bf = args.bruteforce
    if len(bf) > 0:
        no_default_dict = args.no_default_dict
        if no_default_dict is not False:
            no_default_dict = True

        proto_list_all = [
            'ftp', 'ssh', 'rdp', 'smb', 'mysql', 'mssql', 'redis', 'mongodb',
            'memcached', 'postgresql', 'vnc'