]> jfr.im git - irc/ircd-hybrid/bopm.git/log
irc/ircd-hybrid/bopm.git
22 years agoscan.c: Ridded instances of stats_num being incremented twice
strtok [Sat, 19 Jan 2002 05:33:39 +0000 (05:33 +0000)] 
scan.c: Ridded instances of stats_num being incremented twice
if a host was open AND was insecure

22 years agoREADME grammar fix
strtok [Sat, 19 Jan 2002 05:05:04 +0000 (05:05 +0000)] 
README grammar fix

22 years agoUpdated TODO
strtok [Sat, 19 Jan 2002 05:03:26 +0000 (05:03 +0000)] 
Updated TODO

22 years agoMore grammar fixes
strtok [Sat, 19 Jan 2002 01:47:25 +0000 (01:47 +0000)] 
More grammar fixes

22 years agoBad grammar!
strtok [Sat, 19 Jan 2002 01:45:01 +0000 (01:45 +0000)] 
Bad grammar!

22 years agoMore README documentation added (credits)
strtok [Fri, 18 Jan 2002 23:22:24 +0000 (23:22 +0000)] 
More README documentation added (credits)
Added INSTALL with quick install procedures

22 years agoOff by one fix with clean()
strtok [Fri, 18 Jan 2002 22:57:07 +0000 (22:57 +0000)] 
Off by one fix with clean()

22 years agoYet another #include <time.h> for BSD!
strtok [Fri, 18 Jan 2002 22:49:53 +0000 (22:49 +0000)] 
Yet another #include <time.h> for BSD!

22 years agoscan.c: BOPM now increases number open (protocol) by determining if a
strtok [Fri, 18 Jan 2002 22:47:12 +0000 (22:47 +0000)] 
scan.c: BOPM now increases number open (protocol) by determining if a
socket can be written to, rather than if read returned 0.

22 years agoBegin README file.
strtok [Fri, 18 Jan 2002 22:28:04 +0000 (22:28 +0000)] 
Begin README file.

22 years agoconfig.c: Strip leading/tailing characters from arguments
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.

22 years agoscan.c: Stats, num negotiated now increased on negotiation failed
strtok [Fri, 18 Jan 2002 18:14:25 +0000 (18:14 +0000)] 
scan.c: Stats, num negotiated now increased on negotiation failed
        Fixed order of paramaters for manual checking

22 years agoSupport for checking against a DNS (black|block)list.
andy [Fri, 18 Jan 2002 09:06:26 +0000 (09:06 +0000)] 
Support for checking against a DNS (black|block)list.

Set your zone using the DNSBL_ZONE config option, checking will take place                          on every connect and every time the "check" command is used.

22 years agoAdded port to stats
strtok [Fri, 18 Jan 2002 06:07:38 +0000 (06:07 +0000)] 
Added port to stats
Replaced sizeof scan_protocols with SCAN_NUMPROTOCOLS

22 years agoAdded size_t SCAN_NUMPROTOCOLS
strtok [Fri, 18 Jan 2002 06:00:55 +0000 (06:00 +0000)] 
Added size_t SCAN_NUMPROTOCOLS

22 years agohopeful extern fix
strtok [Fri, 18 Jan 2002 04:49:22 +0000 (04:49 +0000)] 
hopeful extern fix

22 years agoMade stats variables part of the protocol_hash struct, I had to throw
strtok [Fri, 18 Jan 2002 04:10:44 +0000 (04:10 +0000)] 
Made stats variables part of the protocol_hash struct, I had to throw
a ton of includes in stats.c to make #include "scan.h" happy

22 years agoMoke debug stuff work by linking it properly
andy [Fri, 18 Jan 2002 01:51:19 +0000 (01:51 +0000)] 
Moke debug stuff work by linking it properly

22 years agoSimple SIGINT handler
andy [Fri, 18 Jan 2002 01:25:49 +0000 (01:25 +0000)] 
Simple SIGINT handler

22 years agoFixed massive CPU usage (YAY).
strtok [Fri, 18 Jan 2002 01:15:51 +0000 (01:15 +0000)] 
Fixed massive CPU usage (YAY).

22 years agoDEBUG_GPROF=1 make to enable gprof debugging
andy [Fri, 18 Jan 2002 00:39:14 +0000 (00:39 +0000)] 
DEBUG_GPROF=1 make to enable gprof debugging

22 years agoirc_reconnect() fixed and working
strtok [Fri, 18 Jan 2002 00:02:37 +0000 (00:02 +0000)] 
irc_reconnect() fixed and working
rehashing now working (/kill bot to rehash)

22 years agoirc.c: Reconnect if unable to WRITE
strtok [Thu, 17 Jan 2002 23:46:55 +0000 (23:46 +0000)] 
irc.c: Reconnect if unable to WRITE

22 years agoreconnect on select() returning -1 was bad mmkay
strtok [Thu, 17 Jan 2002 23:38:13 +0000 (23:38 +0000)] 
reconnect on select() returning -1 was bad mmkay

22 years agoMore attempted irc_reconnect() fixes.
strtok [Thu, 17 Jan 2002 23:35:43 +0000 (23:35 +0000)] 
More attempted irc_reconnect() fixes.

22 years agoirc.c: Log on irc_reconnect() call
strtok [Thu, 17 Jan 2002 23:31:48 +0000 (23:31 +0000)] 
irc.c: Log on irc_reconnect() call

22 years agoirc.c: added irc_reconnect
strtok [Thu, 17 Jan 2002 23:25:12 +0000 (23:25 +0000)] 
irc.c: added irc_reconnect

22 years agoAnd another
andy [Thu, 17 Jan 2002 23:12:37 +0000 (23:12 +0000)] 
And another

22 years agoBSD fix
andy [Thu, 17 Jan 2002 23:11:20 +0000 (23:11 +0000)] 
BSD fix

22 years agoFirst four letters of nick for commands.
andy [Thu, 17 Jan 2002 23:07:03 +0000 (23:07 +0000)] 
First four letters of nick for commands.

22 years agoconfig.c: Set pointer to type_string's to null
strtok [Thu, 17 Jan 2002 23:02:32 +0000 (23:02 +0000)] 
config.c: Set pointer to type_string's to null
irc.c: reconnect on select() exception vector being set with IRC_FD

22 years agoscan_timer fix
strtok [Thu, 17 Jan 2002 22:12:01 +0000 (22:12 +0000)] 
scan_timer fix

22 years agoscan.c: Added timeout on verbose checking
strtok [Thu, 17 Jan 2002 22:08:56 +0000 (22:08 +0000)] 
scan.c: Added timeout on verbose checking

22 years agoChanged scan_connect to compensate for verbose scanning.
strtok [Thu, 17 Jan 2002 21:53:42 +0000 (21:53 +0000)] 
Changed scan_connect to compensate for verbose scanning.

22 years agoManual check almost done, but work must stop here for a few hours..
andy [Thu, 17 Jan 2002 12:58:04 +0000 (12:58 +0000)] 
Manual check almost done, but work must stop here for a few hours..

22 years agoSupport for oper-only commands.
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.

22 years agoAdded README file (yet to be written)
strtok [Thu, 17 Jan 2002 06:17:44 +0000 (06:17 +0000)] 
Added README file (yet to be written)

22 years agoOops, the old way left nick unterminated.
andy [Thu, 17 Jan 2002 01:47:08 +0000 (01:47 +0000)] 
Oops, the old way left nick unterminated.

22 years agoSome simple stats:
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

22 years agoHere's the beginnings of some command handling. First four letters of
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.

22 years agoscan.c: Flag conncetions STATE_CLOSED which return 0 on read function.
strtok [Wed, 16 Jan 2002 22:12:32 +0000 (22:12 +0000)] 
scan.c: Flag conncetions STATE_CLOSED which return 0 on read function.

22 years agoirc.c: Added no data timeout of 300 seconds
strtok [Wed, 16 Jan 2002 19:17:30 +0000 (19:17 +0000)] 
irc.c: Added no data timeout of 300 seconds
       select() now switches on errno to determine unrecoverable error
       and reconnects if need be.

22 years agoRejoin when kicked. Other part of the code already handle getting in to
andy [Wed, 16 Jan 2002 16:17:18 +0000 (16:17 +0000)] 
Rejoin when kicked.  Other part of the code already handle getting in to
channels through +bikl modes.

22 years agoLog all incoming and outgoing IRC traffic at debug level 2+ (./bopm -dd)
andy [Wed, 16 Jan 2002 15:37:00 +0000 (15:37 +0000)] 
Log all incoming and outgoing IRC traffic at debug level 2+ (./bopm -dd)

22 years agoSome fork cleanups, some extra headers needed by strlen, umask, exit.
andy [Wed, 16 Jan 2002 14:15:25 +0000 (14:15 +0000)] 
Some fork cleanups, some extra headers needed by strlen, umask, exit.

22 years ago-)3 is proabbly OK
andy [Wed, 16 Jan 2002 14:00:32 +0000 (14:00 +0000)] 
-)3 is proabbly OK

22 years agoscan.c: Added code to mark connects STATE_CLOSED if they match a host that
strtok [Wed, 16 Jan 2002 06:40:05 +0000 (06:40 +0000)] 
scan.c: Added code to mark connects STATE_CLOSED if they match a host that
        has already been determined to be an open proxy.

22 years agoTODO: Added to project
strtok [Wed, 16 Jan 2002 06:07:34 +0000 (06:07 +0000)] 
TODO: Added to project
config.c: Removed debug line for free()

22 years agoSample config is now more appropriate.
strtok [Wed, 16 Jan 2002 04:57:35 +0000 (04:57 +0000)] 
Sample config is now more appropriate.

22 years agoA little bit more logging in debug mode.
andy [Wed, 16 Jan 2002 03:22:50 +0000 (03:22 +0000)] 
A little bit more logging in debug mode.

22 years agoLog a readable time stamp
andy [Wed, 16 Jan 2002 03:11:33 +0000 (03:11 +0000)] 
Log a readable time stamp

22 years agoHINT: if you run it without a config file, and you don't check, it tries
andy [Wed, 16 Jan 2002 00:31:21 +0000 (00:31 +0000)] 
HINT: if you run it without a config file, and you don't check, it tries
to do gethostbyname on a null string and segfaults.

22 years agogetopt_long is not portable, so we'll just have to do with only -d for now.
andy [Wed, 16 Jan 2002 00:21:11 +0000 (00:21 +0000)] 
getopt_long is not portable, so we'll just have to do with only -d for now.

On the plus side, extra -d = higher debug level in case that is needed in
future (OPT_DEBUG = debug level or 0 for no debug)

22 years agoAdded command line option -d or --debug, this prevents forking and directs
andy [Wed, 16 Jan 2002 00:04:41 +0000 (00:04 +0000)] 
Added command line option -d or --debug, this prevents forking and directs
all logging to stderr.

22 years agoMore gcov stuff to ignore
andy [Tue, 15 Jan 2002 22:49:05 +0000 (22:49 +0000)] 
More gcov stuff to ignore

22 years agoIgnore pid and log file.
andy [Tue, 15 Jan 2002 22:48:27 +0000 (22:48 +0000)] 
Ignore pid and log file.

22 years agoold erik, move bopm.conf to bopm.sample.conf so it doesn't try to cvs
andy [Tue, 15 Jan 2002 22:17:06 +0000 (22:17 +0000)] 
old erik, move bopm.conf to bopm.sample.conf so it doesn't try to cvs
commit my actual oper pass.

22 years agoAnd ignore the binary!
andy [Tue, 15 Jan 2002 22:07:36 +0000 (22:07 +0000)] 
And ignore the binary!

22 years agoIgnore gcov stuff
andy [Tue, 15 Jan 2002 22:07:18 +0000 (22:07 +0000)] 
Ignore gcov stuff

22 years agoLogging in scan_w_socks4 for bad inet_aton call
strtok [Tue, 15 Jan 2002 22:01:33 +0000 (22:01 +0000)] 
Logging in scan_w_socks4 for bad inet_aton call

22 years agoIgnore vi(m) swapfiles.
andy [Tue, 15 Jan 2002 21:58:15 +0000 (21:58 +0000)] 
Ignore vi(m) swapfiles.

22 years agoDEBUG_GCOV=1 make
andy [Tue, 15 Jan 2002 21:57:20 +0000 (21:57 +0000)] 
DEBUG_GCOV=1 make
DEBUG_GDB=1 make

to enable coverage instrumenting and extra debug for gdb respectively.

22 years agoI do not think we need those flags (and they are gcc-specific)
andy [Tue, 15 Jan 2002 21:48:48 +0000 (21:48 +0000)] 
I do not think we need those flags (and they are gcc-specific)

22 years agoHere's a better Makefile (sorry dg :p)
andy [Tue, 15 Jan 2002 21:37:51 +0000 (21:37 +0000)] 
Here's a better Makefile (sorry dg :p)

22 years agoWe have a Makefile
andy [Tue, 15 Jan 2002 21:37:12 +0000 (21:37 +0000)] 
We have a Makefile

22 years agodg's Makefile
andy [Tue, 15 Jan 2002 21:29:39 +0000 (21:29 +0000)] 
dg's Makefile

22 years agosocks4 fix
strtok [Tue, 15 Jan 2002 21:23:37 +0000 (21:23 +0000)] 
socks4 fix

22 years agobuffer underrun fix
strtok [Tue, 15 Jan 2002 21:05:09 +0000 (21:05 +0000)] 
buffer underrun fix

22 years agovsnprintf and snprintf conversion in irc_send (irc.c)
strtok [Tue, 15 Jan 2002 19:21:54 +0000 (19:21 +0000)] 
vsnprintf and snprintf conversion in irc_send (irc.c)

22 years agoattempted bugfixes
strtok [Tue, 15 Jan 2002 19:10:03 +0000 (19:10 +0000)] 
attempted bugfixes

22 years agoUnborked +c scanning...
strtok [Tue, 15 Jan 2002 08:04:10 +0000 (08:04 +0000)] 
Unborked +c scanning...

22 years agoFixed IRC binding.
strtok [Tue, 15 Jan 2002 07:44:01 +0000 (07:44 +0000)] 
Fixed IRC binding.

22 years agoBSD fixes
strtok [Tue, 15 Jan 2002 07:34:55 +0000 (07:34 +0000)] 
BSD fixes

22 years agobsd fix
strtok [Tue, 15 Jan 2002 07:15:46 +0000 (07:15 +0000)] 
bsd fix

22 years agobopm now forks and writes pid to bopm.pid
strtok [Tue, 15 Jan 2002 07:01:06 +0000 (07:01 +0000)] 
bopm now forks and writes pid to bopm.pid
debug printf() removed from irc.c, output exists only
in the logfile now.

22 years agoNickserv ident and Chanserv invite fixes.
strtok [Tue, 15 Jan 2002 05:59:07 +0000 (05:59 +0000)] 
Nickserv ident and Chanserv invite fixes.

22 years agoFew bug fixes.
strtok [Mon, 14 Jan 2002 21:57:59 +0000 (21:57 +0000)] 
Few bug fixes.

22 years agoNickServ identification via dg style.
strtok [Mon, 14 Jan 2002 21:54:10 +0000 (21:54 +0000)] 
NickServ identification via dg style.

22 years agoCHANSERV invite code, nastiness is due to avoiding strtok() and strstr()
strtok [Mon, 14 Jan 2002 21:23:12 +0000 (21:23 +0000)] 
CHANSERV invite code, nastiness is due to avoiding strtok() and strstr()

22 years agoChannel and bopm.log logging.
strtok [Mon, 14 Jan 2002 19:31:57 +0000 (19:31 +0000)] 
Channel and bopm.log logging.

22 years agoAdded Configurable KLINE command and config parameter KLINE_COMMAND
strtok [Mon, 14 Jan 2002 07:33:17 +0000 (07:33 +0000)] 
Added Configurable KLINE command and config parameter KLINE_COMMAND
Added NICKSERV_IDENT and NICKSERV_INVITE config parameters.

22 years agoconfig.c is now more pretty
strtok [Mon, 14 Jan 2002 07:14:14 +0000 (07:14 +0000)] 
config.c is now more pretty

22 years agoRemoved unportable flags on recv().
strtok [Mon, 14 Jan 2002 05:47:31 +0000 (05:47 +0000)] 
Removed unportable flags on recv().
Added ignore on SIGPIPE

22 years agoAdded MSG_NOSIGNAL flag to all RECV functions in scanner to prevent SIGPIPE
strtok [Mon, 14 Jan 2002 05:35:15 +0000 (05:35 +0000)] 
Added MSG_NOSIGNAL flag to all RECV functions in scanner to prevent SIGPIPE

22 years agoReplaced signal with sigaction.
strtok [Mon, 14 Jan 2002 05:23:33 +0000 (05:23 +0000)] 
Replaced signal with sigaction.

22 years agoRemoved PERFORM from configuration.
strtok [Mon, 14 Jan 2002 03:20:11 +0000 (03:20 +0000)] 
Removed PERFORM from configuration.
Added CHANNELS to config.

22 years agofflush on log() (log.c) so that log files are generated properly.
strtok [Sun, 13 Jan 2002 08:37:15 +0000 (08:37 +0000)] 
fflush on log() (log.c) so that log files are generated properly.

22 years agoBind to BINDSCAN for scanning (needs tested).
strtok [Sun, 13 Jan 2002 07:17:29 +0000 (07:17 +0000)] 
Bind to BINDSCAN for scanning (needs tested).

22 years agoAdded BINDIRC and BINDSCAN as config parameters.
strtok [Sun, 13 Jan 2002 06:24:12 +0000 (06:24 +0000)] 
Added BINDIRC and BINDSCAN as config parameters.
BINDIRC is now used for binding the irc connection.

22 years agoAdded comments to bopm.conf.
strtok [Sun, 13 Jan 2002 04:05:56 +0000 (04:05 +0000)] 
Added comments to bopm.conf.

22 years agoInsecure wingate detection -- yay
strtok [Sat, 12 Jan 2002 19:58:08 +0000 (19:58 +0000)] 
Insecure wingate detection -- yay

22 years agosocks5 scanning support
strtok [Sat, 12 Jan 2002 19:29:25 +0000 (19:29 +0000)] 
socks5 scanning support

22 years agoFinished socks4 and http proxy support, cleaned out debug code.
strtok [Sat, 12 Jan 2002 06:14:40 +0000 (06:14 +0000)] 
Finished socks4 and http proxy support, cleaned out debug code.
Added SCANIP and SCANPORT to config, which provides a means to tell
the scanner what ip/port to try to connect the proxy to for testing.
Currently this MUST be an IP (no host resolving)

22 years agoSocks4 scanning working (just need to setup the right IP to use)
strtok [Sat, 12 Jan 2002 06:03:15 +0000 (06:03 +0000)] 
Socks4 scanning working (just need to setup the right IP to use)

22 years agoSocks 4 write support.
strtok [Fri, 11 Jan 2002 20:14:42 +0000 (20:14 +0000)] 
Socks 4 write support.

22 years agoSeveral bugfixes, timeouts added, kline reason added to conf file
strtok [Fri, 11 Jan 2002 19:10:00 +0000 (19:10 +0000)] 
Several bugfixes, timeouts added, kline reason added to conf file

22 years agoConnection timeouts and removal of structs marked STATE_CLOSED every 1
strtok [Fri, 11 Jan 2002 17:35:33 +0000 (17:35 +0000)] 
Connection timeouts and removal of structs marked STATE_CLOSED every 1
sec (via alarm signal).

22 years agoA few code cleanups.
strtok [Fri, 11 Jan 2002 17:11:46 +0000 (17:11 +0000)] 
A few code cleanups.

22 years agoKlines work now (kline function call needs shifted to a less local position)
strtok [Fri, 11 Jan 2002 06:45:54 +0000 (06:45 +0000)] 
Klines work now (kline function call needs shifted to a less local position)

22 years agochecking for ready read/write in sock_check() using select. functions
strtok [Fri, 11 Jan 2002 02:26:24 +0000 (02:26 +0000)] 
checking for ready read/write in sock_check() using select. functions
regarding specific protocols are then called for individual writing/reading.