Advertisement
raisep0wn

NDH 2k10 public wargame, level8

May 18th, 2011
281
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /***********************************
  2. |            level8.c              |
  3. |  http://wargame.nuitduhack.com/  |
  4. |  http://www.nuitduhack.com/      |
  5. ***********************************/
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8.  
  9. // gcc -o level8 level8.c -fno-stack-protector -z execstack -mpreferred-stack-boundary=2
  10.  
  11. int main(int argc, char *argv[])
  12. {
  13.         if(argc < 2) {
  14.                 printf("Empty login! \n");
  15.                 exit(-1);
  16.         }
  17.  
  18.         printf(argv[1]);
  19.         printf("\nNice to see you\n");
  20.  
  21.         exit(0);
  22. }
Advertisement
RAW Paste Data Copied
Advertisement