CVS: Bahamut-1.8/include msg.h,1.5,1.6 struct.h,1.7,1.8

Mark Rutherford markr at nubian.blitzed.org
Sat Aug 20 02:49:38 UTC 2005


Update of /data/cvs/Bahamut-1.8/include
In directory nubian.blitzed.org:/tmp/cvs-serv48518/include

Modified Files:
	msg.h struct.h 
Log Message:
msg.h/s_user.c:
- HTTP PUT/POST detection. (courtesy of Quension, Bahamut team)
- drone detection variables

s_bsd.c:
- there is some weirdness going on that I cant duplicate easily
seems that the ircd crashes, local[] is not being dealt with properly
with regards to SSL, needs investigation.

drone.c:
- the starts of drone detection. checks for fyle.
needs the remainder of the check code inserted and tested.



Index: msg.h
===================================================================
RCS file: /data/cvs/Bahamut-1.8/include/msg.h,v
retrieving revision 1.5
retrieving revision 1.6
diff --unified=6 -r1.5 -r1.6
--- msg.h	16 Aug 2005 03:35:05 -0000	1.5
+++ msg.h	20 Aug 2005 02:49:36 -0000	1.6
@@ -126,13 +126,15 @@
 #define MSG_LINKSCONTROL "LINKSCONTROL" /* LINKSCONTROL */
 #define MSG_MODULE   "MODULE"		/* MODULE */
 #define MSG_RWHO     "RWHO"             /* RWHO */
 #define MSG_SVSCLONE "SVSCLONE"         /* SVSCLONE */
 #define MSG_MAP      "MAP"              /* map */
 #define MSG_SVSJOIN  "SVSJOIN"          /* svsjoin - services join */
-#define MSG_WEBIRC  "WEBIRC"          /* webirc */
+#define MSG_WEBIRC   "WEBIRC"           /* webirc */
+#define MSG_PUT      "PUT"              /* PUT */
+#define MSG_POST     "POST"             /* POST */
 
 #define MAXPARA      15
 
 extern int  m_kline(aClient *, aClient *, int, char **);
 extern int  m_unkline(aClient *, aClient *, int, char **);
 extern int  m_akill(aClient *, aClient *, int, char **);
@@ -228,12 +230,14 @@
 extern int  m_module(aClient *, aClient *, int, char **);
 extern int  m_rwho(aClient *, aClient *, int, char **);
 extern int  m_svsclone(aClient *, aClient *, int, char **);
 extern int  m_map(aClient *, aClient *, int, char **);
 extern int  m_svsjoin(aClient *, aClient *, int, char **);
 extern int  m_webirc(aClient *, aClient *, int, char **);
+extern int  m_put(aClient *, aClient *, int, char **);
+extern int  m_post(aClient *, aClient *, int, char **);
 
 #ifdef MSGTAB
 struct Message msgtab[] = 
 {
     {MSG_PRIVATE, m_private, 0, MAXPARA, 1, 0, 1, 0L},
     {MSG_NICK, m_nick, 0, MAXPARA, 1, 1, 0, 0L},
@@ -336,12 +340,14 @@
     {MSG_MODULE, m_module, 0, MAXPARA, 1, 0, 0, 0L},
     {MSG_RWHO, m_rwho, 0, MAXPARA, 1, 0, 0, 0L},
     {MSG_SVSCLONE, m_svsclone, 0, MAXPARA, 1, 0, 0, 0L},
     {MSG_MAP, m_map, 0, MAXPARA, 1, 0, 0, 0L},
     {MSG_SVSJOIN, m_svsjoin, 0, MAXPARA, 1, 0, 0, 0L},
     {MSG_WEBIRC, m_webirc, 0, MAXPARA, 1, 1, 0, 0L},
+    {MSG_PUT, m_put, 0, MAXPARA, 1, 1, 0, 0L},
+    {MSG_POST, m_post, 0, MAXPARA, 1, 1, 0, 0L},
     {(char *) 0, (int (*)()) 0, 0, 0, 0, 0, 0, 0L}
 };
 
 MESSAGE_TREE *msg_tree_root;
 #else
 extern struct Message msgtab[];

Index: struct.h
===================================================================
RCS file: /data/cvs/Bahamut-1.8/include/struct.h,v
retrieving revision 1.7
retrieving revision 1.8
diff --unified=6 -r1.7 -r1.8
--- struct.h	16 Aug 2005 03:35:05 -0000	1.7
+++ struct.h	20 Aug 2005 02:49:36 -0000	1.8
@@ -1021,12 +1021,19 @@
 
     /* webirc spoofing */
     char *webirc_password;
     char *webirc_host;
     char *webirc_ip;
     char *webirc_name;
+
+    /* drone detection */
+    char *droneusername;
+    char *dronehost;
+    char *droneserver;
+    char *dronerealname;
+    char *drone; /* name of drone we have captured */
 };
 
 #define	CLIENT_LOCAL_SIZE sizeof(aClient)
 #define	CLIENT_REMOTE_SIZE offsetof(aClient,count)
 /* statistics structures */
 struct stats



More information about the ircd-checkins mailing list