2011-08-31 15:38:32 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
#
|
|
|
|
# Copyright 2011 Corentin Chary <corentin.chary@gmail.com>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2012-05-21 22:24:44 +02:00
|
|
|
__version__ = "git"
|
|
|
|
|
2011-08-31 15:38:32 +02:00
|
|
|
CONFIG = {
|
|
|
|
'nocolor': False,
|
|
|
|
'quiet': False,
|
2011-09-21 10:09:50 +02:00
|
|
|
'verbose': 1,
|
2011-08-31 15:38:32 +02:00
|
|
|
'debug': False,
|
|
|
|
'brute-force': 3,
|
|
|
|
'brute-force-recursive': True,
|
2011-09-21 10:09:50 +02:00
|
|
|
'brute-force-false-watermark': 50,
|
2011-08-31 15:38:32 +02:00
|
|
|
'scan-dir': True,
|
2011-10-08 08:33:03 +02:00
|
|
|
'oneshot': True,
|
2012-04-28 18:16:05 +02:00
|
|
|
'user-agent': 'escan (http://euscan.iksaif.net)',
|
|
|
|
'skip-robots-txt': False,
|
2012-05-21 22:24:44 +02:00
|
|
|
'cache': False,
|
|
|
|
'format': None,
|
|
|
|
'indent': 2
|
2011-08-31 15:38:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BLACKLIST_VERSIONS = [
|
2012-04-28 18:16:05 +02:00
|
|
|
# Compatibility package for running binaries linked against a
|
|
|
|
# pre gcc 3.4 libstdc++, won't be updated
|
2012-02-20 08:20:54 +01:00
|
|
|
'>=sys-libs/libstdc++-v3-3.4',
|
2011-08-31 15:38:32 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
BLACKLIST_PACKAGES = [
|
2012-02-20 08:20:54 +01:00
|
|
|
# These kernels are almost dead
|
|
|
|
'sys-kernel/usermode-sources',
|
|
|
|
'sys-kernel/xbox-sources',
|
|
|
|
'sys-kernel/cell-sources',
|
2011-08-31 15:38:32 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
SCANDIR_BLACKLIST_URLS = [
|
2012-04-28 18:16:05 +02:00
|
|
|
'mirror://rubygems/(.*)', # Not browsable
|
|
|
|
'mirror://gentoo/(.*)' # Directory too big
|
2011-08-31 15:38:32 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
BRUTEFORCE_BLACKLIST_PACKAGES = [
|
2012-04-28 18:16:05 +02:00
|
|
|
# infinite loop any
|
|
|
|
# http://plone.org/products/plonepopoll/releases/*/plonepopoll-2-6-1.tgz
|
|
|
|
# link will work
|
|
|
|
'net-zope/plonepopoll'
|
2011-09-21 10:09:50 +02:00
|
|
|
]
|
2011-08-31 15:38:32 +02:00
|
|
|
|
|
|
|
BRUTEFORCE_BLACKLIST_URLS = [
|
2012-04-28 18:16:05 +02:00
|
|
|
'http://(.*)dockapps.org/download.php/id/(.*)', # infinite loop
|
|
|
|
'http://hydra.nixos.org/build/(.*)', # infinite loop
|
2012-05-23 16:30:43 +02:00
|
|
|
# Doesn't respect 404, infinite loop
|
|
|
|
'http://www.rennings.net/gentoo/distfiles/(.*)',
|
|
|
|
'http://art.gnome.org/download/(.*)',
|
|
|
|
'http://barelysufficient.org/~olemarkus/(.*)',
|
|
|
|
'http://olemarkus.org/~olemarkus/(.*)',
|
2011-09-21 10:09:50 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
ROBOTS_TXT_BLACKLIST_DOMAINS = [
|
|
|
|
'(.*)sourceforge(.*)',
|
|
|
|
'(.*)github.com',
|
|
|
|
'(.*)berlios(.*)',
|
2011-10-08 08:33:03 +02:00
|
|
|
'(.*)qt.nokia.com(.*)',
|
|
|
|
'(.*)chromium.org(.*)',
|
2012-04-04 14:34:09 +02:00
|
|
|
'(.*)nodejs.org(.*)',
|
2011-08-31 15:38:32 +02:00
|
|
|
]
|
2012-05-21 22:24:44 +02:00
|
|
|
|
2012-05-25 00:19:17 +02:00
|
|
|
from out import EuscanOutput
|
|
|
|
output = out.EuscanOutput(CONFIG)
|