Skip to content

Instantly share code, notes, and snippets.

@vay3t
Created February 2, 2018 13:38
Show Gist options
  • Save vay3t/d30c865bbd7bee01b42a293feaa687b1 to your computer and use it in GitHub Desktop.
Save vay3t/d30c865bbd7bee01b42a293feaa687b1 to your computer and use it in GitHub Desktop.
#include <string.h>
#include <stdio.h>
void func(char *arg){
char nombre[32];
strcpy(nombre, arg);
printf("Bienvenido a Linux Exploiting %s \n",nombre);
}
int main(int argc, char *argv[]){
if(argc != 2){
printf("Uso: %s NOMBRE\n", argv[0]);
return 1;
}
func(argv[1]);
printf("Fin del programa\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment