Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. undefined4 main(void)
  2.  
  3. {
  4. char *pcVar1;
  5. int iVar2;
  6. char local_418 [1024];
  7. int local_18;
  8. FILE *local_14;
  9.  
  10. puts("What\'s your name?");
  11. fgets(local_418,0x400,stdin);
  12. printf("Hi, ");
  13. printf(local_418);
  14. putchar(10);
  15. local_18 = 1;
  16. while( true ) {
  17. if (local_18 == 0) {
  18. local_14 = fopen("flag.txt","r");
  19. fgets(local_418,0x400,local_14);
  20. printf(local_418);
  21. return 0;
  22. }
  23. puts("Do you want the flag?");
  24. pcVar1 = fgets(local_418,0x400,stdin);
  25. if (pcVar1 == (char *)0x0) break;
  26. iVar2 = strcmp(local_418,"no\n");
  27. if (iVar2 == 0) {
  28. puts("I see. Good bye.");
  29. return 0;
  30. }
  31. }
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement