---
# System prepended metadata

title: Untitled

---

**Trabalho Realizado na Semana #7**

**Lab Tasks**

**3 Task 1: Crashing the Program**

- In the first taks we are soposed to crash the program with our input. First we just tryed to connect with the server and sended the string "hello".

![](img/lab6/send_hello.png)

![](img/lab6/return_hello.png)

- To crash the program we used an input with the symbol "%s" so the printf tried to get a string from the stack but beacuse none was there it crashed

![](img/lab6/send_string.png)

![](img/lab6/return_string.png)

**4 Task 2: Printing Out the Server Program’s Memory**

***Task 2.A: Stack Data***

- Now we are tasked with printing out on the server data from it's memory. We can achieve this by using an input string with "%x" that prints the adress of memory in hexadecimal. We need to get the starting value of our input this was done by trial and error until we got that if we input 6 "%x" we get the adress of our input.

![](img/lab6/send_tries.png)
![](img/lab6/return_tries.png)

***Task 2.B: Heap Data***
