Changeset 40
- Timestamp:
- 03/04/12 15:02:13 (13 years ago)
- 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 1 1 # DNSBL 2 2 # 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 ## 3 20 4 21 package DNSBL; -
Property svn:keywords
set to
-
trunk/dnsbl/Makefile
-
Property svn:keywords
set to
Date Rev Author Id
r36 r40 9 9 MANIFEST = \ 10 10 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 12 13 13 14 PKGNAME=dnsbl 14 VERSION=0.2. 115 VERSION=0.2.2 15 16 16 17 all: -
Property svn:keywords
set to
-
trunk/dnsbl/browse.cgi
r32 r40 1 1 #!/usr/bin/perl 2 2 # 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 ## 3 20 4 21 use strict; -
trunk/dnsbl/check-iplist.pl
r25 r40 1 1 #!/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 ## 2 20 3 21 use strict; -
trunk/dnsbl/delist-ip
r32 r40 1 1 #!/usr/bin/perl 2 2 # 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 ## 4 20 5 21 use strict; … … 57 73 $sth = $dbh->prepare("DELETE FROM iplist WHERE ip=?"); 58 74 $sth->execute($ip); 75 $dbh->do("UPDATE blocks SET ipcount=ipcount-1 WHERE block >> ?", undef, ($ip)); 59 76 $dbh->commit; 60 77 }; -
trunk/dnsbl/dnsbl.cgi
r35 r40 1 1 #!/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 ## 2 20 3 21 use strict; -
trunk/dnsbl/export-dnsbl
r38 r40 1 1 #!/usr/bin/perl 2 2 # 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 ## 7 20 8 21 use strict; -
trunk/dnsbl/extract-data
r39 r40 1 1 #!/usr/bin/perl 2 # $Id$ 3 # 2 4 # 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: 5 8 # dmz@dmzs.com - March 19, 2004 6 9 # http://www.dmzs.com/tools/files/spam.phtml 7 10 # LGPL 8 # by:9 # Kris Deugau <kdeugau@deepnet.cx> 2009/01/2111 # 12 # Hack-n-patch'ed to convert to IP and URI extraction script: 10 13 # Kris Deugau <kdeugau@deepnet.cx> 2009/05/19 14 # 15 # Little bits to feed a lightweight package-creating tool: 11 16 ##wrapreq libmail-imapclient-perl (>=3.11), libio-socket-ssl-perl, install-sa 12 17 ##wrapver 0.1 13 18 ##wrapsum Extract relay IP and URI hosts from mail in IMAP folder 14 # $Id$15 # $URL$16 19 17 20 use strict; -
trunk/dnsbl/orgmove
r25 r40 1 1 #!/usr/bin/perl 2 2 # 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 ## 3 20 4 21 use strict; -
trunk/dnsbl/setparents.pl
r32 r40 1 1 #!/usr/bin/perl 2 2 # 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 ## 3 20 4 21 use strict;
Note:
See TracChangeset
for help on using the changeset viewer.