Tags: fireshellctf 

Rating:

Sample c code:
```
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
>
> unsigned int GetVersion()
> {
> static unsigned int version = 0;
> static const char * releaseVerString = "
> #include "/flag"
> ";
>
> if (version == 0)
> {
> // Parse the appropriate value out of the text string
> const char * p = releaseVerString;
> while((p)&&(*p)&&(!((*p>='0')&&(*p<='9')))) p++;
> for (int i=0; i<3; i++)
> {
> if ((p)&&(*p))
> {
> version |= (atoi(p)<<((2-i)*8));
> p = strchr(p, '.');
> if (p) p++;
> }
> else break;
> }
> }
> return version;
> }
```

Result: F#{D1d_y0u_1nclud3_th3_fl4g?}