Ejemplo n.º 1
0
def startMalShare():
    if baseConfig.malShareRemoteOnly.lower() == "yes":
        for mUrl in getMalShareList():
            mUrlHash = md5SumString(mUrl)
            if isNewEntry(urlHash=mUrlHash):
                logging.info("Downloading from the wild: {0}".format(mUrl))
                getWildFile(mUrl, mUrlHash)

    else:
        for mHash in getMalShareDigest():
            if isNewEntry(fileHash=mHash):
                if baseConfig.malShareRemoteFirst.lower() == "yes":
                    mUrl = getMalShareSource(mHash)
                    mUrlHash = md5SumString(mUrl)
                    logging.info(
                        "Attempting remote download first: {0}".format(mUrl))
                    if isNewEntry(urlHash=mUrlHash):
                        if not getWildFile(mUrl, mUrlHash):
                            logging.info(
                                "Remote download failed. Downloading from MalShare: {0}"
                                .format(mHash))
                            getMalShareFile(mHash)
                else:
                    logging.info(
                        "Downloading from MalShare: {0}".format(mHash))
                    getMalShareFile(fileHash)
Ejemplo n.º 2
0
def startVXVault():
    for vUrl in getVXList():
        print vUrl
        vUrlHash = md5SumString(vUrl)
        if isNewEntry(urlHash=vUrlHash):
            logging.info("Downloading from the wild: {0}".format(vUrl))
            getWildFile(vUrl, vUrlHash)
Ejemplo n.º 3
0
def startMalc0de():
    for mUrl in getMalc0deList():
        mUrlHash = md5SumString(mUrl)
        if isNewEntry(urlHash=mUrlHash):
            logging.info("Downloading from the wild: {0}".format(mUrl))
            getWildFile(mUrl, mUrlHash)