#!/usr/bin/python -tO # freewvs 0.1 - the free web vulnerability scanner # # http://source.schokokeks.org/freewvs/ # # Copyright 2007 Hanno Boeck, schokokeks.org # # Contributions by # Fabian Fingerle # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . import ConfigParser, os, glob, pprint, re, optparse, sys def versioncompare(safe_version,find_version): if safe_version==[""]: return True for i in range(min(len(find_version),len(safe_version))): if int(find_version[i])int(safe_version[i]): return False return (len(find_version)0: if opts.ALL: print "File "+mfile vulnprint(item['name'],findversion,"ok","",mfile,item['subdir']) else: print "File "+mfile vulnprint (item['name'],findversion,item['safe'],item['vuln'],mfile,item['subdir']) else: if opts.DEBUG: print "regexp failed for "+item['name']+" on "+mfile