Exploit databaseDownload repository ZIP
GH-1917e82ea4e17d91152ad921475048a4
automateforceai/cve-2018-0202
Sources for CVE-2018-0202
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files566
automateforceai/cve-2018-0202Revision 9964c381baf5
- ↑..Parent directory
- .deps/
- .libs/
- 7z/
- c++/
- jsparse/
- nsis/
- regex/
- tomsfastmath/
- 7z_iface.c
- 7z_iface.h
- Makefile
- Makefile.am
- Makefile.in
- adc.c
- adc.h
- apm.c
- apm.h
- arc4.c
- arc4.h
- asn1.c
- asn1.h
- aspack.c
- aspack.h
- autoit.c
- autoit.h
- bcfeatures.h
- bignum.h
- bignum_fast.h
- binhex.c
- binhex.h
- blob.c
- blob.h
- builtin_bytecodes.h
- bytecode.c
- bytecode.h
- bytecode_api.c
- bytecode_api.h
- bytecode_api_decl.c
- bytecode_api_impl.h
- bytecode_detect.c
- bytecode_detect.h
- bytecode_hooks.h
- bytecode_nojit.c
- bytecode_priv.h
- bytecode_vm.c
- cab.c
- cab.h
- cache.c
- cache.h
- chmunpack.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
clamav-0.99.3/libclamav/phish_whitelist.c
C · 2,520 bytes/*
* Phishing module: whitelist implementation.
*
* Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif
#ifdef CL_THREAD_SAFE
#ifndef _REENTRANT
#define _REENTRANT
#endif
#endif
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "clamav.h"
#include "others.h"
#include "phish_whitelist.h"
#include "regex_list.h"
#include "mpool.h"
int whitelist_match(const struct cl_engine* engine,char* real_url,const char* display_url,int hostOnly)
{
const char* info;/*unused*/
cli_dbgmsg("Phishing: looking up in whitelist: %s:%s; host-only:%d\n",real_url,display_url,hostOnly);
return engine->whitelist_matcher ? regex_list_match(engine->whitelist_matcher,real_url,display_url,NULL,hostOnly,&info,1) : 0;
}
int init_whitelist(struct cl_engine* engine)
{
if(engine) {
engine->whitelist_matcher = (struct regex_matcher *) mpool_malloc(engine->mempool, sizeof(struct regex_matcher));
if(!engine->whitelist_matcher) {
cli_errmsg("Phish_whitelist: Unable to allocate memory for whitelist_match\n");
return CL_EMEM;
}
#ifdef USE_MPOOL
((struct regex_matcher *)(engine->whitelist_matcher))->mempool = engine->mempool;
#endif
return init_regex_list(engine->whitelist_matcher, engine->dconf->other&OTHER_CONF_PREFILTERING);
}
else
return CL_ENULLARG;
}
int is_whitelist_ok(const struct cl_engine* engine)
{
return (engine && engine->whitelist_matcher) ? is_regex_ok(engine->whitelist_matcher) : 1;
}
void whitelist_done(struct cl_engine* engine)
{
if(engine && engine->whitelist_matcher) {
regex_list_done(engine->whitelist_matcher);
mpool_free(engine->mempool, engine->whitelist_matcher);
engine->whitelist_matcher = NULL;
}
}