andy [Sun, 27 Jan 2002 14:17:00 +0000 (14:17 +0000)]
bopchecker.h:
Added bitmasks for the types of proxy. HTTP is 1, Wingate 2,
SOCKS4 is 4 and SOCKS5 8.
bopchecker.c:
Now returns a bitmask of the types of proxies found back to the
shell. THIS MEANS THAT VALUES > 1 MEAN A PROXY WAS FOUND AND 0
MEANS NO PROXY WAS FOUND, THIS IS THE EXACT OPPOSITE TO PRIOR
VERSIONS OF THIS PROGRAM!
andy [Fri, 25 Jan 2002 21:14:27 +0000 (21:14 +0000)]
dnsbl.c: Allow reporting to multiple addresses
README: Note about Sotiris Tsimbonis' idea
bopm.conf.sample: Note about how to use multiple TO addresses
andy [Thu, 24 Jan 2002 06:07:48 +0000 (06:07 +0000)]
Merged patch from Sotiris Tsimbonis <redacted> with minor changes.
Adds a -c command line argument which tells bopm to use a different name
for log, pid and config files. i.e. ./bopm -c myserver will use
myserver.conf, myserver.log, myserver.pid.
The patch also makes bopm set umode -h on itself after opering, in order
to prevent the bot appearing in /stats p output (shows opers available to
help).
bopchecker now takes the -c option also, in the same way as bopm.
strtok [Sun, 20 Jan 2002 19:59:39 +0000 (19:59 +0000)]
scan.c: Added HTTP/1.1 checking for HTTP proxies
bopm.conf.sample: Commented out DNSBL from and to
irc.c: Changed no data timeout to use NODATA_TIMEOUT from options.h
options.h: Added NODATA_TIMEOUT default to 900 seconds (15 minutes)
andy [Sun, 20 Jan 2002 02:58:04 +0000 (02:58 +0000)]
Here's a config option for an away message (AWAY). Also now responds to
PRIVMSG that simply says INFO, giving a bit of information about what the
bot does. Help email address set from the HELP_EMAIL option.
andy [Sun, 20 Jan 2002 02:03:01 +0000 (02:03 +0000)]
Added an evil hack called bopchecker which is a command line interface to
bopm. It returns EXIT_FAILURE if it doesn't find an open proxy, it
returns EXIT_SUCCESS if it does.
strtok [Fri, 18 Jan 2002 20:29:12 +0000 (20:29 +0000)]
config.c: Strip leading/tailing characters from arguments
misc.c/misc.h: Added clean() function which strips leading/tailing characters
from a string and returns a pointer to the new string.
andy [Thu, 17 Jan 2002 08:22:28 +0000 (08:22 +0000)]
Support for oper-only commands.
We keep a list of command structures, each oper command is placed into the
first free structure and then a /userhost is issued.
When the reply from userhost is received and the user verified as an oper
then the command can be executed, otherwise it should be ignored. Then the
command structure may be cleared and any dynamic memory freed.
We may receive userhost replies with no data, indicating that the nick left
the network before we could check them. Since we can't tell who it is,
we need to periodically (in this case, every 2 minutes) go through our
command list and remove any commands that have not been executed in that
period.
dissect_time() also moved to misc.c, now that it is used by more than just
the stats functions.
Current limitation: oper commands may have only one parameter.
andy [Thu, 17 Jan 2002 01:25:52 +0000 (01:25 +0000)]
Some simple stats:
[01:24:54] <grifferz> peng stat
[01:24:54] <penguinBopm> Uptime: 1 minute, 46 seconds
[01:24:54] <penguinBopm> Found 0 WinGates, 0 open
[01:24:54] <penguinBopm> Found 0 SOCKS4 servers, 0 open
[01:24:54] <penguinBopm> Found 1 SOCKS5 servers, 1 open
[01:24:54] <penguinBopm> Found 1 HTTP proxies, 1 open
[01:24:54] <penguinBopm> Number of connects: 2
andy [Thu, 17 Jan 2002 00:30:46 +0000 (00:30 +0000)]
Here's the beginnings of some command handling. First four letters of
server name plus command, or "!all" then command, either in msg or in
a channel that bopm is watching.