dg [Thu, 28 May 2009 20:13:22 +0000 (20:13 +0000)]
Apply "[irc-security] BOPM patch for MikroTik HttpProxy, possibly others"
<redacted>:
Here's a quick patch for BOPM-3.1.3 which will help the HTTP CONNECT
scanner catch MikroTik HttpProxies (and any other quirky implementations
which require some initial data before activating the tunnel).
Terrence Koeman kindly tested the patched BOPM vs unpatched BOPM
performance against the current proxybl database, and while the patched
BOPM appears to have caught everything, the unpatched BOPM missed ~150
out of ~4600.
phil [Sun, 31 Jul 2005 09:31:10 +0000 (09:31 +0000)]
Fix FTBFS on gcc-4.0, patch provided by Andreas Jochens <redacted>:
config.c: In function 'libopm_config_create':
config.c:93: error: invalid lvalue in assignment
config.c:97: error: invalid lvalue in assignment
config.c:102: error: invalid lvalue in assignment
config.c: In function 'libopm_config_set':
config.c:191: error: invalid lvalue in assignment
make[5]: *** [config.lo] Error 1
make[5]: Leaving directory `/bopm-3.1.2/src/libopm/src'
dg [Thu, 15 Jan 2004 17:26:14 +0000 (17:26 +0000)]
Reintroduce inet_aton, which disappeared for some reason, here:
http://cvs.blitzed.org/libopm/src/proxy.c.diff?r1=1.13&r2=1.14
Thanks go to ezequiel at Alternativa.NET.AR for spotting this..
dgl [Sat, 8 Feb 2003 22:41:30 +0000 (22:41 +0000)]
- Added perldoc style docs to OPM.pm, not really complete docs but used in
conjuction with libopm-api.txt they provide enough detail.
- Added opm_end and opm_endscan ($scan->end and $scan->endscan) to the perl
API.
- Typo fixed opm_scanend -> opm_endscan in libopm-api.txt.
andy [Sat, 11 Jan 2003 06:18:42 +0000 (06:18 +0000)]
src/snprintf.[ch]:
Added Mark Martinec's replacement (v)snprintf from
http://www.ijs.si/software/snprintf/ for systems without (v)snprintf
(or with a broken one)
src/compat.c:
Renamed inet_aton to libopm_inet_aton to avoid clashes.
src/compat.h:
On systems without inet_aton, use libopm_inet_aton.
On systems without (or with broken) (v)snprintf, use
libopm_snprintf (from snprintf.c).
On systems without inet_pton, use libopm_inetpton (from inet.c).
src/inet.c:
For now made inetntoa() static, as it is used nowhere else but
this file.
Commented out inetntop() -- it doesn't seem to be used anywhere?
Removed bopm_gethostbyname() -- it wasn't used anywhere.
src/proxy.c:
No longer needs to include stdio.h.
src/test.c:
Needs to include compat.h and be linked with compat.o.
andy [Thu, 9 Jan 2003 17:30:18 +0000 (17:30 +0000)]
Chekc for working snprintf (but do nothing about it yet). This macro came
from http://www.gnu.org/software/ac-archive/ac_func_snprintf.html and is
copyright RĂ¼diger Kuhlmann <redacted>.
dgl [Thu, 7 Nov 2002 00:31:36 +0000 (00:31 +0000)]
It does help if you test after changing from using a : to a space as the
seperator
----------------------------------------------------------------------
Enter Log. Lines beginning with `CVS:' are removed automatically
Committing in . CVS: CVS: Modified Files: CVS: bopchecker.pl
----------------------------------------------------------------------
dgl [Sun, 27 Oct 2002 14:17:06 +0000 (14:17 +0000)]
OPM/bopchecker.pl:
Added bopchecker.pl script (if you don't want to install the module to
the whole system you can test it with):
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" bopchecker.pl
src/libopm.c:
OPM/OPM.xs:
Added opm_active to return number of active scans (so bopchecker can
exit when it has finished).
src/libopm.c:
Cleaned up read() code so it didn't rely on timeout when the tcp port is
closed.
Abort scans where there are no protocols defined (bug found by dg).
In check_queue use LIST_SIZE of the individual connections list instead of the global protocols
list when determining the projected file descriptor size