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

6 years ago
  1. #include <stdlib.h>
  2. #include <unistd.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5. int main(int argc, char **argv)
  6. {
  7. char buffer[64];
  8. char vuln[64];
  9. printf("masukan nama anda : ");
  10. fflush(stdout);
  11. gets(buffer);
  12. printf("selamat datang %s\n",buffer);
  13. printf("buffer ada di : %p\n",vuln);
  14. fflush(stdout);
  15. gets(vuln);
  16. }