# Sistema operativo

## Identificación de sistema operativo en función de TTL (Time To Live)

TTL (Time To Live) es un valor de temporizador incluido en los paquetes enviados a través de redes, que le dice al destinatario cuánto tiempo debe retener o usar el paquete antes de descartar y expirar los datos (paquete). Los valores de TTL son distintos para cada sistema operativo. Por lo tanto, es posible "suponer" el tipo de sistema operativo en función del valor TTL.

```shell
ping -c 1 <target>
```

* -c = detenerse después de la cantidad de respuestas específicas.
* \<target> = objetivo.

| Sistema operativo  | TTL (Time To Live) |
| ------------------ | ------------------ |
| \*nix (Linux/Unix) | 64                 |
| Windows            | 128                |
| Solaris/AIX        | 254                |

## Nmap

```shell
nmap -O -n <target> -oN nmap-os.txt 
nmap -O -iL -n <host-list.txt> -oN nmap-os.txt
nmap --script smb-os-discovery -p 445 -Pn <target>
```

* -O = identificación de sistema operativo.
  * \<target> = objetivo.
* -iL = lectura de host a descubrir desde archivo.
  * \<host-list.txt> = archivo con listado de host.


---

# Agent Instructions: 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://pentesting.mrw0l05zyn.cl/reconocimiento-y-recoleccion-de-informacion/identificacion-de-sistema-operativo.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.
