# Misc

## Manual Requests

### Netcat

```bash
#Netcat scanner for HTTP servers
for i in $(seq 1 255); do nc -n -v -z "192.168.1.$i" 80 | grep "open"; done | tee webservers.txt

#Manually perform a HTTP Get Request
echo -ne "GET / HTTP/1.0\n\n" | nc www.web.com 80
```

### Socat

```bash
#Manually perform a HTTP Get Request on SSL port
echo -ne "GET / HTTP/1.0\n\n" | socat – OPENSSL:www.web.com:443,verify=0

#Check if TRACE is enabled on website
echo -ne "TRACE /something HTTP/1.0\nX-Header: Trace Enabled\n\n" | socat - OPENSSL:www.web.com:443,verify=0
```


---

# 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://www.pwny.cc/web-attacks/misc.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.
