Exploit databaseDownload repository ZIP
GH-b6dd3288ac75829caf44c376b6a83fb5
forxiucn/nginx-cve-2026-42945-poc
Sources for CVE-2026-42945
32 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files68
forxiucn/nginx-cve-2026-42945-pocRevision 4987d77b19a4
- ↑..Parent directory
- ngx_alloc.c
- ngx_alloc.h
- ngx_atomic.h
- ngx_channel.c
- ngx_channel.h
- ngx_daemon.c
- ngx_darwin.h
- ngx_darwin_config.h
- ngx_darwin_init.c
- ngx_darwin_sendfile_chain.c
- ngx_dlopen.c
- ngx_dlopen.h
- ngx_errno.c
- ngx_errno.h
- ngx_file_aio_read.c
- ngx_files.c
- ngx_files.h
- ngx_freebsd.h
- ngx_freebsd_config.h
- ngx_freebsd_init.c
- ngx_freebsd_sendfile_chain.c
- ngx_gcc_atomic_amd64.h
- ngx_gcc_atomic_ppc.h
- ngx_gcc_atomic_sparc64.h
- ngx_gcc_atomic_x86.h
- ngx_linux.h
- ngx_linux_aio_read.c
- ngx_linux_config.h
- ngx_linux_init.c
- ngx_linux_sendfile_chain.c
- ngx_os.h
- ngx_posix_config.h
- ngx_posix_init.c
- ngx_process.c
- ngx_process.h
- ngx_process_cycle.c
- ngx_process_cycle.h
- ngx_readv_chain.c
- ngx_recv.c
- ngx_send.c
- ngx_setaffinity.c
- ngx_setaffinity.h
- ngx_setproctitle.c
- ngx_setproctitle.h
- ngx_shmem.c
- ngx_shmem.h
- ngx_socket.c
- ngx_socket.h
- ngx_solaris.h
- ngx_solaris_config.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/nginx-1.26.3/src/os/unix/ngx_solaris_init.c
C · 1,589 bytes
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
char ngx_solaris_sysname[20];
char ngx_solaris_release[10];
char ngx_solaris_version[50];
static ngx_os_io_t ngx_solaris_io = {
ngx_unix_recv,
ngx_readv_chain,
ngx_udp_unix_recv,
ngx_unix_send,
ngx_udp_unix_send,
ngx_udp_unix_sendmsg_chain,
#if (NGX_HAVE_SENDFILE)
ngx_solaris_sendfilev_chain,
NGX_IO_SENDFILE
#else
ngx_writev_chain,
0
#endif
};
ngx_int_t
ngx_os_specific_init(ngx_log_t *log)
{
if (sysinfo(SI_SYSNAME, ngx_solaris_sysname, sizeof(ngx_solaris_sysname))
== -1)
{
ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
"sysinfo(SI_SYSNAME) failed");
return NGX_ERROR;
}
if (sysinfo(SI_RELEASE, ngx_solaris_release, sizeof(ngx_solaris_release))
== -1)
{
ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
"sysinfo(SI_RELEASE) failed");
return NGX_ERROR;
}
if (sysinfo(SI_VERSION, ngx_solaris_version, sizeof(ngx_solaris_version))
== -1)
{
ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
"sysinfo(SI_SYSNAME) failed");
return NGX_ERROR;
}
ngx_os_io = ngx_solaris_io;
return NGX_OK;
}
void
ngx_os_specific_status(ngx_log_t *log)
{
ngx_log_error(NGX_LOG_NOTICE, log, 0, "OS: %s %s",
ngx_solaris_sysname, ngx_solaris_release);
ngx_log_error(NGX_LOG_NOTICE, log, 0, "version: %s",
ngx_solaris_version);
}