> For the complete documentation index, see [llms.txt](https://writeups.ayweth20.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://writeups.ayweth20.com/2025/404ctf-2025/analyse-forensique/forensic-et-mat-2-2.md).

# Forensic et Mat \[2/2]

**Catégorie:** Analyse forensique - **Difficulté:** Facile

{% file src="/files/ezJaSNcIPDru4PzYrMiR" %}

**Description:**

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

Solution:

Pour ce challenge, nous avons a disposition un nouveau fichier de logs evtx.\
Ici il faut donc trouver un évènement spécifique qui fait référence à une tentative d'effacement.

J'ai identifié une potentielle action "étrange", ou du moins qui se démarque des autres :&#x20;

<figure><img src="/files/4ZmYUge5ka5NcHaHPMig" alt=""><figcaption></figcaption></figure>

Nous savons donc qu'il s'agit de l'utilisateur **`svc-x`** qui a créé un tâche planifiée nommée **`WinUpdate_Check_75312`** afin d'exécuter le script situé ici : \
\&#xNAN;*C:\Users\svc-x\AppData\Local\Temp\payload.ps1*.

Maintenant pour retrouver les infos sur l'utilisateur (IP, Port et Groupe), il faut trouver le moment où il se connecte. Une simple recherche sur le nom d'utilisateur nous permets de trouver cela rapidement :&#x20;

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

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

Il nous manque donc le timestamp d'une tâche. Laquelle, là était toute la question...

Au final, il s'est avéré qu'il fallait renvoyer le timestamp de la création de la tâche planifiée :&#x20;

* 2025-05-14T18:00:31 <=> 1747245628

Il faut bien faire attention à être en UTC+0 pour la conversion, sinon ça fausse tout nos résultats :&#x20;

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

Nous avons donc toutes les parties nécessaires à la validation du challenge :&#x20;

* IP : 10.66.77.88
* Port : 4444
* User : svc-x
* Taskname : WinUpdate\_Check\_75312
* Timestamp : 1747245628
* Group : Administrateurs

<details>

<summary>🚩FLAG</summary>

`404CTF{10.66.77.88-4444-svc-x-WinUpdate_Check_75312-1747245628-Administrateurs}`

</details>


---

# 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://writeups.ayweth20.com/2025/404ctf-2025/analyse-forensique/forensic-et-mat-2-2.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.
