List soal PWN untuk KSL Seleksi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
333 B

#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
char buffer[64];
char vuln[64];
printf("masukan nama anda : ");
fflush(stdout);
gets(buffer);
printf("selamat datang %s\n",buffer);
printf("buffer ada di : %p\n",vuln);
fflush(stdout);
gets(vuln);
}