Author: nion Date: 2008-06-06 14:26:15 +0000 (Fri, 06 Jun 2008) New Revision: 9002 Modified: bin/report-vuln Log: fix proxy support if http_proxy is not set Modified: bin/report-vuln ==================================================================--- bin/report-vuln 2008-06-06 14:02:46 UTC (rev 9001) +++ bin/report-vuln 2008-06-06 14:26:15 UTC (rev 9002) @@ -24,7 +24,10 @@ return ret def do_httpconnect(id): - proxy = os.getenv(''http_proxy'').lstrip(''http://'') + proxy = os.getenv(''http_proxy'') + if proxy: + proxy = proxy.lstrip(''http://'') + url = ''/cgi-bin/cvename.cgi?name='' + id host = ''cve.mitre.org'' if proxy != None: