Skip to content
Snippets Groups Projects
Select Git revision
  • daf3caa3ae3689fc1e617437b74a2b5659bb7f59
  • 2025ss default
  • 2024ss
  • 2023ss
  • 2022ss
  • 2021ss
  • 2020ss
  • 2019ss
  • 2018ss
9 results

rsa-05.c

Blame
  • server-3.c NaN GiB
    #include <stdio.h>
    #include <stdlib.h>
    
    void stuff (void)
    {
      asm ("mov $0, %eax");
      asm ("add $0x28, %rsp");
      asm ("ret");
      asm ("nop");
      asm ("nop");
      asm ("nop");
      asm ("mov %rsp, %rdi");
      asm ("ret");
      asm ("nop");
      asm ("nop");
      asm ("nop");
      asm ("add $0x20, %rdi");
      asm ("ret");
      asm ("nop");
      asm ("nop");
      asm ("nop");
      system ("clear");
      exit (0);
    }
    
    int main (void)
    {
      char buffer[20];
      printf ("Your name, please: ");
      fgets (buffer, 20, stdin);
      printf ("Hello, %s!\n", buffer);
      return 0;
    }