Advertisement
Guest User

Source_Serial_HackLab_Training

a guest
Jul 21st, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #define SERIAL_SIZE 100
  4. #define SERIAL "ElHackLab\n"
  5. int main ()
  6. {
  7. int count=0;
  8. char buff [SERIAL_SIZE];
  9.  
  10. for (;;){
  11. printf ("Ingrese el serial:");
  12. fgets (&buff [0], SERIAL_SIZE,stdin);
  13. if (strcmp (&buff [0], SERIAL))
  14. printf ("Serial incorrecto - Compre el software desde http://www.sec-track.org o Intente nuevamente :P\n");
  15. else break;
  16. if (++count>4) return -1;
  17. }
  18. printf ("Serial Válido :D\n");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement