remove legacy code from opsb

This commit is contained in:
Mark 2005-10-20 21:12:38 +00:00
parent 438333cdef
commit 0a2128e1ad
3 changed files with 3 additions and 42 deletions

3
blsb.c
View file

@ -50,8 +50,6 @@ static int blsb_set_exclusions_cb( const CmdParams *cmdparams, SET_REASON reason
static struct blsb { static struct blsb {
int akilltime; int akilltime;
int cachetime;
int cachehits;
int doakill; int doakill;
int verbose; int verbose;
int exclusions; int exclusions;
@ -109,7 +107,6 @@ static bot_setting blsb_settings[]=
{ {
{"AKILL", &blsb.doakill, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_akill, NULL, (void*)1 }, {"AKILL", &blsb.doakill, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_akill, NULL, (void*)1 },
{"AKILLTIME", &blsb.akilltime, SET_TYPE_INT, 0, 20736000,NS_ULEVEL_ADMIN, NULL, blsb_help_set_akilltime, NULL, (void*)TS_ONE_DAY }, {"AKILLTIME", &blsb.akilltime, SET_TYPE_INT, 0, 20736000,NS_ULEVEL_ADMIN, NULL, blsb_help_set_akilltime, NULL, (void*)TS_ONE_DAY },
{"CACHETIME", &blsb.cachetime, SET_TYPE_INT, 0, TS_ONE_DAY, NS_ULEVEL_ADMIN, NULL, blsb_help_set_cachetime, NULL, (void*)TS_ONE_HOUR },
{"VERBOSE", &blsb.verbose, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_verbose, NULL, (void*)1 }, {"VERBOSE", &blsb.verbose, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_verbose, NULL, (void*)1 },
{"EXCLUSIONS", &blsb.exclusions, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_exclusions, blsb_set_exclusions_cb, (void *)0 }, {"EXCLUSIONS", &blsb.exclusions, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_exclusions, blsb_set_exclusions_cb, (void *)0 },
NS_SETTING_END() NS_SETTING_END()

6
blsb.h
View file

@ -35,11 +35,6 @@ typedef enum BL_LOOKUP_TYPE
BL_LOOKUP_TYPE_MAX BL_LOOKUP_TYPE_MAX
}BL_LOOKUP_TYPE; }BL_LOOKUP_TYPE;
typedef struct cache_entry {
unsigned long ip;
time_t when;
} cache_entry;
typedef struct dom_list { typedef struct dom_list {
char name[BUFSIZE]; char name[BUFSIZE];
char domain[BUFSIZE]; char domain[BUFSIZE];
@ -65,7 +60,6 @@ extern const char *blsb_help_list[];
extern const char *blsb_help_check[]; extern const char *blsb_help_check[];
extern const char *blsb_help_set_akill[]; extern const char *blsb_help_set_akill[];
extern const char *blsb_help_set_akilltime[]; extern const char *blsb_help_set_akilltime[];
extern const char *blsb_help_set_cachetime[];
extern const char *blsb_help_set_verbose[]; extern const char *blsb_help_set_verbose[];
extern const char *blsb_help_set_exclusions[]; extern const char *blsb_help_set_exclusions[];

View file

@ -24,16 +24,10 @@
#include "neostats.h" #include "neostats.h"
const char *blsb_about[] = { const char *blsb_about[] = {
"\2Open Proxy Scanning Bot Information\2", "\2BLSB\2",
"", "",
"This service scans clients connecting to this network for", "Checks clients against external blacklists as",
"insecure proxies. Insecure proxies are often used to attack", "they connect to the network.",
"networks or channels with clone bots. If you have a firewall,",
"or IDS software, please ignore any errors that this scan",
"may generate.",
"",
"If you have any further questions, please contact network",
"administration.",
NULL NULL
}; };
@ -47,14 +41,6 @@ const char *blsb_help_check[] = {
NULL NULL
}; };
const char *blsb_help_status[] = {
"View blsb status",
"Syntax: \2STATUS\2",
"",
"Display status of the blacklist lookup service",
NULL
};
const char *blsb_help_add[] = { const char *blsb_help_add[] = {
"Add to the blacklist domains", "Add to the blacklist domains",
"Syntax: \2ADD <domain> <type> <name>\2", "Syntax: \2ADD <domain> <type> <name>\2",
@ -83,16 +69,6 @@ const char *blsb_help_list[] = {
NULL NULL
}; };
const char *blsb_help_remove[] = {
"Remove an akill set by blsb",
"Syntax: \2REMOVE <ip|hostname>\2",
"",
"Remove akills that have been set by blsb.",
"<ip|hostname> is the hostname listed in your akill list",
"(usually found with /stats a)",
NULL
};
const char *blsb_help_set_akill [] = { const char *blsb_help_set_akill [] = {
"\2AKILL <ON|OFF>\2", "\2AKILL <ON|OFF>\2",
"Whether to issue an akill for positive lookups", "Whether to issue an akill for positive lookups",
@ -105,12 +81,6 @@ const char *blsb_help_set_akilltime [] = {
NULL NULL
}; };
const char *blsb_help_set_cachetime [] = {
"\2CACHETIME <time>\2",
"Time (in seconds) that an entry will be cached",
NULL
};
const char *blsb_help_set_verbose [] = { const char *blsb_help_set_verbose [] = {
"\2VERBOSE <ON|OFF>\2", "\2VERBOSE <ON|OFF>\2",
"Whether blsb is verbose in operation or not", "Whether blsb is verbose in operation or not",