Coder Social home page Coder Social logo

aniko33 / charles-csec Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 3.0 150 KB

CSEC is a client-based encrypted chat. allows you to avoid network sniffing or an attack done directly from the server. it is easy to use and modify and is available on Linux, Windows, Mac.

Home Page: https://csec-project-github.web.app/

License: GNU General Public License v3.0

Python 57.20% HTML 25.71% CSS 17.09%
chatroom cryptography csec cyber decks encrypted-chat hacking mr-robot python python-chat

charles-csec's Introduction

Charles CSEC

Version Platform Python_version

Index

Features

  • RSA encryption

  • Easy to read code

  • Protected by network sniffer

  • File upload with Anonfile

  • No trace of your IP

Installation

From source code

You need to have Python and PIP installed which you can download from your package manager or site.

After installing Python and PIP you need to install program dependencies. You can with this command:

git clone https://github.com/aniko33/Charles-CSEC && cd Charles-CSEC

Then, you will need to install python dependencies:

pip install -r requirements.txt

After you installed the various dependencies, now you can customise your configurations your server or start your client.

From the compiled version

You have to go to the latest releases and you have to download the client or the server depending on what you want to do.

Important note

If you have installed the server version, create a file named config.json and set the default configurations.

Configuration

To configure your server, open the config.json file in the following path: server/config.json.

Scroll to the top and edit this part:

{
    "ip": "127.0.0.1",
    "port": 8889,
    "buffer": 1024,
    "welcome_message": "[red]welcome to <chat name>[/red]",
    "protected_by_password": false,
    "password": "P4ssw0rd"
}
Variable Description
ip The IP address where the server will start listening for connections
port The connection port, it is recommended to keep it default (8889)
buffer The maximum network buffer, changes in this value affects the RSA key lenght
welcome_message Welcome message to new users, the colors can be found in the Rich documentation
protected_by_password You can enter true if you want to protect your chat by password or you can put false
password Enter the password you want

Commands

  • /help show command list

  • /nick get your nickname

  • /upload <path> upload file with Anonfile, usage: /upload /home/user/file.txt

Running

To run the program just go to the main folder and execute this command:

Client

cd client && python main.py

Server

cd server && python main.py

How does it work

The keys are generated using the RSA Encryption Algorithm.
when the client wants to send a message, it gets encrypted with the public key, through the server then will forward it to the connected clients, that will decrypt it using the private key.

For more detailed explanation, please, refer to the RSA Encryption Algorithm Documentation

flow.png

Showcase

showcase showcase2 showcase3

Bug report

To report an exploit or a bug write, create a new issue

License

This application is distributed under the GPL license you can consult the file: LICENSE.txt

Contributors

charles-csec's People

Contributors

aniko33 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.