Giter VIP home page Giter VIP logo

42_irc's Introduction

IRis Chat

IRC Server - Project 42

Perfectly functionnal

All the commands that are necessary to have a good experience on a IRC chat network are working (A list of the availlable commands at the end of the file) Accept connexions from any IRC client

Bot protection

There is a bot protection, the server can ban IP adresses if some patterns are detected Those adresses are stored in the conf file, with some other settings which can be changed. The connections log file can also be used with Fail2Ban to block ddos

Admin

The admin password is stored in the conf file as SHA256. If a client connects with this password, it becomes administrator of the server and have full access to any commands like a moderator, plus 'SERVBAN' and 'SERVUNBAN' followed by an IP which allows to manually ban or unban IPs.

Execution

To compile :

make

To run :

./irc_server {port} {server_password}

Can also be run using ./launch_serv.sh This script starts the server and restart it if ever it crashes

Logs

All messages are saved into a log file All connections too, in a different file

BOT

There is in the bot folder a program that can connects to the server, as a client, but as an admin

./irc_bot {ServerIP} {Port} {AdminPassword}

The bot with moderate the #General channel, watching for inappropriate or offensive words, insults.. and also spaming. It will send warnings to the user, kick him of the channel after few warnings. It can also ban him for a period of time if he reiterates.

Implemented commands :

"CAP", "PASS", "NICK", "USER", "PING", "PONG", "PRIVMSG", "WHO", "WHOIS", "NAMES", "QUIT", "JOIN", "KICK", "INVITE", "TOPIC", "MODE", "PART", "SERVBAN", "USERHOST", "NOTICE", "SERVUNBAN", "LIST"

A glimpse of the server at work

til

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.