---
# System prepended metadata

title: Bug Hunt

---

# Bug Hunt

Accessing the puzzle leads to [this page](https://bbs.goldbug.cryptovillage.org/puzzles/2023/bughunt/) which has an image of a bug with some black pixels on it:

![](https://hackmd.io/_uploads/rJpDK4Op3.png)

The flavourtext hints that these kinds of pictures are scattered around the DEFCON venue and that we should collect as many of them as we can.

We searched around the venue and found a few, but we also noticed that the image on the website changes periodically so wrote a script to collect them throughout the day:

```py=
import os
from requests import get
from time import sleep

def retrieve():
    r = get('https://bbs.goldbug.cryptovillage.org/puzzles/2023/bughunt/').text
    img_path = r.split('img src="')[1].split('" alt')[0]
    filename = img_path.split('/')[-1]
    if os.path.exists('bug-hunt-imgs/' + filename):
        return
    img_dat = get('https://bbs.goldbug.cryptovillage.org' + img_path)
    open('bug-hunt-imgs/' + filename, 'wb').write(img_dat.content)
    print(f'Got new image: {filename}')

while True:
    retrieve()
    sleep(60)
```

Along with a script to overlay the images (as we suspected they would form a QR code):

```shell=
#!/bin/bash
for f in `ls bug-hunt-imgs/`;
  do convert "bug-hunt-imgs/$f" -fuzz 50% -transparent white "/tmp/bug-hunt-qr-$f"
done;

convert /tmp/bug-hunt-qr-* -flatten out.png
```

Combining these with some of the physical squares we found resulted in a QR code that with a bit of luck, scanned to read the answer:

![](https://hackmd.io/_uploads/rJXEi4Oan.png)

::: spoiler Answer
**DIGIHEARTQUIVER**