> For the complete documentation index, see [llms.txt](https://simon-6.gitbook.io/simoncyber/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simon-6.gitbook.io/simoncyber/ctf-writeups/picoctf-2022/web-exploitation/search-source.md).

# Search source

<figure><img src="/files/4EFXQhs1fqL2fObjZ02i" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/d0akWuED6AY7xfpAtEmY" alt=""><figcaption></figcaption></figure>

We have this website and the hint is:&#x20;

> How could you mirror the website on your local machine so you could use more powerful tools for searching?

This means we need to copy the website to our local machine. How do we do it? wget.

### What is Wget?&#x20;

`wget` is a command-line tool for downloading files/content from the web.

<figure><img src="/files/EtJPIEuFueSnpxZ2C3yX" alt=""><figcaption></figcaption></figure>

### What is Grep (Parameters)&#x20;

<figure><img src="/files/b2Vnp0LnXOVTtIXWE05w" alt=""><figcaption></figcaption></figure>

### Solving it&#x20;

<figure><img src="/files/V0Az8VtbEe6dfCX1QURc" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KMht1qSxkT5vCueYAEOU" alt=""><figcaption></figcaption></figure>

picoCTF{1nsp3ti0n\_0f\_w3bpag3s\_ec95fa49}
