advanced-exploitation-techniques-x86 / ret2bss / ret2bss.c
ret2bss.c
Raw
#include<string.h>
#include<stdio.h>
char globalbuf[256];
void function(char* input) {
	char localbuf[256];
	strcpy(localbuf,input);
	strcpy(globalbuf,localbuf);
}
int main(int argc, char** argv){
	function(argv[1]);
}