Changeset 40 for trunk


Ignore:
Timestamp:
03/04/12 15:02:13 (12 years ago)
Author:
Kris Deugau
Message:

/trunk/dnsbl

Minor cleanups to prepare for semirelease
GPL-tag executables and Perl module from Makefile MANIFEST

Location:
trunk/dnsbl
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/dnsbl/DNSBL.pm

    • Property svn:keywords set to Date Rev Author Id
    r36 r40  
    11# DNSBL
    22# Functions for interacting with the DNSBL database
     3##
     4# $Id$
     5# Copyright 2009-2011 Kris Deugau <kdeugau@deepnet.cx>
     6#
     7#    This program is free software: you can redistribute it and/or modify
     8#    it under the terms of the GNU General Public License as published by
     9#    the Free Software Foundation, either version 3 of the License, or
     10#    (at your option) any later version.
     11#
     12#    This program is distributed in the hope that it will be useful,
     13#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#    GNU General Public License for more details.
     16#
     17#    You should have received a copy of the GNU General Public License
     18#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19##
    320
    421package DNSBL;
  • trunk/dnsbl/Makefile

    • Property svn:keywords set to Date Rev Author Id
    r36 r40  
    99MANIFEST = \
    1010        browse.cgi check-iplist.pl delist-ip export-dnsbl index.shtml Makefile \
    11         dnsbl.cgi DNSBL.pm dnsbl.sql templates/ addparents.sql setparents.pl
     11        dnsbl.cgi DNSBL.pm dnsbl.sql templates/ addparents.sql setparents.pl \
     12        COPYING
    1213
    1314PKGNAME=dnsbl
    14 VERSION=0.2.1
     15VERSION=0.2.2
    1516
    1617all:
  • trunk/dnsbl/browse.cgi

    r32 r40  
    11#!/usr/bin/perl
    22# quickndirty browse-the-damned-by-web
     3##
     4# $Id$
     5# Copyright 2009-2011 Kris Deugau <kdeugau@deepnet.cx>
     6#
     7#    This program is free software: you can redistribute it and/or modify
     8#    it under the terms of the GNU General Public License as published by
     9#    the Free Software Foundation, either version 3 of the License, or
     10#    (at your option) any later version.
     11#
     12#    This program is distributed in the hope that it will be useful,
     13#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#    GNU General Public License for more details.
     16#
     17#    You should have received a copy of the GNU General Public License
     18#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19##
    320
    421use strict;
  • trunk/dnsbl/check-iplist.pl

    r25 r40  
    11#!/usr/bin/perl
     2# Integrity/data-correctness checker
     3##
     4# $Id$
     5# Copyright 2009-2011 Kris Deugau <kdeugau@deepnet.cx>
     6#
     7#    This program is free software: you can redistribute it and/or modify
     8#    it under the terms of the GNU General Public License as published by
     9#    the Free Software Foundation, either version 3 of the License, or
     10#    (at your option) any later version.
     11#
     12#    This program is distributed in the hope that it will be useful,
     13#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#    GNU General Public License for more details.
     16#
     17#    You should have received a copy of the GNU General Public License
     18#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19##
    220
    321use strict;
  • trunk/dnsbl/delist-ip

    r32 r40  
    11#!/usr/bin/perl
    22# Delist an IP
    3 # 2010/09/07 kdeugau@deepnet.cx
     3##
     4# $Id$
     5# Copyright 2011, 2012 Kris Deugau <kdeugau@deepnet.cx>
     6#
     7#    This program is free software: you can redistribute it and/or modify
     8#    it under the terms of the GNU General Public License as published by
     9#    the Free Software Foundation, either version 3 of the License, or
     10#    (at your option) any later version.
     11#
     12#    This program is distributed in the hope that it will be useful,
     13#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#    GNU General Public License for more details.
     16#
     17#    You should have received a copy of the GNU General Public License
     18#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19##
    420
    521use strict;
     
    5773  $sth = $dbh->prepare("DELETE FROM iplist WHERE ip=?");
    5874  $sth->execute($ip);
     75  $dbh->do("UPDATE blocks SET ipcount=ipcount-1 WHERE block >> ?", undef, ($ip));
    5976  $dbh->commit;
    6077};
  • trunk/dnsbl/dnsbl.cgi

    r35 r40  
    11#!/usr/bin/perl
     2# Main add-IP-to-list CGI
     3##
     4# $Id$
     5# Copyright 2009-2011 Kris Deugau <kdeugau@deepnet.cx>
     6#
     7#    This program is free software: you can redistribute it and/or modify
     8#    it under the terms of the GNU General Public License as published by
     9#    the Free Software Foundation, either version 3 of the License, or
     10#    (at your option) any later version.
     11#
     12#    This program is distributed in the hope that it will be useful,
     13#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#    GNU General Public License for more details.
     16#
     17#    You should have received a copy of the GNU General Public License
     18#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19##
    220
    321use strict;
  • trunk/dnsbl/export-dnsbl

    r38 r40  
    11#!/usr/bin/perl
    22# Export DNSBL data
    3 # 2009/05/26 kdeugau@deepnet.cx
    4 # need to stub it out so it can use a module to actually write zone
    5 # data for different NS software
    6 # completed 2008/08/14
     3##
     4# $Id$
     5# Copyright 2009-2011 Kris Deugau <kdeugau@deepnet.cx>
     6#
     7#    This program is free software: you can redistribute it and/or modify
     8#    it under the terms of the GNU General Public License as published by
     9#    the Free Software Foundation, either version 3 of the License, or
     10#    (at your option) any later version.
     11#
     12#    This program is distributed in the hope that it will be useful,
     13#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#    GNU General Public License for more details.
     16#
     17#    You should have received a copy of the GNU General Public License
     18#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19##
    720
    821use strict;
  • trunk/dnsbl/extract-data

    r39 r40  
    11#!/usr/bin/perl
     2# $Id$
     3#
    24# Extract relay IP, URI hosts from mail in folder
    3 # Hack-n-patch from:
    4 # Heavily reworked from original:
     5#
     6# Heavily reworked 2009/01/21 by Kris Deugau <kdeugau@deepnet.cx>
     7# from original learn-spam-from-IMAP script:
    58# dmz@dmzs.com - March 19, 2004
    69# http://www.dmzs.com/tools/files/spam.phtml
    710# LGPL
    8 # by:
    9 # Kris Deugau <kdeugau@deepnet.cx> 2009/01/21
     11#
     12# Hack-n-patch'ed to convert to IP and URI extraction script:
    1013# Kris Deugau <kdeugau@deepnet.cx> 2009/05/19
     14#
     15# Little bits to feed a lightweight package-creating tool:
    1116##wrapreq libmail-imapclient-perl (>=3.11), libio-socket-ssl-perl, install-sa
    1217##wrapver 0.1
    1318##wrapsum Extract relay IP and URI hosts from mail in IMAP folder
    14 # $Id$
    15 # $URL$
    1619
    1720use strict;
  • trunk/dnsbl/orgmove

    r25 r40  
    11#!/usr/bin/perl
    22# move blocks listed with one org to another.  intended for orgs that have several bytestrings as names in WHOIS.
     3##
     4# $Id$
     5# Copyright 2009-2010 Kris Deugau <kdeugau@deepnet.cx>
     6#
     7#    This program is free software: you can redistribute it and/or modify
     8#    it under the terms of the GNU General Public License as published by
     9#    the Free Software Foundation, either version 3 of the License, or
     10#    (at your option) any later version.
     11#
     12#    This program is distributed in the hope that it will be useful,
     13#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#    GNU General Public License for more details.
     16#
     17#    You should have received a copy of the GNU General Public License
     18#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19##
    320
    421use strict;
  • trunk/dnsbl/setparents.pl

    r32 r40  
    11#!/usr/bin/perl
    22# hack to set new parent column on blocks and iplist tables
     3##
     4# $Id$
     5# Copyright 2009-2011 Kris Deugau <kdeugau@deepnet.cx>
     6#
     7#    This program is free software: you can redistribute it and/or modify
     8#    it under the terms of the GNU General Public License as published by
     9#    the Free Software Foundation, either version 3 of the License, or
     10#    (at your option) any later version.
     11#
     12#    This program is distributed in the hope that it will be useful,
     13#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#    GNU General Public License for more details.
     16#
     17#    You should have received a copy of the GNU General Public License
     18#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19##
    320
    421use strict;
Note: See TracChangeset for help on using the changeset viewer.