> For the complete documentation index, see [llms.txt](https://the-winrars.gitbook.io/writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-winrars.gitbook.io/writeups/2020-writeups/hacktivity-con/web/bite.md).

# Bite

So, let's go to one of the pages, Bit for example.

We'll see the url <http://jh2i.com:50010/?page=bit>

?page= imlies some form of LFI may be possible, as it looks like the specified page is imported into the template. So, let's go ahead and try <http://jh2i.com:50010/?page=/etc/passwd>

We'll find it gives an error about /etc/passwd.php not existing. This tells us it appends .php to the end of the page parameter and includes it.

Tony told me that a null byte causes the .php to become redundant as the null byte will terminate the string.

<http://jh2i.com:50010/?page=/etc/passwd%00> works, displaying /etc/passwd.

So I took a guess and tried /flag.txt%00 and that gave the flag.

## Flag: flag{lfi\_just\_needed\_a\_null\_byte}
