Message from Dev
- This Project made by a 19-year-old developer who loves to code for no reaone hope anyone help me upgrade this project with new features and ideas.
- Join my discord server for support and updates:
i'll apreciate your support and feedback!
- About
- Project Structure
- Features
- Technical Details
- Installation & Usage
- Testing
- Notes
- Join the Community
- π Support the Project
BlackLAN is a terminal-only LAN messenger for developers who still write their own sockets. It supports multi-user real-time chat, command handling, colored terminal logs, and that raw [ OK ] console vibe. Built for local networks. Built for control. This project was made by a 19-year-old developer.
This is a full-featured LAN messaging system using Python in the command line, inspired by penetration testing tools and hacker-style UIs.
lan\_messenger/
β
βββ client.py
βββ server.py
βββ config/
β βββ settings.json
β βββ settings.py
βββ core/
β βββ connection.py
β βββ command\_handler.py
β βββ message\_router.py
β βββ user\_session.py
β
βββ utils/
β βββ logger.py
β βββ colors.py
β βββ encryption.py
β βββ animation.py
β
βββ chat\_logs/
β βββ server\_log.txt
β
βββ README.md
βββ requirements.txt
- Server handles multiple clients at once
- Usernames are entered at connection
- Broadcast messages in real-time with timestamp and username
- Message separation and formatting
- Admin commands:
/kick,/ban,/mute - Server alerts on join/leave
- Temporary mute with timers
/usersβ List all active users/msg <user>β Send private message/nick <name>β Change your username/ping <user>β Simulate ping latency/statusβ Set your current status (online/away/dnd)/clearβ Clear the terminal/exitβ Exit the client
[ OK ],[INFO],[ERROR]style messages usingcolorama- Connecting animation / spinner
- Custom logger with timestamps
- Basic end-to-end encryption using XOR with shared key (demo only)
- All settings are in
config/settings.json
- Built with Python 3.11+
- Multi-threaded server using
threading - Central command handler
- Error-resilient socket logic
- Easily configurable: host, port, buffer size, encryption key
- Python 3.11+
- Install required packages:
pip install -r requirements.txt-
Clone or extract the project
unzip lan_messenger.zip cd lan_messenger -
Edit Configuration (Optional)
nano config/settings.json
-
Run the Server
python3.11 server.py
-
Run Clients
python3.11 client.py
Open multiple terminals to simulate multi-user chat.
- Simulate many clients in different terminals
- Try all commands (
/msg,/nick,/ping,/status, etc.) - Use username
adminto test admin-only commands (/kick, etc.)
- The encryption method (XOR) is for demo purposes only β not secure.
- Admin authentication is username-based only. No password or real auth yet.
- This tool is meant for local network testing and learning socket programming.
Want to learn more, suggest features, or get support?
If you find this project useful and want to support its development, you can help through the following platforms:
- -_-
Made With β€οΈ by NullStudio