> For the complete documentation index, see [llms.txt](https://j0luuuu.gitbook.io/ctf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://j0luuuu.gitbook.io/ctf/cyberheroines-ctf-2023/forensics/margaret_hamilton.md).

# Margaret Hamilton

## Description

> [Margaret Elaine Hamilton](https://en.wikipedia.org/wiki/Margaret_Hamilton_\(software_engineer\)) (née Heafield; born August 17, 1936) is an American computer scientist, systems engineer, and business owner. She was director of the Software Engineering Division of the MIT Instrumentation Laboratory, which developed on-board flight software for NASA's Apollo program. She later founded two software companies—Higher Order Software in 1976 and Hamilton Technologies in 1986, both in Cambridge, Massachusetts. - [Wikipedia Entry](https://en.wikipedia.org/wiki/Margaret_Hamilton_\(software_engineer\))

> Chal: Return the flag to NASAs first software engineer.

### Attachments

[Apollo-Mystery.jpg](https://github.com/HarshJolad/writeups-pvt/blob/master/CyberHeroines-CTF-2023/forensics/Margaret_Hamilton/Apollo-Mystery.jpg)

## Solution

* Running `strings` on the image we see there is a `margaret_flag.png` after the IEND chunk.
* Using `binwalk` we can extract the file.

```
$ binwalk -e Apollo-Mystery.jpg
```

* We get a png file with the flag at the bottom of the image. ![flag](https://1613628666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkuxWaWwvkRd57ql1rtY%2Fuploads%2Fgit-blob-6c2bfef51c5c5f283b1a66b288a7881c948a7246%2Fflag.png?alt=media)

### FLAG

```
chctf{i_wr1t3_code_by_h4nd}
```
