Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6.     FILE *fp;
  7.  
  8.     fp = fopen("/lib/libc-2.12.2.so", "r");
  9.  
  10.     if(fp == NULL)
  11.     {
  12.         printf("File couldn't be opened...\n");
  13.         return 1;
  14.     }
  15.  
  16.  
  17.     while(1)
  18.     {
  19.         char letter = fgetc(fp);
  20.  
  21.         if(letter == EOF)
  22.             break;
  23.  
  24.         if(letter == 0xc3)
  25.         {
  26.             printf("RET found...\n");
  27.             continue;
  28.         }
  29.     }
  30.  
  31.     fclose(fp);
  32.  
  33.  
  34.     return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement