Commit 398cdef5 authored by Ines Kramer's avatar Ines Kramer

corrected root-mebuff.c

parent 2cc7a60c
# include < stdio .h >
# include < stdlib .h >
# include <stdio.h>
# include <stdlib.h>
int main ()
{
int var ;
int check = 0 x04030201 ;
int check = 0x04030201 ;
char buf [40];
fgets ( buf , 45 , stdin );
printf ( " \ n [ buf ]: % s \ n " , buf );
printf ( " [ check ] % p \ n " , check );
if (( check != 0 x04030201 ) && ( check != 0 xdeadbeef ))
printf ( " \ nYou are on the right way !\ n " );
if ( check == 0 xdeadbeef )
fgets (buf,45,stdin);
printf("\n [bu ]: %s \n",buf);
printf("[check] %p \n",check);
if ((check != 0x04030201) && (check != 0xdeadbeef))
printf("\nYou are on the right way!\n");
if(check == 0xdeadbeef)
{
printf ( " Yeah dude ! You win !\ n " );
system ( " / bin / dash " );
printf ("Yeah dude! You win!\n" );
system ("/bin/dash");
}
return 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment