Exploit databaseDownload repository ZIP
GH-0f63941fd2c8152d3d942afd9d9817e3
gh0st0ne/rdpscan-bluekeep
Sources for CVE-2019-0708
115 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files43
gh0st0ne/rdpscan-bluekeepRevision 6b35a8919fb4
- ↑..Parent directory
- asn.c
- asn.h
- bitmap.c
- bitmap.h
- channels.c
- constants.h
- iso.c
- licence.c
- main.c
- mcs.c
- mppc.c
- mst120.c
- mst120.h
- orders.c
- orders.h
- parse.h
- proto.h
- rand-blackrock.c
- rand-blackrock.h
- ranges.c
- ranges.h
- rdesktop.h
- rdp.c
- rdp5.c
- secure.c
- ssl.c
- ssl.h
- stream.h
- tcp.c
- tcp.h
- types.h
- util-genrand.c
- util-genrand.h
- util-log.c
- util-log.h
- util-sockets.c
- util-sockets.h
- util-time.c
- util-time.h
- util-xmalloc.c
- util-xmalloc.h
- workers.c
- workers.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/util-sockets.c
C · 930 bytes
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#if defined(_MSC_VER)
#pragma comment(lib, "Ws2_32.lib")
#pragma comment(lib, "libssl_static.lib")
#pragma comment(lib, "libcrypto_static.lib")
#endif
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <intrin.h>
#include <process.h>
#define snprintf _snprintf
#define close(fd) closesocket(fd)
typedef int ssize_t;
#undef errno
#define errno WSAGetLastError()
#define strerror my_strerror
const char *
$strerror(int err)
{
static char* msg = NULL;
switch (err) {
default:
if (msg == NULL)
free(msg);
FormatMessageA(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
err,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPSTR)&msg,
0, NULL );
return msg;
break;
}
}
#else
#endif