Exploit database

GH-af7f55e2135f56da6281cfb6b2a52ec7

hfiref0x/stryker

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2017-15303

1 source

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

Repository files23
hfiref0x/strykerRevision fcbc4960069d

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

src/Maya/minirtl/u64tostr.c

C · 576 bytes
#include "rtltypes.h"

size_t u64tostr_a(unsigned long long x, char *s)
{
	unsigned long long	t = x;
	size_t	i, r=1;

	while ( t >= 10 ) {
		t /= 10;
		r++;
	}

	if (s == 0)
		return r;
	
	for (i = r; i != 0; i--) {
		s[i-1] = (char)(x % 10) + '0';
		x /= 10;
	}

	s[r] = (char)0;
	return r;
}

size_t u64tostr_w(unsigned long long x, wchar_t *s)
{
	unsigned long long	t = x;
	size_t	i, r=1;

	while ( t >= 10 ) {
		t /= 10;
		r++;
	}

	if (s == 0)
		return r;
	
	for (i = r; i != 0; i--) {
		s[i-1] = (wchar_t)(x % 10) + L'0';
		x /= 10;
	}

	s[r] = (wchar_t)0;
	return r;
}