> For the complete documentation index, see [llms.txt](https://ceh-practical.cavementech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ceh-practical.cavementech.com/module-13.-hacking-web-servers/1.-footprint-the-webserver.md).

# 1. Footprint the Webserver

An ethical hacker or penetration tester must perform footprinting to detect the loopholes in the web server of the target organization.

## <mark style="color:red;">1. Information gathering using Ghost Eye</mark>

{% embed url="<https://github.com/BullsEye0/ghost_eye>" %}

```
git clone https://github.com/BullsEye0/ghost_eye.git
cd ghost_eye
pip3 install -r requirements.txt
```

Now launch it

```
python3 ghost-eye.py
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FZmZRW9w3RxWK496uIk76%2Fimage.png?alt=media&amp;token=837e78d8-db7a-494e-a534-3278827d1f1d" alt=""><figcaption></figcaption></figure>

We can use the tool for WHOIS lookup, DNS etc and also scan for clickjacking vulnerability

## <mark style="color:red;">2. Perform Web Reconnaisance using skipfish</mark>

{% embed url="<https://www.kali.org/tools/skipfish/>" %}

## <mark style="color:red;">3. Footprint Webserver using Httprecon</mark>

{% embed url="<https://www.computec.ch/projekte/httprecon/>" %}

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FkE0aLFf3BcsZNpxWRSKf%2Fimage.png?alt=media&amp;token=8b9805b4-948b-4569-a87c-c32ef7fd4987" alt=""><figcaption></figcaption></figure>

## <mark style="color:red;">4. Footprinting using ID serve</mark>

{% embed url="<https://www.grc.com/id/idserve.htm>" %}

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2F9nS54YQKJggsTbCPgjee%2Fimage.png?alt=media&amp;token=67838ea2-1d01-4021-912c-a195d2972c13" alt=""><figcaption></figcaption></figure>

## 5. Footprinting using netcat and Telnet

### **netcat**

```
nc -vv certifiedhacker.com 443
GET / HTTP/1.0
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FqzkT1AJb07VHTM4nH3dr%2Fimage.png?alt=media&amp;token=48258144-cc01-453c-a9f8-9325b885cd53" alt=""><figcaption></figcaption></figure>

### **telnet**

```
telnet certifiedhacker.com 443
GET / HTTP/1.0
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FWxlqAXVs6P462jrxmccu%2Fimage.png?alt=media&amp;token=e8d9a786-48a6-4f2c-84c5-1f28059c2014" alt=""><figcaption></figcaption></figure>

## 6. Enumeration Webserver using NSE script

```
nmap -sV --script http-enum certifiedhacker.com
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FuvjeMiOUOQkKPMklYHp8%2Fimage.png?alt=media&amp;token=270796c0-df1d-4881-8cea-eeaaac800056" alt=""><figcaption></figcaption></figure>

Now to enumerate the hostnames use the following script

```
nmap --script hostmap-bft -script-args hostmap.bfk=hostmap- certifiedhacker.com
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FuL0O0TD8GWoXd9FsiHLK%2Fimage.png?alt=media&amp;token=2bb3663d-c90e-4f1c-b69c-03de59a174f2" alt=""><figcaption></figcaption></figure>

http trace scanner

```
nmap --script http-trace certifiedhacker.com
```

Http WAF (Firewall) detection

```
nmap -p 80 --script http-waf-detect certifiedhacker.com
```

## <mark style="color:red;">7. Uniscan webserver footprinting</mark>

{% embed url="<https://www.kali.org/tools/uniscan/>" %}

### Best CEHv13 Practical Exam Preparation Course

{% embed url="<https://www.udemy.com/course/ethical-hacker-practical/?referralCode=289CF01CF51246BCAD6C>" %}
