chonorat-42 / 42-IRC

0 stars 2 forks source link

Flooded Connection Buffer #46

Closed vSKAH closed 3 months ago

vSKAH commented 3 months ago

Il est possible de flood le buffer utilise pour la connection, ce qui a resultat de bloquer les tentatives de connection suivantes. Voici les logs du serveur IRC:

             /$$$$$$ /$$$$$$$   /$$$$$$                       /$$$$$$  /$$$$$$$$ /$$$$$$$  /$$    /$$ /$$$$$$$$ /$$$$$$$
            |_  $$_/| $$__  $$ /$$__  $$                     /$$__  $$| $$_____/| $$__  $$| $$   | $$| $$_____/| $$__  $$
              | $$  | $$  \ $$| $$  \__/                    | $$  \__/| $$      | $$  \ $$| $$   | $$| $$      | $$  \ $$
              | $$  | $$$$$$$/| $$             /$$$$$$      |  $$$$$$ | $$$$$   | $$$$$$$/|  $$ / $$/| $$$$$   | $$$$$$$/
              | $$  | $$__  $$| $$            |______/       \____  $$| $$__/   | $$__  $$ \  $$ $$/ | $$__/   | $$__  $$
              | $$  | $$  \ $$| $$    $$                     /$$  \ $$| $$      | $$  \ $$  \  $$$/  | $$      | $$  \ $$
             /$$$$$$| $$  | $$|  $$$$$$/                    |  $$$$$$/| $$$$$$$$| $$  | $$   \  $/   | $$$$$$$$| $$  | $$
            |______/|__/  |__/ \______/                      \______/ |________/|__/  |__/    \_/    |________/|__/  |__/

                            Pgouasmi, Chonorat, Jbadaire                                

Loading, IRCLogger...
06/25/24-03:08:58 [TRACE] The logger is up !
06/25/24-03:08:58 [TRACE] Loading, IRCConfiguration...
06/25/24-03:08:58 [INFO] The configuration has been loaded !
06/25/24-03:08:58 [INFO] Redefine logger level from configuration
06/25/24-03:08:58 [INFO] Logger level has been redefined !
06/25/24-03:08:58 [INFO] Replace port and password inside configuration
06/25/24-03:08:58 [INFO] Port and password has been replaced !
06/25/24-03:08:58 [TRACE] Printing configuration : false
06/25/24-03:08:58 [INFO] Starting server...
06/25/24-03:08:58 [INFO] Server is up !
06/25/24-03:15:15 [WARN] No delimiter found in buffer
06/25/24-03:15:21 [WARN] No delimiter found in buffer
06/25/24-03:15:22 [DEBUG] UserBuilder is complete !
06/25/24-03:15:22 [DEBUG] Username: user1
06/25/24-03:15:22 [DEBUG] Nickname: user2
06/25/24-03:15:22 [DEBUG] RealName: jbadaire
06/25/24-03:15:22 [DEBUG] Password: 434
06/25/24-03:15:33 [WARN] No delimiter found in buffer
06/25/24-03:15:39 [WARN] No delimiter found in buffer
06/25/24-03:15:44 [WARN] No delimiter found in buffer
06/25/24-03:15:57 [WARN] No delimiter found in buffer
06/25/24-03:15:59 [WARN] No delimiter found in buffer
06/25/24-03:16:00 [WARN] No delimiter found in buffer
06/25/24-03:16:00 [WARN] No delimiter found in buffer
06/25/24-03:16:46 [WARN] No delimiter found in buffer
06/25/24-03:16:53 [WARN] No delimiter found in buffer
06/25/24-03:16:58 [WARN] No delimiter found in buffer
06/25/24-03:17:04 [WARN] No delimiter found in buffer
06/25/24-03:17:07 [WARN] No delimiter found in buffer
06/25/24-03:17:07 [WARN] No delimiter found in buffer
06/25/24-03:17:14 [WARN] No delimiter found in buffer
06/25/24-03:17:15 [WARN] No delimiter found in buffer
06/25/24-03:17:16 [WARN] No delimiter found in buffer
06/25/24-03:17:18 [WARN] No delimiter found in buffer
06/25/24-03:17:20 [WARN] No delimiter found in buffer
06/25/24-03:17:20 [WARN] No delimiter found in buffer
06/25/24-03:17:21 [WARN] No delimiter found in buffer
06/25/24-03:17:21 [WARN] No delimiter found in buffer
06/25/24-03:17:22 [WARN] No delimiter found in buffer
06/25/24-03:17:22 [WARN] No delimiter found in buffer
06/25/24-03:17:23 [WARN] No delimiter found in buffer
06/25/24-03:17:23 [WARN] No delimiter found in buffer
06/25/24-03:17:25 [WARN] No delimiter found in buffer
06/25/24-03:17:26 [WARN] No delimiter found in buffer
06/25/24-03:17:28 [WARN] No delimiter found in buffer
06/25/24-03:17:29 [WARN] No delimiter found in buffer
06/25/24-03:17:59 [WARN] No delimiter found in buffer
06/25/24-03:18:03 [WARN] No delimiter found in buffer
06/25/24-03:18:03 [DEBUG] UserBuilder is complete !
06/25/24-03:18:03 [DEBUG] Username: user1
06/25/24-03:18:03 [DEBUG] Nickname: user2
06/25/24-03:18:03 [DEBUG] RealName: jbadaire
06/25/24-03:18:03 [DEBUG] Password: 434
06/25/24-03:18:07 [WARN] No delimiter found in buffer
06/25/24-03:18:10 [WARN] No delimiter found in buffer
06/25/24-03:18:18 [WARN] No delimiter found in buffer
06/25/24-03:18:23 [WARN] No delimiter found in buffer
06/25/24-03:18:25 [WARN] No delimiter found in buffer
06/25/24-03:18:26 [WARN] No delimiter found in buffer
06/25/24-03:18:27 [WARN] No delimiter found in buffer
06/25/24-03:18:27 [WARN] No delimiter found in buffer
06/25/24-03:18:27 [WARN] No delimiter found in buffer
06/25/24-03:18:27 [WARN] No delimiter found in buffer
06/25/24-03:18:27 [WARN] No delimiter found in buffer
06/25/24-03:18:27 [WARN] No delimiter found in buffer
06/25/24-03:19:19 [WARN] No delimiter found in buffer
06/25/24-03:20:02 [WARN] No delimiter found in buffer
06/25/24-03:20:04 [WARN] No delimiter found in buffer
06/25/24-03:20:04 [WARN] No delimiter found in buffer
06/25/24-03:20:05 [WARN] No delimiter found in buffer
06/25/24-03:20:05 [WARN] No delimiter found in buffer
06/25/24-03:20:06 [WARN] No delimiter found in buffer
06/25/24-03:20:17 [WARN] No delimiter found in buffer
06/25/24-03:20:55 [WARN] No delimiter found in buffer

Rien a Signaler du cote de valgrind. Commande Utilisees:

Terminal 1:

 IRC git:(main) ✗ nc localhost 7777
CAP LS 302
PASS 434
NICK user2
USER user1 0 * :jbadaire    
:localhost 001 user2 :Welcome to the Internet Relay Network :user2!user1@124.0.0.1
:localhost 002 user2 :2Your host is IRCheh (localhost), running version 3
:localhost 003 user2 :6This server was created 06/25/24-03:15:22 
:localhost 375 user2 :3- IRCheh Message of the day - 
:localhost 372 user2 :8Hello user2, welcome to the server
:localhost 372 user2 :8I hope the karma is not with you today
:localhost 372 user2 :8IRCheh v.3 team
:localhost 376 user2 :3End of /MOTD command.
:localhost 408 5 IRCheh :4Request Timeout.

➜  IRC git:(main) ✗ 
➜  IRC git:(main) ✗ 
➜  IRC git:(main) ✗ 
➜  IRC git:(main) ✗ nc localhost 7777
CAP LS 302
PASS 434
NICK user2
USER user1 0 * :jbadaire 
:localhost 001 user2 :Welcome to the Internet Relay Network :user2!user1@124.0.0.1
:localhost 002 user2 :2Your host is IRCheh (localhost), running version 3
:localhost 003 user2 :6This server was created 06/25/24-03:18:03 
:localhost 375 user2 :3- IRCheh Message of the day - 
:localhost 372 user2 :8Hello user2, welcome to the server
:localhost 372 user2 :8I hope the karma is not with you today
:localhost 372 user2 :8IRCheh v.3 team
:localhost 376 user2 :3End of /MOTD command.
MOTD 
/MOTD
PRIVMSG:MOTD
l       
\r\n
\rn
\n

^C

TERMINAL 2:

➜  IRC git:(main) ✗ nc localhost 7777
CAP LS 302
PASS 434
NICK user2
USER user1 0 * :jbadaire2 
:localhost 433 user2 user2 :4Nickname is already in use.
^C  
➜  IRC git:(main) ✗ nc localhost 7777
CAP LS 302
PASS 434
NICK user2
USER user1 0 * :jbadaire2    
:localhost 433 user2 user2 :4Nickname is already in use.

:localhost 433 user2 user2 :4Nickname is already in use.

:localhost 433 user2 user2 :4Nickname is already in use.

:localhost 433 user2 user2 :4Nickname is already in use.
^Z
[1]  + 33943 suspended  nc localhost 7777
➜  IRC git:(main) ✗ nc
usage: nc [-46CDdFhklNnrStUuvZz] [-I length] [-i interval] [-M ttl]
      [-m minttl] [-O length] [-P proxy_username] [-p source_port]
      [-q seconds] [-s sourceaddr] [-T keyword] [-V rtable] [-W recvlimit]
      [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]]
      [destination] [port]
➜  IRC git:(main) ✗ nc localhost 7777
CAP LS 302
PASS 434
NICK user2

pg
g
USER user1 0 * :pgouasmi

\n
\n\r
\\\n

ff
f
g\d
f\g
d\
d\g
\g\g\\g\g\g
\r\r\
\\\d\d\\d
\c\c\d
^C

Tentative de connection avec HexChat: Utilisation standard rien de special