advanced-exploitation-techniques-x86 / strptr / strptr.c
strptr.c
Raw
#include<string.h>
#include<stdio.h>
#include<stdlib.h>
int main(int argc, char* args[]){
	char input[256];
	char *conf = "test -f ~/.progrc";
	char *license = "THIS SOFTWARE IS ...";
	printf(license);
	strcpy(input, args[1]);
	if (system(conf)) printf("Missing .progrc");
}