예제 #1
0
파일: testrun.py 프로젝트: carriercomm/yeti
o6 = Observable.add_text("http://hrakrue-home.de/87yte55/6t45eyv.exe")
Link.connect(o6, bartalex_callback2)
Link.connect(o6, bartalex).add_history("Queries")
Link.connect(o6, dridex).add_history("Drops")
o7 = Observable.add_text("http://kdojinyhb.wz.cz/87yte55/6t45eyv.exe")
o8 = Observable.add_text("http://kdojinyhb.wz.cz/87yte55/6t45eyv.exe2")
o9 = Observable.add_text("http://zeuscpanel.com/gate.php")
o9.tag('zeus')

t1 = Observable.add_text("http://toto.com")
t2 = Observable.add_text("Http://tata.com")
t3 = Observable.add_text("hxxp://tomchop[.]me")
l = Link.connect(t1, t2)
print "Links", Link.objects(src=t1)
t2.delete()
print "Links", Link.objects(src=t1)

test = "http://soccersisters.net/mg.jpg"

for i in Indicator.objects():
    if i.match(test):
        for type, nodes in i.neighbors().items():
            print " {}".format(type)
            for l, node in nodes:
                print {"type": type, "link": l.info(), "node": node.info()}

print "Test with the following:"
print o3.value
print o7.value
print t1.value
예제 #2
0
o6 = Observable.add_text("http://hrakrue-home.de/87yte55/6t45eyv.exe")
Link.connect(o6, bartalex_callback2)
Link.connect(o6, bartalex).add_history('testrun', 'Queries')
Link.connect(o6, dridex).add_history('testrun', 'Drops')
o7 = Observable.add_text("http://kdojinyhb.wz.cz/87yte55/6t45eyv.exe")
o8 = Observable.add_text("http://kdojinyhb.wz.cz/87yte55/6t45eyv.exe2")
o9 = Observable.add_text("http://zeuscpanel.com/gate.php")
o9.tag('zeus')

t1 = Observable.add_text("http://toto.com")
t2 = Observable.add_text("Http://tata.com")
t3 = Observable.add_text("hxxp://tomchop[.]me")
l = Link.connect(t1, t2)
print "Links", Link.objects(src=t1)
t2.delete()
print "Links", Link.objects(src=t1)

test = "http://soccersisters.net/mg.jpg"

for i in Indicator.objects():
    if i.match(test):
        for type, nodes in i.neighbors().items():
            print " {}".format(type)
            for l, node in nodes:
                print {"type": type, "link": l.info(), "node": node.info()}

print "Test with the following:"
print o3.value
print o7.value
print t1.value