Exploit databaseDownload repository ZIP
GH-ea821316336f01071e5d83d15c2dd13b
opsxcq/exploit-cve-2017-7494
Sources for CVE-2017-7494
38 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files49
opsxcq/exploit-cve-2017-7494Revision 4d0bde4f1a7d
- ↑..Parent directory
- reg_api.c
- reg_api.h
- reg_api_regf.c
- reg_api_regf.h
- reg_api_util.c
- reg_api_util.h
- reg_backend_current_version.c
- reg_backend_db.c
- reg_backend_db.h
- reg_backend_hkpt_params.c
- reg_backend_netlogon_params.c
- reg_backend_perflib.c
- reg_backend_printing.c
- reg_backend_prod_options.c
- reg_backend_shares.c
- reg_backend_smbconf.c
- reg_backend_tcpip_params.c
- reg_cachehook.c
- reg_cachehook.h
- reg_db.h
- reg_dispatcher.c
- reg_dispatcher.h
- reg_format.c
- reg_format.h
- reg_import.c
- reg_import.h
- reg_init_basic.c
- reg_init_basic.h
- reg_init_full.c
- reg_init_full.h
- reg_init_smbconf.c
- reg_init_smbconf.h
- reg_objects.c
- reg_objects.h
- reg_parse.c
- reg_parse.h
- reg_parse_dox.cfg
- reg_parse_internal.c
- reg_parse_internal.h
- reg_parse_prs.c
- reg_parse_prs.h
- reg_perfcount.c
- reg_perfcount.h
- reg_util_internal.c
- reg_util_internal.h
- reg_util_token.c
- reg_util_token.h
- regfio.c
- regfio.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/source3/registry/reg_backend_tcpip_params.c
C · 1,649 bytes/*
* Unix SMB/CIFS implementation.
* Virtual Windows Registry Layer
* Copyright (C) Gerald Carter 2002-2005
* Copyright (C) Michael Adam 2008
*
* 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 <http://www.gnu.org/licenses/>.
*/
/*
* TCP/IP parameters registry backend.
*
* This replaces the former dynamic tcpip parameters overlay.
*/
#include "includes.h"
#include "registry.h"
#include "reg_objects.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_REGISTRY
extern struct registry_ops regdb_ops;
static int tcpip_params_fetch_values(const char *key, struct regval_ctr *regvals)
{
regval_ctr_addvalue_sz(regvals, "Hostname", myhostname());
regval_ctr_addvalue_sz(regvals, "Domain", get_mydnsdomname(talloc_tos()));
return regval_ctr_numvals(regvals);
}
static int tcpip_params_fetch_subkeys(const char *key,
struct regsubkey_ctr *subkey_ctr)
{
return regdb_ops.fetch_subkeys(key, subkey_ctr);
}
struct registry_ops tcpip_params_reg_ops = {
.fetch_values = tcpip_params_fetch_values,
.fetch_subkeys = tcpip_params_fetch_subkeys,
};