def create_cracked_password_events(self, cracker, victim, password, value): user_msg = "Your password '%s' was cracked by %s." % (password, cracker.handle) evt_id = Notifier.user_warning(victim, "Security Breach", user_msg) event1 = (self.push_user_notification, {"event_uuid": evt_id, "team_id": victim.team.id, "user_id": victim.id}) message = "%s hacked %s's bank account and stole $%d" % (cracker.handle, victim.team.name, value) evt_id = Notifier.broadcast_custom("Password Cracked", message, cracker.avatar) event2 = (self.push_broadcast_notification, {"event_uuid": evt_id}) return event1, event2
def cracked_password(self, cracker, victim, password, value): user_msg = "Your password '%s' was cracked by %s." % ( password, cracker.handle, ) evt_id = Notifier.user_warning(victim, "Security Breach", user_msg) self.push_user_notification(evt_id, victim.team.id, victim.id) message = "%s hacked %s's bank account and stole $%d" % ( cracker.handle, victim.team.name, value, ) evt_id = Notifier.broadcast_custom("Password Cracked", message, cracker.avatar ) self.push_broadcast_notification(evt_id)
def cracked_password(self, cracker, victim, password, value): user_msg = "Your password '%s' was cracked by %s." % ( password, cracker.handle, ) evt_id = Notifier.user_warning(victim, "Security Breach", user_msg) self.push_user_notification(evt_id, victim.team.id, victim.id) message = "%s hacked %s's bank account and stole $%d" % ( cracker.handle, victim.team.name, value, ) evt_id = Notifier.broadcast_custom("Password Cracked", message, cracker.avatar) self.push_broadcast_notification(evt_id)
def create_cracked_password_events(self, cracker, victim, password, value): user_msg = "Your password '%s' was cracked by %s." % ( password, cracker.handle, ) evt_id = Notifier.user_warning(victim, "Security Breach", user_msg) event1 = (self.push_user_notification, { 'event_uuid': evt_id, 'team_id': victim.team.id, 'user_id': victim.id }) message = "%s hacked %s's bank account and stole $%d" % ( cracker.handle, victim.team.name, value, ) evt_id = Notifier.broadcast_custom("Password Cracked", message, cracker.avatar) event2 = (self.push_broadcast_notification, {'event_uuid': evt_id}) return event1, event2