Created
December 15, 2015 14:42
-
-
Save anthonykasza/09b54e3f76e4855793dc to your computer and use it in GitHub Desktop.
domains2yara
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
import random | |
import fileinput | |
print 'import "cuckoo"' | |
a='a444' | |
for d in fileinput.input(): | |
d = d.strip() | |
a = 'a%d' % (random.randint(0, 100000000)) | |
print "rule %s" % (a) | |
print "{" | |
print " condition:" | |
print " cuckoo.network.dns_lookup(/%s/)" % (d.replace(".", "\.")) | |
print "}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment