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 files65
opsxcq/exploit-cve-2017-7494Revision 4d0bde4f1a7d
- ↑..Parent directory
- ABI/
- async_smb.c
- auth_generic.c
- cli_smb2_fnum.c
- cli_smb2_fnum.h
- cliconnect.c
- clidfs.c
- clidgram.c
- clidgram.h
- clientgen.c
- clierror.c
- clifile.c
- clifsinfo.c
- clilist.c
- climessage.c
- clioplock.c
- cliprint.c
- cliquota.c
- clirap.c
- clirap.h
- clirap2.c
- clireadwrite.c
- clisecdesc.c
- clispnego.c
- clistr.c
- clisymlink.c
- clitrans.c
- conncache.c
- dsgetdcname.c
- errormap.c
- errormap_wbc.c
- errormap_wbc.h
- libsmb.h
- libsmb_cache.c
- libsmb_compat.c
- libsmb_context.c
- libsmb_dir.c
- libsmb_file.c
- libsmb_misc.c
- libsmb_path.c
- libsmb_printjob.c
- libsmb_server.c
- libsmb_setget.c
- libsmb_stat.c
- libsmb_thread_impl.c
- libsmb_thread_posix.c
- libsmb_xattr.c
- namecache.c
- namequery.c
- namequery_dc.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/source3/libsmb/libsmb_thread_posix.c
C · 1,463 bytes/*
Unix SMB/Netbios implementation.
SMB client library implementation
Copyright (C) Derrell Lipman 2009
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"
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
#include "libsmbclient.h"
#include "libsmb_internal.h"
/* Get rid of the malloc checker */
#ifdef malloc
#undef malloc
#endif
/*
* Define the functions which implement the pthread interface
*/
SMB_THREADS_DEF_PTHREAD_IMPLEMENTATION(tf);
/**
* Initialize for threads using the Posix Threads (pthread)
* implementation. This is a built-in implementation, avoiding the need to
* implement the component functions of the thread interface. If this function
* is used, it is not necessary to call smbc_thread_impl().
*
* @return {void}
*/
void
smbc_thread_posix(void)
{
smb_thread_set_functions(&tf);
}