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 files37
opsxcq/exploit-cve-2017-7494Revision 4d0bde4f1a7d
- ↑..Parent directory
- ABI/
- account_pol.c
- login_cache.c
- lookup_sid.c
- lookup_sid.h
- machine_account_secrets.c
- machine_sid.c
- machine_sid.h
- passdb.c
- pdb_compat.c
- pdb_get_set.c
- pdb_interface.c
- pdb_ipa.c
- pdb_ipa.h
- pdb_ldap.c
- pdb_ldap.h
- pdb_ldap_schema.c
- pdb_ldap_schema.h
- pdb_ldap_util.c
- pdb_ldap_util.h
- pdb_nds.c
- pdb_nds.h
- pdb_samba_dsdb.c
- pdb_secrets.c
- pdb_secrets.h
- pdb_smbpasswd.c
- pdb_smbpasswd.h
- pdb_tdb.c
- pdb_tdb.h
- pdb_unixid.c
- pdb_util.c
- pdb_wbc_sam.c
- pdb_wbc_sam.h
- py_passdb.c
- secrets.c
- secrets_lsa.c
- wscript_build
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/source3/passdb/pdb_unixid.c
C · 1,228 bytes/*
* Unix SMB/CIFS implementation.
* IDMAP unixid utility functions
* Copyright (C) Alexander Bokovoy 2012
*
* 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/>.
*/
#include "includes.h"
#include "passdb.h"
#include "../librpc/gen_ndr/idmap.h"
void unixid_from_uid(struct unixid *id, uint32_t some_uid)
{
if(id) {
id->id = some_uid;
id->type = ID_TYPE_UID;
}
}
void unixid_from_gid(struct unixid *id, uint32_t some_gid)
{
if(id) {
id->id = some_gid;
id->type = ID_TYPE_GID;
}
}
void unixid_from_both(struct unixid *id, uint32_t some_id)
{
if(id) {
id->id = some_id;
id->type = ID_TYPE_BOTH;
}
}