Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save msm-code/e1d30197981e4253de0d6ba6ae6dd3f6 to your computer and use it in GitHub Desktop.
Save msm-code/e1d30197981e4253de0d6ba6ae6dd3f6 to your computer and use it in GitHub Desktop.
paper.python.de82eb5882f08c4bdbd882bd1eac058f
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