Console Messenger created by Patryk 'UltiPro' Wójtowicz using Python and RSA encryption.
Server-client application for console communication. The application uses the RSA algorithm (1024 bit length) to encrypt communication. The application has a rich palette of commands, which you can read below. In addition, information about banned users is saved, administrators are not saved due to the lack of authentication in the application, which could result in impersonating an unconnected administrator. Nicknames shorter than 3 characters and longer than 24 characters are not allowed. Two or more users cannot have the same nickname. A single message cannot be longer than 128 characters and shorter than 1 character. The application has lots of colorful communications to understand what is going on during the app is running. Communication and system errors are also handled, allowing you to use the application smoothly. Warning! Application tested only on Windows 10!
Dependencies:
- colorama 0.4.6
- mpmath 1.3.0
- sympy 1.12
Installation:
cd "/Console Messenger"
pip install -r requirements.txt
python server.py [ip-address] [port]
python server.py [ip-address]
python server.py
Property | Value |
---|---|
ip-address | 127.0.0.1 |
port | 50500 |
/stop -> Closes server.
/clear -> Clears console.
/msg [message] -> Sends server message to all.
/kick [nickname] -> Kicks user from server.
/admin [nickname] -> Gives user admin permissions.
/unadmin [nickname] -> Takes off user admin permissions.
/ban [nickname] -> Bans user from server.
/unban [nickname] -> Unbans user from server.
/list u -> Prints list of connected users.
/list a -> Prints list of connected users with admin permissions.
/list b -> Prints list of banned users.
/help -> Prints commands information.
python client.py [nickname] [ip-address] [port]
python client.py [nickname] [ip-address]
python client.py [nickname]
python client.py
Property | Value |
---|---|
nickname | User |
ip-address | 127.0.0.1 |
port | 50500 |
/stop -> Closes application.
/clear -> Clears console.
/pv [nickname] [message] -> Sends a private message to the specified user.
/kick [nickname] -> Kicks user from server. (requires admin permissions)
/ban [nickname] -> Bans user from server. (requires admin permissions)
/unban [nickname] -> Unbans user from server. (requires admin permissions)
/list u -> Prints list of connected users.
/list a -> Prints list of connected users with admin permissions.
/list b -> Prints list of banned users.
/help -> Prints commands information.