# Tecnologías web

## Banner grabbing

### HTTP

```sh
curl -v -s http://<target> 1>/dev/null
```

```shell
nc -v <target> <port>
HEAD / HTTP/1.0
```

```shell
nc -v <target> <port>
HEAD / HTTP/1.1
Host: <target>
```

{% hint style="info" %}
Utilizar **`HTTP 1.1`** implica enviar un **`Host:`** en la solicitud. Si  utiliza **`HTTP 1.0`** se puede omitir.
{% endhint %}

### HTTPS

```shell
openssl s_client -connect <target>:<port>
HEAD / HTTP/1.0
```

{% hint style="info" %}
Utilizar **`HTTP 1.1`** implica enviar un **`Host:`** en la solicitud. Si  utiliza **`HTTP 1.0`** se puede omitir.
{% endhint %}

## WhatWeb

```shell
whatweb -v -a 1 <target> > whapweb.txt
```

* -v = modo verboso.&#x20;
* -a = establece el nivel de agresión. (1 = stealthy, 3 = aggressive y 4 = heavy).
* \<target> = objetivo.

## Wappalyzer

* <https://www.wappalyzer.com/>

## Favicon

```shell
curl http://<target>/favicon.ico | md5sum
```

* <https://wiki.owasp.org/index.php/OWASP_favicon_database>
