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

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://dhaneshsivasamy07.gitbook.io/oscp-2022/enumeration/http-https.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
