Archive for the 'OSS' Category
Posted by resmo on December 9, 2008
under OSS, PHP, Security
The following snippet is a quick and simple way to use dnsbl in PHP code (or for CLI use), if an IP is listed the code will return 1:
/*
* Simple DNSBL check
* Author: Rene Moser
*/
// Check this IP
$ip = '201.2.6.141';
// List of DNSBL DNS Servers
$dns_black_lists = file('./dnsbl.txt', FILE_IGNORE_NEW_LINES);
// Reverse the IP
$rev_ip = implode(array_reverse(explode('.', $ip)), '.');
$response = array();
foreach ($dns_black_lists as $dns_black_list) {
$response = (gethostbynamel($rev_ip . '.' . $dns_black_list));
if (!empty($response)) {
echo "1\n";
exit;
}
}
echo "0\n";
The corresponding dnsbl.txt:
asiaspam.spamblocked.com
bl.deadbeef.com
bl.emailbasura.org
bl.spamcop.net
blackholes.five-ten-sg.com
blacklist.woody.ch
bogons.cymru.com
cbl.abuseat.org cdl.anti-spam.org.cn
combined.abuse.ch
combined.rbl.msrbl.net
db.wpbl.info
dnsbl-1.uceprotect.net
dnsbl-2.uceprotect.net
dnsbl-3.uceprotect.net
dnsbl.abuse.ch
dnsbl.ahbl.org
dnsbl.cyberlogic.net
dnsbl.inps.de
dnsbl.njabl.org
dnsbl.sorbs.net
drone.abuse.ch
duinv.aupads.org
dul.dnsbl.sorbs.net
dul.ru
dyna.spamrats.com
dynip.rothen.com
eurospam.spamblocked.com
fl.chickenboner.biz
http.dnsbl.sorbs.net
images.rbl.msrbl.net
ips.backscatterer.org
isps.spamblocked.com
ix.dnsbl.manitu.net
korea.services.net
lacnic.spamblocked.com
misc.dnsbl.sorbs.net
noptr.spamrats.com
ohps.dnsbl.net.au
omrs.dnsbl.net.au
orvedb.aupads.org
osps.dnsbl.net.au
osrs.dnsbl.net.au
owfs.dnsbl.net.au
owps.dnsbl.net.au
pbl.spamhaus.org
phishing.rbl.msrbl.net
probes.dnsbl.net.au
proxy.bl.gweep.ca
proxy.block.transip.nl
psbl.surriel.com
rbl.interserver.net
rdts.dnsbl.net.au
relays.bl.gweep.ca
relays.bl.kundenserver.de
relays.nether.net
residential.block.transip.nl
ricn.dnsbl.net.au
rmst.dnsbl.net.au
sbl.spamhaus.org
short.rbl.jp
smtp.dnsbl.sorbs.net
socks.dnsbl.sorbs.net
spam.dnsbl.sorbs.net
spam.rbl.msrbl.net
spam.spamrats.com
spamlist.or.kr
spamrbl.imp.ch
t3direct.dnsbl.net.au
tor.ahbl.org
tor.dnsbl.sectoor.de
torserver.tor.dnsbl.sectoor.de
ubl.lashback.com
ubl.unsubscore.com
virbl.bit.nl
virus.rbl.jp
virus.rbl.msrbl.net
web.dnsbl.sorbs.net
wormrbl.imp.ch
xbl.spamhaus.org
zen.spamhaus.org
Tags: dnsbl, PHP
Posted by resmo on December 8, 2008
under GNU/Linux, OSS, Security, Unterwegs
Don’t miss the GnuPG Keysigning Party, Friday December 12th 7p.m. at ETH (HG E21). For more information see the official announcment.
Tags: events, gnupg
Posted by resmo on December 7, 2008
under GNU/Linux, Java, OSS
There are a few tools which privide this functionality, but these two looking very promising:
jdeb [1]: This library provides an Ant task and a Maven plugin to create Debian packages from Java builds in a truly cross platform manner. Build your Debian packages on any platform that has Java support. Windows, Linux - it does not require additional native tools installed. The API underneath is well abstracted can easily be adopted for other areas as well.
ant-deb-task [2]: An Ant task that allows you to create debian .deb packages on any platform where Java is available.
[1] http://vafer.org/projects/jdeb/
[2] http://code.google.com/p/ant-deb-task/
Tags: ant, build, deb, fundgrube, maven
Posted by resmo on December 4, 2008
under OSS, PHP
Yii [1] (BSD License) is a high-performance [2] component-based PHP framework for developing large-scale Web applications.
Yii comes with a full stack of features needed by today’s Web 2.0 application development. It is written in strict OOP and is easy to learn with its detailed tutorials. And its highly reusable components allows one to rapidly build up a Web application that is efficient as well as robust.
[1] http://www.yiiframework.com/
[2] http://www.yiiframework.com/performance/
Tags: fundgrube
Posted by resmo on December 1, 2008
under Java, OSS
First of all see this two demos (music example, digg mock-up). Nice isn’t it? This was made using the iui library hosted on Google Code.
So how can you use this library, you may ask? One really nice and easy way is to use the iui plugin in Grails. With Grails you just need some minutes to build your own application looking like a native iPhone application. Try it out.
Tags: iphone
Posted by resmo on November 27, 2008
under Java, OSS
Loom (Apache License version 2.0.) is an open source Java web framework that handles user input validation and HTML generation for enterprise applications of any size. There are some important features that differentiate Loom from other frameworks:
Validation of user input is performed using annotations, with the possibility of reusing any existing JPA or hibernate annotations.
- It’s based on a Strong separation of concerns via CSS and unobtrusive JavaScript.
- It takes accessibility very seriously. An outstanding Ajax interface should not be incompatible with this.
- Originally developed to deliver real software. As a result common practices such as database persistence, progressive enhancement and highly-responsive UIs have been included in a way as transparent as possible.
- Internationalization is deeply rooted in the framework architecture.
- A complete tag library to help with the everyday issues of any REST application.
- A separate javascript library that can be completely replaced at any time.
Tags: framework, hipernate, spring
Posted by resmo on November 19, 2008
under Java, Networking, OSS, PHP
The php/Java bridge [1] is a streamed, XML-based network protocol, which can be used to connect a native script engine, PHP, with a Java or ECMA 335 virtual machine. It is more than 50 times faster than local RPC via SOAP, requires less resources on the web-server side, and it is faster and more reliable than direct communication via the Java Native Interface
[1] http://php-java-bridge.sourceforge.net/
Tags: fundgrube, Java, PHP
Posted by resmo on November 17, 2008
under GNU/Linux, Java, OSS
The primary goal of eclim [1] is to bring Eclipse functionality to the Vim editor. The initial goal was to provide Eclipse’s java functionality in vim, but support for various other languages (php, python, css, html, xml, etc.) have been added and several more are planned.
Eclim is less of an application and more of an integration of two great projects. The first, Vim, is arguably one of the best text editors in existence. The second, Eclipse, provides many great tools for development in various languages. Each provides many features that can increase developer productivity, but both still leave something to be desired. Vim lacks native Java support and many of the advanced features available in Eclipse. Eclipse, on the other hand, still requires the use of the mouse for many things, and when compared to Vim, provides a less than ideal interface for editing text.
That is where eclim comes into play. Instead of trying to write an IDE in Vim or a Vim editor in Eclipse, eclim provides an Eclipse plug-in that exposes Eclipse features through a server interface, and a set of Vim plug-ins that communicate with Eclipse over that interface.
[1] http://eclim.sourceforge.net/
Tags: eclipse, fundgrube, vi, vim
Posted by resmo on October 28, 2008
under OSS, PHP
As I already posted, I am developing the new m0n0 webgui in PHP5 with Zend Framework.
Development is going on. I will post frequently some state information.
I hope, I can publish some code in my git repo soon. I wanted to make sure that the directory structure won’t change before i publish code.
The Zend Framework is actually very handy and I wonder if you have a application error (or any error) which can be catched by Zend, it would be great to let users send debug information with one click:

Tags: m0n0wall, webgui
Posted by resmo on October 24, 2008
under OSS
« Previous Page — Next Page »