summaryrefslogtreecommitdiff
path: root/security.py
AgeCommit message (Collapse)AuthorFilesLines
2021-01-05Fix pyflakes3 warningsJesusaves1-1/+2
2020-12-31Fix typos and a bug of a swapped max and min functionJesusaves1-2/+2
2020-12-31Add support for custom battle backgrounds.Jesusaves1-1/+1
Fix typos and minor bugs.
2020-12-31Registration failure now only gives 2 lame points.Jesusaves1-0/+11
This means each connection can attempt up to three registrations. Raise to 3 in case of attack :p
2020-12-31Relicense the game to GPLv3.Jesusaves1-10/+9
utils.py can still be used under the LGPL. The LGPL license present in git history is no longer valid, but already issued copies still are. Needless to say, there are no "already issued copies"...
2020-12-27Manually casting ban or kline will now disconnect sessions as wellJesusaves1-1/+1
2020-12-27Disclose about automatic bans, and make score rule read from consts.pyJesusaves1-2/+3
Move the TODO about dropping already established connections from server.py to security.py
2020-12-23Update README with the command list, add aliases, add unban, and cleanup.Jesusaves1-0/+9
2020-12-18Create tokens (unfinished, needs IP checking). Document max length experiments.Jesusaves1-1/+1
Login still not enabled.
2020-12-17Remove some clutter print messagesJesusaves1-5/+2
2020-12-17New function: security.score()Jesusaves1-5/+40
Whenever a bad packet is received or something, it adds a "score" to the conn. If it exceeds a certain threshold (5 for unauthed, 30 for authed users), the connection is killed and IP is blacklisted for BAN_TIME (default: 3 mins)
2020-12-17Move blacklist functions to security.pyJesusaves1-0/+81