> For the complete documentation index, see [llms.txt](https://alham-rizvi.gitbook.io/alhamrizvi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alham-rizvi.gitbook.io/alhamrizvi/picoctf-writeups/picoctf/forensics/pcap/webnet1.md).

# webnet1

**1. Configure the RSA Key**

To read encrypted traffic, you must provide Wireshark with the private key:

* Navigate to: **Edit** > **Preferences** > **Protocols** > **TLS**.
* Click **Edit** next to **RSA keys list**.
* Click **+** and select your key file in the **Key File** column.
* *You can ignore the IP and Port columns; Wireshark will attempt to apply the key globally.*

**2. Filter and Locate the Image**

Once the key is added, the traffic will be decrypted.

* Type `http` in the display filter bar.
* Look for a packet where the **Info** column mentions a `200 OK` response with `Content-Type: image/jpeg`.

**3. Extract the Flag**

The flag is hidden in two places within the decrypted packet:

* **The HTTP Header:** Look at the **Pico-Flag** field in the packet details.
* **The File Metadata:** Select the packet, go to the **Packet Details** pane, and expand the **JPEG File Interchange Format** or **Reassembled SSL** section.

> **Flag Found:** > `picoCTF{honey.roasted.peanuts}`

#### **Quick Tip: Finding the "Real" Flag**

In this challenge, the flag in the HTTP header (`this.is.not.your.flag.anymore`) is a distraction. Always check the **hex dump** or the **reassembled data** at the bottom of the screen to find the actual flag embedded in the file's bytes.


---

# 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://alham-rizvi.gitbook.io/alhamrizvi/picoctf-writeups/picoctf/forensics/pcap/webnet1.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.
