# HTTP/ HTTPS

HTTP and HTTPS services host web services for the servers to host to the end-users. Identify the CMS employed in the web services perform basic testing regarding the CMS and test for web-based attacks, sqli, XXE, SSTI, SSRF, etc..,

## Windows Machine

When the machine hosts an IIS Server always check for its version and check for an open publically available exploits

Use \*-lowercase words to shorten the brute force time

```bash
raft-medium-directories-lowercase.txt from seclists etc..,
```

### Enumeration

* IIS Servers are by defualt vulnerable to tilde enumeration&#x20;
* Set to wont fix status by the MSRC Team
* Abusing this reduces the directory enumeration time
* Tool - [IIS-ShortName-Scanner](https://github.com/irsdl/IIS-ShortName-Scanner)

```bash
 java -jar iis_shortname_scanner.jar 2 20 http://url
```

## Linux Machine

Advised to use *feroxbuster* since it enumerates recursively

```bash
feroxbuster -u http://$ip -w /usr/share/wordlists/dirb/big.txt -x php,html,bak,txt,sh  -k 
```


---

# 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://dhaneshsivasamy07.gitbook.io/oscp-2022/enumeration/http-https.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.
