Created
October 21, 2016 09:57
-
-
Save msm-code/e1d30197981e4253de0d6ba6ae6dd3f6 to your computer and use it in GitHub Desktop.
paper.python.de82eb5882f08c4bdbd882bd1eac058f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if hash == self.CFG_URL: # '48c2026b': | |
parsed['urls'] += [{'url': append_http(x)} for x in filter(None, map(get_domainc, raw.split(';')))] | |
elif hash == self.CFG_DGA_HASH: # 'd9aea02a': | |
parsed['dga_hash'] = [uint32(h) for h in chunks(raw, 4)] | |
elif hash == self.CFG_DOMAINS: # '095d4b1d': | |
parsed['domains'] += map(lambda x: {'cnc': x}, filter(None, map(get_domainc, raw.split(';')))) | |
elif hash == self.CFG_ENC_KEY: # '510be622': | |
parsed['encryption_key'] = raw | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment