def testNbDomains(self): self.assertEqual(3, len(Torpig.domains())) self.assertEqual(1000, len(ZeusBot.domains())) self.assertEqual(1000, len(Cryptolocker.domains())) self.assertEqual(2048, len(Necurs.domains())) self.assertEqual(64, len(Symmi.domains())) self.assertEqual(40, len(Ranbyus.domains()))
def testDomainLifetime(self): self.assertEqual(86400, Torpig.domainsLifetime()) self.assertEqual(7 * 86400, ZeusBot.domainsLifetime()) self.assertEqual(86400, Cryptolocker.domainsLifetime()) self.assertEqual(4 * 86400, Necurs.domainsLifetime()) self.assertEqual(16 * 86400, Symmi.domainsLifetime()) self.assertEqual(86400, Ranbyus.domainsLifetime())
def testCouldUseDomain(self): self.assertTrue(Torpig.couldUseDomain('dhidxguag.biz')) self.assertTrue(ZeusBot.couldUseDomain('zrtokdghbcdgkijfcxvbh.com')) self.assertTrue(Cryptolocker.couldUseDomain('gfrtgcfgvopvgg.co.uk')) self.assertTrue(Necurs.couldUseDomain('ultrttvbvjaanrj.jp')) self.assertTrue(Symmi.couldUseDomain('baugkoosdui.ddns.net')) self.assertTrue(Ranbyus.couldUseDomain('hcfoopojnuqxho.su'))