> For the complete documentation index, see [llms.txt](https://insecurecodes.gitbook.io/redbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://insecurecodes.gitbook.io/redbook/stages-of-ethical-hacking/enumeration/http/apache.md).

# Apache

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows.

## Enum

```bash
nmap $IP -p 80 -sV -O

nmap $IP -p 80 -sV --script banner

whatweb $IP

http $IP

dirb http://$IP 

browsh --startup-url $IP

lynx http://$IP

# Metasploit version
msfconsole
use auxiliary/scanner/http/http_version
set rhosts $IP
run

# Metasploit directiries
msfconsole
use auxiliary/scanner/http/brute_dirs
set rhosts $IP
run

#robots.txt
msfconsole
use auxiliary/scanner/http/robots_txt
set rhosts $IP
run
```
