# Image

## Challenge

> Du texte dans une image ? C'est possible ?

With this image linked:

<figure><img src="https://1102212211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa46Jmz9dIuFnWcXn3ooO%2Fuploads%2FkU6WRqFRMZd3s8f0c5BZ%2Fimage.jpg?alt=media&#x26;token=090e72cb-cce6-4e3c-8747-d50d173afe33" alt=""><figcaption></figcaption></figure>

## Solution

The information mentions text in an image, which made me think of using xxd on Kali. This takes a file and dumps it in hex format. And as you can see, at the very end of the file I found the flag.

<figure><img src="https://1102212211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa46Jmz9dIuFnWcXn3ooO%2Fuploads%2Fw5OpU0dUV6uPFzDmSxqj%2Fgrephex.png?alt=media&#x26;token=4bec6d36-183f-43be-aaac-0fbcfbb1f971" alt=""><figcaption></figcaption></figure>

Alternatively, you can also use the strings command which prints out all the strings within a file.

<figure><img src="https://1102212211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa46Jmz9dIuFnWcXn3ooO%2Fuploads%2FmLeGksax92xPnIeyzs0r%2Fstrings.png?alt=media&#x26;token=661a6090-c4a5-4337-b6f9-0af43ad787d5" alt=""><figcaption></figcaption></figure>
