Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
3
reputation
2

ivomalinowskip

Avid teenager looking for a future. Programming is fun. Hacking is fun * 10^27 .

include

include

int main(void) { char buff[15]; int pass = 0;

printf("\n Enter the password : \n");
gets(buff);

if(strcmp(buff, "ILoveCode"))
{
    printf ("\n Correct Password \n");
    pass = 1;
}
else
{
    printf ("\n Wrong Password \n");
}

if(pass)
{
   /* Now Give root or admin rights to user*/
    printf ("\n Root privileges given to the user \n");
}

return 0;

}

  • France
  • Member for 1 year, 11 months
  • 9 profile views
  • Last seen Nov 27 '17 at 18:48