# Task 5 - TCP Connect Scans

## Task 5 <mark style="color:green;background-color:green;">Scan Types</mark> TCP Connect Scans

### Which RFC defines the appropriate behaviour for the TCP protocol?

{% embed url="https://tools.ietf.org/html/rfc793" %}
[https://tools.ietf.org/html/rfc793](https://tools.ietf.org/html/rfc793)
{% endembed %}

<details>

<summary>Reveal Flag <span data-gb-custom-inline data-tag="emoji" data-code="1f6a9">🚩</span></summary>

:triangular\_flag\_on\_post:`RFC 793`

</details>

### If a port is closed, which flag should the server send back to indicate this?

> If the connection does not exist (CLOSED) then a reset is sent in response to any incoming segment except another reset.

<details>

<summary>Reveal Flag <span data-gb-custom-inline data-tag="emoji" data-code="1f6a9">🚩</span></summary>

:triangular\_flag\_on\_post:`RST`

</details>
