andy [Tue, 30 Apr 2002 23:24:38 +0000 (23:24 +0000)]
opercmd.c:
Reformatting.
opercmd.h:
Reformatting, moved some global variable declarations to opercmd.c
irc.c:
Needed an extern to get access to LAST_REAP_TIME.
andy [Tue, 30 Apr 2002 03:01:23 +0000 (03:01 +0000)]
irc.c:
Code cleanups. Added check_channel() function to check if a given
channel is one of our configured reporting channels. Made a bunch
of irc.c private fucntions have static linkage.
irc.h:
Code cleanups.
strtok [Tue, 26 Feb 2002 05:07:44 +0000 (05:07 +0000)]
scan.c: Moved Cisco up in hash table so that it is tried before wingate,
because cisco routers only allow 4 connections at once (pointed out by JPayne)
andy [Fri, 22 Feb 2002 11:05:19 +0000 (11:05 +0000)]
irc.c:
Added three new functions, do_hybrid_connect(), do_xnet_connect()
and do_trircd_connect(). This could be modularised further but for
now this gets rid of some duplication. Each function is for
processing the connect notices of different classes of ircd.
do_trircd_connect() adds support for tr-ircd, which has a &connects
channel instead of a +c umode.
andy [Fri, 15 Feb 2002 04:57:29 +0000 (04:57 +0000)]
match.c, match.h:
IRC wildcard matching functions from dancer-hybrid. match()
handles string matching and collapse() shortens a wildcard string
as far as possible.
config.h:
Added new config type; TYPE_LIST. Multiple parameters of this
type are put into a linked list.
Added missing config_memfail() prototype.
config.c:
Added new config option EXCLUDE. This is a list of wildcard
strings against which the host and IP address of connecting users
will be matched. A user which matches any entry will not be
scanned.
Makefile.in:
Added new objects and dependencies for match.[cho]
irc.c, irc.h:
Added do_connect() function to avoid duplication. This function
checks the users host and IP address against the EXCLUDE list and
provided there are no matches proceeds to do a DNSBL check and
proxy scan.
The above patch was contributed by Rob Levin/lilo @ OPN
andy [Thu, 14 Feb 2002 05:17:18 +0000 (05:17 +0000)]
configure.in, options.h:
Added configure option --with-unreal to replace the UNREAL
definition that was in options.h
acconfig.h:
Make autoheader work for --with-unreal
irc.c:
WITH_UNREAL instead of UNREAL
andy [Thu, 14 Feb 2002 05:06:06 +0000 (05:06 +0000)]
configure.in:
Added support for --with-select configure option so that people
can force use of select() whether they have poll() or not.
acconfig.h:
This makes autoheader work (which is used to make setup.h.in from
configure.in) now that WITH_SELECT is added.
andy [Wed, 13 Feb 2002 20:50:59 +0000 (20:50 +0000)]
bopchecker.c, irc.c, scan.c:
Use AC_HEADER_TIME and AC_CHECK_HEADERS(sys/time.h) to check how to
handle time.h and sys/time.h (if there even if a sys/time.h, if it
can be included with time.h)
andy [Wed, 13 Feb 2002 20:26:12 +0000 (20:26 +0000)]
Makefile.in:
Add a distclean target. We may want to distribute the configure
script at some point instead of just configure.in and expect people
to use autoconf; we'll have to remember to change this then.
config.c, dnsbl.c, irc.c, log.c, main.c, opercmd.c, scan.c:
Take account of AC_HEADER_STDC check.
andy [Tue, 12 Feb 2002 23:02:03 +0000 (23:02 +0000)]
config.c:
Really doesn't need to be that verbose :)
Remember I use -d and -dd a lot when helping people set up BOPM -
I really don't need 2 pages of config options flying by.
strtok [Tue, 12 Feb 2002 19:19:15 +0000 (19:19 +0000)]
options.h USE_POLL and MAXPOLL for use of poll() as opposed to select() in
scan.c. If USE_POLL is defined, the scanner will use poll(), if not
select() is used as before
strtok [Tue, 12 Feb 2002 06:10:42 +0000 (06:10 +0000)]
bopm.conf.sample: Added config parameter FDLIMIT (default 512), which is maximum number
of file descriptors that can be open at any time (for scanning).
config.c: Added -d debug output of set config parameters
misc.c: Fixed bug involving clean()
scan.c: Added scan_establish() code to socket()/connect() to a socket, connections
are now queued if the FDLIMIT cap is reached.
andy [Sun, 10 Feb 2002 15:25:59 +0000 (15:25 +0000)]
scan.c:
Improved HTTP handling. Seems to work (have tested against all
known HTTP false positives seen so far, plus 2 known open proxies).
Ideas and pseudocode from jpayne@blitzed.org.
andy [Thu, 7 Feb 2002 17:23:22 +0000 (17:23 +0000)]
dnsbl.c:
Need to check against DNSBL_ZONE with a dot on the end, because
otherwise it will try the search domains in /etc/resolv.conf, and may
even find a match! Reported and fixed by asmodeus@irc.gr
bopm.conf.sample:
Gotcha about putting your own dot at the end of the zone.