Skip to content

NullStudioInc/blacklan-messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BlackLAN Messenger

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: NullStudio i'll apreciate your support and feedback!

Table of Contents

About

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.

Project Structure


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

Features

Core Chat System

  • 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 & User Management

  • Admin commands: /kick, /ban, /mute
  • Server alerts on join/leave
  • Temporary mute with timers

User Commands

  • /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

Terminal Experience

  • [ OK ], [INFO], [ERROR] style messages using colorama
  • Connecting animation / spinner
  • Custom logger with timestamps

Optional Features

  • Basic end-to-end encryption using XOR with shared key (demo only)
  • All settings are in config/settings.json

Technical Details

  • 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

Installation & Usage

Requirements

  • Python 3.11+
  • Install required packages:
  pip install -r requirements.txt

Setup

  1. Clone or extract the project

    unzip lan_messenger.zip
    cd lan_messenger
  2. Edit Configuration (Optional)

    nano config/settings.json
  3. Run the Server

    python3.11 server.py
  4. Run Clients

    python3.11 client.py

Open multiple terminals to simulate multi-user chat.

Testing

  • Simulate many clients in different terminals
  • Try all commands (/msg, /nick, /ping, /status, etc.)
  • Use username admin to test admin-only commands (/kick, etc.)

Notes

  • 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.

Join the Community

Want to learn more, suggest features, or get support?

Join Discord Follow on GitHub

πŸ’– Support the Project

If you find this project useful and want to support its development, you can help through the following platforms:

PayPal
GitHub Sponsors
Patreon
Open Collective
Ko-fi
Liberapay

  • -_-

Made With ❀️ by NullStudio

About

BlackLAN is a terminal-only LAN messenger for developers who still write their own sockets. Supports multi-user real-time chat, command handling, colored terminal logs, and that raw [ OK ] vibe. Built for local networks. Built for control.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors

Languages