Exploit database

GH-6963be6137b8e0534ab192be6bfe69a2

ekknod/amdryzenmastercheat

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-12928

2 sources

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

Repository files7
ekknod/amdryzenmastercheatRevision 85ece3b1de25

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

server/socket.h

Text · 837 bytes
#ifndef SOCKET_H
#define SOCKET_H

#include <inttypes.h>

#define PLATFORM_WINDOWS  1
#define PLATFORM_MAC      2
#define PLATFORM_UNIX     3

#if defined(_WIN32)
typedef int64_t sock_t;
#define PLATFORM PLATFORM_WINDOWS
#elif defined(__APPLE__)
typedef int32_t sock_t;
#define PLATFORM PLATFORM_MAC
#else
typedef int32_t sock_t;
#define PLATFORM PLATFORM_UNIX
#endif

struct tcp_header {
	uint16_t size;
	uint8_t  retn, status;
}; /* size, 4bytes */

struct tcp_entry {
	uint16_t next;
	uint16_t id;
}; /* size, 4bytes */


int  socket_open(const char* ip, uint16_t port);
void socket_close(void);
int  socket_recv(void* data, int size);
int  socket_send(void* data, int size);
void socket_open_client(void);
void socket_close_client(void);
void RC4(void* data, int length, unsigned char* key);
extern char decryption_key[30];

#endif