Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #define COMMANDE "/bin/cat /home/level04/.password"
- int main(int argc, char ** argv)
- {
- char text[1024];
- static int check=168;
- if(argc!=2)
- {
- printf("Usage : %s <texte>\n",argv[0]);
- return 1;
- }
- strncpy(text,argv[1],1023);
- printf("Voici votre texte :\n");
- printf(text);
- printf("\n");
- if(check==75)
- {
- printf("check @ 0x%08x = %d : 0x%08x\n",&check,check,check);
- system(COMMANDE);
- }
- else
- {
- printf("check @ 0x%08x = %d : 0x%08x\n",&check,check,check);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement