def attack(self, params): """To be run attacker callback""" assert execute.is_jailed(), 'Must be jailed for attack' self.attacker(params)
def test(self, params): """To be run tester callback""" assert execute.is_jailed(), 'Must be jailed for tester' return self.tester(params)
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)