Friday, September 15, 11:59pm
Name on Marmoset
Goose Byte Extraction
Download the image file below (goose.jpg) and determine the byte at location 0x2410 in the file. Submit a file containing this single byte, and nothing else, to Marmoset.
- The first byte in the file is at location 0, the second is at location 1, etc.
- The file you submit should only contain one byte. You can check the number of bytes in a file with the command:
wc --bytes file
This question is meant to expose you to the idea of working with files at a binary level. There are a lot of ways to solve this question. Here are some suggestions:
Write a program in your favourite programming language
that reads the bytes in the file and writes out the
- Use a hex editor, a program that can view
and edit the bytes in a file (usually in hexadecimal
form, hence the name).
Use Linux command line tools.
For example, the
lets you view the bytes in a file in hexadecimal.
Usually it is not appropriate to look up ways to solve an assignment question online, but for this question, we encourage
you to do research as needed!