advanced-exploitation-techniques-x86 / ret2pop / ret2pop.c
ret2pop.c
Raw
#include<stdio.h>
#include<string.h>
#include<stdio.h>
int function(int x, char *str){
	char buf[256];
	strcpy(buf, str);
	return x;
}
int main(int argc, char **argv){
	function(64, argv[1]);
}