> For the complete documentation index, see [llms.txt](https://jedi.gitbook.io/jedi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jedi.gitbook.io/jedi/ctf-archive/wargames.my-ctf-2024/forensic-i-cant-manipulate-people-50-pts.md).

# Forensic - I Cant Manipulate People (50 pts)

### Description

Partial traffic packet captured from hacked machine, can you analyze the provided pcap file to extract the message from the packet perhaps by reading the packet data?

Author: Ap0k4L1p5

Hint : Attacker too noob to ping not in sequence

Attachment : <https://ctf2024.wargames.my/files/d718720df4684370911db2629cf1f67c/traffic.pcap?token=eyJ1c2VyX2lkIjo3OCwidGVhbV9pZCI6MzQsImZpbGVfaWQiOjM2fQ.Z3EPAQ.9ECmNCDOoo4_VO_KNbTPS0OOim0>

### Solution

We were given a traffic.pcap file. We need to analyze the pcap file first based on the clue

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

We find out that there are a lot of ping request. When we see the last byte in the first 4 packet, it shows "WGMY" string, the flag format. We now know that we need to extract the last byte of each ICMP packet

```python
from scapy.all import *

def extract(pcap_file):
    packets = rdpcap(pcap_file)

    for packet in packets:
        if ICMP in packet:
            raw_data = bytes(packet[ICMP].payload)
            if raw_data:
                last_byte = raw_data[-1]
                print(chr(last_byte), end='')

extract("traffic.pcap")
```

### Flag

<figure><img src="/files/hJOS1Sz90fbsqKs1DHEG" alt="" width="458"><figcaption></figcaption></figure>

`WGMY{1e3b71d57e466ab71b43c2641a4b34f4}`


---

# 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:

```
GET https://jedi.gitbook.io/jedi/ctf-archive/wargames.my-ctf-2024/forensic-i-cant-manipulate-people-50-pts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
