コード例 #1
0
 def attack(self, params):
     """To be run attacker callback"""
     assert execute.is_jailed(), 'Must be jailed for attack'
     self.attacker(params)
コード例 #2
0
 def test(self, params):
     """To be run tester callback"""
     assert execute.is_jailed(), 'Must be jailed for tester'
     return self.tester(params)
コード例 #3
0
 def pre_attack(self, params):
     """To be run pre-attacker callback"""
     assert execute.is_jailed(), 'Must be jailed for pre-attack'
     self.pre_attacker(params)
     a = 'test %s %s' % (self.desc, ' '.join(params))
     open('/.TEST', 'w').write('%s' % a)