Ejemplo n.º 1
0
 def setUpClass(cls):
     mage.connect()
     cls.a = mage.Assessment.create('EXTERNAL', name='UNITTEST')
     cls.ar_id = cls.a.start()
     cls.ar = mage.AssessmentRun.get(cls.ar_id)
     cls.asset = mage.Asset.create('DOMAIN', cls.TEST_ASSET)
     cls.ttp = mage.TTP.create('Port Scan', cls.ar_id, cls.asset.id)
     time.sleep(3)
Ejemplo n.º 2
0
 def setUpClass(cls):
     mage.connect()
     cls.a = mage.Assessment.create('EXTERNAL', name='UNITTEST')
     cls.ar_id = cls.a.start()
     cls.ar = mage.AssessmentRun.get(cls.ar_id)
     cls.lead = mage.Lead.create('Default Password on WEBSRV1',
                                 'Password has not been changed yet.',
                                 cls.ar_id)
     # give time to replicate to ES
     time.sleep(3)
Ejemplo n.º 3
0
 def setUpClass(cls):
     mage.connect()
Ejemplo n.º 4
0
 def setUpClass(cls):
     mage.connect()
     cls.a = mage.Assessment.create('EXTERNAL', name='UNITTEST')
     cls.ar_id = cls.a.start()
     cls.ar = mage.AssessmentRun.get(cls.ar_id)