Here's a simple python script to generate a classB for data/allowed-hosts

#!/bin/env python
#
############################################################################
# this script generates a class B for allowed-hosts in WORK_DIR
#
# try:
# cd /usr/share/denyhosts
# scripts/allowed-hosts-classB.py 172.22. >> data/allowed-hosts
#
############################################################################

import sys

for i in xrange(0,255+1):
    print sys.argv[1]+ str(i) + ".*"

-- 

Allen P. Rueter              314/935-6429 
Camp Box 1045 Bryan Rm 509     ___ ___ ___
Washington University         / __|_ _/ __|
One Brookings Dr.            | (__ | |\__ \
St. Louis MO  63130           \____|_|____/



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user

Reply via email to