예제 #1
0
 def cracked_password(self, cracker, victim, password, value):
     '''
     This is created when a user successfully cracks another
     players password.
     '''
     user_msg = "Your password '%s' was cracked by %s" % (
         password, cracker.handle,
     )
     Notification.create_user(victim, "Security Breach", user_msg, ERROR)
     message = "%s hacked %s's bank account and stole $%d" % (
         cracker.handle, victim.team.name, value,
     )
     Notification.create_broadcast("Password Cracked", message, SUCCESS)
     self.io_loop.add_callback(self.push_broadcast)
     self.io_loop.add_callback(self.push_scoreboard)