[X2serv-cvs] CVS: x2/source parse.c,1.62,1.63 send.c,1.26,1.27
Brought to you by:
sirvulcan
From: Alex S. <ru...@us...> - 2001-04-25 08:19:13
|
Update of /cvsroot/x2serv/x2/source In directory usw-pr-cvs1:/tmp/cvs-serv23978 Modified Files: parse.c send.c Log Message: completed sub7scan code Index: parse.c =================================================================== RCS file: /cvsroot/x2serv/x2/source/parse.c,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -r1.62 -r1.63 *** parse.c 2001/04/25 06:05:40 1.62 --- parse.c 2001/04/25 08:19:10 1.63 *************** *** 1047,1056 **** int ProcessCTCPReply(UserListType from, char *to, char *rest) { if(!from) return(0); if(!strcmp(rest, "CLIENTINFO mIRC32 v5.51 K.Mardam-Bey")) { ! send_wallops("%s is a sub7 connection.", from->Nick); ! return(0); } return(0); --- 1047,1068 ---- int ProcessCTCPReply(UserListType from, char *to, char *rest) { + char uh[MAXLEN]; + if(!from) return(0); if(!strcmp(rest, "CLIENTINFO mIRC32 v5.51 K.Mardam-Bey")) { ! switch(SUB7SCAN) ! { ! case 0: return(0); ! case 1: send_wallops("SUB7SCAN: %s is a sub7 connection.", from->Nick); ! return(0); ! case 2: ! sprintf(uh, "*@%s", unsigned32ToDotQuad(from->IP)); ! send_gline(uh, 3600, "%s", "Sub7 trojan detected"); ! return(0); ! default: Debug(DBGINFO, "Unknown SUB7SCAN setting"); ! return(0); ! } } return(0); Index: send.c =================================================================== RCS file: /cvsroot/x2serv/x2/source/send.c,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** send.c 2001/04/25 06:05:40 1.26 --- send.c 2001/04/25 08:19:10 1.27 *************** *** 423,427 **** sendtosock(Sock, "SERVER %s 1 %lu %lu J10 %cD] 0 :%s", ServiceName, LinkTimeStamp, ServerTimeStamp, convert2y[ServiceNumeric], ! "X2 Channel Service: http://x2serv.sourceforge.net"); /* <server> NICK <nick> <hops> <timestamp> <user> <host> <compressed ip> <3 letter numeric> :<username> */ sendtosock(Sock, "%c NICK %s 1 %lu %s %s +%s %s %c%s :\002%c\002) /MSG %s Help (\002%c\002", --- 423,427 ---- sendtosock(Sock, "SERVER %s 1 %lu %lu J10 %cD] 0 :%s", ServiceName, LinkTimeStamp, ServerTimeStamp, convert2y[ServiceNumeric], ! "X2 Channel Service"); /* <server> NICK <nick> <hops> <timestamp> <user> <host> <compressed ip> <3 letter numeric> :<username> */ sendtosock(Sock, "%c NICK %s 1 %lu %s %s +%s %s %c%s :\002%c\002) /MSG %s Help (\002%c\002", |