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)
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)
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)
def startMalShare(): for mUrl in getMalShareList(): if isAcceptedUrl(mUrl): getWildFile(mUrl)
def fetchOSINT(url_list): logging.info('Spawned new OSINT spider.') for oUrl in url_list: if isAcceptedUrl(oUrl): getWildFile(oUrl)
def startVXVault(): for vUrl in getVXList(): if isAcceptedUrl(vUrl): getWildFile(vUrl)