Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***********************************
- | level9.c |
- | http://wargame.nuitduhack.com/ |
- | http://www.nuitduhack.com/ |
- ***********************************/
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- // gcc -o level9 level9.c -fno-stack-protector -mpreferred-stack-boundary=2
- // paxctl -c -Spermx level9
- void sayHello(char *tmp)
- {
- char login[50];
- strcpy(login, tmp);
- printf("Hi %s !\n", login);
- }
- int main(int argc, char *argv[])
- {
- if(argc < 2) {
- printf("Empty login! \n");
- exit(-1);
- }
- sayHello(argv[1]);
- exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement