settings API update

This commit is contained in:
Mark 2005-03-04 21:36:15 +00:00
parent 26840c23b2
commit 29d9409783
11 changed files with 99 additions and 122 deletions

View file

@ -1,5 +1,10 @@
Open Proxy Scanning Bot Module for NeoStats Changelog.
==============================================================================
3.0.a2-dev - Mark (M)
- Update settings table to a2 compatible format. (M)
- Fix segfault on msg opsb1 check ip.address.com. (M)
- Change DISABLESCAN to SCAN. (M)
3.0.a1 - Mark (M)
- Update module to use new core module exclusion support. (M)
- Removed splittime setting which is now handled by core. (M)

View file

@ -15,8 +15,8 @@ OPSB Manual
3. Detailed Configuration
3.1. CACHETIME Setting
3.2. DISABLESCAN Setting
3.3. DOBAN Setting
3.2. SCAN Setting
3.3. AKILL Setting
3.4. OPMDOMAIN Setting
3.5. MAXBYTES Setting
3.6. TIMEOUT
@ -372,8 +372,8 @@ Caution
Changing the Ban Time
To change the bantime, type:
-> *opsb* set bantime 86400
To change the akilltime, type:
-> *opsb* set akilltime 86400
=opsb= Ban time changed to 86400
3. Detailed Configuration
@ -389,8 +389,8 @@ Caution
The following list summaries the available Options you can set in OPSB
* CACHETIME
* DISABLESCAN
* DOBAN
* SCAN
* AKILL
* OPMDOMAIN
* MAXBYTES
* TIMEOUT
@ -424,25 +424,25 @@ Caution
To Change the setting, issue the following Command:
/msg OPSB set CACHETIME <seconds>
3.2. DISABLESCAN Setting
3.2. SCAN Setting
Sometimes a IRC administrator may wish to only make use of the Open
Proxy list lookup, and not actually perform a scan on users.
DISABLESCAN forces OPSB to only perform a lookup of the IP address in
SCAN forces OPSB to only perform a lookup of the IP address in
the configured OPMDOMAIN.
If you wish to turn off Proxy checks, issue the following command
/msg OPSB set DISABLESCAN <ON/OFF>
/msg OPSB set SCAN <ON/OFF>
3.3. DOBAN Setting
3.3. AKILL Setting
Often, when setting up OPSB for the first time, or making changes to
the ports that are to be scanning, you may wish to test OPSB without
it actually performing a AKILL. Turning DOBAN off disables the
it actually performing a AKILL. Turning AKILL off disables the
placement of a AKILL on open Proxy hosts.
To Change the setting, issue the following Command:
/msg OPSB set DOBAN <ON/OFF>
/msg OPSB set AKILL <ON/OFF>
3.4. OPMDOMAIN Setting

View file

@ -1,4 +1,4 @@
* OPSB * M & Fish * Version 3.0.a1
* OPSB * M & Fish * Version 3.0.a2-dev
==============================================================================
Important information you should know: (READ THIS!)
==============================================================================
@ -17,6 +17,9 @@ Bugs, requests and suggestions should be reported using the bug tracking
system. You must provide all information required as listed in the README
section on support or your entry will be removed.
Settings and data files from 2.5.x will not work with 3.0. Settings for a1
may not be compatible with this version.
Known issues that we are aware of and should not be reported:
* You may get a warning during compilation similar to:

6
configure vendored
View file

@ -1301,7 +1301,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
PACKAGE=OPSB
MODULE_MAJOR=3
MODULE_MINOR=0
MODULE_REV=a1
MODULE_REV=a2-dev
VERSION=$MODULE_MAJOR.$MODULE_MINOR.$MODULE_REV
cat >>confdefs.h <<_ACEOF
#define MODULE_VERSION "$VERSION"
@ -2352,8 +2352,8 @@ if test "$ns_version_ok" = "yes"; then
echo "$as_me:$LINENO: result: Compatible version" >&5
echo "${ECHO_T}Compatible version" >&6;
else
{ { echo "$as_me:$LINENO: error: This module requires NeoStats 3.0.a1 or higher" >&5
echo "$as_me: error: This module requires NeoStats 3.0.a1 or higher" >&2;}
{ { echo "$as_me:$LINENO: error: This module requires NeoStats 3.0.a2-dev or higher" >&5
echo "$as_me: error: This module requires NeoStats 3.0.a2-dev or higher" >&2;}
{ (exit 1); exit 1; }; }
fi

View file

@ -5,7 +5,7 @@ AC_CONFIG_HEADER(modconfig.h)
PACKAGE=OPSB
MODULE_MAJOR=3
MODULE_MINOR=0
MODULE_REV=a1
MODULE_REV=a2-dev
VERSION=$MODULE_MAJOR.$MODULE_MINOR.$MODULE_REV
AC_DEFINE_UNQUOTED(MODULE_VERSION, "$VERSION")
AC_DEFINE_UNQUOTED(MODULE_MAJOR, "$MODULE_MAJOR")
@ -55,7 +55,7 @@ int main(void) {
if test "$ns_version_ok" = "yes"; then
AC_MSG_RESULT(Compatible version);
else
AC_MSG_ERROR(This module requires NeoStats 3.0.a1 or higher)
AC_MSG_ERROR(This module requires NeoStats 3.0.a2-dev or higher)
fi
dnl check if we are running with debug....

View file

@ -6,7 +6,7 @@
/* #undef DEBUG */
/* Version number of package */
#define MODULE_VERSION "3.0.a1"
#define MODULE_VERSION "3.0.a2-dev"
/* Major Version */
#define MODULE_MAJOR "3"
@ -15,7 +15,7 @@
#define MODULE_MINOR "0"
/* Revision */
#define MODULE_REV "a1"
#define MODULE_REV "a2-dev"
/* Define to 1 if you have the <dlfcn.h> header file. */
/* #undef HAVE_DLFCN_H */

34
opsb.c
View file

@ -324,19 +324,21 @@ static bot_cmd opsb_commands[]=
static bot_setting opsb_settings[]=
{
{"DISABLESCAN", &opsb.doscan, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, "DoScan", NULL, opsb_help_set_disablescan, do_set_cb, (void*)1 },
{"DOBAN", &opsb.doban, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, "DoBan", NULL, opsb_help_set_doban, do_set_cb, (void*)1 },
{"TARGETIP", &opsb.targethost, SET_TYPE_IPV4, 0, MAXHOST, NS_ULEVEL_ADMIN, "TargetHost", NULL, opsb_help_set_targetip, do_set_cb },
{"TARGETPORT", &opsb.targetport, SET_TYPE_INT, 0, 65430, NS_ULEVEL_ADMIN, "TargetPort", NULL, opsb_help_set_targetport, do_set_cb },
{"OPMDOMAIN", &opsb.opmdomain, SET_TYPE_HOST, 0, MAXHOST, NS_ULEVEL_ADMIN, "OpmDomain", NULL, opsb_help_set_opmdomain, do_set_cb, (void*)"opm.blitzed.org" },
{"MAXBYTES", &opsb.maxbytes, SET_TYPE_INT, 0, 100000, NS_ULEVEL_ADMIN, "MaxBytes", NULL, opsb_help_set_maxbytes, do_set_cb, (void*)500 },
{"TIMEOUT", &opsb.timeout, SET_TYPE_INT, 0, 120, NS_ULEVEL_ADMIN, "TimeOut", NULL, opsb_help_set_timeout, do_set_cb, (void*)30 },
{"OPENSTRING", &opsb.lookforstring,SET_TYPE_MSG, 0, BUFSIZE, NS_ULEVEL_ADMIN, "TriggerString",NULL, opsb_help_set_openstring, do_set_cb, (void*)"*** Looking up your hostname..." },
{"SCANMSG", &opsb.scanmsg, SET_TYPE_MSG, 0, BUFSIZE, NS_ULEVEL_ADMIN, "ScanMsg", NULL, opsb_help_set_scanmsg, do_set_cb, (void*)"Your Host is being Scanned for Open Proxies" },
{"BANTIME", &opsb.bantime, SET_TYPE_INT, 0, 360000, NS_ULEVEL_ADMIN, "BanTime", NULL, opsb_help_set_bantime, do_set_cb, (void*)86400 },
{"CACHETIME", &opsb.cachetime, SET_TYPE_INT, 0, 86400, NS_ULEVEL_ADMIN, "CacheTime", NULL, opsb_help_set_cachetime, do_set_cb, (void*)3600 },
{"VERBOSE", &opsb.verbose, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, "Verbose", NULL, opsb_help_set_verbose, do_set_cb, (void*)1 },
{NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL },
{"SCAN", &opsb.doscan, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, opsb_help_set_doscan, do_set_cb, (void*)1 },
{"TARGETIP", &opsb.targetip, SET_TYPE_IPV4, 0, 0, NS_ULEVEL_ADMIN, NULL, opsb_help_set_targetip, do_set_cb },
{"TARGETPORT", &opsb.targetport, SET_TYPE_INT, 0, 65535, NS_ULEVEL_ADMIN, NULL, opsb_help_set_targetport, do_set_cb },
{"OPMDOMAIN", &opsb.opmdomain, SET_TYPE_HOST, 0, MAXHOST, NS_ULEVEL_ADMIN, NULL, opsb_help_set_opmdomain, do_set_cb, (void*)"opm.blitzed.org" },
{"AKILL", &opsb.doakill, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, opsb_help_set_akill, do_set_cb, (void*)1 },
{"AKILLTIME", &opsb.akilltime, SET_TYPE_INT, 0, 20736000, NS_ULEVEL_ADMIN, NULL, opsb_help_set_akilltime, do_set_cb, (void*)86400 },
{"MAXBYTES", &opsb.maxbytes, SET_TYPE_INT, 0, 100000, NS_ULEVEL_ADMIN, NULL, opsb_help_set_maxbytes, do_set_cb, (void*)500 },
{"TIMEOUT", &opsb.timeout, SET_TYPE_INT, 0, 120, NS_ULEVEL_ADMIN, NULL, opsb_help_set_timeout, do_set_cb, (void*)30 },
{"OPENSTRING", &opsb.openstring, SET_TYPE_MSG, 0, BUFSIZE, NS_ULEVEL_ADMIN, NULL, opsb_help_set_openstring, do_set_cb, (void*)"*** Looking up your hostname..." },
{"SCANMSG", &opsb.scanmsg, SET_TYPE_MSG, 0, BUFSIZE, NS_ULEVEL_ADMIN, NULL, opsb_help_set_scanmsg, do_set_cb, (void*)"Your Host is being Scanned for Open Proxies" },
{"CACHETIME", &opsb.cachetime, SET_TYPE_INT, 0, 86400, NS_ULEVEL_ADMIN, NULL, opsb_help_set_cachetime, do_set_cb, (void*)3600 },
{"VERBOSE", &opsb.verbose, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, opsb_help_set_verbose, do_set_cb, (void*)1 },
{NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL },
};
/** BotInfo */
@ -368,7 +370,7 @@ int ModSynch (void)
if (opsb.confed == 0) {
AddTimer (TIMER_TYPE_INTERVAL, unconf, "unconf", 60);
unconf();
strlcpy(opsb.targethost, me.uplink, MAXHOST);
strlcpy(opsb.targetip, me.uplink, MAXHOST);
}
if(opsb.verbose) {
if (opsb.doscan) {
@ -695,7 +697,7 @@ void dnsblscan(char *data, adns_answer *a)
irc_chanalert (opsb_bot, "Banning %s (%s) as its listed in %s", scandata->who, inet_ntoa(scandata->ip), opsb.opmdomain);
irc_globops (opsb_bot, "Banning %s (%s) as its listed in %s", scandata->who, inet_ntoa(scandata->ip), opsb.opmdomain);
if (scandata->reqclient) irc_prefmsg (opsb_bot, scandata->reqclient, "Banning %s (%s) as its listed in %s", scandata->who, inet_ntoa(scandata->ip), opsb.opmdomain);
irc_akill (opsb_bot, inet_ntoa(scandata->ip), "*", opsb.bantime, "Your host is listed as an Open Proxy. Please visit the following website for more info: www.blitzed.org/proxy?ip=%s", inet_ntoa(scandata->ip));
irc_akill (opsb_bot, inet_ntoa(scandata->ip), "*", opsb.akilltime, "Your host is listed as an Open Proxy. Please visit the following website for more info: www.blitzed.org/proxy?ip=%s", inet_ntoa(scandata->ip));
checkqueue();
} else {
if (scandata->reqclient) irc_prefmsg (opsb_bot, scandata->reqclient, "%s does not appear in DNS black list", scandata->lookup);
@ -762,7 +764,7 @@ void reportdns(char *data, adns_answer *a) {
int ModInit( void )
{
strlcpy(opsb.targethost, me.uplink, MAXHOST);
strlcpy(opsb.targetip, me.uplink, MAXHOST);
opsb.targetport = me.port;
opsb.confed = 0;
DBAFetchConfigInt ("Confed", &opsb.confed);

16
opsb.h
View file

@ -65,8 +65,8 @@ typedef struct scaninfo{
struct opsb {
char opmdomain[MAXHOST];
int init;
char targethost[MAXHOST];
char lookforstring[BUFSIZE];
char targetip[MAXHOST];
char openstring[BUFSIZE];
int targetport;
int maxbytes;
int timeout;
@ -74,13 +74,13 @@ struct opsb {
int open;
int scanned;
char scanmsg[BUFSIZE];
int bantime;
int akilltime;
int confed;
int cachetime;
int doscan;
int cachehits;
int opmhits;
int doban;
int doakill;
int verbose;
list_t *ports;
} opsb;
@ -137,7 +137,6 @@ extern const char *opsb_help_lookup[];
extern const char *opsb_about[];
extern const char *opsb_help_check[];
extern const char *opsb_help_status[];
extern const char *opsb_help_exclude[];
extern const char *opsb_help_remove[];
extern const char *opsb_help_ports[];
@ -145,12 +144,11 @@ extern const char opsb_help_status_oneline[];
extern const char opsb_help_lookup_oneline[];
extern const char opsb_help_remove_oneline[];
extern const char opsb_help_check_oneline[];
extern const char opsb_help_exclude_oneline[];
extern const char opsb_help_ports_oneline[];
extern const char opsb_help_set_oneline[];
extern const char *opsb_help_set_disablescan [];
extern const char *opsb_help_set_doban [];
extern const char *opsb_help_set_doscan [];
extern const char *opsb_help_set_akill [];
extern const char *opsb_help_set_targetip [];
extern const char *opsb_help_set_targetport [];
extern const char *opsb_help_set_opmdomain [];
@ -158,7 +156,7 @@ extern const char *opsb_help_set_maxbytes [];
extern const char *opsb_help_set_timeout [];
extern const char *opsb_help_set_openstring [];
extern const char *opsb_help_set_scanmsg [];
extern const char *opsb_help_set_bantime [];
extern const char *opsb_help_set_akilltime [];
extern const char *opsb_help_set_cachetime [];
extern const char *opsb_help_set_verbose [];

View file

@ -161,9 +161,15 @@
<File
RelativePath=".\modconfig.h.in">
</File>
<File
RelativePath=".\OPSB.xml">
</File>
<File
RelativePath=".\README.opsb">
</File>
<File
RelativePath=".\README.opsb.html">
</File>
<File
RelativePath=".\Relnotes">
</File>

View file

@ -27,45 +27,41 @@ const char opsb_help_status_oneline[] = "View opsb state information";
const char opsb_help_lookup_oneline[] = "Lookup DNS record";
const char opsb_help_remove_oneline[] = "Remove an akill set by opsb";
const char opsb_help_check_oneline[] = "Scan a selected user";
const char opsb_help_exclude_oneline[] = "Exclude a host from scanning";
const char opsb_help_ports_oneline[] = "Allows you to customize the ports scanned";
const char opsb_help_set_oneline[] = "Change opsb configuration options";
const char *opsb_help_lookup[] = {
"Syntax: \2LOOKUP <ip|hostname> <flag>\2",
"Syntax: \2LOOKUP <ip|hostname> [type]\2",
"",
"This command allows you to lookup DNS records on the",
"Internet. Different types of records can be looked up",
"by specifying different flags",
"Lookup DNS records for an ip address or hostname.",
"The default lookup is the ip address for a hostname",
"or the hostname for an ip address.",
"",
"The Flags are:",
" txt - Lookup Text Records",
" rp - Lookup the Responsible Person for this record",
" ns - Lookup the Name Servers for this record",
" soa - Lookup the SOA for this Record",
"Options for type are:",
" txt - text records",
" rp - responsible person for this record",
" ns - name servers for this record",
" soa - SOA for this record",
"",
"If you do not specify a flag, it defaults to looking up",
"either the IP address for Hostnames, or the Hostname for",
"IP addresses",
NULL
};
const char *opsb_about[] = {
"\2Open Proxy Scanning Bot Information\2",
"",
"This bot is intended to scan clients connecting to this",
"network for insecure proxies. Insecure proxies are often",
"used to attack networks or channels with clone bots",
"If you have a firewall, or IDS software, please ignore any",
"errors that this scan may generate",
"This service scans clients connecting to this network for",
"insecure proxies. Insecure proxies are often used to attack",
"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 staff",
"administration.",
NULL
};
const char *opsb_help_check[] = {
"Syntax: \2CHECK <nickname/IP/hostname>\2",
"Syntax: \2CHECK <nick|ip|hostname>\2",
"",
"This option will scan either a user connected to your",
"network, an IP address, or Hostname for Insecure proxies,",
@ -77,48 +73,45 @@ const char *opsb_help_check[] = {
const char *opsb_help_status[] = {
"Syntax: \2STATUS\2",
"",
"View detailed information about the state of the Open",
"Proxy Scanning Bot",
"Display status of the open proxy scanning bot",
NULL
};
const char *opsb_help_set_disablescan [] = {
"\2DISABLESCAN\2",
const char *opsb_help_set_doscan [] = {
"\2SCAN <ON|OFF>\2",
"Disables the proxy scan and only do a lookup in the DNS",
"blacklist to see if this host is listed as an open proxy",
NULL
};
const char *opsb_help_set_doban [] = {
"\2DOBAN\2",
const char *opsb_help_set_akill [] = {
"\2AKILL <ON|OFF>\2",
" ",
NULL
};
const char *opsb_help_set_targetip [] = {
"\2TARGETIP\2",
"Change the IP address we try to make the proxies connect to",
"This should be set to an IP address of one of your IRC Servers.",
"\2TARGETIP <ip>\2",
"IP address of server we try to make the proxies connect to",
NULL
};
const char *opsb_help_set_targetport [] = {
"\2TARGETPORT\2",
"Change the Port number we try to make proxies connect to.",
"This must be a port that runs on your IRCD",
"\2TARGETPORT <port>\2",
"IRCd port number we try to make proxies connect to.",
NULL
};
const char *opsb_help_set_opmdomain [] = {
"\2OPMDOMAIN\2",
"Change the Domain we use to lookup for Blacklists.",
"\2OPMDOMAIN <domain>\2",
"Domain used for blacklists.",
"This setting should not be changed unless you know the",
"effects in full",
NULL
};
const char *opsb_help_set_maxbytes [] = {
"\2MAXBYTES\2",
"\2MAXBYTES <max>\2",
"Maximum number of bytes we receive from a proxy before disconnecting",
"This setting should not be changed unless you know the",
"effects in full",
@ -126,7 +119,7 @@ const char *opsb_help_set_maxbytes [] = {
};
const char *opsb_help_set_timeout [] = {
"\2TIMEOUT\2",
"\2TIMEOUT <time>\2",
"Time we wait for a proxy to respond to our servers before",
"disconnecting and assuming its not an open proxy.",
"This setting should not be changed unless you know the",
@ -135,7 +128,7 @@ const char *opsb_help_set_timeout [] = {
};
const char *opsb_help_set_openstring [] = {
"\2OPENSTRING\2",
"\2OPENSTRING <string>\2",
"The string we expect to see if there is an open proxy",
"This setting should not be changed unless you know the",
"effects in full",
@ -143,59 +136,29 @@ const char *opsb_help_set_openstring [] = {
};
const char *opsb_help_set_scanmsg [] = {
"\2SCANMSG\2",
"\2SCANMSG <msg>\2",
"Message sent to a user when we scan their hosts",
"This setting should not be changed unless you know the",
"effects in full",
NULL
};
const char *opsb_help_set_bantime [] = {
"\2BANTIME\2",
const char *opsb_help_set_akilltime [] = {
"\2AKILLTIME <time>\2",
"How long the user will be banned from the network for",
"This setting should not be changed unless you know the",
"effects in full",
NULL
};
const char *opsb_help_set_cachetime [] = {
"\2CACHETIME\2",
"\2CACHETIME <time>\2",
"Time (in seconds) that an entry will be cached",
NULL
};
const char *opsb_help_set_verbose [] = {
"\2VERBOSE\2",
"\2VERBOSE <ON|OFF>\2",
"Whether OPSB is verbose in operation or not",
NULL
};
const char *opsb_help_exclude[] = {
"Syntax: \2EXCLUDE <LIST>\2",
" \2EXCLUDE <ADD> <hostname> <type> <reason>\2",
" \2EXCLUDE <DEL> <index>\2",
"",
"This command lets you view or manipulate the exception",
"list. Exception lists are used to exclude users, or",
"servers from scanning. You should at least add a server",
"entry for your services IRC name, to stop OPSB from",
"scanning Nickserv, Chanserv etc",
"",
"\2LIST\2 will list the current exceptions together with an",
"ID number for use in removing entries.",
"",
"\2ADD\2 will add an entry of <hostname> to the exception"
"list. Flag should be 1 to indicate a server name",
"(eg, services.irc-chat.net) or 0 to indicate a hostname",
"(eg, *.adsl.home.com). Reason allows you to set a"
"reason for the exclusion for future reference",
"Wildcards such as * and ? may be used in the hostname.",
"",
"\2DEL\2 will delete entry <index> from the list of",
"exclusions. Use the LIST command to find the index.",
NULL
};
const char *opsb_help_ports[] = {
"Syntax: \2PORTS <LIST>\2",
" \2PORTS <ADD> <type> <port>\2",

10
proxy.c
View file

@ -172,11 +172,11 @@ int init_libopm() {
/* max number of socks we allow */
opm_config(scanner, OPM_CONFIG_FD_LIMIT, &opsb.socks);
/* host to try to connect to */
opm_config(scanner, OPM_CONFIG_SCAN_IP, opsb.targethost);
opm_config(scanner, OPM_CONFIG_SCAN_IP, opsb.targetip);
/* port to try to connect to */
opm_config(scanner, OPM_CONFIG_SCAN_PORT, &opsb.targetport);
/* string to look for */
opm_config(scanner, OPM_CONFIG_TARGET_STRING, opsb.lookforstring);
opm_config(scanner, OPM_CONFIG_TARGET_STRING, opsb.openstring);
/* also look for throttle messages */
opm_config(scanner, OPM_CONFIG_TARGET_STRING, "ERROR :Trying to reconnect too fast");
/* timeout */
@ -221,8 +221,8 @@ void open_proxy(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void *unused)
irc_chanalert (opsb_bot, "Banning %s (%s) for Open Proxy - %s(%d)", scandata->who, remote->ip, type_of_proxy(remote->protocol), remote->port);
irc_globops (opsb_bot, "Banning %s (%s) for Open Proxy - %s(%d)", scandata->who, remote->ip, type_of_proxy(remote->protocol), remote->port);
if (scandata->reqclient) irc_prefmsg (opsb_bot, scandata->reqclient, "Banning %s (%s) for Open Proxy - %s(%d)", scandata->who, remote->ip, type_of_proxy(remote->protocol), remote->port);
if (opsb.doban)
irc_akill (opsb_bot, remote->ip, "*", opsb.bantime, "Open Proxy found on your host. %s(%d)", type_of_proxy(remote->protocol), remote->port);
if (opsb.doakill)
irc_akill (opsb_bot, remote->ip, "*", opsb.akilltime, "Open Proxy found on your host. %s(%d)", type_of_proxy(remote->protocol), remote->port);
#if 0
/* write out to a logfile */
if ((fp = fopen("logs/openproxies.log", "a")) == NULL) return;
@ -241,7 +241,7 @@ void open_proxy(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void *unused)
irc_chanalert (opsb_bot, "Banning %s (%s) as its listed in %s", scandata->who, inet_ntoa(scandata->ip), opsb.opmdomain);
irc_globops (opsb_bot, "Banning %s (%s) as its listed in %s", scandata->who, inet_ntoa(scandata->ip), opsb.opmdomain);
if (scandata->reqclient) irc_prefmsg (opsb_bot, scandata->reqclient, "Banning %s (%s) as its listed in %s", scandata->who, inet_ntoa(scandata->ip), opsb.opmdomain);
irc_akill (opsb_bot, inet_ntoa(scandata->ip), "*", opsb.bantime, "Your host is listed as an Open Proxy. Please visit the following website for more info: www.blitzed.org/proxy?ip=%s", inet_ntoa(scandata->ip));
irc_akill (opsb_bot, inet_ntoa(scandata->ip), "*", opsb.akilltime, "Your host is listed as an Open Proxy. Please visit the following website for more info: www.blitzed.org/proxy?ip=%s", inet_ntoa(scandata->ip));
}
#endif
}