CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/byakugan/test/testHeapOverflow.cpp
Views: 11777
1
#include <windows.h>
2
#include <stdlib.h>
3
#include "../msfpattern.h"
4
5
int main() {
6
char *ownme, *next;
7
8
Sleep(10000);
9
ownme = (char *) malloc(256);
10
next = (char *) malloc(256);
11
msf_pattern_create(264, ownme);
12
free(next); free(ownme);
13
return (0);
14
}
15
16