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-genrand.c
C · 505 bytes#define _CRT_SECURE_NO_WARNINGS 1
#include "util-genrand.h"
#include <stdio.h>
/* Generate a 32-byte random for the secure transport code. */
void
generate_random(unsigned char * random)
{
FILE *fp;
/* If we have a kernel random device, try that first */
fp = fopen("/dev/urandom", "rb");
if (fp == NULL)
fp = fopen("/dev/random", "rb");
if (fp != NULL) {
size_t n = fread(random, 1, 32, fp);
fclose(fp);
if (n == 32)
return;
}
}