# strings it

<figure><img src="https://1100854798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F94YmDHMJbD21F4uOcvHm%2Fuploads%2F7k8Jwowd9tzfIDa6yIfN%2Fimage.png?alt=media&#x26;token=d9306600-b09a-4f73-b7e1-b7e70529f9e9" alt=""><figcaption></figcaption></figure>

Download the file:

```bash
curl -s https://jupiter.challenges.picoctf.org/static/5bd86036f013ac3b9c958499adf3e2e2/strings -o strings
```

<figure><img src="https://1100854798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F94YmDHMJbD21F4uOcvHm%2Fuploads%2FhbbgCE4lqANH0CLOcozl%2Fimage.png?alt=media&#x26;token=ca2bd29e-03f3-43a0-a43b-370f1e640346" alt=""><figcaption></figcaption></figure>

Strings is a tool in Linux that will only print printable characters in a file, with other features.

```bash
strings strings
```

<figure><img src="https://1100854798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F94YmDHMJbD21F4uOcvHm%2Fuploads%2FfZzeXyCWz2eFw2QIx92b%2Fimage.png?alt=media&#x26;token=eb7d143c-5847-4354-8cba-69420f19552f" alt=""><figcaption></figcaption></figure>

But it is hard to get the flag that way, because the file is so big.

We can use grep in this case:

```bash
strings strings | grep 'picoCTF{' --color=never
```

<figure><img src="https://1100854798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F94YmDHMJbD21F4uOcvHm%2Fuploads%2FKfoG6kCbJ5GL0tYaXi71%2Fimage.png?alt=media&#x26;token=24b822ac-b163-468e-a1c5-7114161db539" alt=""><figcaption></figcaption></figure>

That is the flag.
