> For the complete documentation index, see [llms.txt](https://the-winrars.gitbook.io/writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-winrars.gitbook.io/writeups/2020-writeups/houseplant/rainbow-vomit.md).

# Rainbow vomit

![te](https://media.discordapp.net/attachments/699999846119243857/703728569116917810/output.png)\
decode from hexahue...

```
<----------------------------------------------------------------->  
There is such as thing as a tomcat but have you ever heard of a tomdog.
This is the most important question of our time, and unfortunately one that may never be answered by modern science. 
The definition of tomcat is a male cat, yet the name for a male dog is max.
Wait no. the name for a male dog is just dog. regardless, what would happen if we were to combine a male dog with a tomcat.
Perhaps wed end up with a dog that vomits out flags, like this one rtcp should,fl5g4,b3,st1cky,or,n0t
<----------------------------------------------------------------->
```

there was a typo (lol) so...

## rtcp{should,fl4g5,b3,st1cky,or,n0t}

```python
def conv(a):
    pp = [
    [(0, 0, 255), (0, 255, 255), (255, 0, 255), (255, 0, 0), (255, 255, 0), (0, 255, 0)],"t",
    [(0, 255, 0), (255, 255, 0), (255, 0, 0), (0, 0, 255), (0, 255, 255), (255, 0, 255)],"h",
    [(255, 0, 0), (0, 255, 0), (255, 255, 0), (0, 0, 255), (255, 0, 255), (0, 255, 255)],"e",
    [(0, 0, 255), (0, 255, 255), (255, 255, 0), (255, 0, 255), (255, 0, 0), (0, 255, 0)],"r",
    [(255, 255, 255), (255, 255, 255), (255, 255, 255), (255, 255, 255), (255, 255, 255), (255, 255, 255)]," ",
    [(0, 255, 0), (255, 255, 0), (0, 0, 255), (255, 0, 0), (0, 255, 255), (255, 0, 255)],"i",
    [(0, 0, 255), (0, 255, 255), (255, 0, 255), (255, 255, 0), (255, 0, 0), (0, 255, 0)],"s",
    [(0, 0, 255), (0, 255, 255), (255, 0, 255), (255, 0, 0), (0, 255, 0), (255, 255, 0)],"u",
    [(255, 0, 0), (0, 255, 0), (255, 0, 255), (255, 255, 0), (0, 0, 255), (0, 255, 255)],"c",
    [(255, 0, 255), (255, 0, 0), (0, 255, 0), (255, 255, 0), (0, 0, 255), (0, 255, 255)],"a",
    [(255, 255, 0), (0, 0, 255), (0, 255, 255), (0, 255, 0), (255, 0, 255), (255, 0, 0)],"n",
    [(0, 255, 0), (255, 0, 0), (255, 255, 0), (0, 0, 255), (0, 255, 255), (255, 0, 255)],"g",
    [(255, 255, 0), (0, 0, 255), (0, 255, 255), (255, 0, 255), (0, 255, 0), (255, 0, 0)],"o",
    [(255, 255, 0), (0, 0, 255), (0, 255, 0), (0, 255, 255), (255, 0, 255), (255, 0, 0)],"m",
    [(255, 0, 0), (255, 0, 255), (0, 255, 0), (255, 255, 0), (0, 0, 255), (0, 255, 255)],"b",
    [(0, 255, 255), (0, 0, 255), (255, 0, 255), (255, 0, 0), (0, 255, 0), (255, 255, 0)],"v",
    [(0, 255, 255), (255, 0, 255), (255, 0, 0), (0, 255, 0), (0, 0, 255), (255, 255, 0)],"y",
    [(255, 0, 0), (0, 255, 0), (255, 255, 0), (255, 0, 255), (0, 0, 255), (0, 255, 255)],"d",
    [(255, 0, 0), (0, 255, 0), (255, 255, 0), (0, 0, 255), (0, 255, 255), (255, 0, 255)],"f",
    [(0, 0, 0), (255, 255, 255), (255, 255, 255), (0, 0, 0), (0, 0, 0), (255, 255, 255)],".",
    [(255, 255, 0), (0, 0, 255), (0, 255, 255), (255, 0, 255), (255, 0, 0), (0, 255, 0)],"p",
    [(0, 0, 255), (255, 255, 0), (0, 255, 255), (255, 0, 255), (255, 0, 0), (0, 255, 0)],"q",
    [(255, 255, 255), (0, 0, 0), (0, 0, 0), (255, 255, 255), (255, 255, 255), (0, 0, 0)],",",
    [(255, 255, 0), (0, 255, 0), (0, 0, 255), (0, 255, 255), (255, 0, 255), (255, 0, 0)],"l",
    [(0, 255, 255), (255, 0, 255), (0, 0, 255), (255, 0, 0), (0, 255, 0), (255, 255, 0)],"w",
    [(0, 255, 255), (255, 0, 255), (255, 0, 0), (0, 0, 255), (0, 255, 0), (255, 255, 0)],"x",
    [(0, 255, 0), (255, 255, 0), (0, 0, 255), (0, 255, 255), (255, 0, 0), (255, 0, 255)],"j",
    [(0, 255, 0), (255, 255, 0), (0, 0, 255), (0, 255, 255), (255, 0, 255), (255, 0, 0)],"k",
    [(255, 255, 255), (128, 128, 128), (0, 0, 0), (128, 128, 128), (255, 255, 255), (0, 0, 0)],"5",
    [(128, 128, 128), (255, 255, 255), (0, 0, 0), (128, 128, 128), (255, 255, 255), (0, 0, 0)],"4",
    [(128, 128, 128), (255, 255, 255), (0, 0, 0), (128, 128, 128), (0, 0, 0), (255, 255, 255)],"3",
    [(128, 128, 128), (0, 0, 0), (255, 255, 255), (0, 0, 0), (128, 128, 128), (255, 255, 255)],"1",
    [(0, 0, 0), (128, 128, 128), (255, 255, 255), (0, 0, 0), (128, 128, 128), (255, 255, 255)],"0",
    ]
    if a not in pp:
        print(a)
        int("lol")
    else:
        return pp[pp.index(a)+1]

def rainbow():
    from PIL import Image #104 x 34

    im = Image.open('output.png', 'r')
    pix_val = list(im.getdata())

    var = []
    cc = ""

    e = [bytes((x,)) for y in pix_val for x in y]

    for i in range(10):
        for j in range(50):
            var.append([
                pix_val[210+j*2+(i*3+0)*104],pix_val[210+j*2+(i*3+0)*104+1],
                pix_val[210+j*2+(i*3+1)*104],pix_val[210+j*2+(i*3+1)*104+1],
                pix_val[210+j*2+(i*3+2)*104],pix_val[210+j*2+(i*3+2)*104+1]])

    for i in var:
        cc += conv(i)
    print(cc)

rainbow()
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://the-winrars.gitbook.io/writeups/2020-writeups/houseplant/rainbow-vomit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
